Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNamespace ¶
func CreateNamespace(cs kubernetes.Interface, namespace string, dryRun bool) error
CreateNamespace creates a namespace using the given k8s interface.
func SetLabel ¶
SetLabel is a helper function which sets the specified label and value on the specified object.
func SplitString ¶
SplitString splits the given yaml doc if it's multipart document.
Types ¶
type Errors ¶
type Errors []error
Errors is a slice of error.
func AppendErr ¶
AppendErr appends err to errors if it is not nil and returns the result. If err is nil, it is not appended.
func AppendErrs ¶
AppendErrs appends newErrs to errors and returns the result. If newErrs is empty, nothing is appended.
func NewErrs ¶
NewErrs returns a slice of error with a single element err. If err is nil, returns nil.
Click to show internal directories.
Click to hide internal directories.