diff --git a/oscar/README.md b/oscar/README.md index 945b10e..50262d9 100644 --- a/oscar/README.md +++ b/oscar/README.md @@ -94,4 +94,5 @@ The following table lists the configurable parameters of the OSCAR chart and the | `volume.storageClassName` | Storage Class used by the PVC | `""` | | `resources.requests.memory` | Memory resource requests | `512Mi` | | `resources.requests.cpu` | CPU resource requests | `500m` | +| `additionalConfig.allowedImagePrefix` | List of repository prefixes to restrict Docker images | `""` | diff --git a/oscar/templates/oscar-additional-cm.yaml b/oscar/templates/oscar-additional-cm.yaml new file mode 100644 index 0000000..34a8542 --- /dev/null +++ b/oscar/templates/oscar-additional-cm.yaml @@ -0,0 +1,14 @@ +{{- if ne .Values.additionalConfig.allowedImagePrefix "" }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: additional-oscar-config + namespace: oscar-svc +data: + config.yaml: | + images: + allowed_prefixes: |- + {{- range .Values.additionalConfig.allowedImagePrefix }} + - {{ . | title | quote}} + {{- end }} +{{- end }} \ No newline at end of file diff --git a/oscar/values.yaml b/oscar/values.yaml index 2c10f86..996cf84 100644 --- a/oscar/values.yaml +++ b/oscar/values.yaml @@ -31,6 +31,10 @@ service: port: 8080 nodePort: 30301 +# Additional OSCAR configuration +additionalConfig: + allowedImagePrefix: "" + # Number of replicas to deploy replicas: 1