From d196d9550d1c59cc92946514d08c123a9c57f9c4 Mon Sep 17 00:00:00 2001 From: Naseem Ullah Date: Sun, 30 Dec 2018 12:57:17 -0500 Subject: [PATCH] rename containerSecurityContext to just securityContext as per k8s api reference Signed-off-by: Naseem Ullah --- pkg/chartutil/create.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index cb7c62808..b1a4c516a 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -86,14 +86,14 @@ deployment: podSecurityContext: {} # fsGroup: 2000 - # runAsNonRoot: true - # runAsUser: 10001 - containerSecurityContext: {} + securityContext: {} # capabilities: # drop: # - ALL # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 10001 resources: {} # We usually recommend not to specify default resources and to leave this as a conscious @@ -264,7 +264,7 @@ spec: volumeMounts: {{- toYaml .Values.deployment.volumeMounts | nindent 12 }} securityContext: - {{- toYaml .Values.deployment.containerSecurityContext | nindent 12 }} + {{- toYaml .Values.deployment.securityContext | nindent 12 }} {{- with .Values.deployment.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}