Skip to content

Commit

Permalink
fix: upgrade fail if security context is missing (#1133)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaysngupta committed Feb 6, 2021
1 parent d64276a commit 5b52237
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helm/ingress-azure/templates/deployment.yaml
Expand Up @@ -32,10 +32,15 @@ spec:
{{- end }}
spec:
serviceAccountName: {{ template "application-gateway-kubernetes-ingress.serviceaccountname" . }}
{{- if .Values.kubernetes.securityContext }}
{{- with .Values.kubernetes.securityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- else }}
securityContext:
runAsUser: 0
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
Expand Down

0 comments on commit 5b52237

Please sign in to comment.