Documentation ¶
Index ¶
- func FromUnstructured(objs []unstructured.Unstructured) ([]byte, error)
- func InspectImages(objs []unstructured.Unstructured) ([]string, error)
- func IsClusterResource(kind string) bool
- func IsResourceNamespaced(kind string) bool
- func IsSharedResource(o unstructured.Unstructured) bool
- func JoinYaml(yamls ...[]byte) []byte
- func ToUnstructured(rawyaml []byte) ([]unstructured.Unstructured, error)
- type Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromUnstructured ¶
func FromUnstructured(objs []unstructured.Unstructured) ([]byte, error)
FromUnstructured takes a list of Unstructured objects and converts it into a YAML
func InspectImages ¶
func InspectImages(objs []unstructured.Unstructured) ([]string, error)
InspectImages identifies the container images required to install the objects defined in the objs. NB. The implemented approach is specific for the provider components YAML & for the cert-manager manifest; it is not intended to cover all the possible objects used to deploy containers existing in Kubernetes.
func IsClusterResource ¶
IsClusterResource returns true if the resource kind is cluster wide (not namespaced).
func IsResourceNamespaced ¶
IsResourceNamespaced returns true if the resource kind is namespaced.
func IsSharedResource ¶
func IsSharedResource(o unstructured.Unstructured) bool
IsSharedResource returns true if the resource lifecycle is shared.
func JoinYaml ¶
JoinYaml takes a list of YAML files and join them ensuring each YAML that the yaml separator goes on a new line by adding \n where necessary
func ToUnstructured ¶
func ToUnstructured(rawyaml []byte) ([]unstructured.Unstructured, error)
ToUnstructured takes a YAML and converts it to a list of Unstructured objects
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd implements a wrapper on os/exec.cmd