fixture

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPartOfArgoCDLabel added in v0.9.0

func AddPartOfArgoCDLabel(objs ...metav1.Object)

func CaptureStderr

func CaptureStderr(callback func()) (string, error)

func CaptureStdout

func CaptureStdout(callback func()) (string, error)

func MustCreateSecretFromFile

func MustCreateSecretFromFile(filepath string) *v1.Secret

MustCreateSecretFromFile reads a Kubernetes secret definition from filepath and returns a Secret object. Panics on error.

func MustCreateSecretFromJson

func MustCreateSecretFromJson(jsonData string) *v1.Secret

MustCreateSecretFromJson creates a Kubernetes secret from given JSON data and returns a Secret object. Panics on error.

func MustReadFile

func MustReadFile(path string) string

MustReadFile must read a file from given path. Panics if it can't.

func NewConfigMap added in v0.9.0

func NewConfigMap(namespace, name string, entries map[string]string) *v1.ConfigMap

NewSecret creates a new Kubernetes secret object in given namespace, with given name and with given data.

func NewSecret

func NewSecret(namespace, name string, entries map[string][]byte) *v1.Secret

NewSecret creates a new Kubernetes secret object in given namespace, with given name and with given data.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL