argocd-helm/charts/argo/templates/_helpers.tpl
louis-murray 1fed7f37cf Updating helm chart and improving style (#7)
* moved workflow CRD into helpers.tpl

* added new values to values.yaml

* added UI cluster role and binding

* add workflow controller cluster role and binding

* added ui service account creator

* added workflow controller service account yaml

* reformatted values.yaml to group similar items

* tweaked files to reflect values.yaml changes

* setup minio stuff to match subchart model

* changes to reflect minio rework

* added README to explain chart a bit

* changes made to reflect minio values changes

* changes to reflect minio values changes (again)

* updating minio to latest version

* move the crd definition into it's own tpl file
2018-06-04 07:39:53 -07:00

36 lines
909 B
Smarty

{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- $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}}