csv

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfrastructureFeaturesAnnotation = "operators.openshift.io/infrastructure-features"
	DisconnectedAnnotation           = "features.operators.openshift.io/disconnected"
	FIPSCompliantAnnotation          = "features.operators.openshift.io/fips-compliant"
	ProxyAwareAnnotation             = "features.operators.openshift.io/proxy-aware"
	TLSProfilesAnnotation            = "features.operators.openshift.io/tls-profiles"
	TokenAuthAWSAnnotation           = "features.operators.openshift.io/token-auth-aws"
	TokenAuthAzureAnnotation         = "features.operators.openshift.io/token-auth-azure"
	TokenAuthGCPAnnotation           = "features.operators.openshift.io/token-auth-gcp"
	CNFAnnotation                    = "features.operators.openshift.io/cnf"
	CNIAnnotation                    = "features.operators.openshift.io/cni"
	CSIAnnotation                    = "features.operators.openshift.io/csi"
)

Variables

This section is empty.

Functions

func HasDisconnectedAnnotation

func HasDisconnectedAnnotation(csv *operatorsv1alpha1.ClusterServiceVersion) bool

HasDisconnectedAnnotation returns true if the disconnected annotation exists in the .metadata.annotations block of csv.

func HasInfrastructureFeaturesAnnotation

func HasInfrastructureFeaturesAnnotation(csv *operatorsv1alpha1.ClusterServiceVersion) bool

HasInfrastructureFeaturesAnnotation returns true if the infrastructure-features annotation exists in the .metadata.annotations block of csv. This is the legacy annotation superceded by the DisconnectedAnnotation

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(annotationValue string) bool

SupportsDisconnected accepts the value of the DisconnectedAnnotation and returns whether it is set to the exact value of "true", which is the expected value indicating support. For this annotation, an explicit value of "false" is treated the same as any other non-true value.

func SupportsDisconnectedViaInfrastructureFeatures

func SupportsDisconnectedViaInfrastructureFeatures(infrastructureFeatures string) bool

SupportsDisconnectedViaInfrastructureFeatures 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.

This is a legacy annotation and will be superceded by the DisconnectedAnnotation in the future.

Types

This section is empty.

Jump to

Keyboard shortcuts

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