PersistentVolumeClaimTemplate constructor

const PersistentVolumeClaimTemplate({
  1. Input<ObjectMeta>? metadata,
  2. required Input<PersistentVolumeClaimSpec> spec,
})

Creates a new PersistentVolumeClaimTemplate. metadata May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation. spec The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.

Implementation

const PersistentVolumeClaimTemplate({
  this.metadata,
  required this.spec,
});