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 ¶
- type KubeadmConfigBuilder
- func (k *KubeadmConfigBuilder) Build() *bootstrapv1.KubeadmConfig
- func (k *KubeadmConfigBuilder) Unstructured() *unstructured.Unstructured
- func (k *KubeadmConfigBuilder) WithClusterConfig(clusterConf *bootstrapv1.ClusterConfiguration) *KubeadmConfigBuilder
- func (k *KubeadmConfigBuilder) WithInitConfig(initConf *bootstrapv1.InitConfiguration) *KubeadmConfigBuilder
- func (k *KubeadmConfigBuilder) WithJoinConfig(joinConf *bootstrapv1.JoinConfiguration) *KubeadmConfigBuilder
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 ¶
func (k *KubeadmConfigBuilder) Build() *bootstrapv1.KubeadmConfig
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 ¶
func (k *KubeadmConfigBuilder) WithInitConfig(initConf *bootstrapv1.InitConfiguration) *KubeadmConfigBuilder
WithInitConfig adds the passed InitConfig to the KubeadmConfigBuilder.
func (*KubeadmConfigBuilder) WithJoinConfig ¶
func (k *KubeadmConfigBuilder) WithJoinConfig(joinConf *bootstrapv1.JoinConfiguration) *KubeadmConfigBuilder
WithJoinConfig adds the passed JoinConfig to the KubeadmConfigBuilder.