From fa3eeef9dc0025e337641c1da301abbaf3be3411 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Fri, 2 Sep 2022 13:20:47 +0530 Subject: [PATCH] csi: add missing serviceAccoutName to holder Add missing serviceAccountName for the holder daemonset to create the pods with required access. Signed-off-by: Madhu Rajanna (cherry picked from commit 32943b64e353a00be1b4b004e9a9df4b2376fd5c) --- .../ceph/csi/template/cephfs/csi-cephfsplugin-holder.yaml | 1 + pkg/operator/ceph/csi/template/rbd/csi-rbdplugin-holder.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/operator/ceph/csi/template/cephfs/csi-cephfsplugin-holder.yaml b/pkg/operator/ceph/csi/template/cephfs/csi-cephfsplugin-holder.yaml index e7d447ee9..74937c30f 100644 --- a/pkg/operator/ceph/csi/template/cephfs/csi-cephfsplugin-holder.yaml +++ b/pkg/operator/ceph/csi/template/cephfs/csi-cephfsplugin-holder.yaml @@ -29,6 +29,7 @@ spec: spec: # HostPID is needed to expose the correct process ID network namespace and not the process namespace hostPID: true + serviceAccountName: rook-csi-cephfs-plugin-sa {{ if .PluginPriorityClassName }} priorityClassName: {{ .PluginPriorityClassName }} {{ end }} diff --git a/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin-holder.yaml b/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin-holder.yaml index c64250673..9be084d4b 100644 --- a/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin-holder.yaml +++ b/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin-holder.yaml @@ -29,6 +29,7 @@ spec: spec: # HostPID is needed to expose the correct process ID network namespace and not the process namespace hostPID: true + serviceAccountName: rook-csi-rbd-plugin-sa {{ if .PluginPriorityClassName }} priorityClassName: {{ .PluginPriorityClassName }} {{ end }}