Documentation
¶
Index ¶
- type Option
- func WithAnnotationsPopulated() Option
- func WithControllerOwnerReference(owner metav1.Object) Option
- func WithIncrementedResourceVersion() Option
- func WithLabel(key, value string) Option
- func WithName(name string) Option
- func WithNamePostfix(postfix string) Option
- func WithNamespace(namespace string) Option
- func WithResourceVersion(resourceVersion string) Option
- func WithUID(uid string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option defines a function signature for any function that wants to be passed into Build
func WithAnnotationsPopulated ¶
func WithAnnotationsPopulated() Option
WithAnnotationsPopulated ensures that object.Annotations is not nil.
func WithControllerOwnerReference ¶
WithControllerOwnerReference sets the owner reference to the supplied object.
func WithIncrementedResourceVersion ¶ added in v1.0.2
func WithIncrementedResourceVersion() Option
WithIncrementedResourceVersion increments by one the resource version on the supplied object. If the resource version is not an integer, then the new resource version will be set to 1.
func WithNamePostfix ¶
WithNamePostfix appends the string passed in to the object.Name field when building an with Build.
func WithNamespace ¶
WithNamespace sets the object.Namespace field when building an object with Build.
func WithResourceVersion ¶ added in v1.0.2
WithResourceVersion sets the specified resource version on the supplied object.