1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Added NOTES.txt files

This commit is contained in:
Ewout Prangsma 2018-08-10 14:16:25 +02:00
parent 7b49f6e44f
commit 8945c2af57
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698

View file

@ -148,18 +148,42 @@ Storage:
Operator:
ServiceAccountName: {{ .Storage.Operator.ServiceAccountName | quote }}
ServiceType: {{ .Storage.Operator.ServiceType | quote }}
`
kubeArangoDBNotesTemplate = `
kube-arangodb has been deployed successfully!
{{ if (and .Deployment.Create .DeploymentReplication.Create) -}}
You can now deploy ArangoDeployment & ArangoDeploymentReplication resources.
{{- else if (and .Deployment.Create (not .DeploymentReplication.Create)) -}}
You can now deploy ArangoDeployment resources.
{{- else if (and (not .Deployment.Create) .DeploymentReplication.Create) -}}
You can now deploy ArangoDeploymentReplication resources.
{{- end }}
See https://docs.arangodb.com/devel/Manual/Tutorials/Kubernetes/
for how to get started.
`
kubeArangoDBStorageNotesTemplate = `
kube-arangodb-storage has been deployed successfully!
You can now deploy an ArangoLocalStorage resource.
See https://docs.arangodb.com/devel/Manual/Deployment/Kubernetes/StorageResource.html
for further instructions.
`
)
var (
chartTemplateGroups = map[string]chartTemplates{
"kube-arangodb": chartTemplates{
"Chart.yaml": kubeArangoDBChartTemplate,
"values.yaml": kubeArangoDBValuesTemplate,
"Chart.yaml": kubeArangoDBChartTemplate,
"values.yaml": kubeArangoDBValuesTemplate,
"templates/NOTES.txt": kubeArangoDBNotesTemplate,
},
"kube-arangodb-storage": chartTemplates{
"Chart.yaml": kubeArangoDBStorageChartTemplate,
"values.yaml": kubeArangoDBStorageValuesTemplate,
"Chart.yaml": kubeArangoDBStorageChartTemplate,
"values.yaml": kubeArangoDBStorageValuesTemplate,
"templates/NOTES.txt": kubeArangoDBStorageNotesTemplate,
},
}
)
@ -347,7 +371,7 @@ func main() {
ServiceAccountName: "{{ .Values.Deployment.Operator.ServiceAccountName }}",
ServiceType: "{{ .Values.Deployment.Operator.ServiceType }}",
},
OperatorDeploymentName: `{{ printf "%s-%s" .Release.Name "deployment-operator" | trunc 63 | trimSuffix "-" }}`,
OperatorDeploymentName: "arango-deployment-operator", // Fixed name because only 1 is allowed per namespace
AllowChaos: "{{ .Values.Deployment.AllowChaos }}",
},
DeploymentReplication: ResourceOptions{
@ -367,7 +391,7 @@ func main() {
ServiceAccountName: "{{ .Values.DeploymentReplication.Operator.ServiceAccountName }}",
ServiceType: "{{ .Values.DeploymentReplication.Operator.ServiceType }}",
},
OperatorDeploymentName: `{{ printf "%s-%s" .Release.Name "deployment-replication-operator" | trunc 63 | trimSuffix "-" }}`,
OperatorDeploymentName: "arango-deployment-replication-operator", // Fixed name because only 1 is allowed per namespace
},
Storage: ResourceOptions{
Create: "{{ .Values.Storage.Create }}",
@ -384,7 +408,7 @@ func main() {
ServiceAccountName: "{{ .Values.Storage.Operator.ServiceAccountName }}",
ServiceType: "{{ .Values.Storage.Operator.ServiceType }}",
},
OperatorDeploymentName: `{{ printf "%s-%s" .Release.Name "storage-operator" | trunc 63 | trimSuffix "-" }}`,
OperatorDeploymentName: "arango-storage-operator", // Fixed name because only 1 is allowed per namespace
},
}