Documentation
¶
Index ¶
- func GetReplicaCount(installConfig *types.InstallConfig) (numMasters, numWorkers int64)
- func HivePlatformType(platform types.Platform) hiveext.PlatformType
- func IsSupportedPlatform(platform hiveext.PlatformType) bool
- func SupportedHivePlatforms() []string
- func SupportedInstallerPlatforms() []string
- type OptionalInstallConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
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) 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(parents asset.Parents) error
Generate generates the install-config.yaml file.
func (*OptionalInstallConfig) Load ¶
func (a *OptionalInstallConfig) Load(f asset.FileFetcher) (bool, error)
Load returns the installconfig from disk.