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 ¶
- type OCNEConfigBuilder
- func (k *OCNEConfigBuilder) Build() *bootstrapv1.OCNEConfig
- func (k *OCNEConfigBuilder) Unstructured() *unstructured.Unstructured
- func (k *OCNEConfigBuilder) WithClusterConfig(clusterConf *bootstrapv1.ClusterConfiguration) *OCNEConfigBuilder
- func (k *OCNEConfigBuilder) WithInitConfig(initConf *bootstrapv1.InitConfiguration) *OCNEConfigBuilder
- func (k *OCNEConfigBuilder) WithJoinConfig(joinConf *bootstrapv1.JoinConfiguration) *OCNEConfigBuilder
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 ¶
func (k *OCNEConfigBuilder) Build() *bootstrapv1.OCNEConfig
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.