Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #67 from flanksource/moshloop
Browse files Browse the repository at this point in the history
fix: add namespace delete rbac
  • Loading branch information
moshloop committed May 2, 2021
2 parents c819ab5 + 5d9d747 commit 5f6e35a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/deploy/base.yml
Expand Up @@ -106,6 +106,7 @@ rules:
resources:
- namespaces
verbs:
- delete
- get
- list
- watch
Expand Down
1 change: 1 addition & 0 deletions config/deploy/manifests.yaml
Expand Up @@ -395,6 +395,7 @@ rules:
resources:
- namespaces
verbs:
- delete
- get
- list
- watch
Expand Down
1 change: 1 addition & 0 deletions config/operator/rbac/role.yaml
Expand Up @@ -11,6 +11,7 @@ rules:
resources:
- namespaces
verbs:
- delete
- get
- list
- watch
Expand Down
1 change: 1 addition & 0 deletions pkg/controllers/cleanup/cleanup_controller.go
Expand Up @@ -95,6 +95,7 @@ func parseDuration(expiry string) (*time.Duration, error) {
}

// +kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list;watch;delete

func (r *ReconcileCleanup) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error) {
namespace := corev1.Namespace{}
if err := r.Get(ctx, request.NamespacedName, &namespace); err != nil {
Expand Down

0 comments on commit 5f6e35a

Please sign in to comment.