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:
|
resources:
|
||||||
- leases
|
- leases
|
||||||
resourceNames:
|
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
|
- workflow-controller
|
||||||
|
{{- end }}
|
||||||
- workflow-controller-lease
|
- workflow-controller-lease
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
|
|
Loading…
Reference in a new issue