diff --git a/examples/app/templates/daemonset.yaml b/examples/app/templates/daemonset.yaml index 1bc996a..d1e1c39 100644 --- a/examples/app/templates/daemonset.yaml +++ b/examples/app/templates/daemonset.yaml @@ -19,7 +19,7 @@ spec: containers: - env: - name: KUBERNETES_CLUSTER_DOMAIN - value: {{ .Values.kubernetesClusterDomain }} + value: {{ quote .Values.kubernetesClusterDomain }} image: {{ .Values.fluentdElasticsearch.fluentdElasticsearch.image.repository }}:{{ .Values.fluentdElasticsearch.fluentdElasticsearch.image.tag | default .Chart.AppVersion }} diff --git a/examples/app/templates/deployment.yaml b/examples/app/templates/deployment.yaml index 8e31a1c..625dd90 100644 --- a/examples/app/templates/deployment.yaml +++ b/examples/app/templates/deployment.yaml @@ -36,7 +36,7 @@ spec: key: VAR2 name: {{ include "app.fullname" . }}-my-secret-vars - name: KUBERNETES_CLUSTER_DOMAIN - value: {{ .Values.kubernetesClusterDomain }} + value: {{ quote .Values.kubernetesClusterDomain }} image: {{ .Values.myapp.app.image.repository }}:{{ .Values.myapp.app.image.tag | default .Chart.AppVersion }} livenessProbe: @@ -73,7 +73,7 @@ spec: - --v=10 env: - name: KUBERNETES_CLUSTER_DOMAIN - value: {{ .Values.kubernetesClusterDomain }} + value: {{ quote .Values.kubernetesClusterDomain }} image: {{ .Values.myapp.proxySidecar.image.repository }}:{{ .Values.myapp.proxySidecar.image.tag | default .Chart.AppVersion }} name: proxy-sidecar diff --git a/examples/operator/templates/deployment.yaml b/examples/operator/templates/deployment.yaml index 1ec487f..ed13b5f 100644 --- a/examples/operator/templates/deployment.yaml +++ b/examples/operator/templates/deployment.yaml @@ -32,7 +32,7 @@ spec: - --v=10 env: - name: KUBERNETES_CLUSTER_DOMAIN - value: {{ .Values.kubernetesClusterDomain }} + value: {{ quote .Values.kubernetesClusterDomain }} image: {{ .Values.controllerManager.kubeRbacProxy.image.repository }}:{{ .Values.controllerManager.kubeRbacProxy.image.tag | default .Chart.AppVersion }} name: kube-rbac-proxy @@ -53,9 +53,9 @@ spec: key: VAR1 name: {{ include "operator.fullname" . }}-secret-vars - name: VAR2 - value: {{ .Values.controllerManager.manager.env.var2 }} + value: {{ quote .Values.controllerManager.manager.env.var2 }} - name: VAR3_MY_ENV - value: {{ .Values.controllerManager.manager.env.var3MyEnv }} + value: {{ quote .Values.controllerManager.manager.env.var3MyEnv }} - name: VAR4 valueFrom: configMapKeyRef: @@ -71,7 +71,7 @@ spec: divisor: "0" resource: limits.cpu - name: KUBERNETES_CLUSTER_DOMAIN - value: {{ .Values.kubernetesClusterDomain }} + value: {{ quote .Values.kubernetesClusterDomain }} image: {{ .Values.controllerManager.manager.image.repository }}:{{ .Values.controllerManager.manager.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.controllerManager.manager.imagePullPolicy }} diff --git a/pkg/processor/deployment/deployment.go b/pkg/processor/deployment/deployment.go index d2603e3..85c75ca 100644 --- a/pkg/processor/deployment/deployment.go +++ b/pkg/processor/deployment/deployment.go @@ -9,6 +9,7 @@ import ( "github.com/arttor/helmify/pkg/cluster" "github.com/arttor/helmify/pkg/processor" "github.com/arttor/helmify/pkg/processor/imagePullSecrets" + securityContext "github.com/arttor/helmify/pkg/processor/security-context" "github.com/arttor/helmify/pkg/helmify" yamlformat "github.com/arttor/helmify/pkg/yaml"