imageset

package
v1.34.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddImageSetWatch

func AddImageSetWatch(c ctrlruntime.Controller) error

Utility function to add a watch on ImageSet resources.

func ApplyImageSet

func ApplyImageSet(ctx context.Context, c client.Client, v operator.ProductVariant, comps ...render.Component) error

ApplyImageSet gets the appropriate ImageSet, validates the ImageSet, and calls ResolveImages passing in the ImageSet on each of the comps.

func DoesNonVariantImageSetExist added in v1.34.2

func DoesNonVariantImageSetExist(ctx context.Context, cli client.Client, v operator.ProductVariant) (bool, error)

ImageSets are optional by default. Once an ImageSet is specified for the ProductVariant, it is required to have an ImageSet for the specific ProductVariant and version of the product. ImageSets for other ProductVariants are ignored since they are not for the configured variant. Users may have used the incorrect variant or had a typo when creating the ImageSet, so we can use this function to check if there are any ImageSets for different variants.

func GetImageSet

GetImageSet finds the ImageSet for specified variant.

func ResolveImages

func ResolveImages(is *operator.ImageSet, comps ...render.Component) error

func ValidateImageSet

func ValidateImageSet(is *operator.ImageSet) error

ValidateImageSet validates that all the images in an ImageSet are images the operator uses and that the Digest is in an allowed format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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