Documentation
¶
Index ¶
- Constants
- Variables
- func DownloadImageFile(baseURL string) (string, error)
- func GetCacheDir(dataType string) (string, error)
- func GetFileFromCache(fileName string, cacheDir string) (string, error)
- func RetrieveRendezvousIP(agentConfig *agent.Config, nmStateConfigs []*v1beta1.NMStateConfig) (string, error)
- type AgentImage
- func (a *AgentImage) Dependencies() []asset.Asset
- func (a *AgentImage) Files() []*asset.File
- func (a *AgentImage) Generate(dependencies asset.Parents) error
- func (a *AgentImage) Load(f asset.FileFetcher) (bool, error)
- func (a *AgentImage) Name() string
- func (a *AgentImage) PersistToFile(directory string) error
- type BaseIso
- type Config
- type Ignition
- type Release
Constants ¶
const ( //OcDefaultTries is the number of times to execute the oc command on failues OcDefaultTries = 5 // OcDefaultRetryDelay is the time between retries OcDefaultRetryDelay = time.Second * 5 )
Variables ¶
var GetIsoPluggable = downloadIso
GetIsoPluggable defines the method to use get the baseIso file
Functions ¶
func DownloadImageFile ¶ added in v0.9.2
DownloadImageFile is a helper function that obtains an image file from a given URL, puts it in the cache and returns the local file path. If the file is compressed by a known compressor, the file is uncompressed prior to being returned.
func GetCacheDir ¶ added in v0.9.2
GetCacheDir returns a local path of the cache, where the installer should put the data: <user_cache_dir>/agent/<dataType>_cache If the directory doesn't exist, it will be automatically created.
func GetFileFromCache ¶ added in v0.9.2
GetFileFromCache returns path of the cached file if found, otherwise returns an empty string or error
func RetrieveRendezvousIP ¶
func RetrieveRendezvousIP(agentConfig *agent.Config, nmStateConfigs []*v1beta1.NMStateConfig) (string, error)
RetrieveRendezvousIP Returns the Rendezvous IP from either AgentConfig or NMStateConfig
Types ¶
type AgentImage ¶
type AgentImage struct {
// contains filtered or unexported fields
}
AgentImage is an asset that generates the bootable image used to install clusters.
func (*AgentImage) Dependencies ¶
func (a *AgentImage) Dependencies() []asset.Asset
Dependencies returns the assets on which the Bootstrap asset depends.
func (*AgentImage) Files ¶
func (a *AgentImage) Files() []*asset.File
Files returns the files generated by the asset.
func (*AgentImage) Generate ¶
func (a *AgentImage) Generate(dependencies asset.Parents) error
Generate generates the image file for to ISO asset.
func (*AgentImage) Load ¶
func (a *AgentImage) Load(f asset.FileFetcher) (bool, error)
Load returns the ISO from disk.
func (*AgentImage) Name ¶
func (a *AgentImage) Name() string
Name returns the human-friendly name of the asset.
func (*AgentImage) PersistToFile ¶
func (a *AgentImage) PersistToFile(directory string) error
PersistToFile writes the iso image in the assets folder
type BaseIso ¶
BaseIso generates the base ISO file for the image
func (*BaseIso) Dependencies ¶
Dependencies returns dependencies used by the asset.
type Ignition ¶
Ignition is an asset that generates the agent installer ignition file.
func (*Ignition) Dependencies ¶
Dependencies returns the assets on which the Ignition asset depends.
type Release ¶
type Release interface {
GetBaseIso(log logrus.FieldLogger, releaseImage, pullSecret, architecture string, mirrorConfig []mirror.RegistriesConfig) (string, error)
}
Release is the interface to use the oc command to the get image info