Documentation ¶
Index ¶
- Variables
- func DetectServiceNodePortRange(b Bundle) (string, error)
- func DetectServiceSubnetRange(b Bundle) (string, 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 DetectServiceNodePortRange ¶ added in v0.0.18
DetectServiceNodePortRange attempts to determine service node port range value provided to k8s api server, so that local version can be launched with same argument.
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 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, YAML array of separate resources, JSON array of resources and JSON stored item list without TypeMeta information. The result will be returned as `UnstructuredList` but the items could be missing GVK information. It is up to caller to add GVK to each item before further processing.
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.