ztpconfig

package
v0.0.0-...-8357b5a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubConfig

type HubConfig struct {
	HubOCPVersion         string
	HubOCPXYVersion       string
	HubAgentServiceConfig *assisted.AgentServiceConfigBuilder

	HubPullSecret             *secret.Builder
	HubInstallConfig          *configmap.Builder
	HubPullSecretOverride     map[string][]byte
	HubPullSecretOverridePath string `envconfig:"ECO_ASSISTED_ZTP_HUB_PULL_SECRET_OVERRIDE_PATH"`
	// contains filtered or unexported fields
}

HubConfig contains environment information related to the hub cluster.

type SpokeConfig

type SpokeConfig struct {
	SpokeAPIClient           *clients.Settings
	SpokeOCPVersion          string
	SpokeOCPXYVersion        string
	SpokeClusterName         string
	SpokeKubeConfig          string `envconfig:"ECO_ASSISTED_ZTP_SPOKE_KUBECONFIG"`
	SpokeClusterImageSet     string `envconfig:"ECO_ASSISTED_ZTP_SPOKE_CLUSTERIMAGESET"`
	SpokeClusterDeployment   *hive.ClusterDeploymentBuilder
	SpokeAgentClusterInstall *assisted.AgentClusterInstallBuilder
	SpokeInfraEnv            *assisted.InfraEnvBuilder
	SpokeInstallConfig       *configmap.Builder
}

SpokeConfig contains environment information related to the spoke cluster.

type ZTPConfig

type ZTPConfig struct {
	*assistedconfig.AssistedConfig
	*HubConfig
	*SpokeConfig
}

ZTPConfig type contains ztp configuration.

func NewZTPConfig

func NewZTPConfig() *ZTPConfig

NewZTPConfig returns instance of ZTPConfig type.

func (*ZTPConfig) HubAssistedImageServicePod

func (ztpconfig *ZTPConfig) HubAssistedImageServicePod() *pod.Builder

HubAssistedImageServicePod retrieves the assisted image service pod from the hub and populates hubAssistedImageServicePod.

func (*ZTPConfig) HubAssistedServicePod

func (ztpconfig *ZTPConfig) HubAssistedServicePod() *pod.Builder

HubAssistedServicePod retrieves the assisted service pod from the hub and populates hubAssistedServicePod.

Jump to

Keyboard shortcuts

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