* 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>
15 lines
480 B
YAML
15 lines
480 B
YAML
{{- if and .Values.webhook.enabled (not .Values.controller.rbac.namespaced) }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: events-webhook
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels:
|
|
{{- include "argo-events.labels" (dict "context" . "name" .Values.webhook.name) | nindent 4 }}
|
|
spec:
|
|
ports:
|
|
- port: 443
|
|
targetPort: webhook
|
|
selector:
|
|
{{- include "argo-events.selectorLabels" (dict "context" $ "name" $.Values.webhook.name) | nindent 4 }}
|
|
{{- end }}
|