Skip to content

Commit

Permalink
fix: add deployment rbac (#71)
Browse files Browse the repository at this point in the history
* add deployment role

* release 1.4.5
waveywaves authored Nov 2, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7cc664b commit 28323a6
Showing 6 changed files with 31 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include tests/e2e/Makefile

VERSION ?= 1.4.4
VERSION ?= 1.4.5

# check if we are using MacOS or LINUX and use that to determine the sed command
UNAME_S := $(shell uname -s)
4 changes: 2 additions & 2 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -5,12 +5,12 @@ 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: 1.4.4
version: 1.4.5
# 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: "v1.4.4"
appVersion: "v1.4.5"
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
12 changes: 12 additions & 0 deletions chart/templates/manager-role_clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -43,6 +43,18 @@ rules:
- patch
- update
- watch
- apiGroups:
- apps
resources:
- deployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

image:
repository: docker.io/uffizzi/uffizzi-cluster-operator
tag: v1.4.4
tag: v1.4.5
# `flux` dependency values
flux:
helmController:
12 changes: 12 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -41,6 +41,18 @@ rules:
- patch
- update
- watch
- apiGroups:
- apps
resources:
- deployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
3 changes: 3 additions & 0 deletions controllers/uffizzicluster/uffizzicluster_controller.go
Original file line number Diff line number Diff line change
@@ -70,6 +70,9 @@ var (
// add statefulset rbac
//+kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;create;update;patch;delete

// add deployments rbac
//+kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete

// add the ingress rbac
//+kubebuilder:rbac:groups=networking.k8s.io,resources=ingresses,verbs=get;list;watch;create;update;patch;delete

0 comments on commit 28323a6

Please sign in to comment.