helper

package
v0.0.0-...-1eb7c65 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelsOnISTagImage

func LabelsOnISTagImage(ctx context.Context, client ctrlruntimeclient.Client, isTag *imagev1.ImageStreamTag, arch api.ReleaseArchitecture) (map[string]string, error)

LabelsOnISTagImage the labels of the image underlying the given ImageStreamTag for the given arch

func MergeImageStreamTagMaps

func MergeImageStreamTagMaps(target ImageStreamTagMap, toMerge ...ImageStreamTagMap)

MergeImageStramTagMaps merges multiple ImageStreamTagMaps together

func TestInputImageStreamsFromResolvedConfig

func TestInputImageStreamsFromResolvedConfig(cfg api.ReleaseBuildConfiguration) []types.NamespacedName

Types

type ImageStreamTagMap

type ImageStreamTagMap map[string]types.NamespacedName

ImageStreamTagMap is a map [types.NamespacedName.String()]types.NamespacedName of ImagestreamTags

func TestInputImageStreamTagsFromResolvedConfig

func TestInputImageStreamTagsFromResolvedConfig(cfg api.ReleaseBuildConfiguration, repoFileGetter func(org, repo, branch string, _ ...github.Opt) github.FileGetter) (ImageStreamTagMap, error)

TestInputImageStreamTagsFromResolvedConfig returns all ImageStreamTags referenced anywhere in the config as input. It only returns their namespace and name and drops the cluster field, as we plan to remove that. The key is in namespace/name format. It assumes that the config is already resolved, i.E. that MultiStageTestConfiguration is always nil and MultiStageTestConfigurationLiteral gets set instead

func (ImageStreamTagMap) String

func (istm ImageStreamTagMap) String() string

Jump to

Keyboard shortcuts

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