Documentation ¶
Index ¶
- type SpokeClusterResources
- func (spoke *SpokeClusterResources) Create() (*SpokeClusterResources, error)
- func (spoke *SpokeClusterResources) Delete() error
- func (spoke *SpokeClusterResources) WithAutoGeneratedName() *SpokeClusterResources
- func (spoke *SpokeClusterResources) WithDefaultClusterDeployment() *SpokeClusterResources
- func (spoke *SpokeClusterResources) WithDefaultDualStackAgentClusterInstall() *SpokeClusterResources
- func (spoke *SpokeClusterResources) WithDefaultIPv4AgentClusterInstall() *SpokeClusterResources
- func (spoke *SpokeClusterResources) WithDefaultIPv6AgentClusterInstall() *SpokeClusterResources
- func (spoke *SpokeClusterResources) WithDefaultInfraEnv() *SpokeClusterResources
- func (spoke *SpokeClusterResources) WithDefaultNamespace() *SpokeClusterResources
- func (spoke *SpokeClusterResources) WithDefaultPullSecret() *SpokeClusterResources
- func (spoke *SpokeClusterResources) WithName(name string) *SpokeClusterResources
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 ¶
func (spoke *SpokeClusterResources) Create() (*SpokeClusterResources, error)
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.