Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownBundleFormat = fmt.Errorf("unknown bundle format")
ErrUnknownBundleFormat is returned when bundle cannot be loaded.
Functions ¶
func DetectServiceSubnetRange ¶
DetectServiceSubnetRange attempts to determine service ip range value provided to k8s api server, so that local version can be launched with same argument. So far the function tries to parse value from `kube-apiserver` pod. Other potential locations for parsing this value: - CAPI cluster resource - KIND kubeadm config.
func LoadCRDs ¶
func LoadCRDs(b Bundle) ([]*apiextensionsv1.CustomResourceDefinition, error)
LoadCRDs gets CRDs stored in the bundle.
func LoadResourcesFromFile ¶
func LoadResourcesFromFile(bundle afero.Fs, path string) (*unstructured.UnstructuredList, error)
LoadResourcesFromFile tries to k8s API resources from a given file. It supports resources stored as List kind or YAML array of separate resources.
Types ¶
Click to show internal directories.
Click to hide internal directories.