Documentation ¶
Index ¶
- Variables
- func ApplyManifestFromString(cfg *rest.Config, manifest, fieldManager string) error
- func CanWatchVolume(path string) bool
- func EnsureCRD(config *rest.Config, crd []*apiextensionsv1.CustomResourceDefinition, ...) error
- func FindMountPath(path string) (string, error)
- func GetClusterDomain() (string, error)
- func LoadUnstructuredFromString(manifest string) ([]*unstructured.Unstructured, error)
- func ReadCRDFile(fileName string) ([]*apiextensionsv1.CustomResourceDefinition, error)
- func WaitForReadyWebhook(cfg *rest.Config, crds []*apiextensionsv1.CustomResourceDefinition) error
- type Objects
- type VolumeWatcher
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ResolvFile = "/etc/resolv.conf"
)
Functions ¶
func ApplyManifestFromString ¶ added in v0.12.0
func CanWatchVolume ¶
func EnsureCRD ¶ added in v0.11.0
func EnsureCRD(config *rest.Config, crd []*apiextensionsv1.CustomResourceDefinition, timeout time.Duration) error
func FindMountPath ¶
func GetClusterDomain ¶
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) 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()
Click to show internal directories.
Click to hide internal directories.