diff --git a/charts/argo/templates/_helpers.tpl b/charts/argo/templates/_helpers.tpl index f0d83d2e..2e375b59 100644 --- a/charts/argo/templates/_helpers.tpl +++ b/charts/argo/templates/_helpers.tpl @@ -14,3 +14,23 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{- define "workflow-crd-json" }} +{ + "apiVersion": "apiextensions.k8s.io/v1beta1", + "kind": "CustomResourceDefinition", + "metadata": { + "name": "workflows.argoproj.io" + }, + "spec": { + "group": "argoproj.io", + "names": { + "kind": "Workflow", + "plural": "workflows", + "shortNames": ["wf"] + }, + "scope": "Namespaced", + "version": "v1alpha1" + } +} +{{- end}} diff --git a/charts/argo/templates/_workflow-crd.json b/charts/argo/templates/_workflow-crd.json deleted file mode 100644 index ef26b415..00000000 --- a/charts/argo/templates/_workflow-crd.json +++ /dev/null @@ -1,19 +0,0 @@ -{{- define "workflow-crd-json" }} -{ - "apiVersion": "apiextensions.k8s.io/v1beta1", - "kind": "CustomResourceDefinition", - "metadata": { - "name": "workflows.argoproj.io" - }, - "spec": { - "group": "argoproj.io", - "names": { - "kind": "Workflow", - "plural": "workflows", - "shortNames": ["wf"] - }, - "scope": "Namespaced", - "version": "v1alpha1" - } -} -{{- end}} \ No newline at end of file