Validation for strings or numbers in arrays

                Never    
YAML
       
# the part of the policy
validate:
  spec:
    someArray:
      - "*wildcard*"
      
# the part of resource that pass this validation:
spec:
  someArray:
  - "wildcard1"
  - "wildcard2"
  - "awesome_wildcard"
  
# the part of resource that doesn't pass validation:
spec:
  someArray:
  - "some1"
  - "som1"
  - "awesome"

Raw Text