github.com/operator-framework/api
Advanced tools
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
| // +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 |
| //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" | ||
| } |
| //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" | ||
| } |
+2
-1
@@ -18,2 +18,3 @@ module github.com/operator-framework/api | ||
| k8s.io/client-go v0.35.1 | ||
| k8s.io/kube-openapi v0.0.0-20260127142750-a19766b6e2d4 | ||
| sigs.k8s.io/controller-runtime v0.23.1 | ||
@@ -30,2 +31,3 @@ sigs.k8s.io/yaml v1.6.0 | ||
| github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect | ||
| github.com/emicklei/go-restful/v3 v3.12.2 // indirect | ||
| github.com/felixge/httpsnoop v1.0.4 // indirect | ||
@@ -97,3 +99,2 @@ github.com/fxamacker/cbor/v2 v2.9.0 // indirect | ||
| k8s.io/klog/v2 v2.130.1 // indirect | ||
| k8s.io/kube-openapi v0.0.0-20260127142750-a19766b6e2d4 // indirect | ||
| k8s.io/utils v0.0.0-20260108192941-914a6e750570 // indirect | ||
@@ -100,0 +101,0 @@ sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.34.0 // indirect |
+17
-2
@@ -46,3 +46,3 @@ # kernel-style V=1 build verbosity | ||
| ### | ||
| .PHONY: format tidy clean generate manifests | ||
| .PHONY: format tidy clean generate generate-openapi manifests | ||
@@ -59,5 +59,20 @@ format: ## Format the source code | ||
| generate: $(CONTROLLER_GEN) ## Generate code | ||
| generate: $(CONTROLLER_GEN) generate-openapi ## Generate code | ||
| $(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths=./... | ||
| generate-openapi: $(OPENAPI_GEN) ## Generate OpenAPIModelName() functions and OpenAPI definitions | ||
| @# Generate OpenAPIModelName() functions (zz_generated.model_name.go) in each input package. | ||
| @# Also produces a consolidated OpenAPI definitions file in pkg/generated/openapi/ (required by openapi-gen). | ||
| @# API rule violations are written to api_violations.report instead of failing the build. | ||
| @# New violations in api_violations.report will cause `make verify` to fail. | ||
| $(OPENAPI_GEN) \ | ||
| --go-header-file ./hack/boilerplate.go.txt \ | ||
| --output-file zz_generated.openapi.go \ | ||
| --output-dir ./pkg/generated/openapi \ | ||
| --output-pkg $(REPO)/pkg/generated/openapi \ | ||
| --output-model-name-file zz_generated.model_name.go \ | ||
| --report-filename ./api_violations.report \ | ||
| ./pkg/operators/v1alpha1 \ | ||
| ./pkg/lib/version | ||
| manifests: $(CONTROLLER_GEN) $(YQ) ## Generate manifests e.g. CRD, RBAC etc | ||
@@ -64,0 +79,0 @@ @# Create CRDs for new APIs |
| // +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 |
@@ -235,4 +235,2 @@ package v1alpha1 | ||
| // +optional | ||
| // +patchMergeKey= | ||
| // +patchStrategy=merge | ||
| CatalogHealth []SubscriptionCatalogHealth `json:"catalogHealth,omitempty"` | ||
@@ -239,0 +237,0 @@ |