From 7d8c88f9d64f2f199783db5ef5224000b4488414 Mon Sep 17 00:00:00 2001 From: parth-gr Date: Fri, 15 Mar 2024 20:31:53 +0530 Subject: [PATCH] toolbox: add default service account to toolbox currently scc are updated to remove the k8s default service account, so toolbox should start with rook-ceph-default service account Signed-off-by: parth-gr --- 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,