File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
deployments/kubernetes/chart/gitwebhookproxy Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1919 {{- with .Values.gitWebhookProxy.config.allowedPaths }}
2020 allowedPaths : {{ . }}
2121 {{- end }}
22- {{- with .Values.gitWebhookProxy.config.ignoredUsers }}
23- ignoredUsers : {{ . }}
24- {{- end }}
25- {{- with .Values.gitWebhookProxy.config.allowedUsers }}
26- allowedUsers : {{ . }}
27- {{- end }}
22+ ignoredUsers : {{ .Values.gitWebhookProxy.config.ignoredUsers | default "" | quote }}
23+ allowedUsers : {{ .Values.gitWebhookProxy.config.allowedUsers | default "" | quote }}
Original file line number Diff line number Diff line change 2828 labels :
2929{{ include "gitwebhookproxy.labels.selector" . | indent 8 }}
3030 spec :
31+ {{- with .Values.gitWebhookProxy.podSecurityContext }}
32+ securityContext : {{ . | toYaml | nindent 8 }}
33+ {{- end }}
3134 containers :
3235 - env :
3336 - name : KUBERNETES_NAMESPACE
9295 {{- end }}
9396 image : " {{ .Values.gitWebhookProxy.image.name }}:{{ .Values.gitWebhookProxy.image.tag }}"
9497 imagePullPolicy : {{ .Values.gitWebhookProxy.image.pullPolicy }}
98+ {{- with .Values.gitWebhookProxy.securityContext }}
99+ securityContext : {{ . | toYaml | nindent 10 }}
100+ {{- end }}
95101 {{- if .Values.gitWebhookProxy.useCustomName }}
96102 name : {{ .Values.gitWebhookProxy.customName }}
97103 {{- else }}
Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ gitWebhookProxy:
3333 port : 80
3434 protocol : TCP
3535 targetPort : 8080
36+ securityContext :
37+ readOnlyRootFilesystem : true
38+ allowPrivilegeEscalation : false
39+ podSecurityContext :
40+ runAsUser : 1001
41+ runAsNonRoot : true
3642 ingress :
3743 enabled : false
3844 annotations :
You can’t perform that action at this time.
0 commit comments