Skip to content

Commit

Permalink
fix: add redis cluster role patch to be compatible with openshift
Browse files Browse the repository at this point in the history
Signed-off-by: chlins <chenyuzh@vmware.com>
  • Loading branch information
chlins authored and bitsf committed Nov 2, 2021
1 parent 32b3914 commit f19ac81
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ rules:
- endpoints
- events
- configmaps
- persistentvolumeclaims
- persistentvolumeclaims/finalizers
verbs:
- "*"
- apiGroups:
Expand Down
1 change: 1 addition & 0 deletions manifests/cluster/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ patchesStrategicMerge:
- patch/delete-minio-console.yaml
- patch/delete-duplicated-ns.yaml
- patch/pg-configmap.yaml
- patch/redis-rbac.yaml

patchesJson6902:
- target:
Expand Down
53 changes: 53 additions & 0 deletions manifests/cluster/patch/redis-rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
goharbor.io/deploy-engine: Kustomization
goharbor.io/deploy-mode: cluster
goharbor.io/operator-version: v1.1.0
name: redisoperator
rules:
- apiGroups:
- databases.spotahome.com
resources:
- redisfailovers
- redisfailovers/finalizers
verbs:
- '*'
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- '*'
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- events
- configmaps
- persistentvolumeclaims
- persistentvolumeclaims/finalizers
verbs:
- '*'
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- apiGroups:
- apps
resources:
- deployments
- statefulsets
verbs:
- '*'
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- '*'

0 comments on commit f19ac81

Please sign in to comment.