Skip to content

Commit 5a966e1

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

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

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)