Documentation
¶
Index ¶
- func Build(opts ...Option) *hivev1.ClusterDeployment
- type Builder
- type Option
- func Broken() Option
- func Generic(opt generic.Option) Option
- func InstallRestarts(restarts int) Option
- func Installed() Option
- func InstalledTimestamp(instTime time.Time) Option
- func PreserveOnDelete() Option
- func WithAWSPlatform(platform *hivev1aws.Platform) Option
- func WithAnnotation(key, value string) Option
- func WithAzurePlatform(platform *hivev1azure.Platform) Option
- func WithClusterPoolReference(namespace, poolName, claimName string) Option
- func WithClusterVersion(version string) Option
- func WithCondition(cond hivev1.ClusterDeploymentCondition) Option
- func WithGCPPlatform(platform *hivev1gcp.Platform) Option
- func WithHibernateAfter(dur time.Duration) Option
- func WithLabel(key, value string) Option
- func WithName(name string) Option
- func WithNamespace(namespace string) Option
- func WithPoolVersion(poolVersion string) Option
- func WithPowerState(powerState hivev1.ClusterPowerState) Option
- func WithUnclaimedClusterPoolReference(namespace, poolName string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(opts ...Option) *hivev1.ClusterDeployment
Build runs each of the functions passed in to generate the object.
Types ¶
type Builder ¶ added in v1.0.5
type Builder interface { Build(opts ...Option) *hivev1.ClusterDeployment Options(opts ...Option) Builder GenericOptions(opts ...generic.Option) Builder }
func BasicBuilder ¶ added in v1.0.5
func BasicBuilder() Builder
func FullBuilder ¶ added in v1.0.5
func FullBuilder(namespace, name string, typer runtime.ObjectTyper) Builder
type Option ¶
type Option func(*hivev1.ClusterDeployment)
Option defines a function signature for any function that wants to be passed into Build
func Broken ¶ added in v1.1.16
func Broken() Option
Broken uses ProvisionStopped=True to make the CD be recognized as broken.
func Generic ¶
Generic allows common functions applicable to all objects to be used as Options to Build
func InstallRestarts ¶ added in v1.0.19
func InstalledTimestamp ¶ added in v1.0.11
func PreserveOnDelete ¶ added in v1.1.10
func PreserveOnDelete() Option
func WithAWSPlatform ¶ added in v1.1.0
WithAWSPlatform sets the specified aws platform on the supplied object.
func WithAnnotation ¶ added in v1.1.2
WithAnnotation sets the specified annotation on the supplied object.
func WithAzurePlatform ¶ added in v1.1.6
func WithAzurePlatform(platform *hivev1azure.Platform) Option
WithAzurePlatform sets the specified azure platform on the supplied object.
func WithClusterPoolReference ¶ added in v1.0.6
func WithClusterVersion ¶ added in v1.0.11
func WithCondition ¶ added in v1.0.1
func WithCondition(cond hivev1.ClusterDeploymentCondition) Option
WithCondition adds the specified condition to the ClusterDeployment
func WithGCPPlatform ¶ added in v1.1.6
WithGCPPlatform sets the specified gcp platform on the supplied object.
func WithHibernateAfter ¶ added in v1.0.11
func WithName ¶ added in v1.0.5
WithName sets the object.Name field when building an object with Build.
func WithNamespace ¶ added in v1.0.5
WithNamespace sets the object.Namespace field when building an object with Build.
func WithPoolVersion ¶ added in v1.1.14
WithPoolVersion sets the cluster pool spec hash annotation on the supplied object.
func WithPowerState ¶ added in v1.0.7
func WithPowerState(powerState hivev1.ClusterPowerState) Option