setup

package
v0.0.0-...-3439013 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpokeClusterResources

type SpokeClusterResources struct {
	Name string

	Namespace           *namespace.Builder
	PullSecret          *secret.Builder
	ClusterDeployment   *hive.ClusterDeploymentBuilder
	AgentClusterInstall *assisted.AgentClusterInstallBuilder
	InfraEnv            *assisted.InfraEnvBuilder
	// contains filtered or unexported fields
}

SpokeClusterResources contains necessary resources for creating a spoke cluster.

func NewSpokeCluster

func NewSpokeCluster(apiClient *clients.Settings) *SpokeClusterResources

NewSpokeCluster creates a new instance of SpokeClusterResources.

func (*SpokeClusterResources) Create

Create creates the instantiated spoke cluster resources.

func (*SpokeClusterResources) Delete

func (spoke *SpokeClusterResources) Delete() error

Delete removes all instantiated spoke cluster resources.

func (*SpokeClusterResources) WithAutoGeneratedName

func (spoke *SpokeClusterResources) WithAutoGeneratedName() *SpokeClusterResources

WithAutoGeneratedName generates a random name for the spoke cluster.

func (*SpokeClusterResources) WithDefaultClusterDeployment

func (spoke *SpokeClusterResources) WithDefaultClusterDeployment() *SpokeClusterResources

WithDefaultClusterDeployment creates a default clusterdeployment for the spoke cluster.

func (*SpokeClusterResources) WithDefaultDualStackAgentClusterInstall

func (spoke *SpokeClusterResources) WithDefaultDualStackAgentClusterInstall() *SpokeClusterResources

WithDefaultDualStackAgentClusterInstall creates a default agentclusterinstall with dual-stack networking for the spoke cluster.

func (*SpokeClusterResources) WithDefaultIPv4AgentClusterInstall

func (spoke *SpokeClusterResources) WithDefaultIPv4AgentClusterInstall() *SpokeClusterResources

WithDefaultIPv4AgentClusterInstall creates a default agentclusterinstall with IPv4 networking for the spoke cluster.

func (*SpokeClusterResources) WithDefaultIPv6AgentClusterInstall

func (spoke *SpokeClusterResources) WithDefaultIPv6AgentClusterInstall() *SpokeClusterResources

WithDefaultIPv6AgentClusterInstall creates a default agentclusterinstall with IPv6 networking for the spoke cluster.

func (*SpokeClusterResources) WithDefaultInfraEnv

func (spoke *SpokeClusterResources) WithDefaultInfraEnv() *SpokeClusterResources

WithDefaultInfraEnv creates a default infraenv for the spoke cluster.

func (*SpokeClusterResources) WithDefaultNamespace

func (spoke *SpokeClusterResources) WithDefaultNamespace() *SpokeClusterResources

WithDefaultNamespace creates a default namespace for the spoke cluster.

func (*SpokeClusterResources) WithDefaultPullSecret

func (spoke *SpokeClusterResources) WithDefaultPullSecret() *SpokeClusterResources

WithDefaultPullSecret creates a default pull-secret for the spoke cluster.

func (*SpokeClusterResources) WithName

func (spoke *SpokeClusterResources) WithName(name string) *SpokeClusterResources

WithName sets an explicit name for the spoke cluster.

Jump to

Keyboard shortcuts

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