Skip to content

Commit 3826b37

Browse files
committed
feat(HELM): Make HPA more Argo-friendly
Signed-off-by: kiblik <5609770+kiblik@users.noreply.github.com>
1 parent 529c748 commit 3826b37

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

helm/defectdojo/Chart.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ dependencies:
3434
# description: Critical bug
3535
annotations:
3636
artifacthub.io/prerelease: "true"
37-
artifacthub.io/changes: ""
37+
artifacthub.io/changes: |
38+
- kind: fixed
39+
description: Drop 'replicas' when HPA is in place

helm/defectdojo/templates/celery-worker-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ metadata:
2121
name: {{ $fullName }}-celery-worker
2222
namespace: {{ .Release.Namespace }}
2323
spec:
24+
{{ if (not .Values.celery.worker.autoscaling.enabled) -}}
2425
replicas: {{ .Values.celery.worker.replicas }}
26+
{{- end }}
2527
{{- with .Values.revisionHistoryLimit }}
2628
revisionHistoryLimit: {{ . }}
2729
{{- end }}

helm/defectdojo/templates/django-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ metadata:
2020
name: {{ $fullName }}-django
2121
namespace: {{ .Release.Namespace }}
2222
spec:
23+
{{ if (not .Values.django.autoscaling.enabled) -}}
2324
replicas: {{ .Values.django.replicas }}
25+
{{- end }}
2426
{{- with .Values.django.strategy }}
2527
strategy:
2628
{{- toYaml . | nindent 4 }}

0 commit comments

Comments
 (0)