diff --git a/charts/snorlax/Chart.yaml b/charts/snorlax/Chart.yaml index cbbdf32..43190b1 100644 --- a/charts/snorlax/Chart.yaml +++ b/charts/snorlax/Chart.yaml @@ -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" diff --git a/charts/snorlax/templates/manager-rbac.yaml b/charts/snorlax/templates/manager-rbac.yaml index 205784d..ac7b3d0 100644 --- a/charts/snorlax/templates/manager-rbac.yaml +++ b/charts/snorlax/templates/manager-rbac.yaml @@ -64,6 +64,7 @@ rules: - rolebindings verbs: - create + - delete - get - list - watch @@ -73,6 +74,7 @@ rules: - roles verbs: - create + - delete - get - list - watch diff --git a/charts/snorlax/values.yaml b/charts/snorlax/values.yaml index 4941510..8fc3121 100644 --- a/charts/snorlax/values.yaml +++ b/charts/snorlax/values.yaml @@ -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 diff --git a/operator/config/manager/kustomization.yaml b/operator/config/manager/kustomization.yaml index bcc0792..9573789 100644 --- a/operator/config/manager/kustomization.yaml +++ b/operator/config/manager/kustomization.yaml @@ -5,4 +5,4 @@ kind: Kustomization images: - name: controller newName: ghcr.io/moonbeam-nyc/snorlax-operator - newTag: 0.4.0 + newTag: 0.4.1 diff --git a/operator/config/rbac/role.yaml b/operator/config/rbac/role.yaml index 63ad6d0..8c93c93 100644 --- a/operator/config/rbac/role.yaml +++ b/operator/config/rbac/role.yaml @@ -63,6 +63,7 @@ rules: - rolebindings verbs: - create + - delete - get - list - watch @@ -72,6 +73,7 @@ rules: - roles verbs: - create + - delete - get - list - watch diff --git a/operator/internal/controller/sleepschedule_controller.go b/operator/internal/controller/sleepschedule_controller.go index ab182ee..6d34ea9 100644 --- a/operator/internal/controller/sleepschedule_controller.go +++ b/operator/internal/controller/sleepschedule_controller.go @@ -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)