Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewObjectFromGVK ¶ added in v0.2.0
NewObjectFromGVK instanciates a new client.Object for the provided GVK. GVK should be known in the provided scheme.
Types ¶
type Builder ¶
type Builder interface {
// Build returns the initial object.
// Most of the time, it should only return object with its object metas
Build() client.Object
// Enabled returns whenever the builder is enabled in the current context.
// It's a convenient method to know if the resource created by the builder should be created or deleted.
Enabled() bool
// Update updates the provided object to match builder's expected resource state.
Update(client.Object) error
}
A Builder provides features to create a kubernetes resource.
type Comparer ¶
type Comparer interface {
Equal()
}
A Comparer provides a custom function to compare two resources returned by a Builder.
type Dependency ¶
A Dependency is a reference to an object using its name, namespace and its object kind.
Click to show internal directories.
Click to hide internal directories.