package
0.0.0-20250224063251-fdc723cf6198
Repository: https://github.com/gitops-tools/gitpoller-controller.git
Documentation: pkg.go.dev

# Functions

AssertErrorMatch will fail if the error doesn't match the provided error.
AssertNoError will fail if the provided err value is an error.
AssertNotFound will fail if the provided err value not a NotFound error from the K8s client API.
GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.
GetProjectDir will return the directory where the project is.
InstallCertManager installs the cert manager bundle.
InstallPrometheusOperator installs the prometheus Operator to be used to export the enabled metrics.
LoadImageToKindClusterWithName loads a local docker image to the kind cluster.
MakeGitHubAPIServer is used during testing to create an HTTP server to return fixtures if the request matches.
MatchErrorString takes a string and matches on the error and returns true if the string matches the error.
NewSecret creates and returns a new Secret.
Run executes the provided command within this context.
UninstallCertManager uninstalls the cert manager.
UninstallPrometheusOperator uninstalls the prometheus.