An existing PersistentVolume can be bound to PersistentVolumeClaim using volumeName property. This validator detects a condition when a PersistentVolume referenced in PersistentVolumeClaim is not found.
Affected Resources: PersistentVolumeClaim
apiVersion: v1
kind: PersistentVolumeClaim
spec:
resources:
requests:
storage: 8Gi
volumeMode: Filesystem
volumeName: pvc-00000000-0000-0000-0000-000000000000 # PV not found
accessModes:
- ReadWriteOnce
storageClassName: gp2
Please let us know if there are other built-in validation rules you would like to see in Kubevious to detect misconfigurations and violations to best practices. Optionally, you can provide your details so we can reach out to you with follow-up questions.