{"modulePath":"github.com/opdev/operator-certification","version":"v0.0.0-20231026160944-34b34eac2554","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package csv\n\n## Constants\n\n```go\nconst InfrastructureFeaturesAnnotation = \"operators.openshift.io/infrastructure-features\"\n```\n\n## Functions\n\n```go\nfunc HasInfrastructureFeaturesAnnotation(csv *operatorsv1alpha1.ClusterServiceVersion) bool\n```\nHasInfrastructureFeaturesAnnotation returns true if the infrastructure-features annotation exists in the .metadata.annotations block of csv.\n\n```go\nfunc HasRelatedImages(csv *operatorsv1alpha1.ClusterServiceVersion) bool\n```\nHasRelatedImages returns true if the length of the .spec.relatedImages section of csv is greater than 0.\n\n```go\nfunc RelatedImageReferencesInEnvironment(deployments ...appsv1.DeploymentSpec) []string\n```\nRelatedImageReferencesInEnvironment 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.\n\n```go\nfunc RelatedImagesArePinned(relatedImages []operatorsv1alpha1.RelatedImage) bool\n```\nRelatedImagesArePinned 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.\n\n```go\nfunc SupportsDisconnected(infrastructureFeatures string) bool\n```\nSupportsDisconnected accepts a stringified list of supported features and returns true if \"disconnected\" is listed as a supported feature.\n\nE.g. '\\[\"disconnected\"]'.\n\nThis is case insensitive, as each infrastructure is normalized before checking. A failure to unmarshal this structure returns false.\n\n","path":"github.com/opdev/operator-certification/internal/csv","name":"csv","synopsis":"","isRedistributable":true}
