csv

package
v0.0.0-...-34b34ea Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const InfrastructureFeaturesAnnotation = "operators.openshift.io/infrastructure-features"

Variables

This section is empty.

Functions

func HasInfrastructureFeaturesAnnotation

func HasInfrastructureFeaturesAnnotation(csv *operatorsv1alpha1.ClusterServiceVersion) bool

HasInfrastructureFeaturesAnnotation returns true if the infrastructure-features annotation exists in the .metadata.annotations block of csv.

func HasRelatedImages

func HasRelatedImages(csv *operatorsv1alpha1.ClusterServiceVersion) bool

HasRelatedImages returns true if the length of the .spec.relatedImages section of csv is greater than 0.

func RelatedImageReferencesInEnvironment

func RelatedImageReferencesInEnvironment(deployments ...appsv1.DeploymentSpec) []string

RelatedImageReferencesInEnvironment returns a slice of environment variables that are prefixed with RELATED_IMAGE_, which is the typical way to push these values into the controller's environment.

func RelatedImagesArePinned

func RelatedImagesArePinned(relatedImages []operatorsv1alpha1.RelatedImage) bool

RelatedImagesArePinned returns true if all related images are digest-references. If a reference cannot be parsed, this returns false. If relatedImage is empty, this returns false.

func SupportsDisconnected

func SupportsDisconnected(infrastructureFeatures string) bool

SupportsDisconnected accepts a stringified list of supported features and returns true if "disconnected" is listed as a supported feature.

E.g. '["disconnected"]'.

This is case insensitive, as each infrastructure is normalized before checking. A failure to unmarshal this structure returns false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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