Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mutator ¶
type Mutator struct {
admission.DefaultMutator
BlockdeviceCache ctldiskv1.BlockDeviceCache
}
func NewBlockdeviceMutator ¶
func NewBlockdeviceMutator(blockdeviceCache ctldiskv1.BlockDeviceCache) *Mutator
func (*Mutator) Update ¶
func (m *Mutator) Update(req *admission.Request, oldObj, newObj runtime.Object) (admission.Patch, error)
Update is used to patch the filesystem.provisioned value to spec.provision We move the provision flag from Spec.Filesystem.Provision to Spec.Provision when we introduce the provisioner.
type Validator ¶
type Validator struct {
admission.DefaultValidator
BlockdeviceCache ctldiskv1.BlockDeviceCache
// contains filtered or unexported fields
}
func NewBlockdeviceValidator ¶
func NewBlockdeviceValidator(blockdeviceCache ctldiskv1.BlockDeviceCache, storageClassCache ctlstoragev1.StorageClassCache, pvCache ctlcorev1.PersistentVolumeCache) *Validator
Click to show internal directories.
Click to hide internal directories.