Skip to content

Commit

Permalink
Inject Pod and Container Security Context
Browse files Browse the repository at this point in the history
  • Loading branch information
abeytom07 committed Sep 23, 2024
1 parent b6894eb commit d68531e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helm/templates/hypertrace-collector/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ spec:
port: 13133
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.securityContext }}
{{- with .Values.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ spec:
port: 13133
resources:
{{- toYaml .Values.metrics.resources | nindent 12 }}
{{- with .Values.metrics.securityContext }}
{{- with .Values.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -401,3 +401,5 @@ kafka-topic-creator:
imagePullSecrets: []
podAnnotations:
sidecar.istio.io/inject: "false"

containerSecurityContext: {}

0 comments on commit d68531e

Please sign in to comment.