Documentation ¶
Index ¶
- type BootstrapKubeconfigBuilder
- func (b *BootstrapKubeconfigBuilder) Build() *infrastructurev1beta1.BootstrapKubeconfig
- func (b *BootstrapKubeconfigBuilder) WithCAData(caData string) *BootstrapKubeconfigBuilder
- func (b *BootstrapKubeconfigBuilder) WithServer(server string) *BootstrapKubeconfigBuilder
- func (b *BootstrapKubeconfigBuilder) WithSkipTLSVerify(skip bool) *BootstrapKubeconfigBuilder
- type ByoClusterBuilder
- func (c *ByoClusterBuilder) Build() *infrastructurev1beta1.ByoCluster
- func (c *ByoClusterBuilder) WithBundleBaseRegistry(registry string) *ByoClusterBuilder
- func (c *ByoClusterBuilder) WithBundleTag(tag string) *ByoClusterBuilder
- func (c *ByoClusterBuilder) WithOwnerCluster(cluster *clusterv1.Cluster) *ByoClusterBuilder
- type ByoHostBuilder
- type ByoMachineBuilder
- func (b *ByoMachineBuilder) Build() *infrastructurev1beta1.ByoMachine
- func (b *ByoMachineBuilder) WithClusterLabel(clusterName string) *ByoMachineBuilder
- func (b *ByoMachineBuilder) WithLabelSelector(selector map[string]string) *ByoMachineBuilder
- func (b *ByoMachineBuilder) WithOwnerMachine(machine *clusterv1.Machine) *ByoMachineBuilder
- type CertificateSigningRequestBuilder
- type ClusterBuilder
- type K8sInstallerConfigBuilder
- func (b *K8sInstallerConfigBuilder) Build() *infrastructurev1beta1.K8sInstallerConfig
- func (b *K8sInstallerConfigBuilder) WithBundleRepo(bundleRepo string) *K8sInstallerConfigBuilder
- func (b *K8sInstallerConfigBuilder) WithBundleType(bundleType string) *K8sInstallerConfigBuilder
- func (b *K8sInstallerConfigBuilder) WithClusterLabel(clusterName string) *K8sInstallerConfigBuilder
- func (b *K8sInstallerConfigBuilder) WithName(name string) *K8sInstallerConfigBuilder
- func (b *K8sInstallerConfigBuilder) WithOwnerByoMachine(byomachine *infrastructurev1beta1.ByoMachine) *K8sInstallerConfigBuilder
- type K8sInstallerConfigTemplateBuilder
- func (b *K8sInstallerConfigTemplateBuilder) Build() *infrastructurev1beta1.K8sInstallerConfigTemplate
- func (b *K8sInstallerConfigTemplateBuilder) WithBundleRepo(bundleRepo string) *K8sInstallerConfigTemplateBuilder
- func (b *K8sInstallerConfigTemplateBuilder) WithBundleType(bundleType string) *K8sInstallerConfigTemplateBuilder
- type MachineBuilder
- type NamespaceBuilder
- type NodeBuilder
- type SecretBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapKubeconfigBuilder ¶
type BootstrapKubeconfigBuilder struct {
// contains filtered or unexported fields
}
K8sInstallerConfigTemplateBuilder holds the variables and objects required to build an infrastructurev1beta1.K8sInstallerConfigTemplate
func BootstrapKubeconfig ¶
func BootstrapKubeconfig(namespace, name string) *BootstrapKubeconfigBuilder
func (*BootstrapKubeconfigBuilder) Build ¶
func (b *BootstrapKubeconfigBuilder) Build() *infrastructurev1beta1.BootstrapKubeconfig
Build returns a BootstrapKubeconfig with the attributes added to the BootstrapKubeconfigBuilder
func (*BootstrapKubeconfigBuilder) WithCAData ¶
func (b *BootstrapKubeconfigBuilder) WithCAData(caData string) *BootstrapKubeconfigBuilder
WithCAData adds the passed CA Data to the BootstrapKubeconfigBuilder
func (*BootstrapKubeconfigBuilder) WithServer ¶
func (b *BootstrapKubeconfigBuilder) WithServer(server string) *BootstrapKubeconfigBuilder
WithServer adds the passed server to the BootstrapKubeconfigBuilder
func (*BootstrapKubeconfigBuilder) WithSkipTLSVerify ¶
func (b *BootstrapKubeconfigBuilder) WithSkipTLSVerify(skip bool) *BootstrapKubeconfigBuilder
WithSkipTLSVerify adds the passed skip flag value to the BootstrapKubeconfigBuilder
type ByoClusterBuilder ¶
type ByoClusterBuilder struct {
// contains filtered or unexported fields
}
ByoClusterBuilder holds the variables and objects required to build an infrastructurev1beta1.ByoCluster
func ByoCluster ¶
func ByoCluster(namespace, name string) *ByoClusterBuilder
ByoCluster returns a ByoClusterBuilder with the given name and namespace
func (*ByoClusterBuilder) Build ¶
func (c *ByoClusterBuilder) Build() *infrastructurev1beta1.ByoCluster
Build returns a Cluster with the attributes added to the ByoClusterBuilder
func (*ByoClusterBuilder) WithBundleBaseRegistry ¶
func (c *ByoClusterBuilder) WithBundleBaseRegistry(registry string) *ByoClusterBuilder
WithBundleBaseRegistry adds the passed registry value to the ByoClusterBuilder
func (*ByoClusterBuilder) WithBundleTag ¶
func (c *ByoClusterBuilder) WithBundleTag(tag string) *ByoClusterBuilder
WithBundleTag adds the passed bundleTag value to the ByoClusterBuilder
func (*ByoClusterBuilder) WithOwnerCluster ¶
func (c *ByoClusterBuilder) WithOwnerCluster(cluster *clusterv1.Cluster) *ByoClusterBuilder
WithOwnerCluster adds the passed Owner Cluster to the ByoClusterBuilder
type ByoHostBuilder ¶
type ByoHostBuilder struct {
// contains filtered or unexported fields
}
ByoHostBuilder holds the variables and objects required to build an infrastructurev1beta1.ByoHost
func ByoHost ¶
func ByoHost(namespace, name string) *ByoHostBuilder
ByoHost returns a ByoHostBuilder with the given name and namespace
func (*ByoHostBuilder) Build ¶
func (b *ByoHostBuilder) Build() *infrastructurev1beta1.ByoHost
Build returns a ByoHost with the attributes added to the ByoHostBuilder
func (*ByoHostBuilder) WithLabels ¶
func (b *ByoHostBuilder) WithLabels(labels map[string]string) *ByoHostBuilder
WithLabels adds the passed labels to the ByoHostBuilder
type ByoMachineBuilder ¶
type ByoMachineBuilder struct {
// contains filtered or unexported fields
}
ByoMachineBuilder holds the variables and objects required to build an infrastructurev1beta1.ByoMachine
func ByoMachine ¶
func ByoMachine(namespace, name string) *ByoMachineBuilder
ByoMachine returns a ByoMachineBuilder with the given name and namespace
func (*ByoMachineBuilder) Build ¶
func (b *ByoMachineBuilder) Build() *infrastructurev1beta1.ByoMachine
Build returns a ByoMachine with the attributes added to the ByoMachineBuilder
func (*ByoMachineBuilder) WithClusterLabel ¶
func (b *ByoMachineBuilder) WithClusterLabel(clusterName string) *ByoMachineBuilder
WithClusterLabel adds the passed cluster label to the ByoMachineBuilder
func (*ByoMachineBuilder) WithLabelSelector ¶
func (b *ByoMachineBuilder) WithLabelSelector(selector map[string]string) *ByoMachineBuilder
WithLabelSelector adds the passed cluster label to the ByoMachineBuilder
func (*ByoMachineBuilder) WithOwnerMachine ¶
func (b *ByoMachineBuilder) WithOwnerMachine(machine *clusterv1.Machine) *ByoMachineBuilder
WithOwnerMachine adds the passed Owner Machine to the ByoMachineBuilder
type CertificateSigningRequestBuilder ¶
type CertificateSigningRequestBuilder struct {
// contains filtered or unexported fields
}
CertificateSigningRequestBuilder hold the variables and objects required to build a certv1.CertificateSigningRequest
func CertificateSigningRequest ¶
func CertificateSigningRequest(name, cn, org string, privKeySize int) *CertificateSigningRequestBuilder
CertificateSigningRequest returns a CertificateSigningRequestBuilder with the given name, cn, org and privKeySize
func (*CertificateSigningRequestBuilder) Build ¶
func (csrb *CertificateSigningRequestBuilder) Build() (*certv1.CertificateSigningRequest, error)
Build returns a certv1.CertificateSigningRequest with the attributes added to the CertificateSigningRequestBuilder
type ClusterBuilder ¶
type ClusterBuilder struct {
// contains filtered or unexported fields
}
ClusterBuilder holds the variables and objects required to build a clusterv1.Cluster
func Cluster ¶
func Cluster(namespace, name string) *ClusterBuilder
Cluster returns a ClusterBuilder with the given name and namespace
func (*ClusterBuilder) Build ¶
func (c *ClusterBuilder) Build() *clusterv1.Cluster
Build returns a Cluster with the attributes added to the ClusterBuilder
func (*ClusterBuilder) WithInfrastructureRef ¶
func (c *ClusterBuilder) WithInfrastructureRef(byoCluster *infrastructurev1beta1.ByoCluster) *ClusterBuilder
WithInfrastructureRef adds the passed byoCluster value to the ClusterBuilder
func (*ClusterBuilder) WithPausedField ¶
func (c *ClusterBuilder) WithPausedField(paused bool) *ClusterBuilder
WithPausedField adds the passed paused value to the ClusterBuilder
type K8sInstallerConfigBuilder ¶
type K8sInstallerConfigBuilder struct {
// contains filtered or unexported fields
}
K8sInstallerConfigBuilder holds the variables and objects required to build an infrastructurev1beta1.K8sInstallerConfig
func K8sInstallerConfig ¶
func K8sInstallerConfig(namespace, generatedName string) *K8sInstallerConfigBuilder
K8sInstallerConfig returns a K8sInstallerConfigBuilder with the given generated name and namespace
func (*K8sInstallerConfigBuilder) Build ¶
func (b *K8sInstallerConfigBuilder) Build() *infrastructurev1beta1.K8sInstallerConfig
Build returns a K8sInstallerConfig with the attributes added to the K8sInstallerConfigBuilder
func (*K8sInstallerConfigBuilder) WithBundleRepo ¶
func (b *K8sInstallerConfigBuilder) WithBundleRepo(bundleRepo string) *K8sInstallerConfigBuilder
WithBundleRepo adds the passed bundleRepo to the K8sInstallerConfigBuilder
func (*K8sInstallerConfigBuilder) WithBundleType ¶
func (b *K8sInstallerConfigBuilder) WithBundleType(bundleType string) *K8sInstallerConfigBuilder
WithBundleType adds the passed bundleType to the K8sInstallerConfigBuilder
func (*K8sInstallerConfigBuilder) WithClusterLabel ¶
func (b *K8sInstallerConfigBuilder) WithClusterLabel(clusterName string) *K8sInstallerConfigBuilder
WithClusterLabel adds the passed cluster label to the K8sInstallerConfigBuilder
func (*K8sInstallerConfigBuilder) WithName ¶
func (b *K8sInstallerConfigBuilder) WithName(name string) *K8sInstallerConfigBuilder
WithName adds the name to K8sInstallerConfigBuilder
func (*K8sInstallerConfigBuilder) WithOwnerByoMachine ¶
func (b *K8sInstallerConfigBuilder) WithOwnerByoMachine(byomachine *infrastructurev1beta1.ByoMachine) *K8sInstallerConfigBuilder
WithOwnerByoMachine adds the passed Owner ByoMachine to the K8sInstallerConfigBuilder
type K8sInstallerConfigTemplateBuilder ¶
type K8sInstallerConfigTemplateBuilder struct {
// contains filtered or unexported fields
}
K8sInstallerConfigTemplateBuilder holds the variables and objects required to build an infrastructurev1beta1.K8sInstallerConfigTemplate
func K8sInstallerConfigTemplate ¶
func K8sInstallerConfigTemplate(namespace, name string) *K8sInstallerConfigTemplateBuilder
K8sInstallerConfigTemplate returns a K8sInstallerConfigTemplateBuilder with the given generated name and namespace
func (*K8sInstallerConfigTemplateBuilder) Build ¶
func (b *K8sInstallerConfigTemplateBuilder) Build() *infrastructurev1beta1.K8sInstallerConfigTemplate
Build returns a K8sInstallerConfigTemplate with the attributes added to the K8sInstallerConfigTemplateBuilder
func (*K8sInstallerConfigTemplateBuilder) WithBundleRepo ¶
func (b *K8sInstallerConfigTemplateBuilder) WithBundleRepo(bundleRepo string) *K8sInstallerConfigTemplateBuilder
WithBundleRepo adds the passed bundleRepo to the K8sInstallerConfigTemplateBuilder
func (*K8sInstallerConfigTemplateBuilder) WithBundleType ¶
func (b *K8sInstallerConfigTemplateBuilder) WithBundleType(bundleType string) *K8sInstallerConfigTemplateBuilder
WithBundleType adds the passed bundleType to the K8sInstallerConfigTemplateBuilder
type MachineBuilder ¶
type MachineBuilder struct {
// contains filtered or unexported fields
}
MachineBuilder holds the variables and objects required to build a clusterv1.Machine
func Machine ¶
func Machine(namespace, name string) *MachineBuilder
Machine returns a MachineBuilder with the given name and namespace
func (*MachineBuilder) Build ¶
func (m *MachineBuilder) Build() *clusterv1.Machine
Build returns a Machine with the attributes added to the MachineBuilder
func (*MachineBuilder) WithBootstrapDataSecret ¶
func (m *MachineBuilder) WithBootstrapDataSecret(secret string) *MachineBuilder
WithBootstrapDataSecret adds the passed bootstrap secret to the MachineBuilder
func (*MachineBuilder) WithClusterName ¶
func (m *MachineBuilder) WithClusterName(cluster string) *MachineBuilder
WithClusterName adds the passed Cluster to the MachineBuilder
func (*MachineBuilder) WithClusterVersion ¶
func (m *MachineBuilder) WithClusterVersion(version string) *MachineBuilder
WithClusterVersion adds the passed cluster version to the MachineBuilder
type NamespaceBuilder ¶
type NamespaceBuilder struct {
// contains filtered or unexported fields
}
NamespaceBuilder holds the variables and objects required to build a corev1.Namespace
func Namespace ¶
func Namespace(name string) *NamespaceBuilder
Namespace returns a NamespaceBuilder with the given name
func (*NamespaceBuilder) Build ¶
func (n *NamespaceBuilder) Build() *corev1.Namespace
Build returns a Namespace with the attributes added to the NamespaceBuilder
type NodeBuilder ¶
type NodeBuilder struct {
// contains filtered or unexported fields
}
NodeBuilder holds the variables and objects required to build a corev1.Node
func Node ¶
func Node(namespace, name string) *NodeBuilder
Node returns a NodeBuilder with the given name and namespace
func (*NodeBuilder) Build ¶
func (n *NodeBuilder) Build() *corev1.Node
Build returns a Node with the attributes added to the NodeBuilder
func (*NodeBuilder) WithProviderID ¶
func (n *NodeBuilder) WithProviderID(providerID string) *NodeBuilder
WithProviderID adds the passed providerID to the NodeBuilder
type SecretBuilder ¶
type SecretBuilder struct {
// contains filtered or unexported fields
}
SecretBuilder holds the variables and objects required to build a corev1.Secret
func Secret ¶
func Secret(namespace, name string) *SecretBuilder
Secret returns a SecretBuilder with the given name and namespace
func (*SecretBuilder) Build ¶
func (s *SecretBuilder) Build() *corev1.Secret
Build returns a Secret with the attributes added to the SecretBuilder
func (*SecretBuilder) WithData ¶
func (s *SecretBuilder) WithData(value string) *SecretBuilder
WithData adds the passed data to the SecretBuilder
func (*SecretBuilder) WithKeyData ¶
func (s *SecretBuilder) WithKeyData(key, data string) *SecretBuilder
WithKeyData adds the passed key and data to the SecretBuilder