Skip to content

Commit

Permalink
feat: Add security context to fastly-exporter
Browse files Browse the repository at this point in the history
Add ability to pass in SecurityContext and PodSecurityContext
  • Loading branch information
bkochendorfer committed Sep 12, 2023
1 parent 4ddc439 commit 0fc41a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-fastly-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "7.2.4"
description: A Helm chart for the Prometheus Fastly Exporter
name: prometheus-fastly-exporter
version: 0.1.2
version: 0.2.0
keywords:
- metrics
- fastly
Expand Down
8 changes: 8 additions & 0 deletions charts/prometheus-fastly-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ spec:
{{- with .Values.initContainers }}
initContainers: {{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down Expand Up @@ -55,6 +59,10 @@ spec:
{{- with .Values.resources }}
resources: {{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.extraVolumeMounts }}
volumeMounts: {{ toYaml . | nindent 12 }}
{{- end }}
Expand Down

0 comments on commit 0fc41a8

Please sign in to comment.