imageset

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 28 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// ImagesetJobLabel is the label used for counting the number of imageset jobs in Hive
	ImagesetJobLabel = "hive.openshift.io/imageset"
)

Variables

This section is empty.

Functions

func GenerateImageSetJob

func GenerateImageSetJob(cd *hivev1.ClusterDeployment, releaseImage, serviceAccountName, httpProxy, httpsProxy, noProxy string) *batchv1.Job

GenerateImageSetJob creates a job to determine the installer image for a ClusterImageSet given a release image

func GetImageSetJobName

func GetImageSetJobName(cdName string) string

GetImageSetJobName returns the expected name of the imageset job for a ClusterImageSet.

func NewUpdateInstallerImageCommand

func NewUpdateInstallerImageCommand() *cobra.Command

NewUpdateInstallerImageCommand returns a command to update the installer image on a cluster deployment.

Types

type UpdateInstallerImageOptions

type UpdateInstallerImageOptions struct {
	ClusterDeploymentName      string
	ClusterDeploymentNamespace string
	LogLevel                   string
	WorkDir                    string
	// contains filtered or unexported fields
}

UpdateInstallerImageOptions contains options for running the command to update the installer image

func (*UpdateInstallerImageOptions) Complete

func (o *UpdateInstallerImageOptions) Complete() error

Complete sets remaining fields on the UpdateInstallerImageOptions based on command options and arguments.

func (*UpdateInstallerImageOptions) Run

func (o *UpdateInstallerImageOptions) Run() (returnErr error)

Run updates the given ClusterDeployment based on the image-references file.

func (*UpdateInstallerImageOptions) Validate

func (o *UpdateInstallerImageOptions) Validate() error

Validate ensures the given options and arguments are valid.

Jump to

Keyboard shortcuts

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