File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
controllers/backupcronjob Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ func (r *BackupCronJobReconciler) ensureImagePushRoleBinding(ctx context.Context
9999 },
100100 RoleRef : rbacv1.RoleRef {
101101 Kind : constants .RbacClusterRoleKind ,
102- Name : common .RegistryImagePullerRoleName (),
102+ Name : common .RegistryImageBuilderRoleName (),
103103 APIGroup : "rbac.authorization.k8s.io" ,
104104 },
105105 }
Original file line number Diff line number Diff line change @@ -160,7 +160,11 @@ func WorkspaceSCCRolebindingName(sccName string) string {
160160}
161161
162162func RegistryImagePullerRoleName () string {
163- return fmt .Sprintf ("system:image-puller" )
163+ return "system:image-puller"
164+ }
165+
166+ func RegistryImageBuilderRoleName () string {
167+ return "system:image-builder"
164168}
165169
166170func RegistryImagePullerRolebindingName (namespace string ) string {
You can’t perform that action at this time.
0 commit comments