Update _schedule.tpl

This commit is contained in:
Kjeld Schouten
2024-02-07 11:37:32 +01:00
committed by GitHub
parent 35f48ba6a0
commit 8ef5c309da

View File

@@ -45,11 +45,22 @@ spec:
{{- end }}
template:
{{- if not $objectData.template }}
includeClusterResources: true
includedNamespaces:
- {{ include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "Schedule") }}
labelSelector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
release: {{ .Release.Name }}
{{- end -}}
{{- with $objectData.template }}
{{- toYaml . | nindent 4 }}
{{- if not .labelSelector }}
labelSelector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
release: {{ .Release.Name }}
{{- end -}}
{{- if not .includedNamespaces }}
includedNamespaces:
- {{ include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "Schedule") }}