fix(argo-events): add namespace field for namespace scoped resources (#1959)
* fix(argo-events): add namespace field for namespace scoped resources Signed-off-by: yu-croco <yu.croco@gmail.com> * Apply suggestion from code review Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> --------- Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
406e07b46b
commit
076cf82ddd
13 changed files with 18 additions and 8 deletions
|
|
@ -3,6 +3,9 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||
kind: {{ .Values.controller.rbac.namespaced | ternary "Role" "ClusterRole" }}
|
||||
metadata:
|
||||
name: {{ include "argo-events.controller.fullname" . }}
|
||||
{{- if .Values.controller.rbac.namespaced }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "argo-events.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
||||
rules:
|
||||
|
|
@ -119,5 +122,5 @@ roleRef:
|
|||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ include "argo-events.controller.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue