utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupTempFile added in v0.0.3

func CleanupTempFile(path string)

CleanupTempFile removes a temporary file created by UpdateKruizeSampleYAML

func ExtractImageFromMakefile added in v0.0.3

func ExtractImageFromMakefile() (string, error)

ExtractImageFromMakefile extracts the operator image from Makefile

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 InstallCertManager

func InstallCertManager() error

InstallCertManager installs the cert manager bundle.

func InstallPrometheusOperator

func InstallPrometheusOperator(clusterType string) error

InstallPrometheusOperator installs kube-prometheus stack (includes Prometheus Operator, Prometheus, Grafana, etc.) This installs in the monitoring namespace by default clusterType: "kind" or "minikube" - determines which kube-prometheus version to use

func LoadImageToKindClusterWithName

func LoadImageToKindClusterWithName(name string) error

LoadImageToKindCluster loads a local docker image to the kind cluster

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 kube-prometheus stack Only uninstalls if it was installed by this test run

func UpdateKruizeSampleYAML added in v0.0.3

func UpdateKruizeSampleYAML(clusterType, namespace, kruizeImage, kruizeUIImage string) (string, error)

UpdateKruizeSampleYAML creates a temporary copy of v1alpha1_kruize.yaml with the specified cluster type, namespace, and optional images Returns the path to the temporary file, which should be cleaned up by the caller

Types

This section is empty.

Jump to

Keyboard shortcuts

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