mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
considering many PV sources exist today with secretRef fields this introduce a secretRef validation function which could be used based on the pv spec source type. There are different field restrictions exist today for these PV types like some of them dont need namespace reference..etc. The PV spec validation has to be adjusted for different PVs, but this commit try to make use of this newly introduced secretRef validation function for CSI volume source. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>