@@ -55,14 +55,16 @@ var (
5555 RBAC bool
5656 AllowChaos bool
5757 }
58+ crdTemplateNames = []Template {
59+ Template {Name : "deployment.yaml" },
60+ Template {Name : "deployment-replication.yaml" },
61+ }
5862 deploymentTemplateNames = []Template {
59- Template {Name : "crd.yaml" },
6063 Template {Name : "rbac.yaml" , Predicate : hasRBAC },
6164 Template {Name : "deployment.yaml" },
6265 Template {Name : "service.yaml" },
6366 }
6467 deploymentReplicationTemplateNames = []Template {
65- Template {Name : "crd.yaml" },
6668 Template {Name : "rbac.yaml" , Predicate : hasRBAC },
6769 Template {Name : "deployment-replication.yaml" },
6870 Template {Name : "service.yaml" },
@@ -119,6 +121,15 @@ description: |
119121 Kube-ArangoDB-Storage is a cluster-wide operator used to provision PersistentVolumes on disks attached locally to Nodes
120122home: https://arangodb.com
121123`
124+ kubeArangoDBCRDChartTemplate = `
125+ apiVersion: v1
126+ name: kube-arangodb-crd
127+ version: "{{ .Version }}"
128+ description: |
129+ Kube-ArangoDB-crd contains the custom resource definitions for ArangoDeployment and ArangoDeploymentReplication resources.
130+ home: https://arangodb.com
131+ `
132+
122133 kubeArangoDBValuesTemplate = `
123134# Image containing the kube-arangodb operators
124135Image: {{ .Image | quote }}
@@ -155,6 +166,8 @@ Storage:
155166 ServiceAccountName: {{ .Storage.Operator.ServiceAccountName | quote }}
156167 ServiceType: {{ .Storage.Operator.ServiceType | quote }}
157168`
169+ kubeArangoDBCRDValuesTemplate = ``
170+
158171 kubeArangoDBNotesText = `
159172kube-arangodb has been deployed successfully!
160173
@@ -180,11 +193,23 @@ You can now deploy an ArangoLocalStorage resource.
180193
181194See https://docs.arangodb.com/devel/Manual/Deployment/Kubernetes/StorageResource.html
182195for further instructions.
196+ `
197+ kubeArangoDBCRDNotesText = `
198+ kube-arangodb-crd has been deployed successfully!
199+
200+ Your release is named '{{ .Release.Name }}'.
201+
202+ You can now continue install kube-arangodb chart.
183203`
184204)
185205
186206var (
187207 chartTemplateGroups = map [string ]chartTemplates {
208+ "kube-arangodb-crd" : chartTemplates {
209+ "Chart.yaml" : kubeArangoDBCRDChartTemplate ,
210+ "values.yaml" : kubeArangoDBCRDValuesTemplate ,
211+ "templates/NOTES.txt" : kubeArangoDBCRDNotesText ,
212+ },
188213 "kube-arangodb" : chartTemplates {
189214 "Chart.yaml" : kubeArangoDBChartTemplate ,
190215 "values.yaml" : kubeArangoDBValuesTemplate ,
@@ -272,6 +297,7 @@ func main() {
272297
273298 // Prepare templates to include
274299 templateInfoSet := map [string ]TemplateGroup {
300+ "crd" : TemplateGroup {ChartName : "kube-arangodb-crd" , Templates : crdTemplateNames },
275301 "deployment" : TemplateGroup {ChartName : "kube-arangodb" , Templates : deploymentTemplateNames },
276302 "deployment-replication" : TemplateGroup {ChartName : "kube-arangodb" , Templates : deploymentReplicationTemplateNames },
277303 "storage" : TemplateGroup {ChartName : "kube-arangodb-storage" , Templates : storageTemplateNames },
0 commit comments