fix controller cluster role configuration when instanceID is enabled
This commit is contained in:
parent
ca0a53d6eb
commit
bb11922d0f
1 changed files with 8 additions and 0 deletions
|
@ -121,7 +121,15 @@ rules:
|
|||
resources:
|
||||
- leases
|
||||
resourceNames:
|
||||
{{- if .Values.controller.instanceID.enabled }}
|
||||
{{- if .Values.controller.instanceID.useReleaseName }}
|
||||
- workflow-controller-{{ .Release.Name }}
|
||||
{{- else }}
|
||||
- workflow-controller-{{ .Values.controller.instanceID.explicitID }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
- workflow-controller
|
||||
{{- end }}
|
||||
- workflow-controller-lease
|
||||
verbs:
|
||||
- get
|
||||
|
|
Loading…
Reference in a new issue