utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(namespace string, object map[string]interface{}) error

func Delete

func Delete(namespace string, object map[string]interface{}) error

func GetField

func GetField(namespace, kind, name, jsonPath string) (string, error)

func GetNonEmptyLines

func GetNonEmptyLines(output string) []string

GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.

func GetProjectDir

func GetProjectDir() (string, error)

GetProjectDir will return the directory where the project is

func GitHubRecorderRoundTripper

func GitHubRecorderRoundTripper(ctx context.Context, base http.RoundTripper, opts *recorder.Options) (*recorder.Recorder, error)

nolint

func InstallCertManager

func InstallCertManager() error

InstallCertManager installs the cert manager bundle.

func InstallPrometheusOperator

func InstallPrometheusOperator() error

InstallPrometheusOperator installs the prometheus Operator to be used to export the enabled metrics.

func LoadEnvVarsError

func LoadEnvVarsError(names ...string) (map[string]string, error)

func LoadImageToKindClusterWithName

func LoadImageToKindClusterWithName(name string) error

LoadImageToKindCluster loads a local docker image to the kind cluster

func LoadPodmanImageToKindClusterWithName

func LoadPodmanImageToKindClusterWithName(name string) (err error)

LoadImageToKindCluster loads a local docker image to the kind cluster

func Patch

func Patch(namespace, kind, name, patch string) error

func Run

func Run(cmd *exec.Cmd) ([]byte, error)

Run executes the provided command within this context

func UninstallCertManager

func UninstallCertManager()

UninstallCertManager uninstalls the cert manager

func UninstallPrometheusOperator

func UninstallPrometheusOperator()

UninstallPrometheusOperator uninstalls the prometheus

func VerifyPodUp

func VerifyPodUp(namespace, name string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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