Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
Option defines a function signature for any function that wants to be passed into Build
func Generic ¶
Generic allows common functions applicable to all objects to be used as Options to Build
func WithControllerOwnerReference ¶ added in v1.0.2
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 WithLabelOwner ¶ added in v1.0.2
func WithLabelOwner(owner *hivev1.ClusterDeployment) Option
WithLabelOwner sets the labels so that the specific ClusterDeployment is the labeled as the owner.
func WithResourceVersion ¶ added in v1.0.2
WithResourceVersion sets the specified resource version on the supplied object.
func WithTypeMeta ¶ added in v1.0.2
func WithTypeMeta() Option
WithTypeMeta populates the type meta for the object.