utils

package
v1.5.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNonEmptyLines

func GetNonEmptyLines(output string) []string

GetNonEmptyLines splits command output into lines, dropping empty ones.

func GetProjectDir

func GetProjectDir() (string, error)

GetProjectDir returns the project's root directory.

func InstallCertManager

func InstallCertManager() error

InstallCertManager installs the cert-manager bundle.

func InstallThirdPartyCRDs

func InstallThirdPartyCRDs() error

InstallThirdPartyCRDs installs the CRDs the operator requires — Flux's HelmRepository and the Gateway API's Gateway. SetupWithManager refuses to start without them. See test/crd/README.md to refresh the copies.

func IsCertManagerCRDsInstalled

func IsCertManagerCRDsInstalled() bool

IsCertManagerCRDsInstalled reports whether any cert-manager CRD is present.

func LoadImageToKindClusterWithName

func LoadImageToKindClusterWithName(name string) error

LoadImageToKindClusterWithName loads a local docker image into the kind cluster.

func Run

func Run(cmd *exec.Cmd) (string, error)

Run executes cmd from the project directory.

func UncommentCode

func UncommentCode(filename, target, prefix string) error

UncommentCode strips prefix from every line of target within the file. The target content may span multiple lines.

func UninstallCertManager

func UninstallCertManager()

UninstallCertManager uninstalls cert-manager.

func UninstallThirdPartyCRDs

func UninstallThirdPartyCRDs()

UninstallThirdPartyCRDs removes the CRDs installed by InstallThirdPartyCRDs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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