From 7a1d10a4bd5af02512ac5d021efe769bdbf89580 Mon Sep 17 00:00:00 2001 From: Nikhil-Ladha Date: Mon, 18 Mar 2024 15:13:57 +0530 Subject: [PATCH] Add service account for toolbox pod Update toolbox pod service account name Signed-off-by: Nikhil-Ladha --- api/v1/storagecluster_types.go | 3 ++- .../ocs-operator/api/v4/v1/storagecluster_types.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/v1/storagecluster_types.go b/api/v1/storagecluster_types.go index 70e0e1afdb..d96fc775d6 100644 --- a/api/v1/storagecluster_types.go +++ b/api/v1/storagecluster_types.go @@ -683,7 +683,8 @@ func (r *StorageCluster) NewToolsDeployment(tolerations []corev1.Toleration) *ap }, }, Spec: corev1.PodSpec{ - DNSPolicy: corev1.DNSClusterFirstWithHostNet, + DNSPolicy: corev1.DNSClusterFirstWithHostNet, + ServiceAccountName: "rook-ceph-default", Containers: []corev1.Container{ { Name: name, diff --git a/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1/storagecluster_types.go b/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1/storagecluster_types.go index 70e0e1afdb..d96fc775d6 100644 --- a/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1/storagecluster_types.go +++ b/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1/storagecluster_types.go @@ -683,7 +683,8 @@ func (r *StorageCluster) NewToolsDeployment(tolerations []corev1.Toleration) *ap }, }, Spec: corev1.PodSpec{ - DNSPolicy: corev1.DNSClusterFirstWithHostNet, + DNSPolicy: corev1.DNSClusterFirstWithHostNet, + ServiceAccountName: "rook-ceph-default", Containers: []corev1.Container{ { Name: name,