Skip to content

Commit

Permalink
update example-3
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfm committed Feb 23, 2024
1 parent c984421 commit 35313c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example-3-configmap/2-allowed-registries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
apiVersion: v1
kind: ConfigMap
variables:
- name: allowedRegistries
expression: 'params.data.allowedRegistries.split(",")'
- name: podSpec
expression: >
object.kind == "Pod" ? object.spec : (
Expand All @@ -22,8 +24,6 @@ spec:
)
- name: allContainers
expression: 'variables.podSpec.containers + variables.podSpec.?initContainers.orValue([])'
- name: allowedRegistries
expression: 'params.data.allowedRegistries.split(",")'
validations:
- expression: >
variables.allContainers.all(c,
Expand Down

0 comments on commit 35313c7

Please sign in to comment.