cluster-api: sigs.k8s.io/cluster-api/cmd/clusterctl/internal/util Index | Files

package util

import "sigs.k8s.io/cluster-api/cmd/clusterctl/internal/util"

Index

Package Files

cmd.go objs.go

func FixImages Uses

func FixImages(objs []unstructured.Unstructured, alterImageFunc func(image string) (string, error)) ([]unstructured.Unstructured, error)

FixImages alters images using the give alter func 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 InspectImages Uses

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 Uses

func IsClusterResource(kind string) bool

IsClusterResource returns true if the resource kind is cluster wide (not namespaced).

func IsResourceNamespaced Uses

func IsResourceNamespaced(kind string) bool

IsResourceNamespaced returns true if the resource kind is namespaced.

func IsSharedResource Uses

func IsSharedResource(o unstructured.Unstructured) bool

IsSharedResource returns true if the resource lifecycle is shared.

type Cmd Uses

type Cmd struct {
    // contains filtered or unexported fields
}

Cmd implements a wrapper on os/exec.cmd

func NewCmd Uses

func NewCmd(command string, args ...string) *Cmd

func (*Cmd) Run Uses

func (c *Cmd) Run() error

func (*Cmd) RunAndCapture Uses

func (c *Cmd) RunAndCapture() (lines []string, err error)

func (*Cmd) RunWithEcho Uses

func (c *Cmd) RunWithEcho() error

func (*Cmd) Stdin Uses

func (c *Cmd) Stdin(in io.Reader) *Cmd

Package util imports 11 packages (graph) and is imported by 4 packages. Updated 2020-06-27. Refresh now. Tools for package owners.