Documentation ¶
Index ¶
- Variables
- func DetectServiceSubnetRange(b Bundle) (string, error)
- func LoadCRDs(b Bundle) ([]*apiextensionsv1.CustomResourceDefinition, error)
- func LoadConfigMap(bundle afero.Fs, path string) (*unstructured.Unstructured, error)
- func LoadResourcesFromFile(bundle afero.Fs, path string) (*unstructured.UnstructuredList, error)
- func LoadSecret(bundle afero.Fs, path string) (*unstructured.Unstructured, error)
- type Bundle
- type Layout
Constants ¶
This section is empty.
Variables ¶
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 LoadConfigMap ¶ added in v0.0.3
func LoadConfigMap(bundle afero.Fs, path string) (*unstructured.Unstructured, error)
LoadConfigMap loads configmap data from special struct that support-bundle uses to store CMs in.
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.
func LoadSecret ¶ added in v0.0.3
func LoadSecret(bundle afero.Fs, path string) (*unstructured.Unstructured, error)
LoadSecret loads secret from special struct that support-bundle uses to store Secrets in. It leaves the data empty.