Skip to content

Commit

Permalink
Adding annotations for different resources (#11467)
Browse files Browse the repository at this point in the history
  • Loading branch information
veneber authored Jan 16, 2025
1 parent 6f614ca commit 8722ee2
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/defectdojo/templates/celery-beat-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ metadata:
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.celery.annotations }}
annotations:
{{- with .Values.celery.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
replicas: {{ .Values.celery.beat.replicas }}
{{- if .Values.revisionHistoryLimit }}
Expand Down
6 changes: 6 additions & 0 deletions helm/defectdojo/templates/celery-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ metadata:
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.celery.annotations }}
annotations:
{{- with .Values.celery.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
replicas: {{ .Values.celery.worker.replicas }}
{{- if .Values.revisionHistoryLimit }}
Expand Down
6 changes: 6 additions & 0 deletions helm/defectdojo/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ metadata:
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.annotations }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
data:
DD_ADMIN_USER: {{ .Values.admin.user | default "admin" }}
DD_ADMIN_MAIL: {{ .Values.admin.Mail | default "[email protected]" }}
Expand Down
6 changes: 6 additions & 0 deletions helm/defectdojo/templates/django-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ metadata:
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.django.annotations }}
annotations:
{{- with .Values.django.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
replicas: {{ .Values.django.replicas }}
{{- if .Values.revisionHistoryLimit }}
Expand Down
6 changes: 6 additions & 0 deletions helm/defectdojo/templates/network-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ metadata:
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.networkPolicy.annotations }}
annotations:
{{- with .Values.networkPolicy.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
podSelector:
matchLabels:
Expand Down
2 changes: 2 additions & 0 deletions helm/defectdojo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ networkPolicy:
# ports:
# - protocol: TCP
# port: 443
annotations: {}

# Configuration value to select database type
# Set the "enable" field to true of the database type you select (if you want to use internal database) and false of the one you don't select
Expand Down Expand Up @@ -136,6 +137,7 @@ celery:
# To use an external celery broker, set the hostname here
brokerHost: ""
logLevel: INFO
annotations: {}
beat:
annotations: {}
affinity: {}
Expand Down

0 comments on commit 8722ee2

Please sign in to comment.