@@ -24,30 +24,37 @@ var Helm = common.CompositeHelmFunc(
24
24
return nil , err
25
25
}
26
26
27
+ customization := helm .CustomizeAnnotation ([]string {}, "mysql.primary.podAnnotations" , cfg , Component , common .TypeMetaDeployment )
28
+ customization = helm .CustomizeLabel (customization , "mysql.primary.podLabels" , cfg , Component , common .TypeMetaDeployment )
29
+ customization = helm .CustomizeAnnotation (customization , "mysql.primary.service.annotations" , cfg , Component , common .TypeMetaService )
30
+
27
31
return & common.HelmConfig {
28
32
Enabled : true ,
29
33
Values : & values.Options {
30
- Values : []string {
31
- helm .KeyValue ("mysql.auth.existingSecret" , SQLPasswordName ),
32
- helm .KeyValue ("mysql.auth.database" , Database ),
33
- helm .KeyValue ("mysql.auth.username" , Username ),
34
- helm .KeyValue ("mysql.initdbScriptsConfigMap" , SQLInitScripts ),
35
- helm .KeyValue ("mysql.serviceAccount.name" , Component ),
36
- helm .ImagePullSecrets ("mysql.image.pullSecrets" , cfg ),
37
- helm .KeyValue ("mysql.image.registry" , "" ),
38
- helm .KeyValue ("mysql.image.repository" , cfg .RepoName (common .ThirdPartyContainerRepo (cfg .Config .Repository , common .DockerRegistryURL ), "bitnami/mysql" )),
39
- helm .ImagePullSecrets ("mysql.metrics.image.pullSecrets" , cfg ),
40
- helm .KeyValue ("mysql.metrics.image.registry" , "" ),
41
- helm .KeyValue ("mysql.metrics.image.repository" , cfg .RepoName (common .ThirdPartyContainerRepo (cfg .Config .Repository , common .DockerRegistryURL ), "bitnami/mysqld-exporter" )),
42
- helm .ImagePullSecrets ("mysql.volumePermissions.image.pullSecrets" , cfg ),
43
- helm .KeyValue ("mysql.volumePermissions.image.pullPolicy" , "IfNotPresent" ),
44
- helm .KeyValue ("mysql.volumePermissions.image.registry" , "" ),
45
- helm .KeyValue ("mysql.volumePermissions.image.repository" , cfg .RepoName (common .ThirdPartyContainerRepo (cfg .Config .Repository , common .DockerRegistryURL ), "bitnami/bitnami-shell" )),
34
+ Values : append (
35
+ []string {
36
+ helm .KeyValue ("mysql.auth.existingSecret" , SQLPasswordName ),
37
+ helm .KeyValue ("mysql.auth.database" , Database ),
38
+ helm .KeyValue ("mysql.auth.username" , Username ),
39
+ helm .KeyValue ("mysql.initdbScriptsConfigMap" , SQLInitScripts ),
40
+ helm .KeyValue ("mysql.serviceAccount.name" , Component ),
41
+ helm .ImagePullSecrets ("mysql.image.pullSecrets" , cfg ),
42
+ helm .KeyValue ("mysql.image.registry" , "" ),
43
+ helm .KeyValue ("mysql.image.repository" , cfg .RepoName (common .ThirdPartyContainerRepo (cfg .Config .Repository , common .DockerRegistryURL ), "bitnami/mysql" )),
44
+ helm .ImagePullSecrets ("mysql.metrics.image.pullSecrets" , cfg ),
45
+ helm .KeyValue ("mysql.metrics.image.registry" , "" ),
46
+ helm .KeyValue ("mysql.metrics.image.repository" , cfg .RepoName (common .ThirdPartyContainerRepo (cfg .Config .Repository , common .DockerRegistryURL ), "bitnami/mysqld-exporter" )),
47
+ helm .ImagePullSecrets ("mysql.volumePermissions.image.pullSecrets" , cfg ),
48
+ helm .KeyValue ("mysql.volumePermissions.image.pullPolicy" , "IfNotPresent" ),
49
+ helm .KeyValue ("mysql.volumePermissions.image.registry" , "" ),
50
+ helm .KeyValue ("mysql.volumePermissions.image.repository" , cfg .RepoName (common .ThirdPartyContainerRepo (cfg .Config .Repository , common .DockerRegistryURL ), "bitnami/bitnami-shell" )),
46
51
47
- // improve start time
48
- helm .KeyValue ("mysql.primary.startupProbe.enabled" , "false" ),
49
- helm .KeyValue ("mysql.primary.livenessProbe.initialDelaySeconds" , "30" ),
50
- },
52
+ // improve start time
53
+ helm .KeyValue ("mysql.primary.startupProbe.enabled" , "false" ),
54
+ helm .KeyValue ("mysql.primary.livenessProbe.initialDelaySeconds" , "30" ),
55
+ },
56
+ customization ... ,
57
+ ),
51
58
// This is too complex to be sent as a string
52
59
FileValues : []string {
53
60
primaryAffinityTemplate ,
0 commit comments