From 20deb70c75776aa037a535387f785bcce2c03417 Mon Sep 17 00:00:00 2001 From: zhipengl Date: Sat, 28 Sep 2019 02:50:25 +0800 Subject: [PATCH] [Nova] Fix a bug introduced in implementing security context for nova In daemonset-compute.yaml, it uses a wrong application name Bug introduced in commit-id:9b42e8a1c0e68404bf13487dbfb699b1bd0e4c01 Change-Id: I614dc9d52d6dd7b346aa0b3f5e0012686de93ced Signed-off-by: zhipengl --- nova/templates/daemonset-compute.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/templates/daemonset-compute.yaml b/nova/templates/daemonset-compute.yaml index feea6ab53e..648ed89488 100644 --- a/nova/templates/daemonset-compute.yaml +++ b/nova/templates/daemonset-compute.yaml @@ -176,7 +176,7 @@ spec: - name: nova-compute {{ tuple $envAll "nova_compute" | include "helm-toolkit.snippets.image" | indent 10 }} {{ tuple $envAll $envAll.Values.pod.resources.compute | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} -{{ dict "envAll" $envAll "application" "nova_compute" "container" "nova_compute" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }} +{{ dict "envAll" $envAll "application" "nova" "container" "nova_compute" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }} securityContext: privileged: true {{- if .Values.conf.ceph.enabled }} @@ -315,7 +315,7 @@ spec: - name: nova-compute-ssh {{ tuple $envAll "nova_compute_ssh" | include "helm-toolkit.snippets.image" | indent 10 }} {{ tuple $envAll $envAll.Values.pod.resources.ssh | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} -{{ dict "envAll" $envAll "application" "nova_compute" "container" "nova_compute_ssh" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }} +{{ dict "envAll" $envAll "application" "nova" "container" "nova_compute_ssh" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }} securityContext: privileged: true env: