From 16595fea26e2553d89a55eb07a23891221dcc5bb Mon Sep 17 00:00:00 2001 From: Louis Murray Date: Mon, 4 Jun 2018 07:52:46 -0400 Subject: [PATCH] move the crd definition into it's own tpl file --- charts/argo/templates/_workflow-crd.tpl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 charts/argo/templates/_workflow-crd.tpl diff --git a/charts/argo/templates/_workflow-crd.tpl b/charts/argo/templates/_workflow-crd.tpl new file mode 100644 index 00000000..29bc2b27 --- /dev/null +++ b/charts/argo/templates/_workflow-crd.tpl @@ -0,0 +1,19 @@ +{{- 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}}