This is an automated email from the ASF dual-hosted git repository.

kamilbregula pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new ef83f73  feat: Helm chart adding minReplicaCount to the Keda 
worker-kedaautoscaler.yaml (#16262)
ef83f73 is described below

commit ef83f730f5953eff1e9c63056e32f633afe7d3e2
Author: Andor Markus <51825189+andormar...@users.noreply.github.com>
AuthorDate: Sun Jun 6 01:35:44 2021 +0200

    feat: Helm chart adding minReplicaCount to the Keda 
worker-kedaautoscaler.yaml (#16262)
    
    Co-authored-by: andormarkus <andormar...@marc-o-polo.com>
---
 chart/templates/workers/worker-kedaautoscaler.yaml | 1 +
 chart/values.schema.json                           | 5 +++++
 chart/values.yaml                                  | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/chart/templates/workers/worker-kedaautoscaler.yaml 
b/chart/templates/workers/worker-kedaautoscaler.yaml
index 0e8e524..9c27861 100644
--- a/chart/templates/workers/worker-kedaautoscaler.yaml
+++ b/chart/templates/workers/worker-kedaautoscaler.yaml
@@ -39,6 +39,7 @@ spec:
     name: {{ .Release.Name }}-worker
   pollingInterval:  {{ .Values.workers.keda.pollingInterval }}   # Optional. 
Default: 30 seconds
   cooldownPeriod: {{ .Values.workers.keda.cooldownPeriod }}    # Optional. 
Default: 300 seconds
+  minReplicaCount: {{ .Values.workers.keda.minReplicaCount }}   # Optional. 
Default: 0
   maxReplicaCount: {{ .Values.workers.keda.maxReplicaCount }}   # Optional. 
Default: 100
   triggers:
     - type: postgresql
diff --git a/chart/values.schema.json b/chart/values.schema.json
index 5899a38..6e424d1 100644
--- a/chart/values.schema.json
+++ b/chart/values.schema.json
@@ -929,6 +929,11 @@
                             "type": "integer",
                             "default": 30
                         },
+                        "minReplicaCount": {
+                            "description": "Minimum number of workers created 
by KEDA.",
+                            "type": "integer",
+                            "default": 0
+                        },
                         "maxReplicaCount": {
                             "description": "Maximum number of workers created 
by KEDA.",
                             "type": "integer",
diff --git a/chart/values.yaml b/chart/values.yaml
index 5b42704..6d1d157 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -364,6 +364,9 @@ workers:
     # Note that HPA has a separate cooldown period for scale-downs
     cooldownPeriod: 30
 
+    # Minimum number of workers created by keda
+    minReplicaCount: 0
+
     # Maximum number of workers created by keda
     maxReplicaCount: 10
 

Reply via email to