persistentvolume

package
v1.11.11-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropDisabledAlphaFields added in v1.9.0

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 added in v1.8.0

type Visitor func(namespace, name string, kubeletVisible bool) (shouldContinue bool)

Visitor is called with each object's namespace and name, and returns true if visiting should continue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL