From e24c531584dd7f7f52a2cabf044f3a5dbd3ec758 Mon Sep 17 00:00:00 2001 From: Louis Murray Date: Thu, 31 May 2018 17:46:09 -0400 Subject: [PATCH] moved workflow CRD into helpers.tpl --- charts/argo/templates/_helpers.tpl | 20 ++++++++++++++++++++ charts/argo/templates/_workflow-crd.json | 19 ------------------- 2 files changed, 20 insertions(+), 19 deletions(-) delete mode 100644 charts/argo/templates/_workflow-crd.json 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