From cbc30ece3c5eda0d70212469b5924a28207ab847 Mon Sep 17 00:00:00 2001 From: Todd Short Date: Tue, 24 Feb 2026 22:46:36 -0500 Subject: [PATCH 1/2] Update operator-framework/api to v0.40.0 This adds some OpenAPIModelName() functions Signed-off-by: Todd Short --- go.mod | 2 +- go.sum | 4 +- .../api/pkg/lib/version/doc.go | 5 + .../lib/version/zz_generated.model_name.go | 26 ++ .../api/pkg/operators/v1alpha1/doc.go | 2 + .../operators/v1alpha1/subscription_types.go | 2 - .../v1alpha1/zz_generated.model_name.go | 306 ++++++++++++++++++ .../api/pkg/validation/internal/bundle.go | 29 ++ vendor/modules.txt | 2 +- 9 files changed, 372 insertions(+), 6 deletions(-) create mode 100644 vendor/github.com/operator-framework/api/pkg/lib/version/doc.go create mode 100644 vendor/github.com/operator-framework/api/pkg/lib/version/zz_generated.model_name.go create mode 100644 vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/zz_generated.model_name.go diff --git a/go.mod b/go.mod index 0d31a0592d..b0ad129566 100644 --- a/go.mod +++ b/go.mod @@ -21,7 +21,7 @@ require ( github.com/openshift/api v0.0.0-20260204104751-e09e5a4ebcd0 github.com/openshift/client-go v0.0.0-20260108185524-48f4ccfc4e13 github.com/openshift/library-go v0.0.0-20260204111611-b7d4fa0e292a - github.com/operator-framework/api v0.39.0 + github.com/operator-framework/api v0.40.0 github.com/operator-framework/operator-registry v1.63.0 github.com/otiai10/copy v1.14.1 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index 32f4fc5020..dd980d8776 100644 --- a/go.sum +++ b/go.sum @@ -343,8 +343,8 @@ github.com/openshift/client-go v0.0.0-20260108185524-48f4ccfc4e13 h1:6rd4zSo2UaW github.com/openshift/client-go v0.0.0-20260108185524-48f4ccfc4e13/go.mod h1:YvOmPmV7wcJxpfhTDuFqqs2Xpb3M3ovsM6Qs/i2ptq4= github.com/openshift/library-go v0.0.0-20260204111611-b7d4fa0e292a h1:YLnZtVfqGUfTbQ+M06QAslEmP4WrnRoPrk4AtoBJdm8= github.com/openshift/library-go v0.0.0-20260204111611-b7d4fa0e292a/go.mod h1:DCRz1EgdayEmr9b6KXKDL+DWBN0rGHu/VYADeHzPoOk= -github.com/operator-framework/api v0.39.0 h1:9h7aVufeQ+l2ACXJE51hkMFcqrQwJOLM6/vwgGu6tgI= -github.com/operator-framework/api v0.39.0/go.mod h1:tcYIwuznZzfo4HKUTu0dbquIHqxiewnKW/ZmhHKzMH8= +github.com/operator-framework/api v0.40.0 h1:xTTKJM6Yv6sr/pLibiINlnaXy+iNClmCo5QJMeHwyuc= +github.com/operator-framework/api v0.40.0/go.mod h1:cMF6TTZ2BgBoV/sDlO4Pm7G2jma7JlEsCYXjOOqwrnw= github.com/operator-framework/operator-registry v1.63.0 h1:UIahnpjkH7y98A8AgPw3DUXVsM1yQr36JajRaJ/00nQ= github.com/operator-framework/operator-registry v1.63.0/go.mod h1:A1w3zzvxx1h5rvkuQG2FgHq6lTMHASLb/YPelq7AmxQ= github.com/otiai10/copy v1.14.1 h1:5/7E6qsUMBaH5AnQ0sSLzzTg1oTECmcCmT6lvF45Na8= diff --git a/vendor/github.com/operator-framework/api/pkg/lib/version/doc.go b/vendor/github.com/operator-framework/api/pkg/lib/version/doc.go new file mode 100644 index 0000000000..7318ee6d19 --- /dev/null +++ b/vendor/github.com/operator-framework/api/pkg/lib/version/doc.go @@ -0,0 +1,5 @@ +// +k8s:openapi-gen=true +// +k8s:openapi-model-package=com.github.operator-framework.api.pkg.operators.lib.version + +// Package version contains the OperatorVersion type. +package version diff --git a/vendor/github.com/operator-framework/api/pkg/lib/version/zz_generated.model_name.go b/vendor/github.com/operator-framework/api/pkg/lib/version/zz_generated.model_name.go new file mode 100644 index 0000000000..1fd31307ba --- /dev/null +++ b/vendor/github.com/operator-framework/api/pkg/lib/version/zz_generated.model_name.go @@ -0,0 +1,26 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +/* + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by openapi-gen-v0.0. DO NOT EDIT. + +package version + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OperatorVersion) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.lib.version.OperatorVersion" +} diff --git a/vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/doc.go b/vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/doc.go index 74bc9b819a..fd9d1d8490 100644 --- a/vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/doc.go +++ b/vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/doc.go @@ -1,6 +1,8 @@ // +groupName=operators.coreos.com // +k8s:deepcopy-gen=package // +k8s:conversion-gen=github.com/operator-framework/operator-lifecycle-manager/pkg/api/apis/operators +// +k8s:openapi-gen=true +// +k8s:openapi-model-package=com.github.operator-framework.api.pkg.operators.v1alpha1 // Package v1alpha1 contains resources types for version v1alpha1 of the operators.coreos.com API group. package v1alpha1 diff --git a/vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/subscription_types.go b/vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/subscription_types.go index 7aa854f596..292fedf9b9 100644 --- a/vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/subscription_types.go +++ b/vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/subscription_types.go @@ -232,8 +232,6 @@ type SubscriptionStatus struct { // CatalogHealth contains the Subscription's view of its relevant CatalogSources' status. // It is used to determine SubscriptionStatusConditions related to CatalogSources. // +optional - // +patchMergeKey= - // +patchStrategy=merge CatalogHealth []SubscriptionCatalogHealth `json:"catalogHealth,omitempty"` // Conditions is a list of the latest available observations about a Subscription's current state. diff --git a/vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/zz_generated.model_name.go b/vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/zz_generated.model_name.go new file mode 100644 index 0000000000..555d6d7f09 --- /dev/null +++ b/vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/zz_generated.model_name.go @@ -0,0 +1,306 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +/* + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by openapi-gen-v0.0. DO NOT EDIT. + +package v1alpha1 + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in APIResourceReference) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.APIResourceReference" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in APIServiceDefinitions) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.APIServiceDefinitions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in APIServiceDescription) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.APIServiceDescription" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ActionDescriptor) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.ActionDescriptor" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppLink) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.AppLink" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in BundleLookup) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.BundleLookup" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in BundleLookupCondition) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.BundleLookupCondition" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CRDDescription) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.CRDDescription" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CatalogSource) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.CatalogSource" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CatalogSourceList) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.CatalogSourceList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CatalogSourceSpec) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.CatalogSourceSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CatalogSourceStatus) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.CatalogSourceStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CleanupSpec) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.CleanupSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CleanupStatus) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.CleanupStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterServiceVersion) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.ClusterServiceVersion" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterServiceVersionCondition) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.ClusterServiceVersionCondition" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterServiceVersionList) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.ClusterServiceVersionList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterServiceVersionSpec) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.ClusterServiceVersionSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterServiceVersionStatus) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.ClusterServiceVersionStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ConfigMapResourceReference) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.ConfigMapResourceReference" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CustomResourceDefinitions) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.CustomResourceDefinitions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in DependentStatus) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.DependentStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ExtractContentConfig) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.ExtractContentConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in GRPCConnectionState) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.GRPCConnectionState" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in GrpcPodConfig) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.GrpcPodConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Icon) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.Icon" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in InstallMode) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.InstallMode" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in InstallPlan) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.InstallPlan" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in InstallPlanCondition) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.InstallPlanCondition" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in InstallPlanList) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.InstallPlanList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in InstallPlanReference) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.InstallPlanReference" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in InstallPlanSpec) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.InstallPlanSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in InstallPlanStatus) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.InstallPlanStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Maintainer) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.Maintainer" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NamedInstallStrategy) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.NamedInstallStrategy" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RegistryPoll) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.RegistryPoll" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RegistryServiceStatus) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.RegistryServiceStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RelatedImage) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.RelatedImage" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RequirementStatus) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.RequirementStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ResourceInstance) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.ResourceInstance" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ResourceList) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.ResourceList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpecDescriptor) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.SpecDescriptor" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in StatusDescriptor) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.StatusDescriptor" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Step) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.Step" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in StepResource) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.StepResource" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in StrategyDeploymentPermissions) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.StrategyDeploymentPermissions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in StrategyDeploymentSpec) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.StrategyDeploymentSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in StrategyDetailsDeployment) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.StrategyDetailsDeployment" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Subscription) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.Subscription" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SubscriptionCatalogHealth) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.SubscriptionCatalogHealth" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SubscriptionCondition) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.SubscriptionCondition" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SubscriptionConfig) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.SubscriptionConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SubscriptionList) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.SubscriptionList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SubscriptionSpec) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.SubscriptionSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SubscriptionStatus) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.SubscriptionStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UpdateStrategy) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.UpdateStrategy" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in WebhookDescription) OpenAPIModelName() string { + return "com.github.operator-framework.api.pkg.operators.v1alpha1.WebhookDescription" +} diff --git a/vendor/github.com/operator-framework/api/pkg/validation/internal/bundle.go b/vendor/github.com/operator-framework/api/pkg/validation/internal/bundle.go index c5f7ba18d5..8e4e22019b 100644 --- a/vendor/github.com/operator-framework/api/pkg/validation/internal/bundle.go +++ b/vendor/github.com/operator-framework/api/pkg/validation/internal/bundle.go @@ -8,6 +8,7 @@ import ( operatorsv1alpha1 "github.com/operator-framework/api/pkg/operators/v1alpha1" "github.com/operator-framework/api/pkg/validation/errors" interfaces "github.com/operator-framework/api/pkg/validation/interfaces" + "go.podman.io/image/v5/docker/reference" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" @@ -46,6 +47,10 @@ func validateBundle(bundle *manifests.Bundle) (result errors.ManifestResult) { if nameErrors != nil { result.Add(nameErrors...) } + relatedImagesErrors := validateRelatedImages(bundle) + if relatedImagesErrors != nil { + result.Add(relatedImagesErrors...) + } return result } @@ -62,6 +67,30 @@ func validateBundleName(bundle *manifests.Bundle) []errors.Error { return errs } +// validateRelatedImages checks that all relatedImages[].image pullspecs are valid +// using github.com/distribution/reference.ParseNormalizedNamed +func validateRelatedImages(bundle *manifests.Bundle) []errors.Error { + var errs []errors.Error + + for i, relatedImage := range bundle.CSV.Spec.RelatedImages { + if relatedImage.Image == "" { + errs = append(errs, errors.ErrInvalidBundle( + fmt.Sprintf("relatedImages[%d] has an empty image field", i), + fmt.Sprintf("spec.relatedImages[%d].image", i))) + continue + } + + // Parse and validate the image reference + if _, err := reference.ParseNormalizedNamed(relatedImage.Image); err != nil { + errs = append(errs, errors.ErrInvalidBundle( + fmt.Sprintf("relatedImages[%d] has an invalid image pullspec %q: %v", i, relatedImage.Image, err), + fmt.Sprintf("spec.relatedImages[%d].image", i))) + } + } + + return errs +} + func validateServiceAccounts(bundle *manifests.Bundle) []errors.Error { // get service account names defined in the csv saNamesFromCSV := make(map[string]struct{}, 0) diff --git a/vendor/modules.txt b/vendor/modules.txt index 1eead2744a..af8b5e7552 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -519,7 +519,7 @@ github.com/openshift/client-go/config/listers/config/v1alpha2 # github.com/openshift/library-go v0.0.0-20260204111611-b7d4fa0e292a ## explicit; go 1.24.0 github.com/openshift/library-go/pkg/crypto -# github.com/operator-framework/api v0.39.0 +# github.com/operator-framework/api v0.40.0 ## explicit; go 1.25.3 github.com/operator-framework/api/crds github.com/operator-framework/api/pkg/constraints From f768a6bf188e55ab6ff227e6f644a69f311f10dc Mon Sep 17 00:00:00 2001 From: Jian Zhang Date: Wed, 25 Feb 2026 15:11:41 +0800 Subject: [PATCH 2/2] Update codegen violation exceptions for operator-framework/api v0.40.0 Add new API rule violations to the exceptions list that were introduced by the operator-framework/api v0.40.0 update. Signed-off-by: Jian Zhang --- .../client/openapi/zz_generated.openapi.go | 3099 +++++++++++++---- scripts/codegen_violation_exceptions.list | 33 + 2 files changed, 2450 insertions(+), 682 deletions(-) diff --git a/pkg/package-server/client/openapi/zz_generated.openapi.go b/pkg/package-server/client/openapi/zz_generated.openapi.go index 0e3e9985f0..38cf1b474e 100644 --- a/pkg/package-server/client/openapi/zz_generated.openapi.go +++ b/pkg/package-server/client/openapi/zz_generated.openapi.go @@ -20,111 +20,142 @@ limitations under the License. package openapi import ( - libversion "github.com/operator-framework/api/pkg/lib/version" + version "github.com/operator-framework/api/pkg/lib/version" + v1alpha1 "github.com/operator-framework/api/pkg/operators/v1alpha1" v1 "github.com/operator-framework/operator-lifecycle-manager/pkg/package-server/apis/operators/v1" resource "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" - version "k8s.io/apimachinery/pkg/version" + pkgversion "k8s.io/apimachinery/pkg/version" common "k8s.io/kube-openapi/pkg/common" spec "k8s.io/kube-openapi/pkg/validation/spec" ) func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/operator-framework/api/pkg/lib/version.OperatorVersion": schema_api_pkg_lib_version_OperatorVersion(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.APIResourceReference": schema_api_pkg_operators_v1alpha1_APIResourceReference(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.APIServiceDefinitions": schema_api_pkg_operators_v1alpha1_APIServiceDefinitions(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.APIServiceDescription": schema_api_pkg_operators_v1alpha1_APIServiceDescription(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.ActionDescriptor": schema_api_pkg_operators_v1alpha1_ActionDescriptor(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.AppLink": schema_api_pkg_operators_v1alpha1_AppLink(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.CRDDescription": schema_api_pkg_operators_v1alpha1_CRDDescription(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.CleanupSpec": schema_api_pkg_operators_v1alpha1_CleanupSpec(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.CleanupStatus": schema_api_pkg_operators_v1alpha1_CleanupStatus(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.ClusterServiceVersionCondition": schema_api_pkg_operators_v1alpha1_ClusterServiceVersionCondition(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.ClusterServiceVersionSpec": schema_api_pkg_operators_v1alpha1_ClusterServiceVersionSpec(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.ClusterServiceVersionStatus": schema_api_pkg_operators_v1alpha1_ClusterServiceVersionStatus(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.CustomResourceDefinitions": schema_api_pkg_operators_v1alpha1_CustomResourceDefinitions(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.DependentStatus": schema_api_pkg_operators_v1alpha1_DependentStatus(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.Icon": schema_api_pkg_operators_v1alpha1_Icon(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.InstallMode": schema_api_pkg_operators_v1alpha1_InstallMode(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.Maintainer": schema_api_pkg_operators_v1alpha1_Maintainer(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.NamedInstallStrategy": schema_api_pkg_operators_v1alpha1_NamedInstallStrategy(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.RelatedImage": schema_api_pkg_operators_v1alpha1_RelatedImage(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.RequirementStatus": schema_api_pkg_operators_v1alpha1_RequirementStatus(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.ResourceInstance": schema_api_pkg_operators_v1alpha1_ResourceInstance(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.ResourceList": schema_api_pkg_operators_v1alpha1_ResourceList(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.SpecDescriptor": schema_api_pkg_operators_v1alpha1_SpecDescriptor(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.StatusDescriptor": schema_api_pkg_operators_v1alpha1_StatusDescriptor(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.StrategyDeploymentPermissions": schema_api_pkg_operators_v1alpha1_StrategyDeploymentPermissions(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.StrategyDeploymentSpec": schema_api_pkg_operators_v1alpha1_StrategyDeploymentSpec(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.StrategyDetailsDeployment": schema_api_pkg_operators_v1alpha1_StrategyDetailsDeployment(ref), - "github.com/operator-framework/api/pkg/operators/v1alpha1.WebhookDescription": schema_api_pkg_operators_v1alpha1_WebhookDescription(ref), - v1.AppLink{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_AppLink(ref), - v1.CSVDescription{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_CSVDescription(ref), - v1.ChannelEntry{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_ChannelEntry(ref), - v1.Deprecation{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_Deprecation(ref), - v1.Icon{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_Icon(ref), - v1.Maintainer{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_Maintainer(ref), - v1.PackageChannel{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_PackageChannel(ref), - v1.PackageManifest{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_PackageManifest(ref), - v1.PackageManifestList{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_PackageManifestList(ref), - v1.PackageManifestSpec{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_PackageManifestSpec(ref), - v1.PackageManifestStatus{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_PackageManifestStatus(ref), - resource.Quantity{}.OpenAPIModelName(): schema_apimachinery_pkg_api_resource_Quantity(ref), - metav1.APIGroup{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroup(ref), - metav1.APIGroupList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroupList(ref), - metav1.APIResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResource(ref), - metav1.APIResourceList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResourceList(ref), - metav1.APIVersions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIVersions(ref), - metav1.ApplyOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ApplyOptions(ref), - metav1.Condition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Condition(ref), - metav1.CreateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_CreateOptions(ref), - metav1.DeleteOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_DeleteOptions(ref), - metav1.Duration{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Duration(ref), - metav1.FieldSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), - metav1.FieldsV1{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldsV1(ref), - metav1.GetOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GetOptions(ref), - metav1.GroupKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupKind(ref), - metav1.GroupResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupResource(ref), - metav1.GroupVersion{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersion(ref), - metav1.GroupVersionForDiscovery{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), - metav1.GroupVersionKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionKind(ref), - metav1.GroupVersionResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionResource(ref), - metav1.InternalEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_InternalEvent(ref), - metav1.LabelSelector{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelector(ref), - metav1.LabelSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), - metav1.List{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_List(ref), - metav1.ListMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListMeta(ref), - metav1.ListOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListOptions(ref), - metav1.ManagedFieldsEntry{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), - metav1.MicroTime{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_MicroTime(ref), - metav1.ObjectMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ObjectMeta(ref), - metav1.OwnerReference{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_OwnerReference(ref), - metav1.PartialObjectMetadata{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), - metav1.PartialObjectMetadataList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), - metav1.Patch{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Patch(ref), - metav1.PatchOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PatchOptions(ref), - metav1.Preconditions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Preconditions(ref), - metav1.RootPaths{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_RootPaths(ref), - metav1.ServerAddressByClientCIDR{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), - metav1.Status{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Status(ref), - metav1.StatusCause{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusCause(ref), - metav1.StatusDetails{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusDetails(ref), - metav1.Table{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Table(ref), - metav1.TableColumnDefinition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableColumnDefinition(ref), - metav1.TableOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableOptions(ref), - metav1.TableRow{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRow(ref), - metav1.TableRowCondition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRowCondition(ref), - metav1.Time{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Time(ref), - metav1.Timestamp{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Timestamp(ref), - metav1.TypeMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TypeMeta(ref), - metav1.UpdateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_UpdateOptions(ref), - metav1.WatchEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_WatchEvent(ref), - runtime.RawExtension{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), - runtime.TypeMeta{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), - runtime.Unknown{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), - version.Info{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_version_Info(ref), + version.OperatorVersion{}.OpenAPIModelName(): schema_api_pkg_lib_version_OperatorVersion(ref), + v1alpha1.APIResourceReference{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_APIResourceReference(ref), + v1alpha1.APIServiceDefinitions{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_APIServiceDefinitions(ref), + v1alpha1.APIServiceDescription{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_APIServiceDescription(ref), + v1alpha1.ActionDescriptor{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_ActionDescriptor(ref), + v1alpha1.AppLink{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_AppLink(ref), + v1alpha1.BundleLookup{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_BundleLookup(ref), + v1alpha1.BundleLookupCondition{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_BundleLookupCondition(ref), + v1alpha1.CRDDescription{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_CRDDescription(ref), + v1alpha1.CatalogSource{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_CatalogSource(ref), + v1alpha1.CatalogSourceList{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_CatalogSourceList(ref), + v1alpha1.CatalogSourceSpec{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_CatalogSourceSpec(ref), + v1alpha1.CatalogSourceStatus{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_CatalogSourceStatus(ref), + v1alpha1.CleanupSpec{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_CleanupSpec(ref), + v1alpha1.CleanupStatus{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_CleanupStatus(ref), + v1alpha1.ClusterServiceVersion{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_ClusterServiceVersion(ref), + v1alpha1.ClusterServiceVersionCondition{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_ClusterServiceVersionCondition(ref), + v1alpha1.ClusterServiceVersionList{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_ClusterServiceVersionList(ref), + v1alpha1.ClusterServiceVersionSpec{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_ClusterServiceVersionSpec(ref), + v1alpha1.ClusterServiceVersionStatus{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_ClusterServiceVersionStatus(ref), + v1alpha1.ConfigMapResourceReference{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_ConfigMapResourceReference(ref), + v1alpha1.CustomResourceDefinitions{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_CustomResourceDefinitions(ref), + v1alpha1.DependentStatus{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_DependentStatus(ref), + v1alpha1.ExtractContentConfig{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_ExtractContentConfig(ref), + v1alpha1.GRPCConnectionState{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_GRPCConnectionState(ref), + v1alpha1.GrpcPodConfig{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_GrpcPodConfig(ref), + v1alpha1.Icon{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_Icon(ref), + v1alpha1.InstallMode{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_InstallMode(ref), + v1alpha1.InstallPlan{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_InstallPlan(ref), + v1alpha1.InstallPlanCondition{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_InstallPlanCondition(ref), + v1alpha1.InstallPlanList{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_InstallPlanList(ref), + v1alpha1.InstallPlanReference{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_InstallPlanReference(ref), + v1alpha1.InstallPlanSpec{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_InstallPlanSpec(ref), + v1alpha1.InstallPlanStatus{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_InstallPlanStatus(ref), + v1alpha1.Maintainer{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_Maintainer(ref), + v1alpha1.NamedInstallStrategy{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_NamedInstallStrategy(ref), + v1alpha1.RegistryPoll{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_RegistryPoll(ref), + v1alpha1.RegistryServiceStatus{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_RegistryServiceStatus(ref), + v1alpha1.RelatedImage{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_RelatedImage(ref), + v1alpha1.RequirementStatus{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_RequirementStatus(ref), + v1alpha1.ResourceInstance{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_ResourceInstance(ref), + v1alpha1.ResourceList{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_ResourceList(ref), + v1alpha1.SpecDescriptor{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_SpecDescriptor(ref), + v1alpha1.StatusDescriptor{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_StatusDescriptor(ref), + v1alpha1.Step{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_Step(ref), + v1alpha1.StepResource{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_StepResource(ref), + v1alpha1.StrategyDeploymentPermissions{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_StrategyDeploymentPermissions(ref), + v1alpha1.StrategyDeploymentSpec{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_StrategyDeploymentSpec(ref), + v1alpha1.StrategyDetailsDeployment{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_StrategyDetailsDeployment(ref), + v1alpha1.Subscription{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_Subscription(ref), + v1alpha1.SubscriptionCatalogHealth{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_SubscriptionCatalogHealth(ref), + v1alpha1.SubscriptionCondition{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_SubscriptionCondition(ref), + v1alpha1.SubscriptionConfig{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_SubscriptionConfig(ref), + v1alpha1.SubscriptionList{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_SubscriptionList(ref), + v1alpha1.SubscriptionSpec{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_SubscriptionSpec(ref), + v1alpha1.SubscriptionStatus{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_SubscriptionStatus(ref), + v1alpha1.UpdateStrategy{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_UpdateStrategy(ref), + v1alpha1.WebhookDescription{}.OpenAPIModelName(): schema_api_pkg_operators_v1alpha1_WebhookDescription(ref), + v1.AppLink{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_AppLink(ref), + v1.CSVDescription{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_CSVDescription(ref), + v1.ChannelEntry{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_ChannelEntry(ref), + v1.Deprecation{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_Deprecation(ref), + v1.Icon{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_Icon(ref), + v1.Maintainer{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_Maintainer(ref), + v1.PackageChannel{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_PackageChannel(ref), + v1.PackageManifest{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_PackageManifest(ref), + v1.PackageManifestList{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_PackageManifestList(ref), + v1.PackageManifestSpec{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_PackageManifestSpec(ref), + v1.PackageManifestStatus{}.OpenAPIModelName(): schema_package_server_apis_operators_v1_PackageManifestStatus(ref), + resource.Quantity{}.OpenAPIModelName(): schema_apimachinery_pkg_api_resource_Quantity(ref), + metav1.APIGroup{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroup(ref), + metav1.APIGroupList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroupList(ref), + metav1.APIResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResource(ref), + metav1.APIResourceList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResourceList(ref), + metav1.APIVersions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIVersions(ref), + metav1.ApplyOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ApplyOptions(ref), + metav1.Condition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Condition(ref), + metav1.CreateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_CreateOptions(ref), + metav1.DeleteOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_DeleteOptions(ref), + metav1.Duration{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Duration(ref), + metav1.FieldSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), + metav1.FieldsV1{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldsV1(ref), + metav1.GetOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GetOptions(ref), + metav1.GroupKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupKind(ref), + metav1.GroupResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupResource(ref), + metav1.GroupVersion{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersion(ref), + metav1.GroupVersionForDiscovery{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), + metav1.GroupVersionKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionKind(ref), + metav1.GroupVersionResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionResource(ref), + metav1.InternalEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_InternalEvent(ref), + metav1.LabelSelector{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelector(ref), + metav1.LabelSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), + metav1.List{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_List(ref), + metav1.ListMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListMeta(ref), + metav1.ListOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListOptions(ref), + metav1.ManagedFieldsEntry{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), + metav1.MicroTime{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_MicroTime(ref), + metav1.ObjectMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ObjectMeta(ref), + metav1.OwnerReference{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_OwnerReference(ref), + metav1.PartialObjectMetadata{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), + metav1.PartialObjectMetadataList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), + metav1.Patch{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Patch(ref), + metav1.PatchOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PatchOptions(ref), + metav1.Preconditions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Preconditions(ref), + metav1.RootPaths{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_RootPaths(ref), + metav1.ServerAddressByClientCIDR{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), + metav1.Status{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Status(ref), + metav1.StatusCause{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusCause(ref), + metav1.StatusDetails{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusDetails(ref), + metav1.Table{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Table(ref), + metav1.TableColumnDefinition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableColumnDefinition(ref), + metav1.TableOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableOptions(ref), + metav1.TableRow{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRow(ref), + metav1.TableRowCondition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRowCondition(ref), + metav1.Time{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Time(ref), + metav1.Timestamp{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Timestamp(ref), + metav1.TypeMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TypeMeta(ref), + metav1.UpdateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_UpdateOptions(ref), + metav1.WatchEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_WatchEvent(ref), + runtime.RawExtension{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), + runtime.TypeMeta{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), + runtime.Unknown{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), + pkgversion.Info{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_version_Info(ref), } } @@ -133,8 +164,8 @@ func schema_api_pkg_lib_version_OperatorVersion(ref common.ReferenceCallback) co Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "OperatorVersion is a wrapper around semver.Version which supports correct marshaling to YAML and JSON.", - Type: libversion.OperatorVersion{}.OpenAPISchemaType(), - Format: libversion.OperatorVersion{}.OpenAPISchemaFormat(), + Type: version.OperatorVersion{}.OpenAPISchemaType(), + Format: version.OperatorVersion{}.OpenAPISchemaFormat(), }, }, } @@ -192,7 +223,7 @@ func schema_api_pkg_operators_v1alpha1_APIServiceDefinitions(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.APIServiceDescription"), + Ref: ref(v1alpha1.APIServiceDescription{}.OpenAPIModelName()), }, }, }, @@ -205,7 +236,7 @@ func schema_api_pkg_operators_v1alpha1_APIServiceDefinitions(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.APIServiceDescription"), + Ref: ref(v1alpha1.APIServiceDescription{}.OpenAPIModelName()), }, }, }, @@ -215,7 +246,7 @@ func schema_api_pkg_operators_v1alpha1_APIServiceDefinitions(ref common.Referenc }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/operators/v1alpha1.APIServiceDescription"}, + v1alpha1.APIServiceDescription{}.OpenAPIModelName()}, } } @@ -285,7 +316,7 @@ func schema_api_pkg_operators_v1alpha1_APIServiceDescription(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.APIResourceReference"), + Ref: ref(v1alpha1.APIResourceReference{}.OpenAPIModelName()), }, }, }, @@ -298,7 +329,7 @@ func schema_api_pkg_operators_v1alpha1_APIServiceDescription(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.StatusDescriptor"), + Ref: ref(v1alpha1.StatusDescriptor{}.OpenAPIModelName()), }, }, }, @@ -311,7 +342,7 @@ func schema_api_pkg_operators_v1alpha1_APIServiceDescription(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.SpecDescriptor"), + Ref: ref(v1alpha1.SpecDescriptor{}.OpenAPIModelName()), }, }, }, @@ -324,7 +355,7 @@ func schema_api_pkg_operators_v1alpha1_APIServiceDescription(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.ActionDescriptor"), + Ref: ref(v1alpha1.ActionDescriptor{}.OpenAPIModelName()), }, }, }, @@ -335,7 +366,7 @@ func schema_api_pkg_operators_v1alpha1_APIServiceDescription(ref common.Referenc }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/operators/v1alpha1.APIResourceReference", "github.com/operator-framework/api/pkg/operators/v1alpha1.ActionDescriptor", "github.com/operator-framework/api/pkg/operators/v1alpha1.SpecDescriptor", "github.com/operator-framework/api/pkg/operators/v1alpha1.StatusDescriptor"}, + v1alpha1.APIResourceReference{}.OpenAPIModelName(), v1alpha1.ActionDescriptor{}.OpenAPIModelName(), v1alpha1.SpecDescriptor{}.OpenAPIModelName(), v1alpha1.StatusDescriptor{}.OpenAPIModelName()}, } } @@ -416,6 +447,136 @@ func schema_api_pkg_operators_v1alpha1_AppLink(ref common.ReferenceCallback) com } } +func schema_api_pkg_operators_v1alpha1_BundleLookup(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BundleLookup is a request to pull and unpackage the content of a bundle to the cluster.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "path": { + SchemaProps: spec.SchemaProps{ + Description: "Path refers to the location of a bundle to pull. It's typically an image reference.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "identifier": { + SchemaProps: spec.SchemaProps{ + Description: "Identifier is the catalog-unique name of the operator (the name of the CSV for bundles that contain CSVs)", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "replaces": { + SchemaProps: spec.SchemaProps{ + Description: "Replaces is the name of the bundle to replace with the one found at Path.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "catalogSourceRef": { + SchemaProps: spec.SchemaProps{ + Description: "CatalogSourceRef is a reference to the CatalogSource the bundle path was resolved from.", + Ref: ref("k8s.io/api/core/v1.ObjectReference"), + }, + }, + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Conditions represents the overall state of a BundleLookup.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.BundleLookupCondition{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "properties": { + SchemaProps: spec.SchemaProps{ + Description: "The effective properties of the unpacked bundle.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"path", "identifier", "replaces", "catalogSourceRef"}, + }, + }, + Dependencies: []string{ + v1alpha1.BundleLookupCondition{}.OpenAPIModelName(), "k8s.io/api/core/v1.ObjectReference"}, + } +} + +func schema_api_pkg_operators_v1alpha1_BundleLookupCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Type of condition.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "Status of the condition, one of True, False, Unknown.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "The reason for the condition's last transition.", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "A human readable message indicating details about the transition.", + Type: []string{"string"}, + Format: "", + }, + }, + "lastUpdateTime": { + SchemaProps: spec.SchemaProps{ + Description: "Last time the condition was probed.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Description: "Last time the condition transitioned from one status to another.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"type", "status"}, + }, + }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, + } +} + func schema_api_pkg_operators_v1alpha1_CRDDescription(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -463,7 +624,7 @@ func schema_api_pkg_operators_v1alpha1_CRDDescription(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.APIResourceReference"), + Ref: ref(v1alpha1.APIResourceReference{}.OpenAPIModelName()), }, }, }, @@ -476,7 +637,7 @@ func schema_api_pkg_operators_v1alpha1_CRDDescription(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.StatusDescriptor"), + Ref: ref(v1alpha1.StatusDescriptor{}.OpenAPIModelName()), }, }, }, @@ -489,7 +650,7 @@ func schema_api_pkg_operators_v1alpha1_CRDDescription(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.SpecDescriptor"), + Ref: ref(v1alpha1.SpecDescriptor{}.OpenAPIModelName()), }, }, }, @@ -502,7 +663,7 @@ func schema_api_pkg_operators_v1alpha1_CRDDescription(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.ActionDescriptor"), + Ref: ref(v1alpha1.ActionDescriptor{}.OpenAPIModelName()), }, }, }, @@ -513,374 +674,393 @@ func schema_api_pkg_operators_v1alpha1_CRDDescription(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/operators/v1alpha1.APIResourceReference", "github.com/operator-framework/api/pkg/operators/v1alpha1.ActionDescriptor", "github.com/operator-framework/api/pkg/operators/v1alpha1.SpecDescriptor", "github.com/operator-framework/api/pkg/operators/v1alpha1.StatusDescriptor"}, + v1alpha1.APIResourceReference{}.OpenAPIModelName(), v1alpha1.ActionDescriptor{}.OpenAPIModelName(), v1alpha1.SpecDescriptor{}.OpenAPIModelName(), v1alpha1.StatusDescriptor{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_CleanupSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_CatalogSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "CatalogSource is a repository of CSVs, CRDs, and operator packages.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { + "kind": { SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"enabled"}, - }, - }, - } -} - -func schema_api_pkg_operators_v1alpha1_CleanupStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "CleanupStatus represents information about the status of cleanup while a CSV is pending deletion", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "pendingDeletion": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "PendingDeletion is the list of custom resource objects that are pending deletion and blocked on finalizers. This indicates the progress of cleanup that is blocking CSV deletion or operator uninstall.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.ResourceList"), - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.CatalogSourceSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.CatalogSourceStatus{}.OpenAPIModelName()), }, }, }, + Required: []string{"metadata", "spec"}, }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/operators/v1alpha1.ResourceList"}, + v1alpha1.CatalogSourceSpec{}.OpenAPIModelName(), v1alpha1.CatalogSourceStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_ClusterServiceVersionCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_CatalogSourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Conditions appear in the status as a record of state transitions on the ClusterServiceVersion", + Description: "CatalogSourceList is a repository of CSVs, CRDs, and operator packages.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "Condition of the ClusterServiceVersion", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "A human readable message indicating details about why the ClusterServiceVersion is in this condition.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "reason": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "A brief CamelCase message indicating details about why the ClusterServiceVersion is in this state. e.g. 'RequirementsNotMet'", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "lastUpdateTime": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Last time we updated the status", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "lastTransitionTime": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Last time the status transitioned from one status to another.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.CatalogSource{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"metadata", "items"}, }, }, Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, + v1alpha1.CatalogSource{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_ClusterServiceVersionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_CatalogSourceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterServiceVersionSpec declarations tell OLM how to install an operator that can manage apps for a given version.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "install": { + "sourceType": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.NamedInstallStrategy"), + Description: "SourceType is the type of source", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "version": { + "priority": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/operator-framework/api/pkg/lib/version.OperatorVersion"), + Description: "Priority field assigns a weight to the catalog source to prioritize them so that it can be consumed by the dependency resolver. Usage: Higher weight indicates that this catalog source is preferred over lower weighted catalog sources during dependency resolution. The range of the priority value can go from positive to negative in the range of int32. The default value to a catalog source with unassigned priority would be 0. The catalog source with the same priority values will be ranked lexicographically based on its name.", + Type: []string{"integer"}, + Format: "int32", }, }, - "release": { + "configMap": { SchemaProps: spec.SchemaProps{ - Description: "release specifies the packaging version of the operator, defaulting to empty release is optional\n\nA ClusterServiceVersion's release field is used to distinguish between different builds of the same operator version This is useful for operators that need to make changes to the CSV which don't affect their functionality, for example: - to fix a typo in their description - to add/amend annotations or labels - to amend examples or documentation - to produce different builds for different environments\n\nIt is up to operator authors to determine the semantics of release versions they use for their operator. All release versions must conform to the semver prerelease format (dot-separated identifiers containing only alphanumerics and hyphens) and are limited to a maximum length of 20 characters.", - Ref: ref("github.com/operator-framework/api/pkg/lib/release.OperatorRelease"), + Description: "ConfigMap is the name of the ConfigMap to be used to back a configmap-server registry. Only used when SourceType = SourceTypeConfigmap or SourceTypeInternal.", + Type: []string{"string"}, + Format: "", }, }, - "maturity": { + "address": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Address is a host that OLM can use to connect to a pre-existing registry. Format: : Only used when SourceType = SourceTypeGrpc. Ignored when the Image field is set.", + Type: []string{"string"}, + Format: "", }, }, - "customresourcedefinitions": { + "image": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.CustomResourceDefinitions"), + Description: "Image is an operator-registry container image to instantiate a registry-server with. Only used when SourceType = SourceTypeGrpc. If present, the address field is ignored.", + Type: []string{"string"}, + Format: "", }, }, - "apiservicedefinitions": { + "grpcPodConfig": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.APIServiceDefinitions"), + Description: "GrpcPodConfig exposes different overrides for the pod spec of the CatalogSource Pod. Only used when SourceType = SourceTypeGrpc and Image is set.", + Ref: ref(v1alpha1.GrpcPodConfig{}.OpenAPIModelName()), }, }, - "webhookdefinitions": { + "updateStrategy": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.WebhookDescription"), - }, - }, - }, + Description: "UpdateStrategy defines how updated catalog source images can be discovered Consists of an interval that defines polling duration and an embedded strategy type", + Ref: ref(v1alpha1.UpdateStrategy{}.OpenAPIModelName()), }, }, - "nativeAPIs": { + "secrets": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Secrets represent set of secrets that can be used to access the contents of the catalog. It is best to keep this list small, since each will need to be tried for every catalog entry.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.GroupVersionKind{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "minKubeVersion": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, "displayName": { SchemaProps: spec.SchemaProps{ - Description: "The name of the operator in display format.", - Default: "", + Description: "Metadata", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description of the operator. Can include the features, limitations or use-cases of the operator.", - Type: []string{"string"}, + Type: []string{"string"}, + Format: "", + }, + }, + "publisher": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "icon": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.Icon{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"sourceType"}, + }, + }, + Dependencies: []string{ + v1alpha1.GrpcPodConfig{}.OpenAPIModelName(), v1alpha1.Icon{}.OpenAPIModelName(), v1alpha1.UpdateStrategy{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_CatalogSourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "message": { + SchemaProps: spec.SchemaProps{ + Description: "A human readable message indicating details about why the CatalogSource is in this condition.", + Type: []string{"string"}, Format: "", }, }, - "keywords": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "A list of keywords describing the operator.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Reason is the reason the CatalogSource was transitioned to its current state.", + Type: []string{"string"}, + Format: "", }, }, - "maintainers": { + "latestImageRegistryPoll": { SchemaProps: spec.SchemaProps{ - Description: "A list of organizational entities maintaining the operator.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.Maintainer"), - }, - }, - }, + Description: "The last time the CatalogSource image registry has been polled to ensure the image is up-to-date", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "provider": { + "configMapReference": { SchemaProps: spec.SchemaProps{ - Description: "The publishing entity behind the operator.", - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.AppLink"), + Description: "ConfigMapReference (deprecated) is the reference to the ConfigMap containing the catalog source's configuration, when the catalog source is a ConfigMap", + Ref: ref(v1alpha1.ConfigMapResourceReference{}.OpenAPIModelName()), }, }, - "links": { + "registryService": { SchemaProps: spec.SchemaProps{ - Description: "A list of links related to the operator.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.AppLink"), - }, - }, - }, + Description: "RegistryService represents the current state of the GRPC service used to serve the catalog", + Ref: ref(v1alpha1.RegistryServiceStatus{}.OpenAPIModelName()), }, }, - "icon": { + "connectionState": { SchemaProps: spec.SchemaProps{ - Description: "The icon for this operator.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.Icon"), - }, + Description: "ConnectionState represents the current state of the CatalogSource's connection to the registry", + Ref: ref(v1alpha1.GRPCConnectionState{}.OpenAPIModelName()), + }, + }, + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", }, }, - }, - "installModes": { SchemaProps: spec.SchemaProps{ - Description: "InstallModes specify supported installation types", + Description: "Represents the state of a CatalogSource. Note that Message and Reason represent the original status information, which may be migrated to be conditions based in the future. Any new features introduced will use conditions.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.InstallMode"), + Ref: ref(metav1.Condition{}.OpenAPIModelName()), }, }, }, }, }, - "replaces": { + }, + }, + }, + Dependencies: []string{ + v1alpha1.ConfigMapResourceReference{}.OpenAPIModelName(), v1alpha1.GRPCConnectionState{}.OpenAPIModelName(), v1alpha1.RegistryServiceStatus{}.OpenAPIModelName(), metav1.Condition{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_CleanupSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "The name of a CSV this one replaces. Should match the `metadata.Name` field of the old CSV.", - Type: []string{"string"}, - Format: "", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "labels": { + }, + Required: []string{"enabled"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_CleanupStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "CleanupStatus represents information about the status of cleanup while a CSV is pending deletion", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "pendingDeletion": { SchemaProps: spec.SchemaProps{ - Description: "Map of string keys and values that can be used to organize and categorize (scope and select) objects.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "PendingDeletion is the list of custom resource objects that are pending deletion and blocked on finalizers. This indicates the progress of cleanup that is blocking CSV deletion or operator uninstall.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.ResourceList{}.OpenAPIModelName()), }, }, }, }, }, - "annotations": { + }, + }, + }, + Dependencies: []string{ + v1alpha1.ResourceList{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_ClusterServiceVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterServiceVersion is a Custom Resource of type `ClusterServiceVersionSpec`.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "selector": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Label selector for related resources.", - Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "cleanup": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Cleanup specifies the cleanup behaviour when the CSV gets deleted", - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.CleanupSpec"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "skips": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "The name(s) of one or more CSV(s) that should be skipped in the upgrade graph. Should match the `metadata.Name` field of the CSV that should be skipped. This field is only used during catalog creation and plays no part in cluster runtime.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.ClusterServiceVersionSpec{}.OpenAPIModelName()), }, }, - "relatedImages": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "List any related images, or other container images that your Operator might require to perform their functions. This list should also include operand images as well. All image references should be specified by digest (SHA) and not by tag. This field is only used during catalog creation and plays no part in cluster runtime.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.RelatedImage"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.ClusterServiceVersionStatus{}.OpenAPIModelName()), }, }, }, - Required: []string{"install", "displayName"}, + Required: []string{"metadata", "spec"}, }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/lib/release.OperatorRelease", "github.com/operator-framework/api/pkg/lib/version.OperatorVersion", "github.com/operator-framework/api/pkg/operators/v1alpha1.APIServiceDefinitions", "github.com/operator-framework/api/pkg/operators/v1alpha1.AppLink", "github.com/operator-framework/api/pkg/operators/v1alpha1.CleanupSpec", "github.com/operator-framework/api/pkg/operators/v1alpha1.CustomResourceDefinitions", "github.com/operator-framework/api/pkg/operators/v1alpha1.Icon", "github.com/operator-framework/api/pkg/operators/v1alpha1.InstallMode", "github.com/operator-framework/api/pkg/operators/v1alpha1.Maintainer", "github.com/operator-framework/api/pkg/operators/v1alpha1.NamedInstallStrategy", "github.com/operator-framework/api/pkg/operators/v1alpha1.RelatedImage", "github.com/operator-framework/api/pkg/operators/v1alpha1.WebhookDescription", metav1.GroupVersionKind{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, + v1alpha1.ClusterServiceVersionSpec{}.OpenAPIModelName(), v1alpha1.ClusterServiceVersionStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_ClusterServiceVersionStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_ClusterServiceVersionCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterServiceVersionStatus represents information about the status of a CSV. Status may trail the actual state of a system.", + Description: "Conditions appear in the status as a record of state transitions on the ClusterServiceVersion", Type: []string{"object"}, Properties: map[string]spec.Schema{ "phase": { SchemaProps: spec.SchemaProps{ - Description: "Current condition of the ClusterServiceVersion", + Description: "Condition of the ClusterServiceVersion", Type: []string{"string"}, Format: "", }, @@ -911,675 +1091,2230 @@ func schema_api_pkg_operators_v1alpha1_ClusterServiceVersionStatus(ref common.Re Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "conditions": { + }, + }, + }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_ClusterServiceVersionList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterServiceVersionList represents a list of ClusterServiceVersions.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "List of conditions, a history of state transitions", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.ClusterServiceVersionCondition"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "requirementStatus": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The status of each requirement for this CSV", - Type: []string{"array"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.RequirementStatus"), + Ref: ref(v1alpha1.ClusterServiceVersion{}.OpenAPIModelName()), }, }, }, }, }, - "certsLastUpdated": { + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + v1alpha1.ClusterServiceVersion{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_ClusterServiceVersionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterServiceVersionSpec declarations tell OLM how to install an operator that can manage apps for a given version.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "install": { SchemaProps: spec.SchemaProps{ - Description: "Last time the owned APIService certs were updated", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.NamedInstallStrategy{}.OpenAPIModelName()), }, }, - "certsRotateAt": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Time the owned APIService certs will rotate next", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Ref: ref(version.OperatorVersion{}.OpenAPIModelName()), + }, + }, + "release": { + SchemaProps: spec.SchemaProps{ + Description: "release specifies the packaging version of the operator, defaulting to empty release is optional\n\nA ClusterServiceVersion's release field is used to distinguish between different builds of the same operator version This is useful for operators that need to make changes to the CSV which don't affect their functionality, for example: - to fix a typo in their description - to add/amend annotations or labels - to amend examples or documentation - to produce different builds for different environments\n\nIt is up to operator authors to determine the semantics of release versions they use for their operator. All release versions must conform to the semver prerelease format (dot-separated identifiers containing only alphanumerics and hyphens) and are limited to a maximum length of 20 characters.", + Ref: ref("github.com/operator-framework/api/pkg/lib/release.OperatorRelease"), + }, + }, + "maturity": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "customresourcedefinitions": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.CustomResourceDefinitions{}.OpenAPIModelName()), + }, + }, + "apiservicedefinitions": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.APIServiceDefinitions{}.OpenAPIModelName()), + }, + }, + "webhookdefinitions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.WebhookDescription{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "nativeAPIs": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.GroupVersionKind{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "minKubeVersion": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "The name of the operator in display format.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description of the operator. Can include the features, limitations or use-cases of the operator.", + Type: []string{"string"}, + Format: "", + }, + }, + "keywords": { + SchemaProps: spec.SchemaProps{ + Description: "A list of keywords describing the operator.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "maintainers": { + SchemaProps: spec.SchemaProps{ + Description: "A list of organizational entities maintaining the operator.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.Maintainer{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "provider": { + SchemaProps: spec.SchemaProps{ + Description: "The publishing entity behind the operator.", + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.AppLink{}.OpenAPIModelName()), + }, + }, + "links": { + SchemaProps: spec.SchemaProps{ + Description: "A list of links related to the operator.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.AppLink{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "icon": { + SchemaProps: spec.SchemaProps{ + Description: "The icon for this operator.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.Icon{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "installModes": { + SchemaProps: spec.SchemaProps{ + Description: "InstallModes specify supported installation types", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.InstallMode{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "replaces": { + SchemaProps: spec.SchemaProps{ + Description: "The name of a CSV this one replaces. Should match the `metadata.Name` field of the old CSV.", + Type: []string{"string"}, + Format: "", + }, + }, + "labels": { + SchemaProps: spec.SchemaProps{ + Description: "Map of string keys and values that can be used to organize and categorize (scope and select) objects.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "annotations": { + SchemaProps: spec.SchemaProps{ + Description: "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "selector": { + SchemaProps: spec.SchemaProps{ + Description: "Label selector for related resources.", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "cleanup": { SchemaProps: spec.SchemaProps{ - Description: "CleanupStatus represents information about the status of cleanup while a CSV is pending deletion", + Description: "Cleanup specifies the cleanup behaviour when the CSV gets deleted", Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.CleanupStatus"), + Ref: ref(v1alpha1.CleanupSpec{}.OpenAPIModelName()), + }, + }, + "skips": { + SchemaProps: spec.SchemaProps{ + Description: "The name(s) of one or more CSV(s) that should be skipped in the upgrade graph. Should match the `metadata.Name` field of the CSV that should be skipped. This field is only used during catalog creation and plays no part in cluster runtime.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "relatedImages": { + SchemaProps: spec.SchemaProps{ + Description: "List any related images, or other container images that your Operator might require to perform their functions. This list should also include operand images as well. All image references should be specified by digest (SHA) and not by tag. This field is only used during catalog creation and plays no part in cluster runtime.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.RelatedImage{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"install", "displayName"}, + }, + }, + Dependencies: []string{ + "github.com/operator-framework/api/pkg/lib/release.OperatorRelease", version.OperatorVersion{}.OpenAPIModelName(), v1alpha1.APIServiceDefinitions{}.OpenAPIModelName(), v1alpha1.AppLink{}.OpenAPIModelName(), v1alpha1.CleanupSpec{}.OpenAPIModelName(), v1alpha1.CustomResourceDefinitions{}.OpenAPIModelName(), v1alpha1.Icon{}.OpenAPIModelName(), v1alpha1.InstallMode{}.OpenAPIModelName(), v1alpha1.Maintainer{}.OpenAPIModelName(), v1alpha1.NamedInstallStrategy{}.OpenAPIModelName(), v1alpha1.RelatedImage{}.OpenAPIModelName(), v1alpha1.WebhookDescription{}.OpenAPIModelName(), metav1.GroupVersionKind{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_ClusterServiceVersionStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterServiceVersionStatus represents information about the status of a CSV. Status may trail the actual state of a system.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Current condition of the ClusterServiceVersion", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "A human readable message indicating details about why the ClusterServiceVersion is in this condition.", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "A brief CamelCase message indicating details about why the ClusterServiceVersion is in this state. e.g. 'RequirementsNotMet'", + Type: []string{"string"}, + Format: "", + }, + }, + "lastUpdateTime": { + SchemaProps: spec.SchemaProps{ + Description: "Last time we updated the status", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Description: "Last time the status transitioned from one status to another.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "List of conditions, a history of state transitions", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.ClusterServiceVersionCondition{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "requirementStatus": { + SchemaProps: spec.SchemaProps{ + Description: "The status of each requirement for this CSV", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.RequirementStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "certsLastUpdated": { + SchemaProps: spec.SchemaProps{ + Description: "Last time the owned APIService certs were updated", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "certsRotateAt": { + SchemaProps: spec.SchemaProps{ + Description: "Time the owned APIService certs will rotate next", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "cleanup": { + SchemaProps: spec.SchemaProps{ + Description: "CleanupStatus represents information about the status of cleanup while a CSV is pending deletion", + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.CleanupStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + v1alpha1.CleanupStatus{}.OpenAPIModelName(), v1alpha1.ClusterServiceVersionCondition{}.OpenAPIModelName(), v1alpha1.RequirementStatus{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_ConfigMapResourceReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "uid": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "resourceVersion": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "lastUpdateTime": { + SchemaProps: spec.SchemaProps{ + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"name", "namespace"}, + }, + }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_CustomResourceDefinitions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "CustomResourceDefinitions declares all of the CRDs managed or required by an operator being ran by ClusterServiceVersion.\n\nIf the CRD is present in the Owned list, it is implicitly required.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "owned": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.CRDDescription{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "required": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.CRDDescription{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + v1alpha1.CRDDescription{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_DependentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DependentStatus is the status for a dependent requirement (to prevent infinite nesting)", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "uuid": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"group", "version", "kind", "status"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_ExtractContentConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ExtractContentConfig configures context extraction from a file-based catalog index image.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cacheDir": { + SchemaProps: spec.SchemaProps{ + Description: "CacheDir is the (optional) directory storing the pre-calculated API cache.", + Type: []string{"string"}, + Format: "", + }, + }, + "catalogDir": { + SchemaProps: spec.SchemaProps{ + Description: "CatalogDir is the directory storing the file-based catalog contents.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"catalogDir"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_GRPCConnectionState(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "address": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "lastObservedState": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "lastConnect": { + SchemaProps: spec.SchemaProps{ + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"lastObservedState"}, + }, + }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_GrpcPodConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "GrpcPodConfig contains configuration specified for a catalog source", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "nodeSelector": { + SchemaProps: spec.SchemaProps{ + Description: "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "tolerations": { + SchemaProps: spec.SchemaProps{ + Description: "Tolerations are the catalog source's pod's tolerations.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Toleration"), + }, + }, + }, + }, + }, + "affinity": { + SchemaProps: spec.SchemaProps{ + Description: "Affinity is the catalog source's pod's affinity.", + Ref: ref("k8s.io/api/core/v1.Affinity"), + }, + }, + "priorityClassName": { + SchemaProps: spec.SchemaProps{ + Description: "If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default.", + Type: []string{"string"}, + Format: "", + }, + }, + "securityContextConfig": { + SchemaProps: spec.SchemaProps{ + Description: "SecurityContextConfig can be one of `legacy` or `restricted`. The CatalogSource's pod is either injected with the right pod.spec.securityContext and pod.spec.container[*].securityContext values to allow the pod to run in Pod Security Admission (PSA) `restricted` mode, or doesn't set these values at all, in which case the pod can only be run in PSA `baseline` or `privileged` namespaces. If the SecurityContextConfig is unspecified, the mode will be determined by the namespace's PSA configuration. If the namespace is enforcing `restricted` mode, then the pod will be configured as if `restricted` was specified. Otherwise, it will be configured as if `legacy` was specified. Specifying a value other than `legacy` or `restricted` result in a validation error. When using older catalog images, which can not run in `restricted` mode, the SecurityContextConfig should be set to `legacy`.\n\nMore information about PSA can be found here: https://kubernetes.io/docs/concepts/security/pod-security-admission/", + Type: []string{"string"}, + Format: "", + }, + }, + "memoryTarget": { + SchemaProps: spec.SchemaProps{ + Description: "MemoryTarget configures the $GOMEMLIMIT value for the gRPC catalog Pod. This is a soft memory limit for the server, which the runtime will attempt to meet but makes no guarantees that it will do so. If this value is set, the Pod will have the following modifications made to the container running the server: - the $GOMEMLIMIT environment variable will be set to this value in bytes - the memory request will be set to this value\n\nThis field should be set if it's desired to reduce the footprint of a catalog server as much as possible, or if a catalog being served is very large and needs more than the default allocation. If your index image has a file- system cache, determine a good approximation for this value by doubling the size of the package cache at /tmp/cache/cache/packages.json in the index image.\n\nThis field is best-effort; if unset, no default will be used and no Pod memory limit or $GOMEMLIMIT value will be set.", + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + "extractContent": { + SchemaProps: spec.SchemaProps{ + Description: "ExtractContent configures the gRPC catalog Pod to extract catalog metadata from the provided index image and use a well-known version of the `opm` server to expose it. The catalog index image that this CatalogSource is configured to use *must* be using the file-based catalogs in order to utilize this feature.", + Ref: ref(v1alpha1.ExtractContentConfig{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + v1alpha1.ExtractContentConfig{}.OpenAPIModelName(), "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Toleration", resource.Quantity{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_Icon(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "base64data": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "mediatype": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"base64data", "mediatype"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_InstallMode(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "InstallMode associates an InstallModeType with a flag representing if the CSV supports it", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "supported": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"type", "supported"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_InstallPlan(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "InstallPlan defines the installation of a set of operators.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.InstallPlanSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.InstallPlanStatus{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"metadata", "spec"}, + }, + }, + Dependencies: []string{ + v1alpha1.InstallPlanSpec{}.OpenAPIModelName(), v1alpha1.InstallPlanStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_InstallPlanCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "InstallPlanCondition represents the overall status of the execution of an InstallPlan.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "lastUpdateTime": { + SchemaProps: spec.SchemaProps{ + Description: "True, False, or Unknown", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_InstallPlanList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "InstallPlanList is a list of InstallPlan resources.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.InstallPlan{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + v1alpha1.InstallPlan{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_InstallPlanReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "uuid": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"apiVersion", "kind", "name", "uuid"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_InstallPlanSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "InstallPlanSpec defines a set of Application resources to be installed", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "source": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "sourceNamespace": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "clusterServiceVersionNames": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "approval": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "approved": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "generation": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"clusterServiceVersionNames", "approval", "approved"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_InstallPlanStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "InstallPlanStatus represents the information about the status of steps required to complete installation.\n\nStatus may trail the actual state of a system.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.InstallPlanCondition{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "catalogSources": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "plan": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(v1alpha1.Step{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "bundleLookups": { + SchemaProps: spec.SchemaProps{ + Description: "BundleLookups is the set of in-progress requests to pull and unpackage bundle content to the cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.BundleLookup{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "attenuatedServiceAccountRef": { + SchemaProps: spec.SchemaProps{ + Description: "AttenuatedServiceAccountRef references the service account that is used to do scoped operator install.", + Ref: ref("k8s.io/api/core/v1.ObjectReference"), + }, + }, + "startTime": { + SchemaProps: spec.SchemaProps{ + Description: "StartTime is the time when the controller began applying the resources listed in the plan to the cluster.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message is a human-readable message containing detailed information that may be important to understanding why the plan has its current status.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"phase", "catalogSources"}, + }, + }, + Dependencies: []string{ + v1alpha1.BundleLookup{}.OpenAPIModelName(), v1alpha1.InstallPlanCondition{}.OpenAPIModelName(), v1alpha1.Step{}.OpenAPIModelName(), "k8s.io/api/core/v1.ObjectReference", metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_Maintainer(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "email": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_NamedInstallStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NamedInstallStrategy represents the block of an ClusterServiceVersion resource where the install strategy is specified.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "strategy": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.StrategyDetailsDeployment{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"strategy"}, + }, + }, + Dependencies: []string{ + v1alpha1.StrategyDetailsDeployment{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_RegistryPoll(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "interval": { + SchemaProps: spec.SchemaProps{ + Description: "Interval is used to determine the time interval between checks of the latest catalog source version. The catalog operator polls to see if a new version of the catalog source is available. If available, the latest image is pulled and gRPC traffic is directed to the latest catalog source.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_RegistryServiceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "protocol": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "serviceName": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "serviceNamespace": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "port": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "createdAt": { + SchemaProps: spec.SchemaProps{ + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_RelatedImage(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "image"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_RequirementStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "uuid": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "dependents": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.DependentStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"group", "version", "kind", "name", "status", "message"}, + }, + }, + Dependencies: []string{ + v1alpha1.DependentStatus{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_ResourceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace can be empty for cluster-scoped resources", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_ResourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ResourceList represents a list of resources which are of the same Group/Kind", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "instances": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.ResourceInstance{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"group", "kind", "instances"}, + }, + }, + Dependencies: []string{ + v1alpha1.ResourceInstance{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_SpecDescriptor(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SpecDescriptor describes a field in a spec block of a CRD so that OLM can consume it", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "path": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "x-descriptors": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "value": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + Required: []string{"path"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_StatusDescriptor(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "StatusDescriptor describes a field in a status block of a CRD so that OLM can consume it", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "path": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "x-descriptors": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "value": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + Required: []string{"path"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_Step(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Step represents the status of an individual step in an InstallPlan.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "resolving": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "resource": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.StepResource{}.OpenAPIModelName()), + }, + }, + "optional": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"resolving", "resource", "status"}, + }, + }, + Dependencies: []string{ + v1alpha1.StepResource{}.OpenAPIModelName()}, + } +} + +func schema_api_pkg_operators_v1alpha1_StepResource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "StepResource represents the status of a resource to be tracked by an InstallPlan.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "sourceName": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "sourceNamespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "group": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "manifest": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"sourceName", "sourceNamespace", "group", "version", "kind", "name"}, + }, + }, + } +} + +func schema_api_pkg_operators_v1alpha1_StrategyDeploymentPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "StrategyDeploymentPermissions describe the rbac rules and service account needed by the install strategy", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "serviceAccountName": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "rules": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), + }, + }, + }, + }, + }, + }, + Required: []string{"serviceAccountName", "rules"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/rbac/v1.PolicyRule"}, + } +} + +func schema_api_pkg_operators_v1alpha1_StrategyDeploymentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "StrategyDeploymentSpec contains the name, spec and labels for the deployment ALM should create", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/apps/v1.DeploymentSpec"), + }, + }, + "label": { + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, + Required: []string{"name", "spec"}, }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/operators/v1alpha1.CleanupStatus", "github.com/operator-framework/api/pkg/operators/v1alpha1.ClusterServiceVersionCondition", "github.com/operator-framework/api/pkg/operators/v1alpha1.RequirementStatus", metav1.Time{}.OpenAPIModelName()}, + "k8s.io/api/apps/v1.DeploymentSpec"}, } } -func schema_api_pkg_operators_v1alpha1_CustomResourceDefinitions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_StrategyDetailsDeployment(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "CustomResourceDefinitions declares all of the CRDs managed or required by an operator being ran by ClusterServiceVersion.\n\nIf the CRD is present in the Owned list, it is implicitly required.", + Description: "StrategyDetailsDeployment represents the parsed details of a Deployment InstallStrategy.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "owned": { + "deployments": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.CRDDescription"), + Ref: ref(v1alpha1.StrategyDeploymentSpec{}.OpenAPIModelName()), }, }, }, }, }, - "required": { + "permissions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.StrategyDeploymentPermissions{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "clusterPermissions": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.CRDDescription"), + Ref: ref(v1alpha1.StrategyDeploymentPermissions{}.OpenAPIModelName()), }, }, }, }, }, }, + Required: []string{"deployments"}, }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/operators/v1alpha1.CRDDescription"}, + v1alpha1.StrategyDeploymentPermissions{}.OpenAPIModelName(), v1alpha1.StrategyDeploymentSpec{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_DependentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_Subscription(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DependentStatus is the status for a dependent requirement (to prevent infinite nesting)", + Description: "Subscription keeps operators up to date by tracking changes to Catalogs.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "group": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { + "kind": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "kind": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "metadata": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "uuid": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Ref: ref(v1alpha1.SubscriptionSpec{}.OpenAPIModelName()), }, }, - "message": { + "status": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.SubscriptionStatus{}.OpenAPIModelName()), }, }, }, - Required: []string{"group", "version", "kind", "status"}, + Required: []string{"metadata", "spec"}, }, }, + Dependencies: []string{ + v1alpha1.SubscriptionSpec{}.OpenAPIModelName(), v1alpha1.SubscriptionStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_Icon(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_SubscriptionCatalogHealth(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SubscriptionCatalogHealth describes the health of a CatalogSource the Subscription knows about.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "base64data": { + "catalogSourceRef": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "CatalogSourceRef is a reference to a CatalogSource.", + Ref: ref("k8s.io/api/core/v1.ObjectReference"), }, }, - "mediatype": { + "lastUpdated": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "LastUpdated represents the last time that the CatalogSourceHealth changed", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "healthy": { + SchemaProps: spec.SchemaProps{ + Description: "Healthy is true if the CatalogSource is healthy; false otherwise.", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, }, - Required: []string{"base64data", "mediatype"}, + Required: []string{"catalogSourceRef", "lastUpdated", "healthy"}, }, }, + Dependencies: []string{ + "k8s.io/api/core/v1.ObjectReference", metav1.Time{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_InstallMode(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_SubscriptionCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "InstallMode associates an InstallModeType with a flag representing if the CSV supports it", + Description: "SubscriptionCondition represents the latest available observations of a Subscription's state.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Type is the type of Subscription condition.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "supported": { + "status": { SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", + Description: "Status is the status of the condition, one of True, False, Unknown.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"type", "supported"}, - }, - }, - } -} - -func schema_api_pkg_operators_v1alpha1_Maintainer(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "reason": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Reason is a one-word CamelCase reason for the condition's last transition.", + Type: []string{"string"}, + Format: "", }, }, - "email": { + "message": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Message is a human-readable message indicating details about last transition.", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - } -} - -func schema_api_pkg_operators_v1alpha1_NamedInstallStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NamedInstallStrategy represents the block of an ClusterServiceVersion resource where the install strategy is specified.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "strategy": { + "lastHeartbeatTime": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "LastHeartbeatTime is the last time we got an update on a given condition", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "spec": { + "lastTransitionTime": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.StrategyDetailsDeployment"), + Description: "LastTransitionTime is the last time the condition transit from one status to another", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, - Required: []string{"strategy"}, + Required: []string{"type", "status"}, }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/operators/v1alpha1.StrategyDetailsDeployment"}, + metav1.Time{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_RelatedImage(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_SubscriptionConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SubscriptionConfig contains configuration specified for a subscription.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "selector": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Selector is the label selector for pods to be configured. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, - "image": { + "nodeSelector": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - }, - Required: []string{"name", "image"}, - }, - }, - } -} - -func schema_api_pkg_operators_v1alpha1_RequirementStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "group": { + "tolerations": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Tolerations are the pod's tolerations.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Toleration"), + }, + }, + }, }, }, - "version": { + "resources": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Resources represents compute resources required by this container. Immutable. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), }, }, - "kind": { + "envFrom": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "EnvFrom is a list of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Immutable.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.EnvFromSource"), + }, + }, + }, }, }, - "name": { + "env": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge", + }, + }, SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Env is a list of environment variables to set in the container. Cannot be updated.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.EnvVar"), + }, + }, + }, }, }, - "status": { + "volumes": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "List of Volumes to set in the podSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Volume"), + }, + }, + }, }, }, - "message": { + "volumeMounts": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "List of VolumeMounts to set in the container.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.VolumeMount"), + }, + }, + }, }, }, - "uuid": { + "affinity": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "If specified, overrides the pod's scheduling constraints. nil sub-attributes will *not* override the original values in the pod.spec for those sub-attributes. Use empty object ({}) to erase original sub-attribute values.", + Ref: ref("k8s.io/api/core/v1.Affinity"), }, }, - "dependents": { + "annotations": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Annotations is an unstructured key value map stored with each Deployment, Pod, APIService in the Operator. Typically, annotations may be set by external tools to store and retrieve arbitrary metadata. Use this field to pre-define annotations that OLM should add to each of the Subscription's deployments, pods, and apiservices.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.DependentStatus"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"group", "version", "kind", "name", "status", "message"}, }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/operators/v1alpha1.DependentStatus"}, + "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.Volume", "k8s.io/api/core/v1.VolumeMount", metav1.LabelSelector{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_ResourceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_SubscriptionList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SubscriptionList is a list of Subscription resources.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Namespace can be empty for cluster-scoped resources", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - }, - Required: []string{"name"}, - }, - }, - } -} - -func schema_api_pkg_operators_v1alpha1_ResourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ResourceList represents a list of resources which are of the same Group/Kind", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "group": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "kind": { + "metadata": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "instances": { + "items": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.ResourceInstance"), + Ref: ref(v1alpha1.Subscription{}.OpenAPIModelName()), }, }, }, }, }, }, - Required: []string{"group", "kind", "instances"}, + Required: []string{"metadata", "items"}, }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/operators/v1alpha1.ResourceInstance"}, + v1alpha1.Subscription{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_SpecDescriptor(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_SubscriptionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpecDescriptor describes a field in a spec block of a CRD so that OLM can consume it", + Description: "SubscriptionSpec defines an Application that can be installed", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "path": { + "source": { SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "sourceNamespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "channel": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "description": { + "startingCSV": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "x-descriptors": { + "installPlanApproval": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Type: []string{"string"}, + Format: "", }, }, - "value": { + "config": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", + Ref: ref(v1alpha1.SubscriptionConfig{}.OpenAPIModelName()), }, }, }, - Required: []string{"path"}, + Required: []string{"source", "sourceNamespace", "name"}, }, }, + Dependencies: []string{ + v1alpha1.SubscriptionConfig{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_StatusDescriptor(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_SubscriptionStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "StatusDescriptor describes a field in a status block of a CRD so that OLM can consume it", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "path": { + "currentCSV": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "CurrentCSV is the CSV the Subscription is progressing to.", + Type: []string{"string"}, + Format: "", }, }, - "displayName": { + "installedCSV": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "InstalledCSV is the CSV currently installed by the Subscription.", + Type: []string{"string"}, + Format: "", }, }, - "description": { + "installplan": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Install is a reference to the latest InstallPlan generated for the Subscription. DEPRECATED: InstallPlanRef", + Ref: ref(v1alpha1.InstallPlanReference{}.OpenAPIModelName()), }, }, - "x-descriptors": { + "state": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "State represents the current state of the Subscription", + Type: []string{"string"}, + Format: "", }, }, - "value": { + "reason": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", + Description: "Reason is the reason the Subscription was transitioned to its current state.", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"path"}, - }, - }, - } -} - -func schema_api_pkg_operators_v1alpha1_StrategyDeploymentPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "StrategyDeploymentPermissions describe the rbac rules and service account needed by the install strategy", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "serviceAccountName": { + "installPlanGeneration": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "InstallPlanGeneration is the current generation of the installplan", + Type: []string{"integer"}, + Format: "int32", }, }, - "rules": { + "installPlanRef": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "InstallPlanRef is a reference to the latest InstallPlan that contains the Subscription's current CSV.", + Ref: ref("k8s.io/api/core/v1.ObjectReference"), + }, + }, + "catalogHealth": { + SchemaProps: spec.SchemaProps{ + Description: "CatalogHealth contains the Subscription's view of its relevant CatalogSources' status. It is used to determine SubscriptionStatusConditions related to CatalogSources.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), + Ref: ref(v1alpha1.SubscriptionCatalogHealth{}.OpenAPIModelName()), }, }, }, }, }, - }, - Required: []string{"serviceAccountName", "rules"}, - }, - }, - Dependencies: []string{ - "k8s.io/api/rbac/v1.PolicyRule"}, - } -} - -func schema_api_pkg_operators_v1alpha1_StrategyDeploymentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "StrategyDeploymentSpec contains the name, spec and labels for the deployment ALM should create", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.DeploymentSpec"), - }, - }, - "label": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Conditions is a list of the latest available observations about a Subscription's current state.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(v1alpha1.SubscriptionCondition{}.OpenAPIModelName()), }, }, }, }, }, + "lastUpdated": { + SchemaProps: spec.SchemaProps{ + Description: "LastUpdated represents the last time that the Subscription status was updated.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, }, - Required: []string{"name", "spec"}, + Required: []string{"lastUpdated"}, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.DeploymentSpec"}, + v1alpha1.InstallPlanReference{}.OpenAPIModelName(), v1alpha1.SubscriptionCatalogHealth{}.OpenAPIModelName(), v1alpha1.SubscriptionCondition{}.OpenAPIModelName(), "k8s.io/api/core/v1.ObjectReference", metav1.Time{}.OpenAPIModelName()}, } } -func schema_api_pkg_operators_v1alpha1_StrategyDetailsDeployment(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_api_pkg_operators_v1alpha1_UpdateStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "StrategyDetailsDeployment represents the parsed details of a Deployment InstallStrategy.", + Description: "UpdateStrategy holds all the different types of catalog source update strategies Currently only registry polling strategy is implemented", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "deployments": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.StrategyDeploymentSpec"), - }, - }, - }, - }, - }, - "permissions": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.StrategyDeploymentPermissions"), - }, - }, - }, - }, - }, - "clusterPermissions": { + "registryPoll": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.StrategyDeploymentPermissions"), - }, - }, - }, + Ref: ref(v1alpha1.RegistryPoll{}.OpenAPIModelName()), }, }, }, - Required: []string{"deployments"}, }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/operators/v1alpha1.StrategyDeploymentPermissions", "github.com/operator-framework/api/pkg/operators/v1alpha1.StrategyDeploymentSpec"}, + v1alpha1.RegistryPoll{}.OpenAPIModelName()}, } } @@ -1773,7 +3508,7 @@ func schema_package_server_apis_operators_v1_CSVDescription(ref common.Reference "version": { SchemaProps: spec.SchemaProps{ Description: "Version is the CSV's semantic version", - Ref: ref("github.com/operator-framework/api/pkg/lib/version.OperatorVersion"), + Ref: ref(version.OperatorVersion{}.OpenAPIModelName()), }, }, "provider": { @@ -1884,7 +3619,7 @@ func schema_package_server_apis_operators_v1_CSVDescription(ref common.Reference Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.InstallMode"), + Ref: ref(v1alpha1.InstallMode{}.OpenAPIModelName()), }, }, }, @@ -1893,13 +3628,13 @@ func schema_package_server_apis_operators_v1_CSVDescription(ref common.Reference "customresourcedefinitions": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.CustomResourceDefinitions"), + Ref: ref(v1alpha1.CustomResourceDefinitions{}.OpenAPIModelName()), }, }, "apiservicedefinitions": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/operator-framework/api/pkg/operators/v1alpha1.APIServiceDefinitions"), + Ref: ref(v1alpha1.APIServiceDefinitions{}.OpenAPIModelName()), }, }, "nativeApis": { @@ -1941,7 +3676,7 @@ func schema_package_server_apis_operators_v1_CSVDescription(ref common.Reference }, }, Dependencies: []string{ - "github.com/operator-framework/api/pkg/lib/version.OperatorVersion", "github.com/operator-framework/api/pkg/operators/v1alpha1.APIServiceDefinitions", "github.com/operator-framework/api/pkg/operators/v1alpha1.CustomResourceDefinitions", "github.com/operator-framework/api/pkg/operators/v1alpha1.InstallMode", v1.AppLink{}.OpenAPIModelName(), v1.Icon{}.OpenAPIModelName(), v1.Maintainer{}.OpenAPIModelName(), metav1.GroupVersionKind{}.OpenAPIModelName()}, + version.OperatorVersion{}.OpenAPIModelName(), v1alpha1.APIServiceDefinitions{}.OpenAPIModelName(), v1alpha1.CustomResourceDefinitions{}.OpenAPIModelName(), v1alpha1.InstallMode{}.OpenAPIModelName(), v1.AppLink{}.OpenAPIModelName(), v1.Icon{}.OpenAPIModelName(), v1.Maintainer{}.OpenAPIModelName(), metav1.GroupVersionKind{}.OpenAPIModelName()}, } } diff --git a/scripts/codegen_violation_exceptions.list b/scripts/codegen_violation_exceptions.list index ba2f1c0ca2..45b1f0c292 100644 --- a/scripts/codegen_violation_exceptions.list +++ b/scripts/codegen_violation_exceptions.list @@ -5,10 +5,12 @@ API rule violation: list_type_missing,github.com/operator-framework/api/pkg/oper API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,APIServiceDescription,SpecDescriptors API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,APIServiceDescription,StatusDescriptors API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,ActionDescriptor,XDescriptors +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,BundleLookup,Conditions API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,CRDDescription,ActionDescriptor API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,CRDDescription,Resources API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,CRDDescription,SpecDescriptors API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,CRDDescription,StatusDescriptors +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,CatalogSourceSpec,Secrets API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,CleanupStatus,PendingDeletion API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,ClusterServiceVersionSpec,Icon API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,ClusterServiceVersionSpec,InstallModes @@ -23,6 +25,12 @@ API rule violation: list_type_missing,github.com/operator-framework/api/pkg/oper API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,ClusterServiceVersionStatus,RequirementStatus API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,CustomResourceDefinitions,Owned API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,CustomResourceDefinitions,Required +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,GrpcPodConfig,Tolerations +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,InstallPlanSpec,ClusterServiceVersionNames +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,InstallPlanStatus,BundleLookups +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,InstallPlanStatus,CatalogSources +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,InstallPlanStatus,Conditions +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,InstallPlanStatus,Plan API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,RequirementStatus,Dependents API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,ResourceList,Instances API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,SpecDescriptor,XDescriptors @@ -31,6 +39,13 @@ API rule violation: list_type_missing,github.com/operator-framework/api/pkg/oper API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,StrategyDetailsDeployment,ClusterPermissions API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,StrategyDetailsDeployment,DeploymentSpecs API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,StrategyDetailsDeployment,Permissions +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionConfig,Env +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionConfig,EnvFrom +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionConfig,Tolerations +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionConfig,VolumeMounts +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionConfig,Volumes +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionStatus,CatalogHealth +API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionStatus,Conditions API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,WebhookDescription,AdmissionReviewVersions API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,WebhookDescription,ConversionCRDs API rule violation: list_type_missing,github.com/operator-framework/api/pkg/operators/v1alpha1,WebhookDescription,Rules @@ -41,17 +56,31 @@ API rule violation: list_type_missing,github.com/operator-framework/operator-lif API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,APIServiceDescription,ActionDescriptor API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,ActionDescriptor,XDescriptors API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,CRDDescription,ActionDescriptor +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,CatalogSourceStatus,ConfigMapResource +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,CatalogSourceStatus,GRPCConnectionState +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,CatalogSourceStatus,RegistryServiceStatus API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,ClusterServiceVersionSpec,APIServiceDefinitions API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,ClusterServiceVersionSpec,CustomResourceDefinitions API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,ClusterServiceVersionSpec,InstallStrategy API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,ClusterServiceVersionSpec,WebhookDefinitions +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,GRPCConnectionState,LastConnectTime API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,Icon,Data API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,Icon,MediaType +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,InstallPlanReference,UID +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,InstallPlanSpec,CatalogSource +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,InstallPlanSpec,CatalogSourceNamespace API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,NamedInstallStrategy,StrategyName API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,NamedInstallStrategy,StrategySpec +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,RegistryPoll,RawInterval API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,SpecDescriptor,XDescriptors API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,StatusDescriptor,XDescriptors +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,StepResource,CatalogSource +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,StepResource,CatalogSourceNamespace API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,StrategyDetailsDeployment,DeploymentSpecs +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionSpec,CatalogSource +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionSpec,CatalogSourceNamespace +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionSpec,Package +API rule violation: names_match,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionStatus,Install API rule violation: names_match,github.com/operator-framework/operator-lifecycle-manager/pkg/package-server/apis/operators/v1,CSVDescription,APIServiceDefinitions API rule violation: names_match,github.com/operator-framework/operator-lifecycle-manager/pkg/package-server/apis/operators/v1,CSVDescription,CustomResourceDefinitions API rule violation: names_match,github.com/operator-framework/operator-lifecycle-manager/pkg/package-server/apis/operators/v1,CSVDescription,LongDescription @@ -72,3 +101,7 @@ API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,StatusCause API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,Time,Time API rule violation: names_match,k8s.io/apimachinery/pkg/runtime,Unknown,ContentEncoding API rule violation: names_match,k8s.io/apimachinery/pkg/runtime,Unknown,ContentType +API rule violation: streaming_list_type_json_tags,github.com/operator-framework/api/pkg/operators/v1alpha1,CatalogSourceList,ListMeta +API rule violation: streaming_list_type_json_tags,github.com/operator-framework/api/pkg/operators/v1alpha1,ClusterServiceVersionList,ListMeta +API rule violation: streaming_list_type_json_tags,github.com/operator-framework/api/pkg/operators/v1alpha1,InstallPlanList,ListMeta +API rule violation: streaming_list_type_json_tags,github.com/operator-framework/api/pkg/operators/v1alpha1,SubscriptionList,ListMeta