Deployed a prod cluster and created artificially labelled snapshots / contents - running clusterlint correctly raised following errors:
./clusterlint --kubeconfig ~/Downloads/test-cluster-kubeconfig.yaml run
W0624 16:55:38.126204 46310 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
[error] /volume snapshot content/snapcontent-72d9a349-aacd-42d2-a240-d775650d2455: Snapshot content has been marked as invalid by CSI validation - check volumeHandle and snapshotHandle are not both set
[error] default/volume snapshot/new-snapshot-demo: Snapshot has been marked as invalid by CSI validation - check persistentVolumeClaimName and volumeSnapshotContentName are not both set
Validation errors will be raised with the following labels:
Deployed a prod cluster and created artificially labelled snapshots / contents - running clusterlint correctly raised following errors:
Validation errors will be raised with the following labels:
snapshot.storage.sigs.k8s.io/invalid-snapshot-content-resource
snapshot.storage.kubernetes.io/invalid-snapshot-resource
May want to adjust messaging from clusterlint but these errors conform to https://github.com/kubernetes-csi/external-snapshotter/tree/eb447544376eaf7115cfe70bd143a40e7718262a#validating-webhook