Documentation
¶
Index ¶
- func CheckCRDResourceUniqueness(rv1 *bundle.RegistryV1) []error
- func CheckConversionWebhookCRDReferenceUniqueness(rv1 *bundle.RegistryV1) []error
- func CheckConversionWebhooksReferenceOwnedCRDs(rv1 *bundle.RegistryV1) []error
- func CheckDeploymentNameIsDNS1123SubDomain(rv1 *bundle.RegistryV1) []error
- func CheckDeploymentSpecUniqueness(rv1 *bundle.RegistryV1) []error
- func CheckOwnedCRDExistence(rv1 *bundle.RegistryV1) []error
- func CheckPackageNameNotEmpty(rv1 *bundle.RegistryV1) []error
- func CheckWebhookDeploymentReferentialIntegrity(rv1 *bundle.RegistryV1) []error
- func CheckWebhookNameIsDNS1123SubDomain(rv1 *bundle.RegistryV1) []error
- func CheckWebhookNameUniqueness(rv1 *bundle.RegistryV1) []error
- func CheckWebhookSupport(rv1 *bundle.RegistryV1) []error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCRDResourceUniqueness ¶
func CheckCRDResourceUniqueness(rv1 *bundle.RegistryV1) []error
CheckCRDResourceUniqueness checks that the bundle CRD names are unique
func CheckConversionWebhookCRDReferenceUniqueness ¶
func CheckConversionWebhookCRDReferenceUniqueness(rv1 *bundle.RegistryV1) []error
CheckConversionWebhookCRDReferenceUniqueness checks no two (or more) conversion webhooks reference the same CRD.
func CheckConversionWebhooksReferenceOwnedCRDs ¶
func CheckConversionWebhooksReferenceOwnedCRDs(rv1 *bundle.RegistryV1) []error
CheckConversionWebhooksReferenceOwnedCRDs checks defined conversion webhooks reference bundle owned CRDs. Errors are sorted by webhook name and CRD name.
func CheckDeploymentNameIsDNS1123SubDomain ¶
func CheckDeploymentNameIsDNS1123SubDomain(rv1 *bundle.RegistryV1) []error
CheckDeploymentNameIsDNS1123SubDomain checks each deployment strategy spec name complies with the Kubernetes resource naming conversions
func CheckDeploymentSpecUniqueness ¶
func CheckDeploymentSpecUniqueness(rv1 *bundle.RegistryV1) []error
CheckDeploymentSpecUniqueness checks that each strategy deployment spec in the csv has a unique name. Errors are sorted by deployment name.
func CheckOwnedCRDExistence ¶
func CheckOwnedCRDExistence(rv1 *bundle.RegistryV1) []error
CheckOwnedCRDExistence checks bundle owned custom resource definitions declared in the csv exist in the bundle
func CheckPackageNameNotEmpty ¶
func CheckPackageNameNotEmpty(rv1 *bundle.RegistryV1) []error
CheckPackageNameNotEmpty checks that PackageName is not empty
func CheckWebhookDeploymentReferentialIntegrity ¶
func CheckWebhookDeploymentReferentialIntegrity(rv1 *bundle.RegistryV1) []error
CheckWebhookDeploymentReferentialIntegrity checks that each webhook definition in the csv references an existing strategy deployment spec. Errors are sorted by strategy deployment spec name, webhook type, and webhook name.
func CheckWebhookNameIsDNS1123SubDomain ¶
func CheckWebhookNameIsDNS1123SubDomain(rv1 *bundle.RegistryV1) []error
CheckWebhookNameIsDNS1123SubDomain checks each webhook configuration name complies with the Kubernetes resource naming conversions
func CheckWebhookNameUniqueness ¶
func CheckWebhookNameUniqueness(rv1 *bundle.RegistryV1) []error
CheckWebhookNameUniqueness checks that each webhook definition of each type (validating, mutating, or conversion) has a unique name. Webhooks of different types can have the same name. Errors are sorted by webhook type and name.
func CheckWebhookSupport ¶
func CheckWebhookSupport(rv1 *bundle.RegistryV1) []error
CheckWebhookSupport checks that if the bundle cluster service version declares webhook definitions that it is a singleton operator, i.e. that it only supports AllNamespaces mode. This keeps parity with OLMv0 behavior for conversion webhooks, https://github.com/operator-framework/operator-lifecycle-manager/blob/dfd0b2bea85038d3c0d65348bc812d297f16b8d2/pkg/controller/install/webhook.go#L193 Since OLMv1 considers APIs to be cluster-scoped, we initially extend this constraint to validating and mutating webhooks. While this might restrict the number of supported bundles, we can tackle the issue of relaxing this constraint in turn after getting the webhook support working.
Types ¶
This section is empty.