Skip to content

Commit 9febc5d

Browse files
authored
Merge pull request #13 from IBM/add-roles
add required roles
2 parents 02534c3 + 1485b04 commit 9febc5d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ kind: Kustomization
55
images:
66
- name: controller
77
newName: ashimagarg/csi
8-
newTag: "44"
8+
newTag: "48"

controllers/internal/crutils/static_resource_generator.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ func (c *IBMObjectCSI) GenerateSCCForNodeClusterRole() *rbacv1.ClusterRole {
162162
Resources: []string{config.NodesResource},
163163
Verbs: []string{config.VerbGet},
164164
},
165+
{
166+
APIGroups: []string{""},
167+
Resources: []string{
168+
config.PersistentVolumesResource,
169+
config.SecretsResource},
170+
Verbs: []string{config.VerbGet},
171+
},
165172
},
166173
}
167174
}

0 commit comments

Comments
 (0)