From 42850a0968028d273d8428e24444b08adabdd52b Mon Sep 17 00:00:00 2001 From: juri Date: Wed, 27 Nov 2024 15:19:37 +0000 Subject: [PATCH] fix hpa --- charts/app/Chart.yaml | 2 +- charts/app/values.yaml | 2 +- charts/argo-applications/Chart.yaml | 2 +- charts/argo-workflows/Chart.yaml | 2 +- charts/base/Chart.yaml | 2 +- charts/base/templates/_keda.tpl | 4 +++- charts/cronjob/Chart.yaml | 2 +- charts/default-base/Chart.yaml | 2 +- charts/ingress/Chart.yaml | 2 +- charts/job/Chart.yaml | 2 +- charts/prometheus-rules/Chart.yaml | 2 +- charts/rbac/Chart.yaml | 2 +- charts/service/Chart.yaml | 2 +- 13 files changed, 15 insertions(+), 13 deletions(-) diff --git a/charts/app/Chart.yaml b/charts/app/Chart.yaml index f137807..fda53e1 100644 --- a/charts/app/Chart.yaml +++ b/charts/app/Chart.yaml @@ -3,7 +3,7 @@ name: app description: A Helm chart for Kubernetes Deployment type: application -version: 0.15.0 +version: 0.15.2 keywords: - deployment diff --git a/charts/app/values.yaml b/charts/app/values.yaml index 604a3b1..95e98d6 100644 --- a/charts/app/values.yaml +++ b/charts/app/values.yaml @@ -170,6 +170,7 @@ prometheusScrapePath: /actuator/prometheus ## enable HorizontalPodAutoscalers autoscaling: enabled: false + scaleTargetRef: {} minReplicas: 2 maxReplicas: 10 # pubsub_subscription: @@ -198,7 +199,6 @@ autoscaling: # behavior: # scaleDown: # stabilizationWindowSeconds: 300 - scaleTargetRef: {} ## https://keda.sh/docs/latest/reference/scaledobject-spec/ keda: diff --git a/charts/argo-applications/Chart.yaml b/charts/argo-applications/Chart.yaml index 82cf17b..3e46589 100644 --- a/charts/argo-applications/Chart.yaml +++ b/charts/argo-applications/Chart.yaml @@ -3,7 +3,7 @@ name: argo-applications description: A Helm chart for Kubernetes argo applications type: application -version: 0.15.0 +version: 0.15.2 keywords: - argocd diff --git a/charts/argo-workflows/Chart.yaml b/charts/argo-workflows/Chart.yaml index 9cd16d7..7630762 100644 --- a/charts/argo-workflows/Chart.yaml +++ b/charts/argo-workflows/Chart.yaml @@ -3,7 +3,7 @@ name: argo-workflows description: A Helm chart for Kubernetes argocd workflows type: application -version: 0.15.0 +version: 0.15.2 keywords: - argocd diff --git a/charts/base/Chart.yaml b/charts/base/Chart.yaml index db83363..16a388a 100644 --- a/charts/base/Chart.yaml +++ b/charts/base/Chart.yaml @@ -3,7 +3,7 @@ name: base description: A Helm chart for Kubernetes with helm named templates type: library -version: 0.15.0 +version: 0.15.2 keywords: - deployment diff --git a/charts/base/templates/_keda.tpl b/charts/base/templates/_keda.tpl index c2328bf..10bc59d 100644 --- a/charts/base/templates/_keda.tpl +++ b/charts/base/templates/_keda.tpl @@ -28,7 +28,9 @@ spec: {{- end }} pollingInterval: {{ .Values.keda.pollingInterval | default 30 }} cooldownPeriod: {{ .Values.keda.cooldownPeriod | default 300 }} - idleReplicaCount: {{ .Values.keda.idleReplicaCount | default 0 }} + {{- if .Values.keda.idleReplicaCount }} + idleReplicaCount: {{ .Values.keda.idleReplicaCount }} + {{- end }} minReplicaCount: {{ .Values.keda.minReplicaCount | default 0 }} maxReplicaCount: {{ .Values.keda.maxReplicaCount | default 100 }} {{- with .Values.keda.fallback }} diff --git a/charts/cronjob/Chart.yaml b/charts/cronjob/Chart.yaml index 9dcc195..b82ba1f 100644 --- a/charts/cronjob/Chart.yaml +++ b/charts/cronjob/Chart.yaml @@ -3,7 +3,7 @@ name: cronjob description: A Helm chart for Kubernetes cronjob type: application -version: 0.15.0 +version: 0.15.2 keywords: - cronjob diff --git a/charts/default-base/Chart.yaml b/charts/default-base/Chart.yaml index 3bbe151..33189f3 100644 --- a/charts/default-base/Chart.yaml +++ b/charts/default-base/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: default-base description: A Helm chart for Kubernetes - default-base for namespaces -version: 0.15.0 +version: 0.15.2 keywords: - BackendConfig diff --git a/charts/ingress/Chart.yaml b/charts/ingress/Chart.yaml index 3a5feed..3a738fa 100644 --- a/charts/ingress/Chart.yaml +++ b/charts/ingress/Chart.yaml @@ -3,7 +3,7 @@ name: ingress description: A Helm chart for Kubernetes ingress type: application -version: 0.15.0 +version: 0.15.2 keywords: - ingress diff --git a/charts/job/Chart.yaml b/charts/job/Chart.yaml index 9bcc575..1e4c0b6 100644 --- a/charts/job/Chart.yaml +++ b/charts/job/Chart.yaml @@ -3,7 +3,7 @@ name: job description: A Helm chart for Kubernetes job type: application -version: 0.15.0 +version: 0.15.2 keywords: - job diff --git a/charts/prometheus-rules/Chart.yaml b/charts/prometheus-rules/Chart.yaml index 46c9910..9d9cc11 100644 --- a/charts/prometheus-rules/Chart.yaml +++ b/charts/prometheus-rules/Chart.yaml @@ -3,7 +3,7 @@ name: prometheus-rules description: A Helm chart for Prometheus Rules type: application -version: 0.15.0 +version: 0.15.2 keywords: - job diff --git a/charts/rbac/Chart.yaml b/charts/rbac/Chart.yaml index 05a1c53..d102940 100644 --- a/charts/rbac/Chart.yaml +++ b/charts/rbac/Chart.yaml @@ -3,7 +3,7 @@ name: rbac description: A Helm chart for Kubernetes rbac type: application -version: 0.15.0 +version: 0.15.2 keywords: - rbac diff --git a/charts/service/Chart.yaml b/charts/service/Chart.yaml index 939fea3..740f6da 100644 --- a/charts/service/Chart.yaml +++ b/charts/service/Chart.yaml @@ -3,7 +3,7 @@ name: service description: A Helm chart for Kubernetes service type: application -version: 0.15.0 +version: 0.15.2 keywords: - service