Documentation ¶
Index ¶
- Constants
- Variables
- func GetConfigImageFiles() []string
- func RetrieveRendezvousIP(agentConfig *agent.Config, hosts []agent.Host, ...) (string, error)
- type AgentArtifacts
- type AgentImage
- func (a *AgentImage) Dependencies() []asset.Asset
- func (a *AgentImage) Files() []*asset.File
- func (a *AgentImage) Generate(ctx context.Context, 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 AgentPXEFiles
- func (a *AgentPXEFiles) Dependencies() []asset.Asset
- func (a *AgentPXEFiles) Files() []*asset.File
- func (a *AgentPXEFiles) Generate(_ context.Context, dependencies asset.Parents) error
- func (a *AgentPXEFiles) Load(f asset.FileFetcher) (bool, error)
- func (a *AgentPXEFiles) Name() string
- func (a *AgentPXEFiles) PersistToFile(directory string) error
- type BaseIso
- type Config
- type CoreOSBuildFetcher
- type CpioArchive
- func (ca *CpioArchive) Save(archivePath string) error
- func (ca *CpioArchive) SaveBuffer() ([]byte, error)
- func (ca *CpioArchive) StoreBytes(filename string, content []byte, mode int) error
- func (ca *CpioArchive) StoreFile(filename string, dstPath string) error
- func (ca *CpioArchive) StorePath(path string) error
- type Ignition
- type Kargs
- type Release
- type UnconfiguredIgnition
- func (a *UnconfiguredIgnition) Dependencies() []asset.Asset
- func (a *UnconfiguredIgnition) Files() []*asset.File
- func (a *UnconfiguredIgnition) Generate(_ context.Context, dependencies asset.Parents) error
- func (a *UnconfiguredIgnition) Load(f asset.FileFetcher) (bool, error)
- func (a *UnconfiguredIgnition) Name() string
- func (a *UnconfiguredIgnition) PersistToFile(directory string) error
Constants ¶
const ( // OcDefaultTries is the number of times to execute the oc command on failures. OcDefaultTries = 5 // OcDefaultRetryDelay is the time between retries. OcDefaultRetryDelay = time.Second * 5 )
Variables ¶
var ( // DefaultCoreOSStreamGetter uses the pinned metadata. DefaultCoreOSStreamGetter = rhcos.FetchCoreOSBuild )
Functions ¶
func GetConfigImageFiles ¶ added in v0.9.153
func GetConfigImageFiles() []string
GetConfigImageFiles returns the list of files or file paths to be included in the config-image.
func RetrieveRendezvousIP ¶
func RetrieveRendezvousIP(agentConfig *agent.Config, hosts []agent.Host, nmStateConfigs []*v1beta1.NMStateConfig) (string, error)
RetrieveRendezvousIP Returns the Rendezvous IP from either AgentConfig or NMStateConfig
Types ¶
type AgentArtifacts ¶ added in v0.9.153
type AgentArtifacts struct { CPUArch string RendezvousIP string TmpPath string IgnitionByte []byte Kargs string ISOPath string BootArtifactsBaseURL string }
AgentArtifacts is an asset that generates all the artifacts that could be used for a subsequent generation of an ISO image or PXE files, starting from the content of the rhcos image enriched with agent specific files.
func (*AgentArtifacts) Dependencies ¶ added in v0.9.153
func (a *AgentArtifacts) Dependencies() []asset.Asset
Dependencies returns the assets on which the AgentArtifacts asset depends.
func (*AgentArtifacts) Generate ¶ added in v0.9.153
Generate generates the configurations for the agent ISO image and PXE assets.
func (*AgentArtifacts) Name ¶ added in v0.9.153
func (a *AgentArtifacts) Name() string
Name returns the human-friendly name of the asset.
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) 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 AgentPXEFiles ¶
type AgentPXEFiles struct {
// contains filtered or unexported fields
}
AgentPXEFiles is an asset that generates the bootable image used to install clusters.
func (*AgentPXEFiles) Dependencies ¶
func (a *AgentPXEFiles) Dependencies() []asset.Asset
Dependencies returns the assets on which the AgentPXEFiles asset depends.
func (*AgentPXEFiles) Files ¶
func (a *AgentPXEFiles) Files() []*asset.File
Files returns the files generated by the asset.
func (*AgentPXEFiles) Load ¶
func (a *AgentPXEFiles) Load(f asset.FileFetcher) (bool, error)
Load returns the PXE image from disk.
func (*AgentPXEFiles) Name ¶
func (a *AgentPXEFiles) Name() string
Name returns the human-friendly name of the asset.
func (*AgentPXEFiles) PersistToFile ¶
func (a *AgentPXEFiles) PersistToFile(directory string) error
PersistToFile writes the PXE assets in the assets folder named pxe.
type BaseIso ¶
BaseIso generates the base ISO file for the image
func (*BaseIso) Dependencies ¶
Dependencies returns dependencies used by the asset.
type CoreOSBuildFetcher ¶ added in v0.90.0
CoreOSBuildFetcher will be to used to switch the source of the coreos metadata.
type CpioArchive ¶
type CpioArchive struct {
// contains filtered or unexported fields
}
CpioArchive simplifies the creation of a compressed cpio archive.
func NewCpioArchive ¶
func NewCpioArchive() *CpioArchive
NewCpioArchive creates a new CpioArchive instance.
func (*CpioArchive) Save ¶
func (ca *CpioArchive) Save(archivePath string) error
Save the content of the current archive on the disk.
func (*CpioArchive) SaveBuffer ¶
func (ca *CpioArchive) SaveBuffer() ([]byte, error)
SaveBuffer saves the content of the current archive and returns the buffer content.
func (*CpioArchive) StoreBytes ¶
func (ca *CpioArchive) StoreBytes(filename string, content []byte, mode int) error
StoreBytes appends to the current archive the given content using the specified filename.
func (*CpioArchive) StoreFile ¶
func (ca *CpioArchive) StoreFile(filename string, dstPath string) error
StoreFile appends to the current archive the specified file.
func (*CpioArchive) StorePath ¶
func (ca *CpioArchive) StorePath(path string) error
StorePath adds a new path in the archive.
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 Kargs ¶ added in v0.9.153
type Kargs struct {
// contains filtered or unexported fields
}
Kargs is an Asset that generates the additional kernel args.
func (*Kargs) Dependencies ¶ added in v0.9.153
Dependencies returns the assets on which the Kargs asset depends.
func (*Kargs) Generate ¶ added in v0.9.153
Generate generates the kernel args configurations for the agent ISO image and PXE assets.
func (*Kargs) KernelCmdLine ¶ added in v0.9.153
KernelCmdLine returns the data to be appended to the kernel arguments.
type Release ¶
type Release interface { GetBaseIso(architecture string) (string, error) GetBaseIsoVersion(architecture string) (string, error) ExtractFile(image string, filename string, architecture string) ([]string, error) }
Release is the interface to use the oc command to the get image info.
func NewRelease ¶
func NewRelease(config Config, releaseImage string, pullSecret string, mirrorConfig []mirror.RegistriesConfig, streamGetter CoreOSBuildFetcher) Release
NewRelease is used to set up the executor to run oc commands.
type UnconfiguredIgnition ¶ added in v0.9.153
UnconfiguredIgnition is an asset that generates the agent installer unconfigured ignition file which excludes any cluster configuration.
func (*UnconfiguredIgnition) Dependencies ¶ added in v0.9.153
func (a *UnconfiguredIgnition) Dependencies() []asset.Asset
Dependencies returns the assets on which the UnconfiguredIgnition asset depends.
func (*UnconfiguredIgnition) Files ¶ added in v0.9.153
func (a *UnconfiguredIgnition) Files() []*asset.File
Files returns the files generated by the asset.
func (*UnconfiguredIgnition) Generate ¶ added in v0.9.153
Generate generates the agent installer unconfigured ignition.
func (*UnconfiguredIgnition) Load ¶ added in v0.9.153
func (a *UnconfiguredIgnition) Load(f asset.FileFetcher) (bool, error)
Load returns the UnconfiguredIgnition from disk.
func (*UnconfiguredIgnition) Name ¶ added in v0.9.153
func (a *UnconfiguredIgnition) Name() string
Name returns the human-friendly name of the asset.
func (*UnconfiguredIgnition) PersistToFile ¶ added in v0.9.153
func (a *UnconfiguredIgnition) PersistToFile(directory string) error
PersistToFile writes the unconfigured ignition in the assets folder.