From dce917a9534c96f9fb241f95df0b36e05cb0c96b Mon Sep 17 00:00:00 2001 From: catttam Date: Wed, 24 Jul 2024 09:55:45 +0200 Subject: [PATCH] Additional config fixes --- oscar/templates/oscar-additional-cm.yaml | 4 ++-- oscar/values.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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