Documentation
¶
Index ¶
- func DebugNamespace(namespace string)
- func GetControllerLogs(deploymentName, namespace string, tailLines int)
- func GetDeploymentStatus(deploymentName, namespace string)
- func GetNonEmptyLines(output string) []string
- func GetProjectDir() (string, error)
- func InstallCertManager() error
- func InstallPrometheusOperator() error
- func IsCertManagerCRDsInstalled() bool
- func IsPrometheusCRDsInstalled() bool
- func LoadImageToKindClusterWithName(name string) error
- func Run(cmd *exec.Cmd) (string, error)
- func RunWithTimeout(cmd *exec.Cmd, timeoutSecs int) (string, error)
- func UncommentCode(filename, target, prefix string) error
- func UninstallCertManager()
- func UninstallPrometheusOperator()
- func WaitForCRD(crdName string, timeoutSecs int) error
- func WaitForDeployment(deploymentName, namespace string, timeoutSecs int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugNamespace ¶
func DebugNamespace(namespace string)
DebugNamespace provides comprehensive debugging info for a namespace
func GetControllerLogs ¶
GetControllerLogs gets controller logs for debugging
func GetDeploymentStatus ¶
func GetDeploymentStatus(deploymentName, namespace string)
GetDeploymentStatus gets detailed deployment status for debugging
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 ¶
func InstallPrometheusOperator() error
InstallPrometheusOperator installs the prometheus Operator to be used to export the enabled metrics.
func IsCertManagerCRDsInstalled ¶
func IsCertManagerCRDsInstalled() bool
IsCertManagerCRDsInstalled checks if any Cert Manager CRDs are installed by verifying the existence of key CRDs related to Cert Manager.
func IsPrometheusCRDsInstalled ¶
func IsPrometheusCRDsInstalled() bool
IsPrometheusCRDsInstalled checks if any Prometheus CRDs are installed by verifying the existence of key CRDs related to Prometheus.
func LoadImageToKindClusterWithName ¶
LoadImageToKindClusterWithName loads a local docker image to the kind cluster
func RunWithTimeout ¶
RunWithTimeout executes a command with a timeout and verbose logging
func UncommentCode ¶
UncommentCode searches for target in the file and remove the comment prefix of the target content. The target content may span multiple lines.
func UninstallCertManager ¶
func UninstallCertManager()
UninstallCertManager uninstalls the cert manager
func UninstallPrometheusOperator ¶
func UninstallPrometheusOperator()
UninstallPrometheusOperator uninstalls the prometheus
func WaitForCRD ¶
WaitForCRD waits for a CRD to be established
func WaitForDeployment ¶
WaitForDeployment waits for a deployment to be ready
Types ¶
This section is empty.