Advertisement
kacejot

Validation for strings or numbers in arrays

May 15th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.31 KB | None | 0 0
  1. # the part of the policy
  2. validate:
  3.   spec:
  4.     someArray:
  5.      - "*wildcard*"
  6.      
  7. # the part of resource that pass this validation:
  8. spec:
  9.   someArray:
  10.  - "wildcard1"
  11.   - "wildcard2"
  12.   - "awesome_wildcard"
  13.  
  14. # the part of resource that doesn't pass validation:
  15. spec:
  16.   someArray:
  17.  - "some1"
  18.   - "som1"
  19.   - "awesome"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement