Skip to content

Commit

Permalink
Merge pull request #3 from kehralexander/patch-1
Browse files Browse the repository at this point in the history
Bugfix: Delete permissions for roles and rolebindings
  • Loading branch information
azlyth authored Jun 3, 2024
2 parents 50b18e6 + 1bb5502 commit b00cdfd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/snorlax/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.4.0
version: 0.4.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.4.0"
appVersion: "0.4.1"
2 changes: 2 additions & 0 deletions charts/snorlax/templates/manager-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ rules:
- rolebindings
verbs:
- create
- delete
- get
- list
- watch
Expand All @@ -73,6 +74,7 @@ rules:
- roles
verbs:
- create
- delete
- get
- list
- watch
Expand Down
2 changes: 1 addition & 1 deletion charts/snorlax/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ controllerManager:
- ALL
image:
repository: ghcr.io/moonbeam-nyc/snorlax-operator
tag: 0.4.0
tag: 0.4.1
resources:
limits:
cpu: 500m
Expand Down
2 changes: 1 addition & 1 deletion operator/config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: ghcr.io/moonbeam-nyc/snorlax-operator
newTag: 0.4.0
newTag: 0.4.1
2 changes: 2 additions & 0 deletions operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ rules:
- rolebindings
verbs:
- create
- delete
- get
- list
- watch
Expand All @@ -72,6 +73,7 @@ rules:
- roles
verbs:
- create
- delete
- get
- list
- watch
Expand Down
4 changes: 2 additions & 2 deletions operator/internal/controller/sleepschedule_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const finalizer = "finalizer.snorlax.moonbeam.nyc"
//+kubebuilder:rbac:groups=networking.k8s.io,resources=ingresses,verbs=get;watch;list;update;patch
//+kubebuilder:rbac:groups=core,resources=services,verbs=get;watch;list;create;delete
//+kubebuilder:rbac:groups=core,resources=serviceaccounts,verbs=get;watch;list;create
//+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles,verbs=get;watch;list;create
//+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;watch;list;create
//+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles,verbs=get;watch;list;create;delete
//+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;watch;list;create;delete

func (r *SleepScheduleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
log := log.FromContext(ctx)
Expand Down

0 comments on commit b00cdfd

Please sign in to comment.