diff --git a/charts/argo-events/templates/gateway-controller-configmap.yaml b/charts/argo-events/templates/gateway-controller-configmap.yaml index 21ff76e3..d59bbb93 100644 --- a/charts/argo-events/templates/gateway-controller-configmap.yaml +++ b/charts/argo-events/templates/gateway-controller-configmap.yaml @@ -9,11 +9,11 @@ metadata: data: config: | {{- if .Values.instanceID.enabled }} - {{- if .Values.instanceID.useReleaseName }} +{{- if .Values.instanceID.useReleaseName }} instanceID: {{ .Release.Name }} - {{- else }} +{{- else }} instanceID: {{ .Values.instanceID.explicitID }} - {{- end }} +{{- end }} {{- end }} {{- if .Values.singleNamespace }} namespace: {{ .Values.namespace }} diff --git a/charts/argo-events/templates/sensor-controller-configmap.yaml b/charts/argo-events/templates/sensor-controller-configmap.yaml index a617e1f2..61252531 100644 --- a/charts/argo-events/templates/sensor-controller-configmap.yaml +++ b/charts/argo-events/templates/sensor-controller-configmap.yaml @@ -9,11 +9,11 @@ metadata: data: config: | {{- if .Values.instanceID.enabled }} - {{- if .Values.instanceID.useReleaseName }} +{{- if .Values.instanceID.useReleaseName }} instanceID: {{ .Release.Name }} - {{- else }} +{{- else }} instanceID: {{ .Values.instanceID.explicitID }} - {{- end }} +{{- end }} {{- end }} {{- if .Values.singleNamespace }} namespace: {{ .Values.namespace }} diff --git a/charts/argo-events/values.yaml b/charts/argo-events/values.yaml index 147cb365..a7dc512f 100644 --- a/charts/argo-events/values.yaml +++ b/charts/argo-events/values.yaml @@ -30,13 +30,13 @@ additionalServiceAccountRules: resources: - customresourcedefinitions -# `instanceID.enabled` configures the controllers to filter the requests -# to only those which have a matching instanceID attribute. -# NOTE: If `instanceID.enabled` is set to `true` then either `instanceID.userReleaseName` -# or `instanceID.explicitID` must be defined. instanceID: + # `instanceID.enabled` configures the controllers to filter the requests + # to only those which have a matching instanceID attribute. enabled: false - # useReleaseName: false + # NOTE: If `instanceID.enabled` is set to `true` then either `instanceID.userReleaseName` + # or `instanceID.explicitID` must be defined. + # useReleaseName: true # explicitID: unique-argo-events-controller-identifier # set `singleNamespace` to false to have the controllers