Documentation ¶
Index ¶
- func AddImageSetWatch(c ctrlruntime.Controller) error
- func ApplyImageSet(ctx context.Context, c client.Client, v operator.ProductVariant, ...) error
- func DoesNonVariantImageSetExist(ctx context.Context, cli client.Client, v operator.ProductVariant) (bool, error)
- func GetImageSet(ctx context.Context, cli client.Client, v operator.ProductVariant) (*operator.ImageSet, error)
- func ResolveImages(is *operator.ImageSet, comps ...render.Component) error
- func ValidateImageSet(is *operator.ImageSet) error
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 ¶
func GetImageSet(ctx context.Context, cli client.Client, v operator.ProductVariant) (*operator.ImageSet, error)
GetImageSet finds the ImageSet for specified variant.
func ValidateImageSet ¶
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.