|
|
@ -9,7 +9,7 @@ apiVersion: v1 |
|
|
|
kind: ServiceAccount |
|
|
|
metadata: |
|
|
|
name: snapshot-controller |
|
|
|
namespace: kube-system |
|
|
|
namespace: {{ snapshot_controller_namespace }} |
|
|
|
|
|
|
|
--- |
|
|
|
kind: ClusterRole |
|
|
@ -51,7 +51,7 @@ metadata: |
|
|
|
subjects: |
|
|
|
- kind: ServiceAccount |
|
|
|
name: snapshot-controller |
|
|
|
namespace: kube-system |
|
|
|
namespace: {{ snapshot_controller_namespace }} |
|
|
|
roleRef: |
|
|
|
kind: ClusterRole |
|
|
|
# change the name also here if the ClusterRole gets renamed |
|
|
@ -62,7 +62,7 @@ roleRef: |
|
|
|
kind: Role |
|
|
|
apiVersion: rbac.authorization.k8s.io/v1 |
|
|
|
metadata: |
|
|
|
namespace: kube-system |
|
|
|
namespace: {{ snapshot_controller_namespace }} |
|
|
|
name: snapshot-controller-leaderelection |
|
|
|
rules: |
|
|
|
- apiGroups: ["coordination.k8s.io"] |
|
|
@ -74,11 +74,11 @@ kind: RoleBinding |
|
|
|
apiVersion: rbac.authorization.k8s.io/v1 |
|
|
|
metadata: |
|
|
|
name: snapshot-controller-leaderelection |
|
|
|
namespace: kube-system |
|
|
|
namespace: {{ snapshot_controller_namespace }} |
|
|
|
subjects: |
|
|
|
- kind: ServiceAccount |
|
|
|
name: snapshot-controller |
|
|
|
namespace: kube-system |
|
|
|
namespace: {{ snapshot_controller_namespace }} |
|
|
|
roleRef: |
|
|
|
kind: Role |
|
|
|
name: snapshot-controller-leaderelection |
|
|
|