Skip to content

Commit

Permalink
allow setting the security context in values
Browse files Browse the repository at this point in the history
  • Loading branch information
fishnix committed Feb 16, 2024
1 parent a04248d commit 216e87e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ spec:
containers:
- name: opentelemetry-collector
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
{{- if .Values.securityContext }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
{{- end }}
command:
- "/otelcol-contrib"
- "--config=/conf/opentelemetry-collector-config.yaml"
Expand Down

0 comments on commit 216e87e

Please sign in to comment.