package persistentvolume
import "k8s.io/kubernetes/pkg/api/persistentvolume"
Index ¶
- func DropDisabledAlphaFields(pvSpec *api.PersistentVolumeSpec)
- func VisitPVSecretNames(pv *api.PersistentVolume, visitor Visitor) bool
- type Visitor
Functions ¶
func DropDisabledAlphaFields ¶
func DropDisabledAlphaFields(pvSpec *api.PersistentVolumeSpec)
DropDisabledAlphaFields removes disabled fields from the pv spec. This should be called from PrepareForCreate/PrepareForUpdate for all resources containing a pv spec.
func VisitPVSecretNames ¶
func VisitPVSecretNames(pv *api.PersistentVolume, visitor Visitor) bool
VisitPVSecretNames invokes the visitor function with the name of every secret referenced by the PV spec. If visitor returns false, visiting is short-circuited. Returns true if visiting completed, false if visiting was short-circuited.
Types ¶
type Visitor ¶
Visitor is called with each object's namespace and name, and returns true if visiting should continue
Source Files ¶
util.go
- Version
- v1.9.11-beta.0
- Published
- Aug 2, 2018
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 1 minute ago –
Tools for package owners.