Update to rbac.yaml
@@ -3,7 +3,7 @@ kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: pgo-role
- namespace: $TARGET_NAMESPACE
+ namespace: '$TARGET_NAMESPACE'
rules:
- apiGroups:
- ""
@@ -37,11 +37,11 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: pgo-role-binding
- namespace: $TARGET_NAMESPACE
+ namespace: '$TARGET_NAMESPACE'
subjects:
- kind: ServiceAccount
name: postgres-operator
- namespace: $PGO_OPERATOR_NAMESPACE
+ namespace: '$PGO_OPERATOR_NAMESPACE'
roleRef:
kind: Role
name: pgo-role
@@ -52,7 +52,7 @@ kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: pgo-backrest-role
- namespace: $TARGET_NAMESPACE
+ namespace: '$TARGET_NAMESPACE'
rules:
- apiGroups: [""]
resources: ["pods"]
@@ -66,7 +66,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: pgo-backrest
- namespace: $TARGET_NAMESPACE
+ namespace: '$TARGET_NAMESPACE'
---
@@ -74,11 +74,11 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: pgo-backrest-role-binding
- namespace: $TARGET_NAMESPACE
+ namespace: '$TARGET_NAMESPACE'
subjects:
- kind: ServiceAccount
name: pgo-backrest
- namespace: $TARGET_NAMESPACE
+ namespace: '$TARGET_NAMESPACE'
roleRef:
kind: Role
name: pgo-backrest-role
