Skip to content

Commit 9b4d513

Browse files
committed
empty annotations
1 parent 43fdfb1 commit 9b4d513

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

.circleci/tests/golden/wiz-outpost-lite/multiple-runners-security-context.golden.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ spec:
290290
wiz.io/runner: "remediation-aws-rds-003"
291291
template:
292292
metadata:
293-
annotations:
294293
labels:
295294
app.kubernetes.io/name: wiz-outpost-lite
296295
app.kubernetes.io/instance: release-test

.circleci/tests/golden/wiz-outpost-lite/remediation-special-security-context.golden.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ spec:
7373
wiz.io/runner: "remediation-aws-rds-003"
7474
template:
7575
metadata:
76-
annotations:
7776
labels:
7877
app.kubernetes.io/name: wiz-outpost-lite
7978
app.kubernetes.io/instance: release-test

.circleci/tests/golden/wiz-outpost-lite/remediation.golden.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ spec:
7373
wiz.io/runner: "remediation-aws-rds-003"
7474
template:
7575
metadata:
76-
annotations:
7776
labels:
7877
app.kubernetes.io/name: wiz-outpost-lite
7978
app.kubernetes.io/instance: release-test

wiz-outpost-lite/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ spec:
1414
{{- include "wiz-outpost-lite.selectorLabels" . | nindent 6 }}
1515
template:
1616
metadata:
17+
{{- if or (not (empty .Values.podAnnotations)) (ne .Values.apparmorProfile "") }}
1718
annotations:
1819
{{- with .Values.podAnnotations }}
1920
{{- toYaml . | nindent 8 }}
2021
{{- end }}
2122
{{- if ne .Values.apparmorProfile "" }}
2223
container.apparmor.security.beta.kubernetes.io/{{ printf "%s-%s" .Chart.Name .runner }}: {{ .Values.apparmorProfile }}
2324
{{- end }}
25+
{{- end }}
2426
labels:
2527
{{- include "wiz-outpost-lite.selectorLabels" . | nindent 8 }}
2628
{{- with .Values.labels }}

0 commit comments

Comments
 (0)