Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bfoley13 committed Nov 8, 2024
1 parent bf7e42c commit 570b328
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 13 deletions.
22 changes: 21 additions & 1 deletion pkg/fixtures/deployments/helm/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,27 @@ affinity:
matchLabels:
app.kubernetes.io/name: testapp

securityContext: {}
securityContext:
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
add:
- SETPCAP
- MKNOD
- AUDIT_WRITE
- CHOWN
- DAC_OVERRIDE
- FOWNER
- FSETID
- KILL
- SETGID
- SETUID
- NET_BIND_SERVICE
- SYS_CHROOT
- SETFCAP
- SYS_PTRACE

envVars:

Expand Down
2 changes: 1 addition & 1 deletion template/deployments/helm/charts/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ metadata:
data:
{{- `
{{- range $key, $value := .Values.envVars }}
"{{ $key }}": "{{ $value }}"
{{ $key }}: {{ $value }}
{{- end }}
` -}}
3 changes: 0 additions & 3 deletions template/deployments/helm/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ affinity:
app.kubernetes.io/name: {{ .Config.GetVariableValue "APPNAME" }}

securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 3000
seccompProfile:
type: RuntimeDefault
capabilities:
Expand Down
2 changes: 1 addition & 1 deletion template/deployments/kustomize/base/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ metadata:
kubernetes.azure.com/generator: {{ .Config.GetVariableValue "GENERATORLABEL" }}
data:
{{- range $key, $value := .Config.GetVariableValue "ENVVARS" }}
"{{ $key }}": "{{ $value }}"
{{ $key }}: {{ $value }}
{{- end }}
3 changes: 0 additions & 3 deletions template/deployments/kustomize/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ spec:
successThreshold: {{ .Config.GetVariableValue "READINESSSUCCESSTHRESHOLD" }}
initialDelaySeconds: {{ .Config.GetVariableValue "READINESSINITIALDELAY" }}
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 3000
seccompProfile:
type: RuntimeDefault
capabilities:
Expand Down
2 changes: 1 addition & 1 deletion template/deployments/manifests/manifests/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ metadata:
kubernetes.azure.com/generator: {{ .Config.GetVariableValue "GENERATORLABEL" }}
data:
{{- range $key, $value := .Config.GetVariableValue "ENVVARS" }}
"{{ $key }}": "{{ $value }}"
{{ $key }}: {{ $value }}
{{- end }}
3 changes: 0 additions & 3 deletions template/deployments/manifests/manifests/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ spec:
successThreshold: {{ .Config.GetVariableValue "READINESSSUCCESSTHRESHOLD" }}
initialDelaySeconds: {{ .Config.GetVariableValue "READINESSINITIALDELAY" }}
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 3000
seccompProfile:
type: RuntimeDefault
capabilities:
Expand Down

0 comments on commit 570b328

Please sign in to comment.