diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index f802527..7e0fabc 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -27,6 +27,7 @@ rules: - list - update - watch + - patch - apiGroups: - "" resources: diff --git a/controllers/registries/instance_controller.go b/controllers/registries/instance_controller.go index 5e1a620..c036e7f 100644 --- a/controllers/registries/instance_controller.go +++ b/controllers/registries/instance_controller.go @@ -55,7 +55,7 @@ func (r *InstanceReconciler) SetupWithManager(mgr ctrl.Manager) error { // +kubebuilder:rbac:groups=registries.mittwald.de,resources=instances,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=registries.mittwald.de,resources=instances/status,verbs=get;update;patch -// +kubebuilder:rbac:groups="",resources=persistentvolumeclaims,verbs=get;list;watch;create;update +// +kubebuilder:rbac:groups="",resources=persistentvolumeclaims,verbs=get;list;watch;create;update;patch // +kubebuilder:rbac:groups="",resources=services,verbs=get;list;watch;create;update;delete // +kubebuilder:rbac:groups="apps",resources=deployments;statefulsets;replicasets,verbs=get;list;watch;create;update;delete;patch // +kubebuilder:rbac:groups="networking.k8s.io",resources=ingresses,verbs=get;list;watch;create;update;delete;patch diff --git a/deploy/chart/templates/role.yaml b/deploy/chart/templates/role.yaml index 9180563..052a3ee 100644 --- a/deploy/chart/templates/role.yaml +++ b/deploy/chart/templates/role.yaml @@ -28,6 +28,7 @@ rules: - list - update - watch + - patch - apiGroups: - "" resources: