33{ {- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix " -" -} }
44{ {- end -} }
55
6- # Image pull secret used to access private docker.stackstorm.com Docker registry with Enterprise images
7- { {- define " imagePullSecret" } }
8- { {- if required " Missing context '.Values.enterprise.enabled'!" .Values.enterprise.enabled -} }
9- { {- printf " {\" auths\" : {\" %s\" : {\" auth\" : \" %s\" }}}" " docker.stackstorm.com" (printf " %s:%s" .Values.enterprise.license .Values.enterprise.license | b64enc) | b64enc } }
10- { {- end -} }
11- { {- end } }
12-
136# Generate support method used in labels. This is based on community/enterprise
147{ {- define " supportMethod" -} }
15- { {- if required " Missing context '.Values.enterprise.enabled'!" .Values.enterprise.enabled -} }
16- enterprise
17- { {- else -} }
188community
19- { {- end -} }
209{ {- end } }
2110
2211# Generate Docker image repository: Private 'docker.stackstorm.com' for Enterprise vs Public Docker Hub 'stackstorm' for FOSS version
2312{ {- define " imageRepository" -} }
24- { {- if required " Missing context '.Values.enterprise.enabled'!" .Values.enterprise.enabled -} }
25- docker.stackstorm.com
26- { {- else if .Values.image.repository -} }
13+ { {- if .Values.image.repository -} }
2714{ { .Values.image.repository } }
2815{ {- else -} }
2916stackstorm
3017{ {- end -} }
31- { {- end -} }
3218
3319{ {/*
3420Create the name of the stackstorm-ha service account to use
@@ -37,11 +23,6 @@ Create the name of the stackstorm-ha service account to use
3723{ {- default .Chart.Name .Values.serviceAccount.serviceAccountName -} }
3824{ {- end -} }
3925
40- # Generate '-enterprise' suffix only when it's needed for resource names, docker images, etc
41- { {- define " enterpriseSuffix" -} }
42- { { if required " Missing context '.Values.enterprise.enabled'!" .Values.enterprise.enabled } }-enterprise{ { end } }
43- { {- end -} }
44-
4526# Generate '-' prefix only when the variable is defined
4627{ {- define " hyphenPrefix" -} }
4728{ { if . } }-{ { . } }{ {end} }
0 commit comments