Documentation
¶
Index ¶
- Constants
- func HasInfrastructureFeaturesAnnotation(csv *operatorsv1alpha1.ClusterServiceVersion) bool
- func HasRelatedImages(csv *operatorsv1alpha1.ClusterServiceVersion) bool
- func RelatedImageReferencesInEnvironment(deployments ...appsv1.DeploymentSpec) []string
- func RelatedImagesArePinned(relatedImages []operatorsv1alpha1.RelatedImage) bool
- func SupportsDisconnected(infrastructureFeatures string) bool
Constants ¶
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 ¶
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.