builder

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package builder implements builder and CRDs for creating Bootstrap objects for testing. Important: KubeadmConfig 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 KubeadmConfigBuilder

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

KubeadmConfigBuilder contains the information needed to produce a KubeadmConfig.

func KubeadmConfig

func KubeadmConfig(namespace, name string) *KubeadmConfigBuilder

KubeadmConfig returns a KubeadmConfigBuilder with the supplied name and namespace.

func (*KubeadmConfigBuilder) Build

Build produces a KubeadmConfig from the variable in the KubeadmConfigBuilder.

func (*KubeadmConfigBuilder) Unstructured

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

Unstructured produces a KubeadmConfig as an unstructured Kubernetes object.

func (*KubeadmConfigBuilder) WithClusterConfig

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

WithClusterConfig adds the passed ClusterConfig to the KubeadmConfigBuilder.

func (*KubeadmConfigBuilder) WithInitConfig

WithInitConfig adds the passed InitConfig to the KubeadmConfigBuilder.

func (*KubeadmConfigBuilder) WithJoinConfig

WithJoinConfig adds the passed JoinConfig to the KubeadmConfigBuilder.

Jump to

Keyboard shortcuts

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