Documentation ¶
Index ¶
- Constants
- func ClusterPoolFromClaim(ctx context.Context, claim *api.ClusterClaim, ...) (*hivev1.ClusterPool, error)
- func EnvVarFor(stream, name string) (string, error)
- func FindStatusTag(is *imagev1.ImageStream, tag string) (*coreapi.ObjectReference, string)
- func GetOverriddenImages() map[string]string
- func ImageDigestFor(client ctrlruntimeclient.Client, namespace func() string, name, tag string) func() (string, error)
- func ImportTagWithRetries(ctx context.Context, client ctrlruntimeclient.Client, ...) (string, error)
- func InitialImageEnv(name string) string
- func IsInitialImageEnv(envVar string) bool
- func IsPipelineImageEnv(envVar string) bool
- func IsReleaseImageEnv(envVar string) bool
- func IsStableImageEnv(envVar string) bool
- func LinkForEnv(envVar string) (api.StepLink, bool)
- func OverrideImageEnv(name string) string
- func PipelineImageEnvFor(name api.PipelineImageStreamTagReference) string
- func ReleaseImageEnv(name string) string
- func ReleaseNameFrom(envVar string) string
- func StableImageEnv(name string) string
- func StableImageNameFrom(envVar string) string
- func WaitForImportingISTag(ctx context.Context, client ctrlruntimeclient.WithWatch, ns, name string, ...) error
Constants ¶
const ( // ImageFormatEnv is the environment we use to hold the base pull spec ImageFormatEnv = "IMAGE_FORMAT" OverrideImageEnvPrefix = "OVERRIDE_IMAGE_" )
const DefaultImageImportTimeout = 45 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func ClusterPoolFromClaim ¶
func ClusterPoolFromClaim(ctx context.Context, claim *api.ClusterClaim, hiveClient ctrlruntimeclient.Reader) (*hivev1.ClusterPool, error)
func EnvVarFor ¶
EnvVarFor determines the environment variable used to expose a pull spec for an ImageStreamTag in the test namespace to test workloads.
func FindStatusTag ¶
func FindStatusTag(is *imagev1.ImageStream, tag string) (*coreapi.ObjectReference, string)
FindStatusTag returns an object reference to a tag if it exists in the ImageStream's Spec
func GetOverriddenImages ¶
GetOverriddenImages finds all occurrences of OVERRIDE_IMAGE_* in env vars, unescapes the tag name and maps it to its value
func ImageDigestFor ¶
func ImportTagWithRetries ¶
func ImportTagWithRetries(ctx context.Context, client ctrlruntimeclient.Client, ns, name, tag, sourcePullSpec string, retries int) (string, error)
ImportTagWithRetries imports image with retries
func InitialImageEnv ¶
InitialImageEnv determines the environment variable used to expose a pull spec for a initial ImageStreamTag in the test namespace to test workloads.
func IsInitialImageEnv ¶
IsInitialImageEnv determines if an env var holds a pull spec for a tag under the initial image stream
func IsPipelineImageEnv ¶
IsPipelineImageEnv determines if an env var holds a pull spec for a tag under the pipeline image stream
func IsReleaseImageEnv ¶
IsReleaseImageEnv determines if an env var holds a pull spec for a tag under the release image stream
func IsStableImageEnv ¶
IsStableImageEnv determines if an env var holds a pull spec for a tag under the stable image stream
func LinkForEnv ¶
LinkForEnv determines what step link was required by a user when they added a parameter to their template, if any.
func OverrideImageEnv ¶
OverrideImageEnv generates the proper env var name for an image override
func PipelineImageEnvFor ¶
func PipelineImageEnvFor(name api.PipelineImageStreamTagReference) string
PipelineImageEnvFor determines the environment variable used to expose a pull spec for a pipeline ImageStreamTag in the test namespace to test workloads.
func ReleaseImageEnv ¶
ReleaseImageEnv determines the environment variable used to expose a pull spec for a release ImageStreamTag in the test namespace to test workloads.
func ReleaseNameFrom ¶
ReleaseNameFrom determines the name of the release payload that the pull spec points to.
func StableImageEnv ¶
StableImageEnv determines the environment variable used to expose a pull spec for a stable ImageStreamTag in the test namespace to test workloads.
func StableImageNameFrom ¶
StableImageNameFrom gets an image name from an env name
func WaitForImportingISTag ¶
func WaitForImportingISTag(ctx context.Context, client ctrlruntimeclient.WithWatch, ns, name string, into *imagev1.ImageStream, tags sets.Set[string], timeout time.Duration) error
WaitForImportingISTag waits for the tags on the image stream are imported
Types ¶
This section is empty.