You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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))
```
0 commit comments