Skip to content

Commit e627f11

Browse files
authored
fix: adapt rolebinding to modified manager role (#647)
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
1 parent 45651ae commit e627f11

5 files changed

+20
-1
lines changed

chart/open-feature-operator/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ templates/crds/*.yaml
55
!templates/namespace.yaml
66
!templates/admissionregistration.k8s.io_v1_validatingwebhookconfiguration_open-feature-operator-validating-webhook-configuration.yaml
77
!templates/rbac.authorization.k8s.io_v1_clusterrole_open-feature-operator-manager-role.yaml
8+
!templates/rbac.authorization.k8s.io_v1_clusterrolebinding_open-feature-operator-manager-rolebinding.yaml

chart/open-feature-operator/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ The command removes all the Kubernetes components associated with the chart and
166166
| `controllerManager.kubeRbacProxy.resources.requests.cpu` | Sets cpu resource requests for kube-rbac-proxy. | `5m` |
167167
| `controllerManager.kubeRbacProxy.resources.requests.memory` | Sets memory resource requests for kube-rbac-proxy. | `64Mi` |
168168
| `controllerManager.manager.image.repository` | Sets the image for the operator. | `ghcr.io/open-feature/open-feature-operator` |
169-
| `controllerManager.manager.image.tag` | Sets the version tag for the operator. | `v0.5.5` |
169+
| `controllerManager.manager.image.tag` | Sets the version tag for the operator. | `v0.5.6` |
170170
| `controllerManager.manager.resources.limits.cpu` | Sets cpu resource limits for operator. | `500m` |
171171
| `controllerManager.manager.resources.limits.memory` | Sets memory resource limits for operator. | `128Mi` |
172172
| `controllerManager.manager.resources.requests.cpu` | Sets cpu resource requests for operator. | `10m` |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
name: open-feature-operator-manager-rolebinding
5+
roleRef:
6+
apiGroup: rbac.authorization.k8s.io
7+
kind: ClusterRole
8+
name: open-feature-operator-manager-role
9+
subjects:
10+
- kind: ServiceAccount
11+
name: open-feature-operator-controller-manager
12+
namespace: '{{ include "chart.namespace" . }}'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$patch: delete
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRoleBinding
4+
metadata:
5+
name: manager-rolebinding

config/overlays/helm/kustomization.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ patchesStrategicMerge:
1616
- manager.yaml
1717
- exclude-validatingwebhook.yaml
1818
- exclude-role.yaml
19+
- exclude-rolebinding.yaml
1920

2021
configMapGenerator:
2122
- name: manager-config

0 commit comments

Comments
 (0)