UNCLASSIFIED - NO CUI

Update deprecated API policy for Kubernetes v1.27

Using the Kubernetes deprecation guide, update the disallow-deprecated-apis policy to validate the removal of v1.27 APIs.

In addition, update the test vector to remove the CronJob test case and add a test case for v1.27 storage.k8s.io/v1beta1/CSIStorageCapacity:

apiVersion: storage.k8s.io/v1beta1
kind: CSIStorageCapacity
metadata:
  name: disallow-deprecated-apis-1
  namespace: default
  annotations:
    kyverno-policies-bbtest/type: validate
    kyverno-policies-bbtest/expected: fail
storageClassName: local-path
Edited by Michael McLeroy