builder

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package builder implements builder and CRDs for creating Bootstrap objects for testing. Important: OCNEConfig specific builders should not be used in core CAPI, because this can lead to false assumptions on what we should expect from a bootstrap config provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OCNEConfigBuilder

type OCNEConfigBuilder struct {
	// contains filtered or unexported fields
}

OCNEConfigBuilder contains the information needed to produce a OCNEConfig.

func OCNEConfig

func OCNEConfig(namespace, name string) *OCNEConfigBuilder

OCNEConfig returns a OCNEConfigBuilder with the supplied name and namespace.

func (*OCNEConfigBuilder) Build

Build produces a OCNEConfig from the variable in the OCNEConfigBuilder.

func (*OCNEConfigBuilder) Unstructured

func (k *OCNEConfigBuilder) Unstructured() *unstructured.Unstructured

Unstructured produces a OCNEConfig as an unstructured Kubernetes object.

func (*OCNEConfigBuilder) WithClusterConfig

func (k *OCNEConfigBuilder) WithClusterConfig(clusterConf *bootstrapv1.ClusterConfiguration) *OCNEConfigBuilder

WithClusterConfig adds the passed ClusterConfig to the OCNEConfigBuilder.

func (*OCNEConfigBuilder) WithInitConfig

func (k *OCNEConfigBuilder) WithInitConfig(initConf *bootstrapv1.InitConfiguration) *OCNEConfigBuilder

WithInitConfig adds the passed InitConfig to the OCNEConfigBuilder.

func (*OCNEConfigBuilder) WithJoinConfig

func (k *OCNEConfigBuilder) WithJoinConfig(joinConf *bootstrapv1.JoinConfiguration) *OCNEConfigBuilder

WithJoinConfig adds the passed JoinConfig to the OCNEConfigBuilder.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL