Documentation ¶
Overview ¶
Package installconfig generates the install config assets based on its dependencies. The type itself is defined in ../pkg/types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetBase ¶
type AssetBase struct { Config *types.InstallConfig `json:"config"` File *asset.File `json:"file"` }
AssetBase is the base structure for the separate InstallConfig assets used in the agent-based and IPI/UPI installation methods.
func (*AssetBase) LoadFromFile ¶
func (a *AssetBase) LoadFromFile(f asset.FileFetcher) (found bool, err error)
LoadFromFile returns the installconfig from disk.
func (*AssetBase) RecordFile ¶
RecordFile generates the asset manifest file from the config CR.
type ClusterID ¶
type ClusterID struct { // UUID is a globally unique identifier. UUID string // InfraID is an identifier for the cluster that is more human friendly. // This does not have InfraID string }
ClusterID is the unique ID of the cluster, immutable during the cluster's life
func (*ClusterID) Dependencies ¶
Dependencies returns install-config.
type InstallConfig ¶
type InstallConfig struct {
AssetBase
}
InstallConfig generates the install-config.yaml file.
func MakeAsset ¶
func MakeAsset(config *types.InstallConfig) *InstallConfig
MakeAsset returns an InstallConfig asset containing a given InstallConfig CR.
func (*InstallConfig) Dependencies ¶
func (a *InstallConfig) Dependencies() []asset.Asset
Dependencies returns all of the dependencies directly needed by an InstallConfig asset.
func (*InstallConfig) Generate ¶
func (a *InstallConfig) Generate(parents asset.Parents) error
Generate generates the install-config.yaml file.
func (*InstallConfig) Load ¶
func (a *InstallConfig) Load(f asset.FileFetcher) (found bool, err error)
Load returns the installconfig from disk.
type PlatformCredsCheck ¶
type PlatformCredsCheck struct { }
PlatformCredsCheck is an asset that checks the platform credentials, asks for them or errors out if invalid the cluster.
func (*PlatformCredsCheck) Dependencies ¶
func (a *PlatformCredsCheck) Dependencies() []asset.Asset
Dependencies returns the dependencies for PlatformCredsCheck
func (*PlatformCredsCheck) Generate ¶
func (a *PlatformCredsCheck) Generate(dependencies asset.Parents) error
Generate queries for input from the user.
func (*PlatformCredsCheck) Name ¶
func (a *PlatformCredsCheck) Name() string
Name returns the human-friendly name of the asset.
type PlatformPermsCheck ¶
type PlatformPermsCheck struct { }
PlatformPermsCheck is an asset that checks platform credentials for the necessary permissions to create a cluster.
func (*PlatformPermsCheck) Dependencies ¶
func (a *PlatformPermsCheck) Dependencies() []asset.Asset
Dependencies returns the dependencies for PlatformPermsCheck
func (*PlatformPermsCheck) Generate ¶
func (a *PlatformPermsCheck) Generate(dependencies asset.Parents) error
Generate queries for input from the user.
func (*PlatformPermsCheck) Name ¶
func (a *PlatformPermsCheck) Name() string
Name returns the human-friendly name of the asset.
type PlatformProvisionCheck ¶
type PlatformProvisionCheck struct { }
PlatformProvisionCheck is an asset that validates the install-config platform for any requirements specific for provisioning infrastructure.
func (*PlatformProvisionCheck) Dependencies ¶
func (a *PlatformProvisionCheck) Dependencies() []asset.Asset
Dependencies returns the dependencies for PlatformProvisionCheck
func (*PlatformProvisionCheck) Generate ¶
func (a *PlatformProvisionCheck) Generate(dependencies asset.Parents) error
Generate queries for input from the user.
func (*PlatformProvisionCheck) Name ¶
func (a *PlatformProvisionCheck) Name() string
Name returns the human-friendly name of the asset.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package openstack collects OpenStack-specific configuration.
|
Package openstack collects OpenStack-specific configuration. |