Documentation ¶
Overview ¶
Package rhcos contains helpers for RHCOS related operations.
Index ¶
- func AMIRegions(architecture types.Architecture) sets.String
- func FetchCoreOSBuild(ctx context.Context) (*stream.Stream, error)
- func FetchRawCoreOSStream(ctx context.Context) ([]byte, error)
- func FindArtifactURL(artifacts stream.PlatformArtifacts) (string, error)
- func FormatURLWithIntegrity(artifact *stream.Artifact) (string, error)
- func GenerateOpenStackImageName(rhcosImage, infraID string) (imageName string, isURL bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AMIRegions ¶ added in v0.9.2
func AMIRegions(architecture types.Architecture) sets.String
AMIRegions returns the AWS regions in which an RHCOS AMI for the specified architecture is published.
func FetchCoreOSBuild ¶ added in v0.9.2
FetchCoreOSBuild returns the pinned version of RHEL/Fedora CoreOS used by the installer to provision the bootstrap node and control plane currently. For more information, see e.g. https://github.com/openshift/enhancements/pull/201
func FetchRawCoreOSStream ¶ added in v0.9.2
FetchRawCoreOSStream returns the raw stream metadata for the bootimages embedded in the installer.
func FindArtifactURL ¶ added in v0.9.2
func FindArtifactURL(artifacts stream.PlatformArtifacts) (string, error)
FindArtifactURL returns a single "disk" artifact type; this mainly abstracts over e.g. `qcow2.xz` and `qcow2.gz`. (FCOS uses xz, RHCOS uses gzip right now)
Use this function only for cases where there's a single artifact type, such as `qemu` and `openstack`.
Some platforms have multiple artifact types; for example, `metal` has an ISO as well as PXE files. This function will error in such a case.
func FormatURLWithIntegrity ¶ added in v0.9.2
FormatURLWithIntegrity squashes an artifact into a URL string with the uncompressed sha256 as a query parameter. This is necessary currently because various parts of the installer pass around this reference as a string, and it's also exposed to users via install-config overrides.
func GenerateOpenStackImageName ¶ added in v0.9.2
GenerateOpenStackImageName returns Glance image name for instances.
Types ¶
This section is empty.