diff --git a/modules/eks/actions-runner-controller/charts/actions-runner/templates/horizontalrunnerautoscaler.yaml b/modules/eks/actions-runner-controller/charts/actions-runner/templates/horizontalrunnerautoscaler.yaml index eda4813a7..e8d587e98 100644 --- a/modules/eks/actions-runner-controller/charts/actions-runner/templates/horizontalrunnerautoscaler.yaml +++ b/modules/eks/actions-runner-controller/charts/actions-runner/templates/horizontalrunnerautoscaler.yaml @@ -56,3 +56,7 @@ spec: duration: "{{ .Values.max_duration }}" {{- end }} {{- end }} + {{- if .Values.scheduled_overrides }} + scheduledOverrides: + {{- with $.Values.scheduled_overrides }}{{ toYaml . | trim | nindent 8 }}{{- end }} + {{- end }} diff --git a/modules/eks/actions-runner-controller/charts/actions-runner/values.yaml b/modules/eks/actions-runner-controller/charts/actions-runner/values.yaml index c5c96f3c1..30cdb6070 100644 --- a/modules/eks/actions-runner-controller/charts/actions-runner/values.yaml +++ b/modules/eks/actions-runner-controller/charts/actions-runner/values.yaml @@ -29,3 +29,15 @@ pull_driven_scaling_enabled: false #labels: # - "Ubuntu" # - "core-example" +# Override minReplicas to 1 on weekends and during non-working hours +#scheduled_overrides: +# - startTime: "2023-06-30T19:00:00+03:00" +# endTime: "2023-07-03T07:00:00+03:00" +# recurrenceRule: +# frequency: Weekly +# minReplicas: 1 +# - startTime: "2023-07-03T19:00:00+03:00" +# endTime: "2023-07-04T07:00:00+03:00" +# recurrenceRule: +# frequency: Daily +# minReplicas: 1