Skip to content

Commit 14c1774

Browse files
committed
Allow secret creation
1 parent 780a55b commit 14c1774

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ One `ClusterRoleBinding` per name in the `owners` field. Bindings are added and
132132
|Verbs|API Groups|Resources|
133133
|---|---|---|
134134
|*|core|pods, pods/log, pods/portforward, services, services/finalizers, endpoints, persistentvolumeclaims, events, configmaps, replicationcontrollers|
135+
|create|core|secrets|
135136
|*|apps, extensions|deployments, daemonsets, replicasets, statefulsets|
136137
|*|autoscaling|horizontalpodautoscalers|
137138
|*|batch|jobs, cronjobs|

controller/sandbox.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,13 @@ func getRole(sandbox operatorsv1alpha1.Sandbox) rbacv1.Role {
252252
"rolebindings",
253253
},
254254
},
255+
rbacv1.PolicyRule{
256+
Verbs: []string{"create"},
257+
APIGroups: []string{""},
258+
Resources: []string{
259+
"secrets",
260+
},
261+
},
255262
},
256263
}
257264

0 commit comments

Comments
 (0)