Skip to content

Commit

Permalink
Add CM in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Jul 26, 2024
1 parent 4089044 commit 2eedbb7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion oscar/templates/oscar-additional-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ data:
images:
allowed_prefixes:
{{- range .Values.additionalConfig.allowedImagePrefix }}
- {{ . | title | quote}}
- {{ . | quote}}
{{- end }}
{{- end }}
17 changes: 17 additions & 0 deletions oscar/tests/oscar-additional-cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
suite: test oscar deployment
templates:
- oscar-additional-cm.yaml
tests:
- name: test1
set:
additionalConfig.allowedImagePrefix: [grycap]
asserts:
- isKind:
of: ConfigMap
- equal:
path: data
value:
config.yaml: |-
images:
allowed_prefixes:
- "grycap"

0 comments on commit 2eedbb7

Please sign in to comment.