Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultNameQualifier = "go." + plugins.DefaultNameQualifier
DefaultNameQualifier is the suffix appended to all kubebuilder plugin names for Golang operators.
Variables ¶
This section is empty.
Functions ¶
func FindCurrentRepo ¶
FindCurrentRepo attempts to determine the current repository though a combination of go/packages and `go mod` commands/tricks.
func ValidateGoVersion ¶
ValidateGoVersion verifies that Go is installed and the current go version is supported by a plugin.
Types ¶
type GoVersion ¶
type GoVersion struct {
// contains filtered or unexported fields
}
GoVersion describes a Go version.
type Options ¶
type Options struct {
// Plural is the resource's kind plural form.
Plural string
// ExternalAPIPath allows to inform a path for APIs not defined in the project
ExternalAPIPath string
// ExternalAPIPath allows to inform the resource domain to build the Qualified Group
// to generate the RBAC markers
ExternalAPIDomain string
// Namespaced is true if the resource should be namespaced.
Namespaced bool
// Flags that define which parts should be scaffolded
DoAPI bool
DoController bool
DoDefaulting bool
DoValidation bool
DoConversion bool
// Spoke versions for conversion webhook
Spoke []string
}
Options contains the information required to build a new resource.Resource.
Click to show internal directories.
Click to hide internal directories.