Skip to content

Commit

Permalink
fix rbac to work with multiple namespaces and installs
Browse files Browse the repository at this point in the history
  • Loading branch information
voron committed Jul 18, 2018
1 parent d7b1a56 commit dcc3972
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hetzner-failover-ip/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kube-keepalived-vip
name: kube-keepalived-vip-{{ .Values.floatingip1 }}
rules:
- apiGroups: [""]
resources:
Expand All @@ -22,13 +22,13 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kube-keepalived-vip
name: kube-keepalived-vip-{{ .Values.floatingip1 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kube-keepalived-vip
name: kube-keepalived-vip-{{ .Values.floatingip1 }}
subjects:
- kind: ServiceAccount
name: kube-keepalived-vip
namespace: default
namespace: {{ default "default" .Release.Namespace }}
{{- end -}}

0 comments on commit dcc3972

Please sign in to comment.