Skip to content

Commit

Permalink
Merge pull request #11 from nipsufn/feat/podsecuritycontext
Browse files Browse the repository at this point in the history
feat: add pod level security context
  • Loading branch information
rueian authored Apr 11, 2024
2 parents 1a7aa96 + 3c2ff4c commit d60f62f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/hubble-gke-exporter/templates/daemonset-exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.exporter.spec.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: gke-hubble-export
image: "{{ .Values.exporter.image.repository }}:{{ .Values.exporter.image.tag }}"
Expand Down
4 changes: 4 additions & 0 deletions helm/hubble-gke-exporter/templates/deployment-relay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ spec:
{{- end }}
{{- include "hubble-gke-exporter.labels" . | nindent 8 }}
spec:
{{- with .Values.exporter.spec.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: hubble-relay
image: "{{ .Values.relay.image.repository }}:v{{ .Chart.AppVersion }}"
Expand Down
4 changes: 4 additions & 0 deletions helm/hubble-gke-exporter/templates/deployment-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ spec:
{{- end }}
{{- include "hubble-gke-exporter.labels" . | nindent 8 }}
spec:
{{- with .Values.exporter.spec.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccount: {{ include "hubble-gke-exporter.fullname" . }}-ui
serviceAccountName: {{ include "hubble-gke-exporter.fullname" . }}-ui
containers:
Expand Down
3 changes: 3 additions & 0 deletions helm/hubble-gke-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ exporter:
operator: Exists
podLabels: {}
podAnnotations: {}
podSecurityContext: {}
securityContext: {}

ui:
Expand Down Expand Up @@ -43,6 +44,7 @@ ui:
replicas: 1
podLabels: {}
podAnnotations: {}
podSecurityContext: {}

relay:
image:
Expand All @@ -52,6 +54,7 @@ relay:
replicas: 1
podLabels: {}
podAnnotations: {}
podSecurityContext: {}
securityContext: {}

service:
Expand Down

0 comments on commit d60f62f

Please sign in to comment.