Skip to content

Commit

Permalink
fix(Deployment): Update RBACs
Browse files Browse the repository at this point in the history
Signed-off-by: Anurag Rajawat <[email protected]>
  • Loading branch information
anurag-rajawat committed Feb 13, 2024
1 parent b3192c3 commit ed5bb39
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
8 changes: 8 additions & 0 deletions deployments/nimbus-kubearmor/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ rules:
- get
- list
- watch
- apiGroups:
- intent.security.nimbus.com
resources:
- nimbuspolicies/status
- clusternimbuspolicies/status
verbs:
- get
- update
- apiGroups:
- security.kubearmor.com
resources:
Expand Down
8 changes: 8 additions & 0 deletions deployments/nimbus-netpol/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ rules:
- get
- list
- watch
- apiGroups:
- intent.security.nimbus.com
resources:
- nimbuspolicies/status
- clusternimbuspolicies/status
verbs:
- get
- update
- apiGroups:
- networking.k8s.io
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ type ClusterSecurityIntentBindingReconciler struct {
Scheme *runtime.Scheme
}

// TODO: Update RBAC

//+kubebuilder:rbac:groups=intent.security.nimbus.com,resources=clustersecurityintentbindings,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=intent.security.nimbus.com,resources=clustersecurityintentbindings/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=intent.security.nimbus.com,resources=clusternimbuspolicies,verbs=get;list;watch;create;update;patch;delete
Expand Down
2 changes: 0 additions & 2 deletions internal/controller/securityintent_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ type SecurityIntentReconciler struct {
Scheme *runtime.Scheme
}

// TODO: Update RBAC

//+kubebuilder:rbac:groups=intent.security.nimbus.com,resources=securityintents,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=intent.security.nimbus.com,resources=securityintents/status,verbs=get;update;patch

Expand Down
2 changes: 0 additions & 2 deletions internal/controller/securityintentbinding_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ type SecurityIntentBindingReconciler struct {
Scheme *runtime.Scheme
}

// TODO: Update RBAC

//+kubebuilder:rbac:groups=intent.security.nimbus.com,resources=securityintentbindings,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=intent.security.nimbus.com,resources=securityintentbindings/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=intent.security.nimbus.com,resources=nimbuspolicies,verbs=get;list;watch;create;update;patch;delete
Expand Down

0 comments on commit ed5bb39

Please sign in to comment.