@@ -12,26 +12,29 @@ import (
1212 "helm.sh/helm/v3/pkg/cli/values"
1313)
1414
15- var Helm = func (apiPort int32 , consolePort int32 ) common.HelmFunc {
15+ var Helm = func (apiPort int32 , consolePort int32 , commonHelmValues [] string ) common.HelmFunc {
1616 return common .CompositeHelmFunc (
1717 helm .ImportTemplate (charts .Minio (), helm.TemplateConfig {}, func (cfg * common.RenderContext ) (* common.HelmConfig , error ) {
1818 return & common.HelmConfig {
1919 Enabled : true ,
2020 Values : & values.Options {
21- Values : []string {
22- helm .KeyValue ("minio.gateway.enabled" , "true" ),
23- helm .KeyValue ("minio.gateway.auth.azure.accessKey" , cfg .Values .StorageAccessKey ), // Azure value actually taken from secret - used for console/API access
24- helm .KeyValue ("minio.gateway.auth.azure.secretKey" , cfg .Values .StorageSecretKey ), // Ditto
25- helm .KeyValue ("minio.gateway.auth.azure.storageAccountNameExistingSecret" , cfg .Config .ObjectStorage .Azure .Credentials .Name ),
26- helm .KeyValue ("minio.gateway.auth.azure.storageAccountNameExistingSecretKey" , "accountName" ),
27- helm .KeyValue ("minio.gateway.auth.azure.storageAccountKeyExistingSecret" , cfg .Config .ObjectStorage .Azure .Credentials .Name ),
28- helm .KeyValue ("minio.gateway.auth.azure.storageAccountKeyExistingSecretKey" , "accountKey" ),
29- helm .KeyValue ("minio.gateway.replicaCount" , "2" ),
30- helm .KeyValue ("minio.gateway.type" , "azure" ),
31- helm .KeyValue ("minio.persistence.enabled" , "false" ),
32- helm .KeyValue ("minio.service.ports.api" , fmt .Sprintf ("%d" , apiPort )),
33- helm .KeyValue ("minio.service.ports.console" , fmt .Sprintf ("%d" , consolePort )),
34- },
21+ Values : append (
22+ []string {
23+ helm .KeyValue ("minio.gateway.enabled" , "true" ),
24+ helm .KeyValue ("minio.gateway.auth.azure.accessKey" , cfg .Values .StorageAccessKey ), // Azure value actually taken from secret - used for console/API access
25+ helm .KeyValue ("minio.gateway.auth.azure.secretKey" , cfg .Values .StorageSecretKey ), // Ditto
26+ helm .KeyValue ("minio.gateway.auth.azure.storageAccountNameExistingSecret" , cfg .Config .ObjectStorage .Azure .Credentials .Name ),
27+ helm .KeyValue ("minio.gateway.auth.azure.storageAccountNameExistingSecretKey" , "accountName" ),
28+ helm .KeyValue ("minio.gateway.auth.azure.storageAccountKeyExistingSecret" , cfg .Config .ObjectStorage .Azure .Credentials .Name ),
29+ helm .KeyValue ("minio.gateway.auth.azure.storageAccountKeyExistingSecretKey" , "accountKey" ),
30+ helm .KeyValue ("minio.gateway.replicaCount" , "2" ),
31+ helm .KeyValue ("minio.gateway.type" , "azure" ),
32+ helm .KeyValue ("minio.persistence.enabled" , "false" ),
33+ helm .KeyValue ("minio.service.ports.api" , fmt .Sprintf ("%d" , apiPort )),
34+ helm .KeyValue ("minio.service.ports.console" , fmt .Sprintf ("%d" , consolePort )),
35+ },
36+ commonHelmValues ... ,
37+ ),
3538 },
3639 }, nil
3740 }),
0 commit comments