k8s

package
v0.12.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResolvFile = "/etc/resolv.conf"
)

Functions

func ApplyManifestFromString added in v0.12.0

func ApplyManifestFromString(cfg *rest.Config, manifest, fieldManager string) error

func CanWatchVolume

func CanWatchVolume(path string) bool

func EnsureCRD added in v0.11.0

func EnsureCRD(config *rest.Config, crd []*apiextensionsv1.CustomResourceDefinition, timeout time.Duration) error

func FindMountPath

func FindMountPath(path string) (string, error)

func GetClusterDomain

func GetClusterDomain() (string, error)

func LoadUnstructuredFromString added in v0.12.0

func LoadUnstructuredFromString(manifest string) ([]*unstructured.Unstructured, error)

func ReadCRDFile added in v0.11.0

func ReadCRDFile(fileName string) ([]*apiextensionsv1.CustomResourceDefinition, error)

func WaitForReadyWebhook added in v0.12.0

func WaitForReadyWebhook(cfg *rest.Config, crds []*apiextensionsv1.CustomResourceDefinition) error

Types

type Objects added in v0.12.0

type Objects []*unstructured.Unstructured

func (Objects) Apply added in v0.12.0

func (k Objects) Apply(cfg *rest.Config, fieldManager string) error

func (Objects) SelectCustomResourceDefinitions added in v0.12.0

func (k Objects) SelectCustomResourceDefinitions() ([]*apiextensionsv1.CustomResourceDefinition, error)

type VolumeWatcher

type VolumeWatcher struct {
	// contains filtered or unexported fields
}

func NewVolumeWatcher

func NewVolumeWatcher(mountPath string, fn func()) (*VolumeWatcher, error)

func (*VolumeWatcher) Stop

func (w *VolumeWatcher) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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