Skip to content

Commit fa35a3e

Browse files
author
hanancha
committed
Updating helpers.tpl to remove enterprise flags
1 parent 31242c5 commit fa35a3e

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

templates/_helpers.tpl

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,18 @@
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 -}}
188
community
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 -}}
2916
stackstorm
3017
{{- end -}}
31-
{{- end -}}
3218

3319
{{/*
3420
Create 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

Comments
 (0)