Handle PersistenVolumeClaimTemplate
defined by EphemeralVolumeSource
#3
Labels
PersistenVolumeClaimTemplate
defined by EphemeralVolumeSource
#3
The
Volume
resource has an attributed calledephemeral
of typeEphemeralVolumeSource
, which has inside of itself thevolumeClaimTemplate
of typeVolumeClaimTemplate
. ThePersistentVolumeClaimTemplate
can reference astorageClass
. This is the same type of object defined inside ofStatefulSet.spec.persistentVolumeClaimTemplates
(see #1).The policy should be extended to look also inside of the
podSpec.volumes.*.ephemeral.volumeClaimTemplate.spec.storageClassName
. GivenpodSpec
are embedded into higher level Kubernetes resources; the policy should be capable of inspectingPod
,Deployment
,CronJob
,StatefulSet
.When inspecting
StatefulSet
objects, we have to be careful because the PVC can be defined in two places: inside of thepodSpec
(with this convoluted series of objects) and also inside ofvolumeClaimTemplates
(which is handled by #1).Configuration
The configuration settings of the policy do not need to be changed. They are going to be applied in the same way
The text was updated successfully, but these errors were encountered: