Skip to content

Commit

Permalink
Added additional configuration to OSCAR helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam committed Jul 23, 2024
1 parent 8376119 commit 7e39eaf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions oscar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `""` |

14 changes: 14 additions & 0 deletions oscar/templates/oscar-additional-cm.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 4 additions & 0 deletions oscar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ service:
port: 8080
nodePort: 30301

# Additional OSCAR configuration
additionalConfig:
allowedImagePrefix: ""

# Number of replicas to deploy
replicas: 1

Expand Down

0 comments on commit 7e39eaf

Please sign in to comment.