agent

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// InstallConfigFilename is the file containing the install-config.
	InstallConfigFilename = "install-config.yaml"
)

Variables

This section is empty.

Functions

func DetermineReleaseImageArch added in v0.90.0

func DetermineReleaseImageArch(pullSecret, pullSpec string) (string, error)

DetermineReleaseImageArch returns the arch of the release image.

func ExecuteOC added in v0.90.0

func ExecuteOC(pullSecret string, command []string) (string, error)

ExecuteOC will execute an oc command.

func GetReplicaCount

func GetReplicaCount(installConfig *types.InstallConfig) (numMasters, numWorkers int64)

GetReplicaCount gets the configured master and worker replicas.

func HivePlatformType

func HivePlatformType(platform types.Platform) hiveext.PlatformType

HivePlatformType returns the PlatformType for the ZTP Hive API corresponding to the given InstallConfig platform.

func IsSupportedPlatform

func IsSupportedPlatform(platform hiveext.PlatformType) bool

IsSupportedPlatform returns true if provided platform is supported. Otherwise, returns false.

func SupportedHivePlatforms

func SupportedHivePlatforms() []string

SupportedHivePlatforms lists the supported platforms for AgentClusterInstall.

func SupportedInstallerPlatforms

func SupportedInstallerPlatforms() []string

SupportedInstallerPlatforms lists the supported platforms for agent installer.

func VCenterCredentialsAreProvided added in v0.9.153

func VCenterCredentialsAreProvided(vcenter vsphere.VCenter) bool

VCenterCredentialsAreProvided returns true if server, username, password, or at least one datacenter have been provided.

func ValidateSupportedPlatforms added in v0.90.17

func ValidateSupportedPlatforms(platform types.Platform, controlPlaneArch string) field.ErrorList

ValidateSupportedPlatforms verifies if the specified platform/arch is supported or not.

Types

type OptionalInstallConfig

type OptionalInstallConfig struct {
	installconfig.AssetBase
	Supplied bool
}

OptionalInstallConfig is an InstallConfig where the default is empty, rather than generated from running the survey.

func (*OptionalInstallConfig) ClusterName

func (a *OptionalInstallConfig) ClusterName() string

ClusterName returns the name of the cluster, or a default name if no InstallConfig is supplied.

func (*OptionalInstallConfig) ClusterNamespace added in v0.90.0

func (a *OptionalInstallConfig) ClusterNamespace() string

ClusterNamespace returns the namespace of the cluster.

func (*OptionalInstallConfig) Dependencies

func (a *OptionalInstallConfig) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed by an InstallConfig asset.

func (*OptionalInstallConfig) Generate

func (a *OptionalInstallConfig) Generate(_ context.Context, parents asset.Parents) error

Generate generates the install-config.yaml file.

func (*OptionalInstallConfig) GetBaremetalHosts added in v0.9.153

func (a *OptionalInstallConfig) GetBaremetalHosts() []*baremetal.Host

GetBaremetalHosts gets the hosts defined for a baremetal platform.

func (*OptionalInstallConfig) Load

Load returns the installconfig from disk.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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