From 86b2c4326c76ce0ea2c90cbb85512321d24a7e02 Mon Sep 17 00:00:00 2001 From: "Md. Istiak" Date: Mon, 6 Jul 2026 12:42:23 +0600 Subject: [PATCH 1/2] Add missing CRD accessor and Duckify entries for new bindings Signed-off-by: Md. Istiak --- api/catalog/v1alpha1/crds.go | 40 ++++++++++++- api/catalog/v1alpha1/generic_types.go | 85 ++++++++++++++++++++++++++- 2 files changed, 121 insertions(+), 4 deletions(-) diff --git a/api/catalog/v1alpha1/crds.go b/api/catalog/v1alpha1/crds.go index 2e940da6..af27fefd 100644 --- a/api/catalog/v1alpha1/crds.go +++ b/api/catalog/v1alpha1/crds.go @@ -22,6 +22,10 @@ import ( "kmodules.xyz/client-go/apiextensions" ) +func (AerospikeBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceAerospikeBindings)) +} + func (CassandraBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceCassandraBindings)) } @@ -30,6 +34,14 @@ func (ClickHouseBinding) CustomResourceDefinition() *apiextensions.CustomResourc return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceClickHouseBindings)) } +func (DB2Binding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceDB2Bindings)) +} + +func (DocumentDBBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceDocumentDBBindings)) +} + func (DruidBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceDruidBindings)) } @@ -42,10 +54,18 @@ func (FerretDBBinding) CustomResourceDefinition() *apiextensions.CustomResourceD return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceFerretDBBindings)) } +func (HanaDBBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceHanaDBBindings)) +} + func (HazelcastBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceHazelcastBindings)) } +func (IgniteBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceIgniteBindings)) +} + func (KafkaBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceKafkaBindings)) } @@ -58,18 +78,26 @@ func (MemcachedBinding) CustomResourceDefinition() *apiextensions.CustomResource return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceMemcachedBindings)) } -func (MSSQLServerBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { - return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceMSSQLServerBindings)) +func (MilvusBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceMilvusBindings)) } func (MongoDBBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceMongoDBBindings)) } +func (MSSQLServerBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceMSSQLServerBindings)) +} + func (MySQLBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceMySQLBindings)) } +func (Neo4jBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceNeo4jBindings)) +} + func (OracleBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceOracleBindings)) } @@ -94,6 +122,10 @@ func (ProxySQLBinding) CustomResourceDefinition() *apiextensions.CustomResourceD return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceProxySQLBindings)) } +func (QdrantBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceQdrantBindings)) +} + func (RabbitMQBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceRabbitMQBindings)) } @@ -110,6 +142,10 @@ func (SolrBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefin return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceSolrBindings)) } +func (WeaviateBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceWeaviateBindings)) +} + func (ZooKeeperBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceZooKeeperBindings)) } diff --git a/api/catalog/v1alpha1/generic_types.go b/api/catalog/v1alpha1/generic_types.go index 24ce469c..ec088caf 100644 --- a/api/catalog/v1alpha1/generic_types.go +++ b/api/catalog/v1alpha1/generic_types.go @@ -70,6 +70,15 @@ func (in *GenericBinding) SetConditions(conditions kmapi.Conditions) { func (dst *GenericBinding) Duckify(srcRaw runtime.Object) error { switch src := srcRaw.(type) { + case *AerospikeBinding: + dst.TypeMeta = metav1.TypeMeta{ + APIVersion: GroupVersion.String(), + Kind: ResourceKindAerospikeBinding, + } + dst.ObjectMeta = src.ObjectMeta + dst.Spec.SourceRef = src.Spec.SourceRef + dst.Status = src.Status + return nil case *CassandraBinding: dst.TypeMeta = metav1.TypeMeta{ APIVersion: GroupVersion.String(), @@ -88,6 +97,24 @@ func (dst *GenericBinding) Duckify(srcRaw runtime.Object) error { dst.Spec.SourceRef = src.Spec.SourceRef dst.Status = src.Status return nil + case *DB2Binding: + dst.TypeMeta = metav1.TypeMeta{ + APIVersion: GroupVersion.String(), + Kind: ResourceKindDB2Binding, + } + dst.ObjectMeta = src.ObjectMeta + dst.Spec.SourceRef = src.Spec.SourceRef + dst.Status = src.Status + return nil + case *DocumentDBBinding: + dst.TypeMeta = metav1.TypeMeta{ + APIVersion: GroupVersion.String(), + Kind: ResourceKindDocumentDBBinding, + } + dst.ObjectMeta = src.ObjectMeta + dst.Spec.SourceRef = src.Spec.SourceRef + dst.Status = src.Status + return nil case *DruidBinding: dst.TypeMeta = metav1.TypeMeta{ APIVersion: GroupVersion.String(), @@ -115,6 +142,15 @@ func (dst *GenericBinding) Duckify(srcRaw runtime.Object) error { dst.Spec.SourceRef = src.Spec.SourceRef dst.Status = src.Status return nil + case *HanaDBBinding: + dst.TypeMeta = metav1.TypeMeta{ + APIVersion: GroupVersion.String(), + Kind: ResourceKindHanaDBBinding, + } + dst.ObjectMeta = src.ObjectMeta + dst.Spec.SourceRef = src.Spec.SourceRef + dst.Status = src.Status + return nil case *HazelcastBinding: dst.TypeMeta = metav1.TypeMeta{ APIVersion: GroupVersion.String(), @@ -124,6 +160,15 @@ func (dst *GenericBinding) Duckify(srcRaw runtime.Object) error { dst.Spec.SourceRef = src.Spec.SourceRef dst.Status = src.Status return nil + case *IgniteBinding: + dst.TypeMeta = metav1.TypeMeta{ + APIVersion: GroupVersion.String(), + Kind: ResourceKindIgniteBinding, + } + dst.ObjectMeta = src.ObjectMeta + dst.Spec.SourceRef = src.Spec.SourceRef + dst.Status = src.Status + return nil case *KafkaBinding: dst.TypeMeta = metav1.TypeMeta{ APIVersion: GroupVersion.String(), @@ -151,10 +196,10 @@ func (dst *GenericBinding) Duckify(srcRaw runtime.Object) error { dst.Spec.SourceRef = src.Spec.SourceRef dst.Status = src.Status return nil - case *MSSQLServerBinding: + case *MilvusBinding: dst.TypeMeta = metav1.TypeMeta{ APIVersion: GroupVersion.String(), - Kind: ResourceKindMSSQLServerBinding, + Kind: ResourceKindMilvusBinding, } dst.ObjectMeta = src.ObjectMeta dst.Spec.SourceRef = src.Spec.SourceRef @@ -169,6 +214,15 @@ func (dst *GenericBinding) Duckify(srcRaw runtime.Object) error { dst.Spec.SourceRef = src.Spec.SourceRef dst.Status = src.Status return nil + case *MSSQLServerBinding: + dst.TypeMeta = metav1.TypeMeta{ + APIVersion: GroupVersion.String(), + Kind: ResourceKindMSSQLServerBinding, + } + dst.ObjectMeta = src.ObjectMeta + dst.Spec.SourceRef = src.Spec.SourceRef + dst.Status = src.Status + return nil case *MySQLBinding: dst.TypeMeta = metav1.TypeMeta{ APIVersion: GroupVersion.String(), @@ -178,6 +232,15 @@ func (dst *GenericBinding) Duckify(srcRaw runtime.Object) error { dst.Spec.SourceRef = src.Spec.SourceRef dst.Status = src.Status return nil + case *Neo4jBinding: + dst.TypeMeta = metav1.TypeMeta{ + APIVersion: GroupVersion.String(), + Kind: ResourceKindNeo4jBinding, + } + dst.ObjectMeta = src.ObjectMeta + dst.Spec.SourceRef = src.Spec.SourceRef + dst.Status = src.Status + return nil case *OracleBinding: dst.TypeMeta = metav1.TypeMeta{ APIVersion: GroupVersion.String(), @@ -232,6 +295,15 @@ func (dst *GenericBinding) Duckify(srcRaw runtime.Object) error { dst.Spec.SourceRef = src.Spec.SourceRef dst.Status = src.Status return nil + case *QdrantBinding: + dst.TypeMeta = metav1.TypeMeta{ + APIVersion: GroupVersion.String(), + Kind: ResourceKindQdrantBinding, + } + dst.ObjectMeta = src.ObjectMeta + dst.Spec.SourceRef = src.Spec.SourceRef + dst.Status = src.Status + return nil case *RabbitMQBinding: dst.TypeMeta = metav1.TypeMeta{ APIVersion: GroupVersion.String(), @@ -268,6 +340,15 @@ func (dst *GenericBinding) Duckify(srcRaw runtime.Object) error { dst.Spec.SourceRef = src.Spec.SourceRef dst.Status = src.Status return nil + case *WeaviateBinding: + dst.TypeMeta = metav1.TypeMeta{ + APIVersion: GroupVersion.String(), + Kind: ResourceKindWeaviateBinding, + } + dst.ObjectMeta = src.ObjectMeta + dst.Spec.SourceRef = src.Spec.SourceRef + dst.Status = src.Status + return nil case *ZooKeeperBinding: dst.TypeMeta = metav1.TypeMeta{ APIVersion: GroupVersion.String(), From 68c1cf017bf081704681a4ac10f5188038fa8f91 Mon Sep 17 00:00:00 2001 From: "Md. Istiak" Date: Mon, 6 Jul 2026 12:59:43 +0600 Subject: [PATCH 2/2] Remove FerretDBBinding Signed-off-by: Md. Istiak --- PROJECT | 8 - api/catalog/v1alpha1/crds.go | 4 - api/catalog/v1alpha1/ferretdbbinding_types.go | 77 ----- api/catalog/v1alpha1/generic_types.go | 9 - api/catalog/v1alpha1/openapi_generated.go | 98 ------ api/catalog/v1alpha1/zz_generated.deepcopy.go | 59 ---- ...catalog.appscode.com_ferretdbbindings.yaml | 301 ------------------ 7 files changed, 556 deletions(-) delete mode 100644 api/catalog/v1alpha1/ferretdbbinding_types.go delete mode 100644 crds/catalog.appscode.com_ferretdbbindings.yaml diff --git a/PROJECT b/PROJECT index 40a91ac5..57e13c5e 100644 --- a/PROJECT +++ b/PROJECT @@ -65,14 +65,6 @@ resources: kind: ElasticsearchBinding path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1 version: v1alpha1 -- api: - crdVersion: v1 - namespaced: true - domain: appscode.com - group: catalog - kind: FerretDBBinding - path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1 - version: v1alpha1 - api: crdVersion: v1 namespaced: true diff --git a/api/catalog/v1alpha1/crds.go b/api/catalog/v1alpha1/crds.go index af27fefd..ac11fa8b 100644 --- a/api/catalog/v1alpha1/crds.go +++ b/api/catalog/v1alpha1/crds.go @@ -50,10 +50,6 @@ func (ElasticsearchBinding) CustomResourceDefinition() *apiextensions.CustomReso return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceElasticsearchBindings)) } -func (FerretDBBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { - return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceFerretDBBindings)) -} - func (HanaDBBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { return crds.MustCustomResourceDefinition(GroupVersion.WithResource(ResourceHanaDBBindings)) } diff --git a/api/catalog/v1alpha1/ferretdbbinding_types.go b/api/catalog/v1alpha1/ferretdbbinding_types.go deleted file mode 100644 index 33a38997..00000000 --- a/api/catalog/v1alpha1/ferretdbbinding_types.go +++ /dev/null @@ -1,77 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -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. -*/ - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - kmapi "kmodules.xyz/client-go/api/v1" -) - -const ( - ResourceKindFerretDBBinding = "FerretDBBinding" - ResourceFerretDBBinding = "ferretdbbinding" - ResourceFerretDBBindings = "ferretdbbindings" -) - -// +kubebuilder:object:root=true -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=frbinding,categories={binding,kubedb,appscode} -// +kubebuilder:printcolumn:name="Src_NS",type="string",JSONPath=".spec.sourceRef.namespace" -// +kubebuilder:printcolumn:name="Src_Name",type="string",JSONPath=".spec.sourceRef.name" -// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" -// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" - -// FerretDBBinding is the Schema for the ferretdbbindings API -type FerretDBBinding struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec BindingSpec `json:"spec,omitempty"` - Status BindingStatus `json:"status,omitempty"` -} - -//+kubebuilder:object:root=true - -// FerretDBBindingList contains a list of FerretDBBinding -type FerretDBBindingList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []FerretDBBinding `json:"items"` -} - -func init() { - SchemeBuilder.Register(&FerretDBBinding{}, &FerretDBBindingList{}) -} - -var _ BindingInterface = &FerretDBBinding{} - -func (in *FerretDBBinding) GetSourceRef() kmapi.ObjectReference { - return in.Spec.SourceRef -} - -func (in *FerretDBBinding) GetStatus() *BindingStatus { - return &in.Status -} - -func (in *FerretDBBinding) GetConditions() kmapi.Conditions { - return in.Status.Conditions -} - -func (in *FerretDBBinding) SetConditions(conditions kmapi.Conditions) { - in.Status.Conditions = conditions -} diff --git a/api/catalog/v1alpha1/generic_types.go b/api/catalog/v1alpha1/generic_types.go index ec088caf..ff07d97f 100644 --- a/api/catalog/v1alpha1/generic_types.go +++ b/api/catalog/v1alpha1/generic_types.go @@ -133,15 +133,6 @@ func (dst *GenericBinding) Duckify(srcRaw runtime.Object) error { dst.Spec.SourceRef = src.Spec.SourceRef dst.Status = src.Status return nil - case *FerretDBBinding: - dst.TypeMeta = metav1.TypeMeta{ - APIVersion: GroupVersion.String(), - Kind: ResourceKindFerretDBBinding, - } - dst.ObjectMeta = src.ObjectMeta - dst.Spec.SourceRef = src.Spec.SourceRef - dst.Status = src.Status - return nil case *HanaDBBinding: dst.TypeMeta = metav1.TypeMeta{ APIVersion: GroupVersion.String(), diff --git a/api/catalog/v1alpha1/openapi_generated.go b/api/catalog/v1alpha1/openapi_generated.go index 7f56c3ba..6a1a134f 100644 --- a/api/catalog/v1alpha1/openapi_generated.go +++ b/api/catalog/v1alpha1/openapi_generated.go @@ -51,8 +51,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "go.bytebuilders.dev/catalog/api/catalog/v1alpha1.DruidBindingList": schema_catalog_api_catalog_v1alpha1_DruidBindingList(ref), "go.bytebuilders.dev/catalog/api/catalog/v1alpha1.ElasticsearchBinding": schema_catalog_api_catalog_v1alpha1_ElasticsearchBinding(ref), "go.bytebuilders.dev/catalog/api/catalog/v1alpha1.ElasticsearchBindingList": schema_catalog_api_catalog_v1alpha1_ElasticsearchBindingList(ref), - "go.bytebuilders.dev/catalog/api/catalog/v1alpha1.FerretDBBinding": schema_catalog_api_catalog_v1alpha1_FerretDBBinding(ref), - "go.bytebuilders.dev/catalog/api/catalog/v1alpha1.FerretDBBindingList": schema_catalog_api_catalog_v1alpha1_FerretDBBindingList(ref), "go.bytebuilders.dev/catalog/api/catalog/v1alpha1.GenericBinding": schema_catalog_api_catalog_v1alpha1_GenericBinding(ref), "go.bytebuilders.dev/catalog/api/catalog/v1alpha1.GenericBindingList": schema_catalog_api_catalog_v1alpha1_GenericBindingList(ref), "go.bytebuilders.dev/catalog/api/catalog/v1alpha1.HanaDBBinding": schema_catalog_api_catalog_v1alpha1_HanaDBBinding(ref), @@ -1211,102 +1209,6 @@ func schema_catalog_api_catalog_v1alpha1_ElasticsearchBindingList(ref common.Ref } } -func schema_catalog_api_catalog_v1alpha1_FerretDBBinding(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "FerretDBBinding is the Schema for the ferretdbbindings API", - 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("go.bytebuilders.dev/catalog/api/catalog/v1alpha1.BindingSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("go.bytebuilders.dev/catalog/api/catalog/v1alpha1.BindingStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "go.bytebuilders.dev/catalog/api/catalog/v1alpha1.BindingSpec", "go.bytebuilders.dev/catalog/api/catalog/v1alpha1.BindingStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_catalog_api_catalog_v1alpha1_FerretDBBindingList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "FerretDBBindingList contains a list of FerretDBBinding", - 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("go.bytebuilders.dev/catalog/api/catalog/v1alpha1.FerretDBBinding"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "go.bytebuilders.dev/catalog/api/catalog/v1alpha1.FerretDBBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - func schema_catalog_api_catalog_v1alpha1_GenericBinding(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/api/catalog/v1alpha1/zz_generated.deepcopy.go b/api/catalog/v1alpha1/zz_generated.deepcopy.go index bf110ec7..6f1e6855 100644 --- a/api/catalog/v1alpha1/zz_generated.deepcopy.go +++ b/api/catalog/v1alpha1/zz_generated.deepcopy.go @@ -498,65 +498,6 @@ func (in *ElasticsearchBindingList) DeepCopyObject() runtime.Object { return nil } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FerretDBBinding) DeepCopyInto(out *FerretDBBinding) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FerretDBBinding. -func (in *FerretDBBinding) DeepCopy() *FerretDBBinding { - if in == nil { - return nil - } - out := new(FerretDBBinding) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FerretDBBinding) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FerretDBBindingList) DeepCopyInto(out *FerretDBBindingList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]FerretDBBinding, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FerretDBBindingList. -func (in *FerretDBBindingList) DeepCopy() *FerretDBBindingList { - if in == nil { - return nil - } - out := new(FerretDBBindingList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FerretDBBindingList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GenericBinding) DeepCopyInto(out *GenericBinding) { *out = *in diff --git a/crds/catalog.appscode.com_ferretdbbindings.yaml b/crds/catalog.appscode.com_ferretdbbindings.yaml deleted file mode 100644 index 51a2a889..00000000 --- a/crds/catalog.appscode.com_ferretdbbindings.yaml +++ /dev/null @@ -1,301 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/name: ace - kube-bind.appscode.com/exported: "true" - name: ferretdbbindings.catalog.appscode.com -spec: - group: catalog.appscode.com - names: - categories: - - binding - - kubedb - - appscode - kind: FerretDBBinding - listKind: FerretDBBindingList - plural: ferretdbbindings - shortNames: - - frbinding - singular: ferretdbbinding - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.sourceRef.namespace - name: Src_NS - type: string - - jsonPath: .spec.sourceRef.name - name: Src_Name - type: string - - jsonPath: .status.phase - name: Status - type: string - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - name: v1alpha1 - schema: - openAPIV3Schema: - description: FerretDBBinding is the Schema for the ferretdbbindings API - properties: - apiVersion: - 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 - kind: - 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 - metadata: - type: object - spec: - description: BindingSpec defines the desired state of Binding - properties: - sourceRef: - description: SourceRef refers to the source app instance. - properties: - name: - description: |- - Name of the referent. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - namespace: - description: |- - Namespace of the referent. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - type: string - required: - - name - type: object - uiExposure: - description: UIExposure holds the specification of UI exposer - properties: - disableCostEfficiency: - type: boolean - disableUI: - type: boolean - required: - - disableCostEfficiency - - disableUI - type: object - required: - - sourceRef - type: object - status: - description: BindingStatus defines the observed state of App - properties: - conditions: - items: - description: Condition defines an observation of a object operational - state. - properties: - lastTransitionTime: - description: |- - Last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when - the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - A human-readable message indicating details about the transition. - This field may be empty. - type: string - observedGeneration: - description: |- - If set, this represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - type: integer - reason: - description: |- - The reason for the condition's last transition in CamelCase. - The specific API may choose whether this field is considered a guaranteed API. - This field may not be empty. - type: string - severity: - description: |- - Severity provides an explicit classification of Reason code, so the users or machines can immediately - understand the current situation and act accordingly. - The Severity field MUST be set only when Status=False. - type: string - status: - description: Status of the condition, one of True, False, Unknown. - type: string - type: - description: |- - Type of condition in CamelCase or in foo.example.com/CamelCase. - Many .condition.type values are consistent across resources like Available, but because arbitrary util - can be useful (see .node.status.util), the ability to deconflict is important. - type: string - required: - - lastTransitionTime - - status - - type - type: object - maxItems: 12 - type: array - x-kubernetes-list-map-keys: - - type - x-kubernetes-list-type: map - gateway: - properties: - hostname: - type: string - ip: - type: string - name: - type: string - namespace: - type: string - services: - description: Services is an optional configuration for services - used to expose database - items: - properties: - alias: - description: Alias represents the identifier of the service. - type: string - ports: - items: - description: GatewayPort contains information on Gateway - service's port. - properties: - backendServicePort: - description: Number of the port to access the backend - service. - format: int32 - type: integer - name: - description: The name of this port within the gateway - service. - type: string - nodePort: - description: |- - The port on each node on which this gateway service is exposed when type is - NodePort or LoadBalancer. - format: int32 - type: integer - port: - description: The port that will be exposed by the - gateway service. - format: int32 - type: integer - required: - - port - type: object - type: array - required: - - alias - - ports - type: object - type: array - ui: - description: UI is an optional list of database web uis - items: - properties: - alias: - description: |- - Alias represents the identifier of the service. - This should match the db ui chart name - type: string - helmRelease: - description: |- - HelmRelease is the name of the helm release used to deploy this ui - The name format is typically - - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - port: - description: GatewayPort contains information on Gateway - service's port. - properties: - backendServicePort: - description: Number of the port to access the backend - service. - format: int32 - type: integer - name: - description: The name of this port within the gateway - service. - type: string - nodePort: - description: |- - The port on each node on which this gateway service is exposed when type is - NodePort or LoadBalancer. - format: int32 - type: integer - port: - description: The port that will be exposed by the gateway - service. - format: int32 - type: integer - required: - - port - type: object - url: - description: URL of the database ui - type: string - required: - - alias - - port - - url - type: object - type: array - required: - - name - - namespace - type: object - phase: - description: Specifies the current phase of the App - enum: - - Pending - - InProgress - - Terminating - - Current - - Failed - - Expired - type: string - secretRef: - description: |- - LocalObjectReference contains enough information to let you locate the - referenced object inside the same namespace. - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - source: - type: object - x-kubernetes-preserve-unknown-fields: true - type: object - type: object - served: true - storage: true - subresources: - status: {}