Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(opts ...Option) *hivev1.MachinePool
Build runs each of the functions passed in to generate the object.
func BuildFull ¶
func BuildFull(namespace, poolName, cdName string, options ...Option) *hivev1.MachinePool
BuildFull builds a MachinePool with the specified pool name for the ClusterDeployment, namespace, and supplied options. This will also fill out the type meta and resource version for the MachinePool.
Types ¶
type Builder ¶
type Builder interface { Build(opts ...Option) *hivev1.MachinePool Options(opts ...Option) Builder GenericOptions(opts ...generic.Option) Builder }
func BasicBuilder ¶
func BasicBuilder() Builder
func FullBuilder ¶
func FullBuilder(namespace, poolName, clusterDeploymentName string, typer runtime.ObjectTyper) Builder
type Option ¶
type Option func(*hivev1.MachinePool)
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 WithNamespace ¶
WithNamespace sets the object.Namespace field when building an object with Build.
func WithPoolNameForClusterDeployment ¶
WithName sets the object.Name field when building an object with Build.
Click to show internal directories.
Click to hide internal directories.