Skip to content

Commit c02b089

Browse files
authored
Merge pull request #258 from jck-ccl/master
Use correct templateoptions for helm charts
2 parents 0a32c84 + c2ec908 commit c02b089

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/manifests/manifest_builder.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ ImagePullPolicy: {{ .ImagePullPolicy | quote }}
148148
RBAC:
149149
Create: {{ .RBAC }}
150150
Storage:
151+
Create: {{ .Storage.Create }}
151152
User:
152153
ServiceAccountName: {{ .Storage.User.ServiceAccountName | quote }}
153154
Operator:
@@ -403,7 +404,9 @@ func main() {
403404
OperatorDeploymentName: "arango-deployment-replication-operator", // Fixed name because only 1 is allowed per namespace
404405
},
405406
Storage: ResourceOptions{
406-
Create: "{{ .Values.Storage.Create }}",
407+
Create: "{{ .Values.Storage.Create }}",
408+
FilterStart: "{{- if .Values.Storage.Create }}",
409+
FilterEnd: "{{- end }}",
407410
User: CommonOptions{
408411
Namespace: "{{ .Release.Namespace }}",
409412
RoleName: `{{ printf "%s-%s" .Release.Name "storages" | trunc 63 | trimSuffix "-" }}`,
@@ -475,7 +478,7 @@ func main() {
475478
}
476479
// Execute to tmp buffer
477480
tmpBuf := &bytes.Buffer{}
478-
t.Execute(tmpBuf, templateOptions)
481+
t.Execute(tmpBuf, chartTemplateOptions)
479482
// Add tmp buffer to output, unless empty
480483
if strings.TrimSpace(tmpBuf.String()) != "" {
481484
if output.Len() > 0 {

0 commit comments

Comments
 (0)