prep

package
v0.0.0-...-62a7c26 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StaterootSetupJobName = "lca-prep-stateroot-setup"
)

Variables

View Source
var StaterootSetupTerminationGracePeriodSeconds int64 = 1800

StaterootSetupTerminationGracePeriodSeconds max time wait before the stateroot job pod gets SIGKILL from k8s. Assuming the seed image is already in the system, the stateroot job should complete within this time.

Functions

func DeleteStaterootSetupJob

func DeleteStaterootSetupJob(ctx context.Context, c client.Client, log logr.Logger) error

DeleteStaterootSetupJob delete the stateroot setup job

func GetStaterootSetupJob

func GetStaterootSetupJob(ctx context.Context, c client.Client, log logr.Logger) (*batchv1.Job, error)

func LaunchStaterootSetupJob

func LaunchStaterootSetupJob(ctx context.Context, c client.Client, ibu *ibuv1.ImageBasedUpgrade, scheme *runtime.Scheme, log logr.Logger) (*batchv1.Job, error)

func ReadPrecachingList

func ReadPrecachingList(imageListFile, clusterRegistry, seedRegistry string, overrideSeedRegistry bool) (imageList []string, err error)

func SetupStateroot

func SetupStateroot(log logr.Logger, ops ops.Ops, ostreeClient ostreeclient.IClient,
	rpmOstreeClient rpmostreeclient.IClient, seedImage, expectedVersion, imageListFile string, ibi bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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