Skip to content

Commit 8945c2a

Browse files
committed
Added NOTES.txt files
1 parent 7b49f6e commit 8945c2a

File tree

1 file changed

+31
-7
lines changed

1 file changed

+31
-7
lines changed

tools/manifests/manifest_builder.go

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,42 @@ Storage:
148148
Operator:
149149
ServiceAccountName: {{ .Storage.Operator.ServiceAccountName | quote }}
150150
ServiceType: {{ .Storage.Operator.ServiceType | quote }}
151+
`
152+
kubeArangoDBNotesTemplate = `
153+
kube-arangodb has been deployed successfully!
154+
155+
{{ if (and .Deployment.Create .DeploymentReplication.Create) -}}
156+
You can now deploy ArangoDeployment & ArangoDeploymentReplication resources.
157+
{{- else if (and .Deployment.Create (not .DeploymentReplication.Create)) -}}
158+
You can now deploy ArangoDeployment resources.
159+
{{- else if (and (not .Deployment.Create) .DeploymentReplication.Create) -}}
160+
You can now deploy ArangoDeploymentReplication resources.
161+
{{- end }}
162+
163+
See https://docs.arangodb.com/devel/Manual/Tutorials/Kubernetes/
164+
for how to get started.
165+
`
166+
kubeArangoDBStorageNotesTemplate = `
167+
kube-arangodb-storage has been deployed successfully!
168+
169+
You can now deploy an ArangoLocalStorage resource.
170+
171+
See https://docs.arangodb.com/devel/Manual/Deployment/Kubernetes/StorageResource.html
172+
for further instructions.
151173
`
152174
)
153175

154176
var (
155177
chartTemplateGroups = map[string]chartTemplates{
156178
"kube-arangodb": chartTemplates{
157-
"Chart.yaml": kubeArangoDBChartTemplate,
158-
"values.yaml": kubeArangoDBValuesTemplate,
179+
"Chart.yaml": kubeArangoDBChartTemplate,
180+
"values.yaml": kubeArangoDBValuesTemplate,
181+
"templates/NOTES.txt": kubeArangoDBNotesTemplate,
159182
},
160183
"kube-arangodb-storage": chartTemplates{
161-
"Chart.yaml": kubeArangoDBStorageChartTemplate,
162-
"values.yaml": kubeArangoDBStorageValuesTemplate,
184+
"Chart.yaml": kubeArangoDBStorageChartTemplate,
185+
"values.yaml": kubeArangoDBStorageValuesTemplate,
186+
"templates/NOTES.txt": kubeArangoDBStorageNotesTemplate,
163187
},
164188
}
165189
)
@@ -347,7 +371,7 @@ func main() {
347371
ServiceAccountName: "{{ .Values.Deployment.Operator.ServiceAccountName }}",
348372
ServiceType: "{{ .Values.Deployment.Operator.ServiceType }}",
349373
},
350-
OperatorDeploymentName: `{{ printf "%s-%s" .Release.Name "deployment-operator" | trunc 63 | trimSuffix "-" }}`,
374+
OperatorDeploymentName: "arango-deployment-operator", // Fixed name because only 1 is allowed per namespace
351375
AllowChaos: "{{ .Values.Deployment.AllowChaos }}",
352376
},
353377
DeploymentReplication: ResourceOptions{
@@ -367,7 +391,7 @@ func main() {
367391
ServiceAccountName: "{{ .Values.DeploymentReplication.Operator.ServiceAccountName }}",
368392
ServiceType: "{{ .Values.DeploymentReplication.Operator.ServiceType }}",
369393
},
370-
OperatorDeploymentName: `{{ printf "%s-%s" .Release.Name "deployment-replication-operator" | trunc 63 | trimSuffix "-" }}`,
394+
OperatorDeploymentName: "arango-deployment-replication-operator", // Fixed name because only 1 is allowed per namespace
371395
},
372396
Storage: ResourceOptions{
373397
Create: "{{ .Values.Storage.Create }}",
@@ -384,7 +408,7 @@ func main() {
384408
ServiceAccountName: "{{ .Values.Storage.Operator.ServiceAccountName }}",
385409
ServiceType: "{{ .Values.Storage.Operator.ServiceType }}",
386410
},
387-
OperatorDeploymentName: `{{ printf "%s-%s" .Release.Name "storage-operator" | trunc 63 | trimSuffix "-" }}`,
411+
OperatorDeploymentName: "arango-storage-operator", // Fixed name because only 1 is allowed per namespace
388412
},
389413
}
390414

0 commit comments

Comments
 (0)