rhcos

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 57

Documentation

Overview

Package rhcos contains helpers for RHCOS related operations.

Index

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

func FetchCoreOSBuild(ctx context.Context) (*stream.Stream, error)

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

func FetchRawCoreOSStream(ctx context.Context) ([]byte, error)

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

func FormatURLWithIntegrity(artifact *stream.Artifact) (string, error)

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

func GenerateOpenStackImageName(rhcosImage, infraID string) (imageName string, isURL bool)

GenerateOpenStackImageName returns Glance image name for instances.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL