promotion

package
v0.0.0-...-c780de0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllPromotionImageStreamTags

func AllPromotionImageStreamTags(configSpec *cioperatorapi.ReleaseBuildConfiguration) sets.Set[string]

AllPromotionImageStreamTags returns a set of all ImageStreamTags this config promotes to.

func DetermineReleaseBranch

func DetermineReleaseBranch(currentRelease, futureRelease, currentBranch string) (string, error)

DetermineReleaseBranch determines the branch that will be used to the future release, based on the branch that is currently promoting to the current release.

func IsBumpable

func IsBumpable(branch, currentRelease string) bool

IsBumpable determines if the dev branch should be bumped or not

func PromotesImagesInto

func PromotesImagesInto(configSpec *cioperatorapi.ReleaseBuildConfiguration, promotionNamespace, promotionName string) bool

PromotesImagesInto determines if a configuration will result in images being promoted.

Types

type FutureOptions

type FutureOptions struct {
	Options

	FutureReleases flagutil.Strings
}

FutureOptions holds options to load CI Operator configuration and operate on a subset of them to update for future releases.

func (*FutureOptions) Bind

func (o *FutureOptions) Bind(fs *flag.FlagSet)

func (*FutureOptions) Validate

func (o *FutureOptions) Validate() error

type Options

type Options struct {
	config.ConfirmableOptions

	CurrentRelease            string
	CurrentPromotionNamespace string
}

Options holds options to load CI Operator configuration and select a subset of that configuration to operate on. Configurations can be filtered by current release.

func (*Options) Bind

func (o *Options) Bind(fs *flag.FlagSet)

func (*Options) OperateOnCIOperatorConfigDir

func (o *Options) OperateOnCIOperatorConfigDir(configDir string, includeOKD cioperatorapi.OKDInclusion, callback func(*cioperatorapi.ReleaseBuildConfiguration, *config.Info) error) error

OperateOnCIOperatorConfigDir filters the full set of configurations down to those that were selected by the user with promotion options

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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