Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Had a typo :( in the earlier PR - #45501. Test output - ``` kubectl apply -f gitrepovol.yaml Warning: spec.volumes[1].gitRepo: deprecated in v1.11 The pods "gitrepo-volume-pod" is invalid: : ValidatingAdmissionPolicy 'deprecated-gitrepo-volumes.example.com' with binding 'deprecated-gitrepo-volumes-binding.example.com' denied request: Pod must not use deprecated spec.volumes[].gitRepo field. kubectl get ValidatingAdmissionPolicy -oyaml | grep 'expression' - expression: has(object.spec.volumes) && !object.spec.volumes.exists(v, has(v.gitRepo)) ```
- Loading branch information