package
3.15.1
Repository: https://github.com/kubernetes-sigs/kubebuilder.git
Documentation: pkg.go.dev

# Functions

AppendCodeAtTheEnd appends the given code at the end of the file.
AppendCodeIfNotExist checks if the code does not already exist in the file, and if not, appends it to the end.
EnsureExistAndReplace check if the content exists and then do the replace.
GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.
Deprecated: go/v4 no longer supports v1beta1 option HasDifferentCRDVersion returns true if any other CRD version is tracked in the project configuration.
Deprecated: go/v4 no longer supports v1beta1 option HasDifferentWebhookVersion returns true if any other webhook version is tracked in the project configuration.
HasFileContentWith check if given `text` can be found in file.
No description provided by the author
ImplementWebhooks will mock an webhook data.
InsertCode searches target content in the file and insert `toInsert` after the target.
InsertCodeIfNotExist insert code if it does not already exists.
RandomSuffix returns a 4-letter string.
ReplaceInFile replaces all instances of old with new in the file at path.
ReplaceRegexInFile finds all strings that match `match` and replaces them with `replace` in the file at path.
RunCmd prints the provided message and command and then executes it binding stdout and stderr.
UncommentCode searches for target in the file and remove the comment prefix of the target content.
YesNo reads from stdin looking for one of "y", "yes", "n", "no" and returns true for "y" and false for "n".

# Constants

KubebuilderBinName define the name of the kubebuilder binary to be used in the tests.