diff --git a/oscar/templates/oscar-additional-cm.yaml b/oscar/templates/oscar-additional-cm.yaml index 34a8542..e606a50 100644 --- a/oscar/templates/oscar-additional-cm.yaml +++ b/oscar/templates/oscar-additional-cm.yaml @@ -1,4 +1,4 @@ -{{- if ne .Values.additionalConfig.allowedImagePrefix "" }} +{{- if .Values.additionalConfig.allowedImagePrefix }} apiVersion: v1 kind: ConfigMap metadata: @@ -7,7 +7,7 @@ metadata: data: config.yaml: | images: - allowed_prefixes: |- + allowed_prefixes: {{- range .Values.additionalConfig.allowedImagePrefix }} - {{ . | title | quote}} {{- end }} diff --git a/oscar/values.yaml b/oscar/values.yaml index 996cf84..82f6c2f 100644 --- a/oscar/values.yaml +++ b/oscar/values.yaml @@ -33,7 +33,7 @@ service: # Additional OSCAR configuration additionalConfig: - allowedImagePrefix: "" + allowedImagePrefix: [] # Number of replicas to deploy replicas: 1