Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
fix: Fix uses of serviceAccountNameController vs serviceAccountName
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Sep 28, 2022
1 parent 21b1160 commit 6147a12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ roleRef:
name: {{ include "flux-kluctl-controller.fullname" . }}-manager-role
subjects:
- kind: ServiceAccount
name: {{ include "flux-kluctl-controller.serviceAccountNameController" . }}
name: {{ include "flux-kluctl-controller.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -21,7 +21,7 @@ roleRef:
name: {{ include "flux-kluctl-controller.fullname" . }}-kluctldeployment-editor-role
subjects:
- kind: ServiceAccount
name: {{ include "flux-kluctl-controller.serviceAccountNameController" . }}
name: {{ include "flux-kluctl-controller.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -34,7 +34,7 @@ roleRef:
name: {{ include "flux-kluctl-controller.fullname" . }}-kluctldeployment-viewer-role
subjects:
- kind: ServiceAccount
name: {{ include "flux-kluctl-controller.serviceAccountNameController" . }}
name: {{ include "flux-kluctl-controller.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -47,5 +47,5 @@ roleRef:
name: cluster-admin
subjects:
- kind: ServiceAccount
name: {{ include "flux-kluctl-controller.serviceAccountNameReconciler" . }}
name: {{ include "flux-kluctl-controller.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
2 changes: 1 addition & 1 deletion charts/flux-kluctl-controller/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ roleRef:
name: {{ include "flux-kluctl-controller.fullname" . }}-leader-election-role
subjects:
- kind: ServiceAccount
name: {{ include "flux-kluctl-controller.serviceAccountNameController" . }}
name: {{ include "flux-kluctl-controller.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.serviceAccount.controller.create -}}
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down

0 comments on commit 6147a12

Please sign in to comment.