@@ -117,7 +117,9 @@ description: |
117
117
home: https://arangodb.com
118
118
`
119
119
kubeArangoDBValuesTemplate = `
120
+ # Image containing the kube-arangodb operators
120
121
Image: {{ .Image | quote }}
122
+ # Image pull policy for Image
121
123
ImagePullPolicy: {{ .ImagePullPolicy | quote }}
122
124
RBAC:
123
125
Create: {{ .RBAC }}
@@ -149,23 +151,27 @@ Storage:
149
151
ServiceAccountName: {{ .Storage.Operator.ServiceAccountName | quote }}
150
152
ServiceType: {{ .Storage.Operator.ServiceType | quote }}
151
153
`
152
- kubeArangoDBNotesTemplate = `
154
+ kubeArangoDBNotesText = `
153
155
kube-arangodb has been deployed successfully!
154
156
155
- {{ if (and .Deployment.Create .DeploymentReplication.Create) -}}
157
+ Your release is named '{{ .Release.Name }}'.
158
+
159
+ {{ if and .Values.Deployment.Create .Values.DeploymentReplication.Create -}}
156
160
You can now deploy ArangoDeployment & ArangoDeploymentReplication resources.
157
- {{- else if ( and .Deployment.Create (not .DeploymentReplication.Create) ) -}}
161
+ {{- else if and .Values. Deployment.Create (not .Values. DeploymentReplication.Create) -}}
158
162
You can now deploy ArangoDeployment resources.
159
- {{- else if ( and (not .Deployment.Create) .DeploymentReplication.Create) -}}
163
+ {{- else if and (not .Values. Deployment.Create) .Values. DeploymentReplication.Create -}}
160
164
You can now deploy ArangoDeploymentReplication resources.
161
165
{{- end }}
162
166
163
167
See https://docs.arangodb.com/devel/Manual/Tutorials/Kubernetes/
164
168
for how to get started.
165
169
`
166
- kubeArangoDBStorageNotesTemplate = `
170
+ kubeArangoDBStorageNotesText = `
167
171
kube-arangodb-storage has been deployed successfully!
168
172
173
+ Your release is named '{{ .Release.Name }}'.
174
+
169
175
You can now deploy an ArangoLocalStorage resource.
170
176
171
177
See https://docs.arangodb.com/devel/Manual/Deployment/Kubernetes/StorageResource.html
@@ -178,12 +184,12 @@ var (
178
184
"kube-arangodb" : chartTemplates {
179
185
"Chart.yaml" : kubeArangoDBChartTemplate ,
180
186
"values.yaml" : kubeArangoDBValuesTemplate ,
181
- "templates/NOTES.txt" : kubeArangoDBNotesTemplate ,
187
+ "templates/NOTES.txt" : kubeArangoDBNotesText ,
182
188
},
183
189
"kube-arangodb-storage" : chartTemplates {
184
190
"Chart.yaml" : kubeArangoDBStorageChartTemplate ,
185
191
"values.yaml" : kubeArangoDBStorageValuesTemplate ,
186
- "templates/NOTES.txt" : kubeArangoDBStorageNotesTemplate ,
192
+ "templates/NOTES.txt" : kubeArangoDBStorageNotesText ,
187
193
},
188
194
}
189
195
)
@@ -490,11 +496,17 @@ func main() {
490
496
for groupName , chartTemplates := range chartTemplateGroups {
491
497
for name , templateSource := range chartTemplates {
492
498
output := & bytes.Buffer {}
493
- t , err := template .New (name ).Funcs (tmplFuncs ).Parse (templateSource )
494
- if err != nil {
495
- log .Fatalf ("Failed to parse template %s: %v" , name , err )
499
+ if strings .HasSuffix (name , ".txt" ) {
500
+ // Plain text
501
+ output .WriteString (templateSource )
502
+ } else {
503
+ // Template
504
+ t , err := template .New (name ).Funcs (tmplFuncs ).Parse (templateSource )
505
+ if err != nil {
506
+ log .Fatalf ("Failed to parse template %s: %v" , name , err )
507
+ }
508
+ t .Execute (output , templateOptions )
496
509
}
497
- t .Execute (output , templateOptions )
498
510
499
511
// Save output
500
512
tarPath := path .Join (groupName , name )
0 commit comments