Skip to content

Commit 1c951ea

Browse files
Add controller to add ownerReference to PVC (#179)
1 parent f26a3bf commit 1c951ea

File tree

6 files changed

+172
-35
lines changed

6 files changed

+172
-35
lines changed

operator/charts/kit-operator/templates/controller/rbac.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ rules:
3636
resources: [leases]
3737
verbs: [create, get, patch, update, watch]
3838
- apiGroups: [""]
39-
resources: [configmaps, nodes, secrets, services, statefulsets]
39+
resources: [configmaps, nodes, secrets, services, statefulsets, persistentvolumeclaims]
4040
verbs: [create, get, list, patch, update, watch]
4141
- apiGroups: [apps]
4242
resources: [statefulsets, deployments, daemonsets]
@@ -58,4 +58,4 @@ rules:
5858
verbs: [create, get, list, patch, update, watch, delete]
5959
- apiGroups: [""]
6060
resources: [configmaps/status]
61-
verbs: [get, patch, update]
61+
verbs: [get, patch, update]

operator/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require (
88
github.com/onsi/ginkgo v1.16.5
99
github.com/onsi/gomega v1.17.0
1010
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.55.0
11+
go.uber.org/multierr v1.6.0
1112
go.uber.org/zap v1.19.1
1213
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac
1314
k8s.io/api v0.23.4
@@ -60,7 +61,6 @@ require (
6061
go.opencensus.io v0.23.0 // indirect
6162
go.uber.org/atomic v1.9.0 // indirect
6263
go.uber.org/automaxprocs v1.4.0 // indirect
63-
go.uber.org/multierr v1.6.0 // indirect
6464
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
6565
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
6666
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect

0 commit comments

Comments
 (0)