Documentation
¶
Index ¶
- func CleanupTempFile(path string)
- func ExtractImageFromMakefile() (string, error)
- func GetNonEmptyLines(output string) []string
- func GetProjectDir() (string, error)
- func InstallCertManager() error
- func InstallPrometheusOperator(clusterType string) error
- func LoadImageToKindClusterWithName(name string) error
- func Run(cmd *exec.Cmd) ([]byte, error)
- func UninstallCertManager()
- func UninstallPrometheusOperator()
- func UpdateKruizeSampleYAML(clusterType, namespace, kruizeImage, kruizeUIImage string) (string, error)
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
ExtractImageFromMakefile extracts the operator image from Makefile
func GetNonEmptyLines ¶
GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.
func GetProjectDir ¶
GetProjectDir will return the directory where the project is
func InstallCertManager ¶
func InstallCertManager() error
InstallCertManager installs the cert manager bundle.
func InstallPrometheusOperator ¶
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 ¶
LoadImageToKindCluster loads a local docker image to the kind cluster
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.