File tree Expand file tree Collapse file tree 5 files changed +23
-9
lines changed
stash-enterprise/templates Expand file tree Collapse file tree 5 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,11 @@ Returns the appscode license
73
73
Returns the appscode license secret name
74
74
*/} }
75
75
{ {- define " appscode.licenseSecretName" -} }
76
- { {- default (printf " %s-license" (include " stash-community.fullname" .)) .Values.licenseSecretName } }
76
+ { {- if .Values.licenseSecretName } }
77
+ { {- .Values.licenseSecretName -} }
78
+ { {- else if .Values.license } }
79
+ { {- printf " %s-license" (include " stash-community.fullname" .) -} }
80
+ { {- end } }
77
81
{ {- end } }
78
82
79
83
{ {/*
Original file line number Diff line number Diff line change 61
61
- --backup-job-psp={{ .Values.security.podSecurityPolicies | join "," }}
62
62
- --restore-job-psp={{ .Values.security.podSecurityPolicies | join "," }}
63
63
{{- end }}
64
- {{- if or ( include "appscode.license" .) (include "appscode. licenseSecretName" .) }}
64
+ {{- if include "appscode.licenseSecretName" . }}
65
65
- --license-file=/var/run/secrets/appscode/license/key.txt
66
66
- --license-apiservice={{ .Values.licenseApiService }}
67
67
{{- end }}
97
97
name : serving-cert
98
98
- mountPath : /tmp
99
99
name : stash-scratchdir
100
- {{- if or ( include "appscode.license" .) (include "appscode. licenseSecretName" .) }}
100
+ {{- if include "appscode.licenseSecretName" . }}
101
101
- mountPath : /var/run/secrets/appscode/license
102
102
name : license
103
103
{{- end }}
@@ -129,7 +129,7 @@ spec:
129
129
secret :
130
130
defaultMode : 420
131
131
secretName : {{ include "stash-community.fullname" . }}-apiserver-cert
132
- {{- if or ( include "appscode.license" .) (include "appscode. licenseSecretName" .) }}
132
+ {{- if include "appscode.licenseSecretName" . }}
133
133
- name : license
134
134
secret :
135
135
defaultMode : 420
Original file line number Diff line number Diff line change @@ -73,7 +73,11 @@ Returns the appscode license
73
73
Returns the appscode license secret name
74
74
*/} }
75
75
{ {- define " appscode.licenseSecretName" -} }
76
- { {- default (printf " %s-license" (include " stash-enterprise.fullname" .)) .Values.licenseSecretName } }
76
+ { {- if .Values.licenseSecretName } }
77
+ { {- .Values.licenseSecretName -} }
78
+ { {- else if .Values.license } }
79
+ { {- printf " %s-license" (include " stash-enterprise.fullname" .) -} }
80
+ { {- end } }
77
81
{ {- end } }
78
82
79
83
{ {/*
Original file line number Diff line number Diff line change 67
67
- --restore-job-psp={{ .Values.security.podSecurityPolicies | join "," }}
68
68
- --nva-psp={{ include "netvol-accessor-psp" .}}
69
69
{{- end }}
70
- {{- if or ( include "appscode.license" .) (include "appscode. licenseSecretName" .) }}
70
+ {{- if include "appscode.licenseSecretName" . }}
71
71
- --license-file=/var/run/secrets/appscode/license/key.txt
72
72
- --license-apiservice={{ .Values.licenseApiService }}
73
73
{{- end }}
@@ -103,7 +103,7 @@ spec:
103
103
name : serving-cert
104
104
- mountPath : /tmp
105
105
name : stash-scratchdir
106
- {{- if or ( include "appscode.license" .) (include "appscode. licenseSecretName" .) }}
106
+ {{- if include "appscode.licenseSecretName" . }}
107
107
- mountPath : /var/run/secrets/appscode/license
108
108
name : license
109
109
{{- end }}
@@ -135,7 +135,7 @@ spec:
135
135
secret :
136
136
defaultMode : 420
137
137
secretName : {{ include "stash-enterprise.fullname" . }}-apiserver-cert
138
- {{- if or ( include "appscode.license" .) (include "appscode. licenseSecretName" .) }}
138
+ {{- if include "appscode.licenseSecretName" . }}
139
139
- name : license
140
140
secret :
141
141
defaultMode : 420
Original file line number Diff line number Diff line change @@ -72,7 +72,13 @@ Returns the appscode license
72
72
Returns the appscode license secret name
73
73
*/} }
74
74
{ {- define " appscode.licenseSecretName" -} }
75
- { {- list .Values.licenseSecretName .Values.global.licenseSecretName (printf " %s-license" (include " stash.fullname" .)) | compact | first } }
75
+ { {- if .Values.licenseSecretName } }
76
+ { {- .Values.licenseSecretName -} }
77
+ { {- else if .Values.global.licenseSecretName } }
78
+ { {- .Values.global.licenseSecretName -} }
79
+ { {- else if (default .Values.global.license .Values.license) } }
80
+ { {- printf " %s-license" (include " stash.fullname" .) -} }
81
+ { {- end } }
76
82
{ {- end } }
77
83
78
84
{ {/*
You can’t perform that action at this time.
0 commit comments