Revert "fix(resources): do not set namespace in maester rolebinding"
This reverts commit 1fccf5f8dc
.
This commit is contained in:
parent
1fccf5f8dc
commit
83b81b1056
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
# Source: hydra/charts/hydra-maester/templates/rbac.yaml
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
|
@ -10,10 +11,10 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||
metadata:
|
||||
name: hydra-maester-role
|
||||
rules:
|
||||
- apiGroups: ["hydra.ory.sh"]
|
||||
- apiGroups: ["hydra.ory.sh"]
|
||||
resources: ["oauth2clients", "oauth2clients/status"]
|
||||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||
- apiGroups: [""]
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["list", "watch", "create"]
|
||||
---
|
||||
|
@ -23,8 +24,9 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||
metadata:
|
||||
name: hydra-maester-role-binding
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
- kind: ServiceAccount
|
||||
name: hydra-maester-account # Service account assigned to the controller pod.
|
||||
namespace: default
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
|
@ -36,10 +38,10 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||
metadata:
|
||||
name: hydra-maester-role
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get", "list", "watch", "create"]
|
||||
- apiGroups: ["hydra.ory.sh"]
|
||||
- apiGroups: ["hydra.ory.sh"]
|
||||
resources: ["oauth2clients", "oauth2clients/status"]
|
||||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||
---
|
||||
|
@ -49,8 +51,9 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||
metadata:
|
||||
name: hydra-maester-role-binding
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
- kind: ServiceAccount
|
||||
name: hydra-maester-account # Service account assigned to the controller pod.
|
||||
namespace: default
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
|
|
Loading…
Reference in New Issue