diff --git a/go.mod b/go.mod index a0b27f3c0..c5ee7c018 100644 --- a/go.mod +++ b/go.mod @@ -29,8 +29,8 @@ require ( kmodules.xyz/client-go v0.30.9 kmodules.xyz/custom-resources v0.30.0 kmodules.xyz/monitoring-agent-api v0.29.0 - kubedb.dev/apimachinery v0.47.0-rc.2 - kubedb.dev/db-client-go v0.2.0-rc.2 + kubedb.dev/apimachinery v0.47.0-rc.3 + kubedb.dev/db-client-go v0.2.0-rc.3 sigs.k8s.io/controller-runtime v0.18.4 sigs.k8s.io/yaml v1.4.0 stash.appscode.dev/apimachinery v0.34.0 diff --git a/go.sum b/go.sum index 95506b321..befc7b2fb 100644 --- a/go.sum +++ b/go.sum @@ -725,10 +725,10 @@ kmodules.xyz/prober v0.29.0 h1:Ex7m4F9rH7uWNNJlLgP63ROOM+nUATJkC2L5OQ7nwMg= kmodules.xyz/prober v0.29.0/go.mod h1:UtK+HKyI1lFLEKX+HFLyOCVju6TO93zv3kwGpzqmKOo= kmodules.xyz/resource-metadata v0.18.11-0.20240801195527-995886d0c0e5 h1:9RQEeMpYabFmWTRdeLwHl/ZnlcyR+WKLnIWdg6eiCTA= kmodules.xyz/resource-metadata v0.18.11-0.20240801195527-995886d0c0e5/go.mod h1:1mOc2/WgOsn+f4tBKbHw8JgjWAEF52I6gOsVpyUE10M= -kubedb.dev/apimachinery v0.47.0-rc.2 h1:pdtbBiLM0VQw8HoJ3Z2tp4PZX5y66CIYBRCIn7inADI= -kubedb.dev/apimachinery v0.47.0-rc.2/go.mod h1:XkzWrijuH4skCU2ru+Ye9O0KSWQ7Nn2mRjP3+F3StLk= -kubedb.dev/db-client-go v0.2.0-rc.2 h1:bXkn4KIfBeiEJbj7HZsXDD/Amf3r7iLMg7RioPi0yVw= -kubedb.dev/db-client-go v0.2.0-rc.2/go.mod h1:6T95WgD1Lz1JEjixdVQ0/Euxd4mq3RhopliaaBer/vc= +kubedb.dev/apimachinery v0.47.0-rc.3 h1:o5KpBZsYuUr2EJ/NMyyAtZ4lT7g1UabriZUxSynWZRs= +kubedb.dev/apimachinery v0.47.0-rc.3/go.mod h1:XkzWrijuH4skCU2ru+Ye9O0KSWQ7Nn2mRjP3+F3StLk= +kubedb.dev/db-client-go v0.2.0-rc.3 h1:L2RvcBMdnyx/anLla8WYARTcmskawDI+S749JYraIS0= +kubedb.dev/db-client-go v0.2.0-rc.3/go.mod h1:LXEW5LlrCoMaVks2G29DP2Z+Yi8hD/7L6C9LsgtZG7s= kubeops.dev/petset v0.0.6 h1:0IbvxD9fadZfH+3iMZWzN6ZHsO0vX458JlioamwyPKQ= kubeops.dev/petset v0.0.6/go.mod h1:A15vh0r979NsvL65DTIZKWsa/NoX9VapHBAEw1ZsdYI= kubeops.dev/sidekick v0.0.7 h1:+rs9AXPsiHjq5pJpzmj+Cen7frPfdi5dK1A57eNh7GM= diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/clickhouse_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/clickhouse_types.go index 611c2ad14..d68481365 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/clickhouse_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/clickhouse_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=clickhouseautoscalers,singular=clickhouseautoscaler,shortName=chscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=clickhouseautoscalers,singular=clickhouseautoscaler,shortName=chscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type ClickHouseAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/druid_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/druid_types.go index cd0466d48..3f98a51e0 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/druid_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/druid_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=druidautoscalers,singular=druidautoscaler,shortName=drscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=druidautoscalers,singular=druidautoscaler,shortName=drscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type DruidAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/elasticsearch_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/elasticsearch_types.go index da5a8afff..192ffb1c2 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/elasticsearch_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/elasticsearch_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=elasticsearchautoscalers,singular=elasticsearchautoscaler,shortName=esscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=elasticsearchautoscalers,singular=elasticsearchautoscaler,shortName=esscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type ElasticsearchAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/etcd_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/etcd_types.go index 6756e4205..c25f99fcf 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/etcd_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/etcd_types.go @@ -38,7 +38,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=etcdautoscalers,singular=etcdautoscaler,shortName=etcdscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=etcdautoscalers,singular=etcdautoscaler,shortName=etcdscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type EtcdAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/ferretdb_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/ferretdb_types.go index ac8deb15b..dcaf3cf1c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/ferretdb_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/ferretdb_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=ferretdbautoscalers,singular=ferretdbautoscaler,shortName=frscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=ferretdbautoscalers,singular=ferretdbautoscaler,shortName=frscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type FerretDBAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/kafka_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/kafka_types.go index 08c53d78f..484253888 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/kafka_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/kafka_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=kafkaautoscalers,singular=kafkaautoscaler,shortName=kfscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=kafkaautoscalers,singular=kafkaautoscaler,shortName=kfscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type KafkaAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mariadb_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mariadb_types.go index a7555eeac..eb9259fbd 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mariadb_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mariadb_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mariadbautoscalers,singular=mariadbautoscaler,shortName=mdscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=mariadbautoscalers,singular=mariadbautoscaler,shortName=mdscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type MariaDBAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/memcached_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/memcached_types.go index 0d6bae527..460915450 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/memcached_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/memcached_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=memcachedautoscalers,singular=memcachedautoscaler,shortName=mcscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=memcachedautoscalers,singular=memcachedautoscaler,shortName=mcscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type MemcachedAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_types.go index c3d32b8d9..e12621cae 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mongodb_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mongodbautoscalers,singular=mongodbautoscaler,shortName=mgscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=mongodbautoscalers,singular=mongodbautoscaler,shortName=mgscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type MongoDBAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mssqlserver_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mssqlserver_types.go index 19c787647..a8d0aac4f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mssqlserver_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mssqlserver_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mssqlserverautoscalers,singular=mssqlserverautoscaler,shortName=msscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=mssqlserverautoscalers,singular=mssqlserverautoscaler,shortName=msscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type MSSQLServerAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mysql_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mysql_types.go index 83280fe82..6f4780aac 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mysql_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mysql_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mysqlautoscalers,singular=mysqlautoscaler,shortName=myscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=mysqlautoscalers,singular=mysqlautoscaler,shortName=myscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type MySQLAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go index 8be246bb6..df4327650 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go @@ -29216,7 +29216,7 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_ProxySQLAutoscalerSpec(ref co Description: "ProxySQLAutoscalerSpec is the specification of the behavior of the autoscaler.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "proxyRef": { + "databaseRef": { SchemaProps: spec.SchemaProps{ Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), }, @@ -29233,7 +29233,7 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_ProxySQLAutoscalerSpec(ref co }, }, }, - Required: []string{"proxyRef"}, + Required: []string{"databaseRef"}, }, }, Dependencies: []string{ diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/perconaxtradb_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/perconaxtradb_types.go index 3ece3581d..7bcb9c82f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/perconaxtradb_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/perconaxtradb_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=perconaxtradbautoscalers,singular=perconaxtradbautoscaler,shortName=pxcscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=perconaxtradbautoscalers,singular=perconaxtradbautoscaler,shortName=pxcscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type PerconaXtraDBAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/pgbouncer_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/pgbouncer_types.go index e8219c61e..b51f45182 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/pgbouncer_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/pgbouncer_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=pgbouncerautoscalers,singular=pgbouncerautoscaler,shortName=pbscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=pgbouncerautoscalers,singular=pgbouncerautoscaler,shortName=pbscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type PgBouncerAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/pgpool_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/pgpool_types.go index 32d13a667..4f569f05f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/pgpool_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/pgpool_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=pgpoolautoscalers,singular=pgpoolautoscaler,shortName=ppscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=pgpoolautoscalers,singular=pgpoolautoscaler,shortName=ppscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type PgpoolAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/postgres_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/postgres_types.go index c1dd1bbae..eccddadf1 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/postgres_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/postgres_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=postgresautoscalers,singular=postgresautoscaler,shortName=pgscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=postgresautoscalers,singular=postgresautoscaler,shortName=pgscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type PostgresAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/proxysql_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/proxysql_types.go index c77e8be41..fa7fd4c02 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/proxysql_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/proxysql_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=proxysqlautoscalers,singular=proxysqlautoscaler,shortName=prxscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=proxysqlautoscalers,singular=proxysqlautoscaler,shortName=prxscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type ProxySQLAutoscaler struct { metav1.TypeMeta `json:",inline"` @@ -60,7 +60,7 @@ type ProxySQLAutoscaler struct { // ProxySQLAutoscalerSpec is the specification of the behavior of the autoscaler. type ProxySQLAutoscalerSpec struct { - ProxyRef *core.LocalObjectReference `json:"proxyRef"` + DatabaseRef *core.LocalObjectReference `json:"databaseRef"` // This field will be used to control the behaviour of ops-manager OpsRequestOptions *ProxySQLOpsRequestOptions `json:"opsRequestOptions,omitempty"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/proxysql_webhook.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/proxysql_webhook.go index 24e8b297e..1b42fdb2c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/proxysql_webhook.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/proxysql_webhook.go @@ -88,7 +88,7 @@ func (_ ProxySQLAutoscaler) ValidateDelete() (admission.Warnings, error) { } func (in *ProxySQLAutoscaler) validate() error { - if in.Spec.ProxyRef == nil { + if in.Spec.DatabaseRef == nil { return errors.New("proxyRef can't be empty") } return nil diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/rabbitmq_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/rabbitmq_types.go index 6f8b97fe1..1145f785d 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/rabbitmq_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/rabbitmq_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=rabbitmqautoscalers,singular=rabbitmqautoscaler,shortName=rmscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=rabbitmqautoscalers,singular=rabbitmqautoscaler,shortName=rmscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type RabbitMQAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/redis_sentinel_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/redis_sentinel_types.go index cd8677b1e..3fb829f0a 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/redis_sentinel_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/redis_sentinel_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=redissentinelautoscalers,singular=redissentinelautoscaler,shortName=rdsscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=redissentinelautoscalers,singular=redissentinelautoscaler,shortName=rdsscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type RedisSentinelAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/redis_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/redis_types.go index 21f33a45a..4cee91062 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/redis_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/redis_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=redisautoscalers,singular=redisautoscaler,shortName=rdscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=redisautoscalers,singular=redisautoscaler,shortName=rdscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type RedisAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/singlestore_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/singlestore_types.go index 2bd4941d0..ee974f7d1 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/singlestore_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/singlestore_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=singlestoreautoscalers,singular=singlestoreautoscaler,shortName=sdbscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=singlestoreautoscalers,singular=singlestoreautoscaler,shortName=sdbscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type SinglestoreAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/solr_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/solr_types.go index e3f09b2c1..827cf414c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/solr_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/solr_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=solrautoscalers,singular=solrautoscaler,shortName=slscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=solrautoscalers,singular=solrautoscaler,shortName=slscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type SolrAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zookeeper_types.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zookeeper_types.go index 4c9aa5e72..6a2600429 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zookeeper_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zookeeper_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=zookeeperautoscalers,singular=zookeeperautoscaler,shortName=zkscaler,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=zookeeperautoscalers,singular=zookeeperautoscaler,shortName=zkscaler,categories={autoscaler,kubedb,appscode} // +kubebuilder:subresource:status type ZooKeeperAutoscaler struct { metav1.TypeMeta `json:",inline"` diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go index 8748406c4..5f600faaf 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go @@ -3053,8 +3053,8 @@ func (in *ProxySQLAutoscalerList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProxySQLAutoscalerSpec) DeepCopyInto(out *ProxySQLAutoscalerSpec) { *out = *in - if in.ProxyRef != nil { - in, out := &in.ProxyRef, &out.ProxyRef + if in.DatabaseRef != nil { + in, out := &in.DatabaseRef, &out.DatabaseRef *out = new(corev1.LocalObjectReference) **out = **in } diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/clickhouse_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/clickhouse_version_types.go index 704ac56fc..88af5f06f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/clickhouse_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/clickhouse_version_types.go @@ -36,7 +36,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=clickhouseversions,singular=clickhouseversion,scope=Cluster,shortName=chversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=clickhouseversions,singular=clickhouseversion,scope=Cluster,shortName=chversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/druid_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/druid_version_types.go index 078761241..7e6579975 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/druid_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/druid_version_types.go @@ -34,7 +34,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=druidversions,singular=druidversion,scope=Cluster,shortName=drversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=druidversions,singular=druidversion,scope=Cluster,shortName=drversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/elasticsearch_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/elasticsearch_version_types.go index f082208a9..f1a2fde8a 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/elasticsearch_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/elasticsearch_version_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=elasticsearchversions,singular=elasticsearchversion,scope=Cluster,shortName=esversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=elasticsearchversions,singular=elasticsearchversion,scope=Cluster,shortName=esversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Distribution",type="string",JSONPath=".spec.distribution" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/etcd_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/etcd_version_types.go index dfd6db7c2..50292d9ce 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/etcd_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/etcd_version_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=etcdversions,singular=etcdversion,scope=Cluster,shortName=etcversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=etcdversions,singular=etcdversion,scope=Cluster,shortName=etcversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/ferretdb_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/ferretdb_version_types.go index 22d0f66fd..c3d53e60e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/ferretdb_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/ferretdb_version_types.go @@ -32,7 +32,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=ferretdbversions,singular=ferretdbversion,scope=Cluster,shortName=frversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=ferretdbversions,singular=ferretdbversion,scope=Cluster,shortName=frversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/kafka_connector_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/kafka_connector_version_types.go index df4319f0f..5f4fd77a2 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/kafka_connector_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/kafka_connector_version_types.go @@ -36,7 +36,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=kafkaconnectorversions,singular=kafkaconnectorversion,scope=Cluster,shortName=kcversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=kafkaconnectorversions,singular=kafkaconnectorversion,scope=Cluster,shortName=kcversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Connector_Image",type="string",JSONPath=".spec.connectorPlugin.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/kafka_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/kafka_version_types.go index 98ab8a4a0..2f572896f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/kafka_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/kafka_version_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=kafkaversions,singular=kafkaversion,scope=Cluster,shortName=kfversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=kafkaversions,singular=kafkaversion,scope=Cluster,shortName=kfversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mariadb_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mariadb_version_types.go index 736f12535..82e8dfdbe 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mariadb_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mariadb_version_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mariadbversions,singular=mariadbversion,scope=Cluster,shortName=mariaversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=mariadbversions,singular=mariadbversion,scope=Cluster,shortName=mariaversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/memcached_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/memcached_version_types.go index 9de5b8b43..1ab939be2 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/memcached_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/memcached_version_types.go @@ -34,7 +34,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=memcachedversions,singular=memcachedversion,scope=Cluster,shortName=mcversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=memcachedversions,singular=memcachedversion,scope=Cluster,shortName=mcversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mongodb_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mongodb_version_types.go index 89901d759..6a0fbd311 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mongodb_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mongodb_version_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mongodbversions,singular=mongodbversion,scope=Cluster,shortName=mgversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=mongodbversions,singular=mongodbversion,scope=Cluster,shortName=mgversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Distribution",type="string",JSONPath=".spec.distribution" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssql_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssql_version_types.go index 47498d66a..696503229 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssql_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssql_version_types.go @@ -35,7 +35,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mssqlserverversions,singular=mssqlserverversion,scope=Cluster,shortName=msversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=mssqlserverversions,singular=mssqlserverversion,scope=Cluster,shortName=msversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mysql_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mysql_version_types.go index fc0c34ad9..8b5399fe4 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mysql_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mysql_version_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mysqlversions,singular=mysqlversion,scope=Cluster,shortName=myversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=mysqlversions,singular=mysqlversion,scope=Cluster,shortName=myversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Distribution",type="string",JSONPath=".spec.distribution" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/perconaxtradb_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/perconaxtradb_version_types.go index 4b95b21bb..372eb15aa 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/perconaxtradb_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/perconaxtradb_version_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=perconaxtradbversions,singular=perconaxtradbversion,scope=Cluster,shortName=pxversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=perconaxtradbversions,singular=perconaxtradbversion,scope=Cluster,shortName=pxversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/pgbouncer_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/pgbouncer_version_types.go index 30b619947..8a16eb653 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/pgbouncer_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/pgbouncer_version_types.go @@ -36,7 +36,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=pgbouncerversions,singular=pgbouncerversion,scope=Cluster,shortName=pbversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=pgbouncerversions,singular=pgbouncerversion,scope=Cluster,shortName=pbversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="PGBOUNCER_IMAGE",type="string",JSONPath=".spec.pgBouncer.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/pgpool_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/pgpool_version_types.go index 30f795940..5eafc467b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/pgpool_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/pgpool_version_types.go @@ -34,7 +34,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=pgpoolversions,singular=pgpoolversion,scope=Cluster,shortName=ppversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=pgpoolversions,singular=pgpoolversion,scope=Cluster,shortName=ppversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="PGPOOL_IMAGE",type="string",JSONPath=".spec.pgpool.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/postgres_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/postgres_version_types.go index 37a07c48c..2846e67ca 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/postgres_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/postgres_version_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=postgresversions,singular=postgresversion,scope=Cluster,shortName=pgversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=postgresversions,singular=postgresversion,scope=Cluster,shortName=pgversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Distribution",type="string",JSONPath=".spec.distribution" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/proxysql_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/proxysql_version_types.go index 8266cd910..548373d03 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/proxysql_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/proxysql_version_types.go @@ -33,7 +33,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=proxysqlversions,singular=proxysqlversion,scope=Cluster,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=proxysqlversions,singular=proxysqlversion,scope=Cluster,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="ProxySQL_IMAGE",type="string",JSONPath=".spec.proxysql.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/rabbitmqversion_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/rabbitmqversion_types.go index b642a9f43..9142547cf 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/rabbitmqversion_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/rabbitmqversion_types.go @@ -36,7 +36,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=rabbitmqversions,singular=rabbitmqversion,scope=Cluster,shortName=rmversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=rabbitmqversions,singular=rabbitmqversion,scope=Cluster,shortName=rmversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/redis_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/redis_version_types.go index abd590682..b0918e615 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/redis_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/redis_version_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=redisversions,singular=redisversion,scope=Cluster,shortName=rdversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=redisversions,singular=redisversion,scope=Cluster,shortName=rdversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/schemaregistry_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/schemaregistry_version_types.go index cb873d7b8..4626563c9 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/schemaregistry_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/schemaregistry_version_types.go @@ -36,7 +36,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=schemaregistryversions,singular=schemaregistryversion,scope=Cluster,shortName=ksrversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=schemaregistryversions,singular=schemaregistryversion,scope=Cluster,shortName=ksrversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Distribution",type="string",JSONPath=".spec.distribution" // +kubebuilder:printcolumn:name="REGISTRY_IMAGE",type="string",JSONPath=".spec.registry.image" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/singlestore_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/singlestore_version_types.go index b6b6818a4..f96d4ea59 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/singlestore_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/singlestore_version_types.go @@ -35,7 +35,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=singlestoreversions,singular=singlestoreversion,scope=Cluster,shortName=sdbv,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=singlestoreversions,singular=singlestoreversion,scope=Cluster,shortName=sdbv,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/solr_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/solr_version_types.go index b3143686e..96848d0dd 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/solr_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/solr_version_types.go @@ -36,7 +36,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=solrversions,singular=solrversion,scope=Cluster,shortName=slversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=solrversions,singular=solrversion,scope=Cluster,shortName=slversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/zookeeper_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/zookeeper_version_types.go index 53010dd90..84f64b383 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/zookeeper_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/zookeeper_version_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=zookeeperversions,singular=zookeeperversion,scope=Cluster,shortName=zkversion,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=zookeeperversions,singular=zookeeperversion,scope=Cluster,shortName=zkversion,categories={catalog,kubedb,appscode} // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="DB_IMAGE",type="string",JSONPath=".spec.db.image" // +kubebuilder:printcolumn:name="Deprecated",type="boolean",JSONPath=".spec.deprecated" diff --git a/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/elasticsearchdashboard_types.go b/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/elasticsearchdashboard_types.go index 4a5b448c4..fcabcf41e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/elasticsearchdashboard_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/elasticsearchdashboard_types.go @@ -88,7 +88,7 @@ type ElasticsearchDashboardStatus struct { // +k8s:openapi-gen=true // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:shortName=ed,scope=Namespaced +// +kubebuilder:resource:path=elasticsearchdashboards,singular=elasticsearchdashboard,shortName=ed,categories={esstore,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" diff --git a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connect_cluster_types.go b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connect_cluster_types.go index 41b249d14..d2f3891dd 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connect_cluster_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connect_cluster_types.go @@ -41,7 +41,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=kcc,scope=Namespaced +// +kubebuilder:resource:path=connectclusters,singular=connectcluster,shortName=kcc,categories={kfstore,kubedb,appscode} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connector_types.go b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connector_types.go index 8b49060c5..1a1a6f80f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connector_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connector_types.go @@ -39,7 +39,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=kc,scope=Namespaced +// +kubebuilder:resource:path=connectors,singular=connector,shortName=kc,categories={kfstore,kubedb,appscode} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="ConnectCluster",type="string",JSONPath=".spec.connectClusterRef.name" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/restproxy_types.go b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/restproxy_types.go index 15a6d55c0..8941a850f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/restproxy_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/restproxy_types.go @@ -39,7 +39,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=krp,scope=Namespaced +// +kubebuilder:resource:path=restproxies,singular=restproxy,shortName=krp,categories={kfstore,kubedb,appscode} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Kafka",type="string",JSONPath=".spec.kafkaRef.name" diff --git a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/schemaregistry_types.go b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/schemaregistry_types.go index 3f9d3f63f..56c19b65f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/schemaregistry_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/schemaregistry_types.go @@ -39,7 +39,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=ksr,scope=Namespaced +// +kubebuilder:resource:path=schemaregistries,singular=schemaregistry,shortName=ksr,categories={kfstore,kubedb,appscode} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go index d732cfd24..f84590913 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go @@ -1178,11 +1178,22 @@ const ( ) const ( - RabbitMQAMQPPort = 5672 - RabbitMQPeerDiscoveryPort = 4369 - RabbitMQManagementUIPort = 15672 - RabbitMQExporterPort = 15692 - RabbitMQInterNodePort = 25672 + RabbitMQAMQPPort = 5672 + RabbitMQAMQPSPort = 5671 + RabbitMQMQTTPort = 1883 + RabbitMQMQTTPortWithSSL = 8883 + RabbitMQSTOMPPort = 61613 + RabbitMQSTOMPPortWithSSL = 61614 + RabbitMQWebSTOMPPort = 15674 + RabbitMQWebSTOMPPortWithSSL = 15673 + RabbitMQWebMQTTPort = 15675 + RabbitMQWebMQTTPortWithSSL = 15676 + RabbitMQExporterPort = 15692 + RabbitMQExporterPortWithSSL = 15691 + RabbitMQManagementUIPort = 15672 + RabbitMQManagementUIPortWithSSL = 15671 + RabbitMQInterNodePort = 25672 + RabbitMQPeerDiscoveryPort = 4369 RabbitMQVolumeData = "data" RabbitMQVolumeConfig = "rabbitmqconfig" @@ -1209,10 +1220,16 @@ const ( RabbitMQShovelPlugin = "rabbitmq_shovel" RabbitMQShovelManagementPlugin = "rabbitmq_shovel_management" RabbitMQWebDispatchPlugin = "rabbitmq_web_dispatch" + RabbitMQMQTTPlugin = "rabbitmq_mqtt" + RabbitMQWebMQTTPlugin = "rabbitmq_stomp" + RabbitMQSTOMPPlugin = "rabbitmq_web_mqtt" + RabbitMQWebSTOMPPlugin = "rabbitmq_web_stomp" + RabbitMQPrometheusPlugin = "rabbitmq_prometheus" RabbitMQLoopBackUserKey = "loopback_users" RabbitMQLoopBackUserVal = "none" RabbitMQDefaultTCPListenerKey = "listeners.tcp.default" RabbitMQDefaultSSLListenerKey = "listeners.ssl.default" + RabbitMQDefaultSSLListener1Key = "listeners.ssl.1" RabbitMQDefaultTCPListenerVal = "5672" RabbitMQDefaultTLSListenerVal = "5671" RabbitMQQueueMasterLocatorKey = "queue_master_locator" @@ -1246,9 +1263,16 @@ const ( RabbitMQSSLOptionsPrivateKey = "ssl_options.keyfile" RabbitMQSSLOptionsVerifyKey = "ssl_options.verify" RabbitMQSSLOptionsFailIfNoPeerKey = "ssl_options.fail_if_no_peer_cert" - RabbitMQConfigFileName = "rabbitmq.conf" - RabbitMQEnabledPluginsFileName = "enabled_plugins" - RabbitMQHealthCheckerQueueName = "kubedb-system" + RabbitMQSSLPortKey = "ssl.port" + + RabbitMQSSLCAKey = "ssl.cacertfile" + RabbitMQSSLCertKey = "ssl.certfile" + RabbitMQSSLPrivateKey = "ssl.keyfile" + RabbitMQSSLVerifyKey = "ssl.verify" + RabbitMQSSLFailIfNoPeerKey = "ssl.fail_if_no_peer_cert" + RabbitMQConfigFileName = "rabbitmq.conf" + RabbitMQEnabledPluginsFileName = "enabled_plugins" + RabbitMQHealthCheckerQueueName = "kubedb-system" ) // =========================== FerretDB Constants ============================ diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_helpers.go index 76db6ccbf..682a854a3 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_helpers.go @@ -300,6 +300,14 @@ func (k *Kafka) SetHealthCheckerDefaults() { } func (k *Kafka) SetDefaults() { + if k.Spec.Halted { + if k.Spec.DeletionPolicy == DeletionPolicyDoNotTerminate { + klog.Errorf(`Can't halt, since deletion policy is 'DoNotTerminate'`) + return + } + k.Spec.DeletionPolicy = DeletionPolicyHalt + } + if k.Spec.DeletionPolicy == "" { k.Spec.DeletionPolicy = DeletionPolicyDelete } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_types.go index 1f097c6c5..f526bc554 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_types.go @@ -40,7 +40,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:storageversion -// +kubebuilder:resource:shortName=kf,scope=Namespaced +// +kubebuilder:resource:path=kafkas,singular=kafka,shortName=kf,categories={datastore,kubedb,appscode,all} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" @@ -93,6 +93,10 @@ type KafkaSpec struct { // +optional KeystoreCredSecret *SecretReference `json:"keystoreCredSecret,omitempty"` + // Indicates that the database is halted and all offshoot Kubernetes resources except PVCs are deleted. + // +optional + Halted bool `json:"halted,omitempty"` + // TLS contains tls configurations // +optional TLS *kmapi.TLSConfig `json:"tls,omitempty"` diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_webhooks.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_webhooks.go index 93a0bbd2c..6a8937ee9 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_webhooks.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_webhooks.go @@ -166,6 +166,12 @@ func (k *Kafka) ValidateCreateOrUpdate() error { } } + if k.Spec.Halted && k.Spec.DeletionPolicy == DeletionPolicyDoNotTerminate { + allErr = append(allErr, field.Invalid(field.NewPath("spec").Child("halted"), + k.Name, + `can't halt if deletionPolicy is set to "DoNotTerminate"`)) + } + err = k.validateVolumes(k) if err != nil { allErr = append(allErr, field.Invalid(field.NewPath("spec").Child("podTemplate").Child("spec").Child("volumes"), @@ -190,6 +196,11 @@ func (k *Kafka) ValidateCreateOrUpdate() error { k.Name, "StorageType should be either durable or ephemeral")) } + if k.Spec.StorageType == StorageTypeEphemeral && k.Spec.DeletionPolicy == DeletionPolicyHalt { + allErr = append(allErr, field.Invalid(field.NewPath("spec").Child("deletionPolicy"), + k.Name, + `'spec.deletionPolicy: Halt' can not be used for 'Ephemeral' storage`)) + } } if len(allErr) == 0 { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mongodb_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mongodb_helpers.go index 5feb3fc1b..48c310d48 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mongodb_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mongodb_helpers.go @@ -624,7 +624,11 @@ func (m *MongoDB) SetDefaults(mgVersion *v1alpha1.MongoDBVersion) { } if m.Spec.SSLMode == "" { - m.Spec.SSLMode = SSLModeDisabled + if m.Spec.TLS != nil { + m.Spec.SSLMode = SSLModeRequireSSL + } else { + m.Spec.SSLMode = SSLModeDisabled + } } if (m.Spec.ReplicaSet != nil || m.Spec.ShardTopology != nil) && m.Spec.ClusterAuthMode == "" { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/openapi_generated.go index 0a5041199..56cf63f7a 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/openapi_generated.go @@ -26681,6 +26681,13 @@ func schema_apimachinery_apis_kubedb_v1_KafkaSpec(ref common.ReferenceCallback) Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1.SecretReference"), }, }, + "halted": { + SchemaProps: spec.SchemaProps{ + Description: "Indicates that the database is halted and all offshoot Kubernetes resources except PVCs are deleted.", + Type: []string{"boolean"}, + Format: "", + }, + }, "tls": { SchemaProps: spec.SchemaProps{ Description: "TLS contains tls configurations", @@ -29041,6 +29048,13 @@ func schema_apimachinery_apis_kubedb_v1_PgBouncerSpec(ref common.ReferenceCallba Ref: ref("kmodules.xyz/client-go/api/v1.HealthCheckSpec"), }, }, + "halted": { + SchemaProps: spec.SchemaProps{ + Description: "Indicates that the database is halted and all offshoot Kubernetes resources are deleted.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, Required: []string{"version"}, }, @@ -29796,6 +29810,13 @@ func schema_apimachinery_apis_kubedb_v1_ProxySQLSpec(ref common.ReferenceCallbac Ref: ref("kmodules.xyz/client-go/api/v1.HealthCheckSpec"), }, }, + "halted": { + SchemaProps: spec.SchemaProps{ + Description: "Indicates that the database is halted and all offshoot Kubernetes resources except PVCs are deleted.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, Required: []string{"version"}, }, diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_helpers.go index 5b01205dc..b64f8d081 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_helpers.go @@ -197,7 +197,7 @@ func (p *PgBouncer) SetDefaults(pgBouncerVersion *catalog.PgBouncerVersion, uses } if p.Spec.DeletionPolicy == "" { - p.Spec.DeletionPolicy = PgBouncerDeletionPolicyDelete + p.Spec.DeletionPolicy = DeletionPolicyDelete } p.setConnectionPoolConfigDefaults() diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_types.go index 7718db295..30dbe2bfe 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=pgbouncers,singular=pgbouncer,shortName=pb,categories={proxy,kubedb,appscode,all} +// +kubebuilder:resource:path=pgbouncers,singular=pgbouncer,shortName=pb,categories={datastore,kubedb,appscode,all} // +kubebuilder:subresource:status // +kubebuilder:storageversion // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" @@ -100,12 +100,16 @@ type PgBouncerSpec struct { // DeletionPolicy controls the delete operation for database // +optional - DeletionPolicy PgBouncerDeletionPolicy `json:"deletionPolicy,omitempty"` + DeletionPolicy DeletionPolicy `json:"deletionPolicy,omitempty"` // HealthChecker defines attributes of the health checker // +optional // +kubebuilder:default={periodSeconds: 10, timeoutSeconds: 10, failureThreshold: 1} HealthChecker kmapi.HealthCheckSpec `json:"healthChecker"` + + // Indicates that the database is halted and all offshoot Kubernetes resources are deleted. + // +optional + Halted bool `json:"halted,omitempty"` } // +kubebuilder:validation:Enum=server;archiver;metrics-exporter @@ -262,15 +266,3 @@ const ( // to Send the client cert and client key certificate for authentication. PgBouncerClientAuthModeCert PgBouncerClientAuthMode = "cert" ) - -// +kubebuilder:validation:Enum=Delete;WipeOut;DoNotTerminate -type PgBouncerDeletionPolicy string - -const ( - // Deletes database pods, service, pvcs but leave the stash backup data intact. - PgBouncerDeletionPolicyDelete PgBouncerDeletionPolicy = "Delete" - // Deletes database pods, service, pvcs and stash backup data. - PgBouncerDeletionPolicyWipeOut PgBouncerDeletionPolicy = "WipeOut" - // Rejects attempt to delete database using ValidationWebhook. - PgBouncerDeletionPolicyDoNotTerminate PgBouncerDeletionPolicy = "DoNotTerminate" -) diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/proxysql_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/proxysql_types.go index 2ac2b37e5..985c248f8 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/proxysql_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/proxysql_types.go @@ -173,6 +173,10 @@ type ProxySQLSpec struct { // +optional // +kubebuilder:default={periodSeconds: 10, timeoutSeconds: 10, failureThreshold: 1} HealthChecker kmapi.HealthCheckSpec `json:"healthChecker"` + + // Indicates that the database is halted and all offshoot Kubernetes resources except PVCs are deleted. + // +optional + Halted bool `json:"halted,omitempty"` } // +kubebuilder:validation:Enum=server;archiver;metrics-exporter diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/clickhouse_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/clickhouse_types.go index 9f83c03dd..ca60ca04b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/clickhouse_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/clickhouse_types.go @@ -36,7 +36,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=ch,scope=Namespaced +// +kubebuilder:resource:path=clickhouses,singular=clickhouse,shortName=ch,categories={datastore,kubedb,appscode,all} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/conversion.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/conversion.go index fd347d990..983900d41 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/conversion.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/conversion.go @@ -1001,7 +1001,7 @@ func Convert_v1alpha2_PgBouncerSpec_To_v1_PgBouncerSpec(in *PgBouncerSpec, out * out.Monitor = (*monitoringagentapiapiv1.AgentSpec)(unsafe.Pointer(in.Monitor)) out.SSLMode = v1.PgBouncerSSLMode(in.SSLMode) out.TLS = (*clientgoapiv1.TLSConfig)(unsafe.Pointer(in.TLS)) - out.DeletionPolicy = v1.PgBouncerDeletionPolicy(in.TerminationPolicy) + out.DeletionPolicy = v1.DeletionPolicy(in.TerminationPolicy) out.HealthChecker = in.HealthChecker return nil } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_types.go index cd8c297b1..62860264b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_types.go @@ -39,7 +39,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=dr,scope=Namespaced +// +kubebuilder:resource:path=druids,singular=druid,shortName=dr,categories={datastore,kubedb,appscode,all} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/ferretdb_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/ferretdb_types.go index 64fb16550..cdfd9e276 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/ferretdb_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/ferretdb_types.go @@ -37,7 +37,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=fr,scope=Namespaced +// +kubebuilder:resource:path=ferretdbs,singular=ferretdb,shortName=fr,categories={datastore,kubedb,appscode,all} // +kubebuilder:printcolumn:name="Namespace",type="string",JSONPath=".metadata.namespace" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_helpers.go index a17e9ea28..f550ac339 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_helpers.go @@ -299,6 +299,14 @@ func (k *Kafka) SetHealthCheckerDefaults() { } func (k *Kafka) SetDefaults() { + if k.Spec.Halted { + if k.Spec.DeletionPolicy == TerminationPolicyDoNotTerminate { + klog.Errorf(`Can't halt, since deletion policy is 'DoNotTerminate'`) + return + } + k.Spec.DeletionPolicy = TerminationPolicyHalt + } + if k.Spec.DeletionPolicy == "" { k.Spec.DeletionPolicy = TerminationPolicyDelete } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_types.go index 378b4ec02..b4770a0ba 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_types.go @@ -39,7 +39,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=kf,scope=Namespaced +// +kubebuilder:resource:path=kafkas,singular=kafka,shortName=kf,categories={datastore,kubedb,appscode,all} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" @@ -92,6 +92,10 @@ type KafkaSpec struct { // +optional KeystoreCredSecret *SecretReference `json:"keystoreCredSecret,omitempty"` + // Indicates that the database is halted and all offshoot Kubernetes resources except PVCs are deleted. + // +optional + Halted bool `json:"halted,omitempty"` + // TLS contains tls configurations // +optional TLS *kmapi.TLSConfig `json:"tls,omitempty"` diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_webhook.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_webhook.go index 367ea5f85..b76005bb9 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_webhook.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_webhook.go @@ -170,6 +170,12 @@ func (k *Kafka) ValidateCreateOrUpdate() error { } } + if k.Spec.Halted && k.Spec.DeletionPolicy == TerminationPolicyDoNotTerminate { + allErr = append(allErr, field.Invalid(field.NewPath("spec").Child("halted"), + k.Name, + `can't halt if deletionPolicy is set to "DoNotTerminate"`)) + } + err := k.validateVersion(k) if err != nil { allErr = append(allErr, field.Invalid(field.NewPath("spec").Child("version"), @@ -201,6 +207,11 @@ func (k *Kafka) ValidateCreateOrUpdate() error { k.Name, "StorageType should be either durable or ephemeral")) } + if k.Spec.StorageType == StorageTypeEphemeral && k.Spec.DeletionPolicy == TerminationPolicyHalt { + allErr = append(allErr, field.Invalid(field.NewPath("spec").Child("deletionPolicy"), + k.Name, + `'spec.deletionPolicy: Halt' can not be used for 'Ephemeral' storage`)) + } } if len(allErr) == 0 { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go index 6dc46a631..012da0a8c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go @@ -28295,6 +28295,13 @@ func schema_apimachinery_apis_kubedb_v1alpha2_KafkaSpec(ref common.ReferenceCall Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference"), }, }, + "halted": { + SchemaProps: spec.SchemaProps{ + Description: "Indicates that the database is halted and all offshoot Kubernetes resources except PVCs are deleted.", + Type: []string{"boolean"}, + Format: "", + }, + }, "tls": { SchemaProps: spec.SchemaProps{ Description: "TLS contains tls configurations", @@ -31162,6 +31169,13 @@ func schema_apimachinery_apis_kubedb_v1alpha2_PgBouncerSpec(ref common.Reference Ref: ref("kmodules.xyz/client-go/api/v1.HealthCheckSpec"), }, }, + "halted": { + SchemaProps: spec.SchemaProps{ + Description: "Indicates that the database is halted and all offshoot Kubernetes resources are deleted.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, Required: []string{"version"}, }, @@ -32223,6 +32237,13 @@ func schema_apimachinery_apis_kubedb_v1alpha2_ProxySQLSpec(ref common.ReferenceC Ref: ref("kmodules.xyz/client-go/api/v1.HealthCheckSpec"), }, }, + "halted": { + SchemaProps: spec.SchemaProps{ + Description: "Indicates that the database is halted and all offshoot Kubernetes resources except PVCs are deleted.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, Required: []string{"version"}, }, @@ -32468,6 +32489,21 @@ func schema_apimachinery_apis_kubedb_v1alpha2_RabbitMQSpec(ref common.ReferenceC Format: "", }, }, + "disabledProtocols": { + SchemaProps: spec.SchemaProps{ + Description: "Indicates that the RabbitMQ Protocols that are required to be disabled on bootstrap.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, "monitor": { SchemaProps: spec.SchemaProps{ Description: "Monitor is used monitor database instance", diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_types.go index 11c0b5d37..095e99cff 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=pgbouncers,singular=pgbouncer,shortName=pb,categories={proxy,kubedb,appscode,all} +// +kubebuilder:resource:path=pgbouncers,singular=pgbouncer,shortName=pb,categories={datastore,kubedb,appscode,all} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" @@ -105,6 +105,10 @@ type PgBouncerSpec struct { // +optional // +kubebuilder:default={periodSeconds: 10, timeoutSeconds: 10, failureThreshold: 1} HealthChecker kmapi.HealthCheckSpec `json:"healthChecker"` + + // Indicates that the database is halted and all offshoot Kubernetes resources are deleted. + // +optional + Halted bool `json:"halted,omitempty"` } // +kubebuilder:validation:Enum=server;archiver;metrics-exporter @@ -262,10 +266,12 @@ const ( PgBouncerClientAuthModeCert PgBouncerClientAuthMode = "cert" ) -// +kubebuilder:validation:Enum=Delete;WipeOut;DoNotTerminate +// +kubebuilder:validation:Enum=Halt;Delete;WipeOut;DoNotTerminate type PgBouncerTerminationPolicy string const ( + // Deletes database pods, service but leave the PVCs and stash backup data intact. + PgBouncerDeletionPolicyHalt PgBouncerTerminationPolicy = "Halt" // Deletes database pods, service, pvcs but leave the stash backup data intact. PgBouncerTerminationPolicyDelete PgBouncerTerminationPolicy = "Delete" // Deletes database pods, service, pvcs and stash backup data. diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_types.go index a85495151..9a196ce2a 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/proxysql_types.go @@ -172,6 +172,10 @@ type ProxySQLSpec struct { // +optional // +kubebuilder:default={periodSeconds: 10, timeoutSeconds: 10, failureThreshold: 1} HealthChecker kmapi.HealthCheckSpec `json:"healthChecker"` + + // Indicates that the database is halted and all offshoot Kubernetes resources except PVCs are deleted. + // +optional + Halted bool `json:"halted,omitempty"` } // +kubebuilder:validation:Enum=server;archiver;metrics-exporter diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_helpers.go index 4a49fac32..44a5e1698 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_helpers.go @@ -20,6 +20,7 @@ import ( "context" "fmt" "path/filepath" + "slices" "strings" "kubedb.dev/apimachinery/apis" @@ -128,8 +129,8 @@ func (r *RabbitMQ) GoverningServiceName() string { return meta_util.NameWithSuffix(r.ServiceName(), "pods") } -func (r *RabbitMQ) StandbyServiceName() string { - return meta_util.NameWithPrefix(r.ServiceName(), kubedb.KafkaStandbyServiceSuffix) +func (r *RabbitMQ) DashboardServiceName() string { + return meta_util.NameWithSuffix(r.ServiceName(), "dashboard") } func (r *RabbitMQ) offshootLabels(selector, override map[string]string) map[string]string { @@ -413,6 +414,10 @@ func (r *RabbitMQ) SetHealthCheckerDefaults() { } } +func (r *RabbitMQ) IsProtocolDisabled(protocol RabbitMQProtocol) bool { + return slices.Contains(r.Spec.DisabledProtocols, protocol) +} + func (r *RabbitMQ) ReplicasAreReady(lister pslister.PetSetLister) (bool, string, error) { // Desire number of petSets expectedItems := 1 diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_types.go index 200804218..050c8a954 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_types.go @@ -39,7 +39,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=rm,scope=Namespaced +// +kubebuilder:resource:path=rabbitmqs,singular=rabbitmq,shortName=rm,categories={datastore,kubedb,appscode,all} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" @@ -100,6 +100,10 @@ type RabbitMQSpec struct { // +optional Halted bool `json:"halted,omitempty"` + // Indicates that the RabbitMQ Protocols that are required to be disabled on bootstrap. + // +optional + DisabledProtocols []RabbitMQProtocol `json:"disabledProtocols,omitempty"` + // Monitor is used monitor database instance // +optional Monitor *mona.AgentSpec `json:"monitor,omitempty"` @@ -147,6 +151,18 @@ const ( RabbitmqServerCert RabbitMQCertificateAlias = "server" ) +// +kubebuilder:validation:Enum=http;amqp;mqtt;stomp;web_mqtt;web_stomp +type RabbitMQProtocol string + +const ( + RabbitmqProtocolHTTP RabbitMQProtocol = "http" + RabbitmqProtocolAMQP RabbitMQProtocol = "amqp" + RabbitmqProtocolMQTT RabbitMQProtocol = "mqtt" + RabbitmqProtocolSTOMP RabbitMQProtocol = "stomp" + RabbitmqProtocolWEBMQTT RabbitMQProtocol = "web_mqtt" + RabbitmqProtocolWEBSTOMP RabbitMQProtocol = "web_stomp" +) + // RabbitMQList contains a list of RabbitMQ // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/singlestore_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/singlestore_types.go index af13b06d3..da7375461 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/singlestore_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/singlestore_types.go @@ -39,7 +39,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=sdb,scope=Namespaced +// +kubebuilder:resource:path=singlestores,singular=singlestore,shortName=sdb,categories={datastore,kubedb,appscode,all} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_helpers.go index 0cccf01a2..a54476ff1 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_helpers.go @@ -19,6 +19,7 @@ package v1alpha2 import ( "context" "fmt" + "sort" "strings" "kubedb.dev/apimachinery/apis" @@ -113,13 +114,18 @@ func (s *Solr) Merge(opt map[string]string) map[string]string { } func (s *Solr) Append(opt map[string]string) string { + key := make([]string, 0) + for x := range opt { + key = append(key, x) + } + sort.Strings(key) fl := 0 as := "" - for x, y := range opt { + for _, x := range key { if fl == 1 { as += " " } - as += fmt.Sprintf("%s=%s", x, y) + as += fmt.Sprintf("%s=%s", x, opt[x]) fl = 1 } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_types.go index 75a3b3c9a..950edb5de 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_types.go @@ -39,7 +39,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=sl,scope=Namespaced +// +kubebuilder:resource:path=solrs,singular=solr,shortName=sl,categories={datastore,kubedb,appscode,all} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/types.go index b8353244f..8e3d41bb2 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/types.go @@ -124,13 +124,14 @@ const ( TerminationPolicyDoNotTerminate TerminationPolicy = "DoNotTerminate" ) -// +kubebuilder:validation:Enum=primary;standby;stats +// +kubebuilder:validation:Enum=primary;standby;stats;dashboard type ServiceAlias string const ( - PrimaryServiceAlias ServiceAlias = "primary" - StandbyServiceAlias ServiceAlias = "standby" - StatsServiceAlias ServiceAlias = "stats" + PrimaryServiceAlias ServiceAlias = "primary" + StandbyServiceAlias ServiceAlias = "standby" + StatsServiceAlias ServiceAlias = "stats" + DashboardServiceAlias ServiceAlias = "dashboard" ) // +kubebuilder:validation:Enum=DNS;IP;IPv4;IPv6 diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_types.go index a60b5a470..2e09dd241 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_types.go @@ -39,7 +39,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:shortName=zk,scope=Namespaced +// +kubebuilder:resource:path=zookeepers,singular=zookeeper,shortName=zk,categories={datastore,kubedb,appscode,all} // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".apiVersion" // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.conversion.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.conversion.go index 2fcd347bc..75a0fcdfc 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.conversion.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.conversion.go @@ -2004,6 +2004,7 @@ func autoConvert_v1alpha2_KafkaSpec_To_v1_KafkaSpec(in *KafkaSpec, out *v1.Kafka out.AuthSecret = (*v1.SecretReference)(unsafe.Pointer(in.AuthSecret)) out.ConfigSecret = (*corev1.LocalObjectReference)(unsafe.Pointer(in.ConfigSecret)) out.KeystoreCredSecret = (*v1.SecretReference)(unsafe.Pointer(in.KeystoreCredSecret)) + out.Halted = in.Halted out.TLS = (*clientgoapiv1.TLSConfig)(unsafe.Pointer(in.TLS)) out.PodTemplate = in.PodTemplate out.ServiceTemplates = *(*[]v1.NamedServiceTemplateSpec)(unsafe.Pointer(&in.ServiceTemplates)) @@ -2038,6 +2039,7 @@ func autoConvert_v1_KafkaSpec_To_v1alpha2_KafkaSpec(in *v1.KafkaSpec, out *Kafka out.AuthSecret = (*SecretReference)(unsafe.Pointer(in.AuthSecret)) out.ConfigSecret = (*corev1.LocalObjectReference)(unsafe.Pointer(in.ConfigSecret)) out.KeystoreCredSecret = (*SecretReference)(unsafe.Pointer(in.KeystoreCredSecret)) + out.Halted = in.Halted out.TLS = (*clientgoapiv1.TLSConfig)(unsafe.Pointer(in.TLS)) out.PodTemplate = in.PodTemplate out.ServiceTemplates = *(*[]NamedServiceTemplateSpec)(unsafe.Pointer(&in.ServiceTemplates)) diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.deepcopy.go index 5fb64b38d..3eb974efc 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zz_generated.deepcopy.go @@ -4340,6 +4340,11 @@ func (in *RabbitMQSpec) DeepCopyInto(out *RabbitMQSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.DisabledProtocols != nil { + in, out := &in.DisabledProtocols, &out.DisabledProtocols + *out = make([]RabbitMQProtocol, len(*in)) + copy(*out, *in) + } if in.Monitor != nil { in, out := &in.Monitor, &out.Monitor *out = new(monitoringagentapiapiv1.AgentSpec) diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/clickhouse_ops-types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/clickhouse_ops-types.go new file mode 100644 index 000000000..53c66cb82 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/clickhouse_ops-types.go @@ -0,0 +1,78 @@ +/* +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. +*/ + +//go:generate go-enum --mustparse --names --values +package v1alpha1 + +import ( + core "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + ResourceCodeClickHouseOpsRequest = "chops" + ResourceKindClickHouseOpsRequest = "ClickHouseOpsRequest" + ResourceSingularClickHouseOpsRequest = "clickhouseopsrequest" + ResourcePluralClickHouseOpsRequest = "clickhouseopsrequests" +) + +// ClickHouseDBOpsRequest defines a ClickHouse DBA operation. + +// +genclient +// +k8s:openapi-gen=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=clickhouseopsrequests,singular=clickhouseopsrequest,shortName=chops,categories={ops,kubedb,appscode} +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +type ClickHouseOpsRequest struct { + metav1.TypeMeta `json:",inline,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec ClickHouseOpsRequestSpec `json:"spec,omitempty"` + Status OpsRequestStatus `json:"status,omitempty"` +} + +// ClickHouseOpsRequestSpec is the spec for ClickHouseOpsRequest +type ClickHouseOpsRequestSpec struct { + // Specifies the ClickHouse reference + DatabaseRef core.LocalObjectReference `json:"databaseRef"` + // Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc. + Type ClickHouseOpsRequestType `json:"type"` + // Specifies information necessary for restarting database + Restart *RestartSpec `json:"restart,omitempty"` + // Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure. + Timeout *metav1.Duration `json:"timeout,omitempty"` + // ApplyOption is to control the execution of OpsRequest depending on the database state. + // +kubebuilder:default="IfReady" + Apply ApplyOption `json:"apply,omitempty"` +} + +// +kubebuilder:validation:Enum=Restart +// ENUM(Restart) +type ClickHouseOpsRequestType string + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ClickHouseOpsRequestList is a list of ClickHouseOpsRequests +type ClickHouseOpsRequestList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + // Items is a list of ClickHouseOpsRequest CRD objects + Items []ClickHouseOpsRequest `json:"items,omitempty"` +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/clickhouse_ops-types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/clickhouse_ops-types_enum.go new file mode 100644 index 000000000..48062bbaf --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/clickhouse_ops-types_enum.go @@ -0,0 +1,70 @@ +// Code generated by go-enum DO NOT EDIT. +// Version: +// Revision: +// Build Date: +// Built By: + +package v1alpha1 + +import ( + "fmt" + "strings" +) + +const ( + // ClickHouseOpsRequestTypeRestart is a ClickHouseOpsRequestType of type Restart. + ClickHouseOpsRequestTypeRestart ClickHouseOpsRequestType = "Restart" +) + +var ErrInvalidClickHouseOpsRequestType = fmt.Errorf("not a valid ClickHouseOpsRequestType, try [%s]", strings.Join(_ClickHouseOpsRequestTypeNames, ", ")) + +var _ClickHouseOpsRequestTypeNames = []string{ + string(ClickHouseOpsRequestTypeRestart), +} + +// ClickHouseOpsRequestTypeNames returns a list of possible string values of ClickHouseOpsRequestType. +func ClickHouseOpsRequestTypeNames() []string { + tmp := make([]string, len(_ClickHouseOpsRequestTypeNames)) + copy(tmp, _ClickHouseOpsRequestTypeNames) + return tmp +} + +// ClickHouseOpsRequestTypeValues returns a list of the values for ClickHouseOpsRequestType +func ClickHouseOpsRequestTypeValues() []ClickHouseOpsRequestType { + return []ClickHouseOpsRequestType{ + ClickHouseOpsRequestTypeRestart, + } +} + +// String implements the Stringer interface. +func (x ClickHouseOpsRequestType) String() string { + return string(x) +} + +// IsValid provides a quick way to determine if the typed value is +// part of the allowed enumerated values +func (x ClickHouseOpsRequestType) IsValid() bool { + _, err := ParseClickHouseOpsRequestType(string(x)) + return err == nil +} + +var _ClickHouseOpsRequestTypeValue = map[string]ClickHouseOpsRequestType{ + "Restart": ClickHouseOpsRequestTypeRestart, +} + +// ParseClickHouseOpsRequestType attempts to convert a string to a ClickHouseOpsRequestType. +func ParseClickHouseOpsRequestType(name string) (ClickHouseOpsRequestType, error) { + if x, ok := _ClickHouseOpsRequestTypeValue[name]; ok { + return x, nil + } + return ClickHouseOpsRequestType(""), fmt.Errorf("%s is %w", name, ErrInvalidClickHouseOpsRequestType) +} + +// MustParseClickHouseOpsRequestType converts a string to a ClickHouseOpsRequestType, and panics if is not valid. +func MustParseClickHouseOpsRequestType(name string) ClickHouseOpsRequestType { + val, err := ParseClickHouseOpsRequestType(name) + if err != nil { + panic(err) + } + return val +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/clickhouse_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/clickhouse_ops_helpers.go new file mode 100644 index 000000000..6089779ff --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/clickhouse_ops_helpers.go @@ -0,0 +1,76 @@ +/* +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 ( + "fmt" + + "kubedb.dev/apimachinery/apis" + "kubedb.dev/apimachinery/apis/ops" + "kubedb.dev/apimachinery/crds" + + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "kmodules.xyz/client-go/apiextensions" +) + +func (r *ClickHouseOpsRequest) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralClickHouseOpsRequest)) +} + +var _ apis.ResourceInfo = &ClickHouseOpsRequest{} + +func (r *ClickHouseOpsRequest) ResourceFQN() string { + return fmt.Sprintf("%s.%s", ResourcePluralClickHouseOpsRequest, ops.GroupName) +} + +func (r *ClickHouseOpsRequest) ResourceShortCode() string { + return ResourceCodeClickHouseOpsRequest +} + +func (r *ClickHouseOpsRequest) ResourceKind() string { + return ResourceKindClickHouseOpsRequest +} + +func (r *ClickHouseOpsRequest) ResourceSingular() string { + return ResourceSingularClickHouseOpsRequest +} + +func (r *ClickHouseOpsRequest) ResourcePlural() string { + return ResourcePluralClickHouseOpsRequest +} + +var _ Accessor = &ClickHouseOpsRequest{} + +func (r *ClickHouseOpsRequest) GetObjectMeta() metav1.ObjectMeta { + return r.ObjectMeta +} + +func (r *ClickHouseOpsRequest) GetDBRefName() string { + return r.Spec.DatabaseRef.Name +} + +func (r *ClickHouseOpsRequest) GetRequestType() any { + return r.Spec.Type +} + +func (r *ClickHouseOpsRequest) GetStatus() OpsRequestStatus { + return r.Status +} + +func (r *ClickHouseOpsRequest) SetStatus(s OpsRequestStatus) { + r.Status = s +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go index 2637f4690..f042cb14f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go @@ -187,6 +187,14 @@ const ( UpdateCombinedNodePVCs = "UpdateCombinedNodePVCs" ) +// Singlestore Constants +const ( + ScaleUpAggregator = "ScaleUpAggregator" + ScaleDownAggregator = "ScaleDownAggregator" + ScaleUpLeaf = "ScaleUpLeaf" + ScaleDownLeaf = "ScaleDownLeaf" +) + // RabbitMQ Constants const ( UpdateNodePVCs = "UpdateNodePVCs" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/druid_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/druid_ops_types.go index c890ef405..0c32106c8 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/druid_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/druid_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=druidopsrequests,singular=druidopsrequest,shortName=drops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=druidopsrequests,singular=druidopsrequest,shortName=drops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types.go index c0f4399bb..ed716d2fd 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=elasticsearchopsrequests,singular=elasticsearchopsrequest,shortName=esops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=elasticsearchopsrequests,singular=elasticsearchopsrequest,shortName=esops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types.go index 932ce1cb5..363edf494 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types.go @@ -36,7 +36,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=etcdopsrequests,singular=etcdopsrequest,shortName=etcdops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=etcdopsrequests,singular=etcdopsrequest,shortName=etcdops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ferretdb_ops.types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ferretdb_ops.types.go index d08c40270..7e86a23be 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ferretdb_ops.types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ferretdb_ops.types.go @@ -38,7 +38,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=ferretdbopsrequests,singular=ferretdbopsrequest,shortName=frops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=ferretdbopsrequests,singular=ferretdbopsrequest,shortName=frops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/kafka_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/kafka_ops_types.go index c63afabc0..b42510ca9 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/kafka_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/kafka_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=kafkaopsrequests,singular=kafkaopsrequest,shortName=kfops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=kafkaopsrequests,singular=kafkaopsrequest,shortName=kfops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types.go index 576f0ee02..47e3e720d 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mariadbopsrequests,singular=mariadbopsrequest,shortName=mariaops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=mariadbopsrequests,singular=mariadbopsrequest,shortName=mariaops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types.go index e6ea1c276..d13f7592e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types.go @@ -36,7 +36,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=memcachedopsrequests,singular=memcachedopsrequest,shortName=mcops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=memcachedopsrequests,singular=memcachedopsrequest,shortName=mcops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types.go index 0081aee83..baf5a7152 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mongodbopsrequests,singular=mongodbopsrequest,shortName=mgops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=mongodbopsrequests,singular=mongodbopsrequest,shortName=mgops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mssqlserver_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mssqlserver_ops_helpers.go new file mode 100644 index 000000000..21a2b3533 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mssqlserver_ops_helpers.go @@ -0,0 +1,76 @@ +/* +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 ( + "fmt" + + "kubedb.dev/apimachinery/apis" + "kubedb.dev/apimachinery/apis/ops" + "kubedb.dev/apimachinery/crds" + + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "kmodules.xyz/client-go/apiextensions" +) + +func (r *MSSQLServerOpsRequest) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralMSSQLServerOpsRequest)) +} + +var _ apis.ResourceInfo = &MSSQLServerOpsRequest{} + +func (r *MSSQLServerOpsRequest) ResourceFQN() string { + return fmt.Sprintf("%s.%s", ResourcePluralMSSQLServerOpsRequest, ops.GroupName) +} + +func (r *MSSQLServerOpsRequest) ResourceShortCode() string { + return ResourceCodeMSSQLServerOpsRequest +} + +func (r *MSSQLServerOpsRequest) ResourceKind() string { + return ResourceKindMSSQLServerOpsRequest +} + +func (r *MSSQLServerOpsRequest) ResourceSingular() string { + return ResourceSingularMSSQLServerOpsRequest +} + +func (r *MSSQLServerOpsRequest) ResourcePlural() string { + return ResourcePluralMSSQLServerOpsRequest +} + +var _ Accessor = &MSSQLServerOpsRequest{} + +func (r *MSSQLServerOpsRequest) GetObjectMeta() metav1.ObjectMeta { + return r.ObjectMeta +} + +func (r *MSSQLServerOpsRequest) GetDBRefName() string { + return r.Spec.DatabaseRef.Name +} + +func (r *MSSQLServerOpsRequest) GetRequestType() any { + return r.Spec.Type +} + +func (r *MSSQLServerOpsRequest) GetStatus() OpsRequestStatus { + return r.Status +} + +func (r *MSSQLServerOpsRequest) SetStatus(s OpsRequestStatus) { + r.Status = s +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mssqlserver_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mssqlserver_ops_types.go new file mode 100644 index 000000000..babf4d926 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mssqlserver_ops_types.go @@ -0,0 +1,78 @@ +/* +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. +*/ + +//go:generate go-enum --mustparse --names --values +package v1alpha1 + +import ( + core "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + ResourceCodeMSSQLServerOpsRequest = "msops" + ResourceKindMSSQLServerOpsRequest = "MSSQLServerOpsRequest" + ResourceSingularMSSQLServerOpsRequest = "mssqlserveropsrequest" + ResourcePluralMSSQLServerOpsRequest = "mssqlserveropsrequests" +) + +// MSSQLServerDBOpsRequest defines a MSSQLServer DBA operation. + +// +genclient +// +k8s:openapi-gen=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=mssqlserveropsrequests,singular=mssqlserveropsrequest,shortName=msops,categories={ops,kubedb,appscode} +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +type MSSQLServerOpsRequest struct { + metav1.TypeMeta `json:",inline,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec MSSQLServerOpsRequestSpec `json:"spec,omitempty"` + Status OpsRequestStatus `json:"status,omitempty"` +} + +// MSSQLServerOpsRequestSpec is the spec for MSSQLServerOpsRequest +type MSSQLServerOpsRequestSpec struct { + // Specifies the MSSQLServer reference + DatabaseRef core.LocalObjectReference `json:"databaseRef"` + // Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc. + Type MSSQLServerOpsRequestType `json:"type"` + // Specifies information necessary for restarting database + Restart *RestartSpec `json:"restart,omitempty"` + // Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure. + Timeout *metav1.Duration `json:"timeout,omitempty"` + // ApplyOption is to control the execution of OpsRequest depending on the database state. + // +kubebuilder:default="IfReady" + Apply ApplyOption `json:"apply,omitempty"` +} + +// +kubebuilder:validation:Enum=Restart +// ENUM(Restart) +type MSSQLServerOpsRequestType string + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// MSSQLServerOpsRequestList is a list of MSSQLServerOpsRequests +type MSSQLServerOpsRequestList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + // Items is a list of MSSQLServerOpsRequest CRD objects + Items []MSSQLServerOpsRequest `json:"items,omitempty"` +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mssqlserver_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mssqlserver_ops_types_enum.go new file mode 100644 index 000000000..a74f0b7d6 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mssqlserver_ops_types_enum.go @@ -0,0 +1,70 @@ +// Code generated by go-enum DO NOT EDIT. +// Version: +// Revision: +// Build Date: +// Built By: + +package v1alpha1 + +import ( + "fmt" + "strings" +) + +const ( + // MSSQLServerOpsRequestTypeRestart is a MSSQLServerOpsRequestType of type Restart. + MSSQLServerOpsRequestTypeRestart MSSQLServerOpsRequestType = "Restart" +) + +var ErrInvalidMSSQLServerOpsRequestType = fmt.Errorf("not a valid MSSQLServerOpsRequestType, try [%s]", strings.Join(_MSSQLServerOpsRequestTypeNames, ", ")) + +var _MSSQLServerOpsRequestTypeNames = []string{ + string(MSSQLServerOpsRequestTypeRestart), +} + +// MSSQLServerOpsRequestTypeNames returns a list of possible string values of MSSQLServerOpsRequestType. +func MSSQLServerOpsRequestTypeNames() []string { + tmp := make([]string, len(_MSSQLServerOpsRequestTypeNames)) + copy(tmp, _MSSQLServerOpsRequestTypeNames) + return tmp +} + +// MSSQLServerOpsRequestTypeValues returns a list of the values for MSSQLServerOpsRequestType +func MSSQLServerOpsRequestTypeValues() []MSSQLServerOpsRequestType { + return []MSSQLServerOpsRequestType{ + MSSQLServerOpsRequestTypeRestart, + } +} + +// String implements the Stringer interface. +func (x MSSQLServerOpsRequestType) String() string { + return string(x) +} + +// IsValid provides a quick way to determine if the typed value is +// part of the allowed enumerated values +func (x MSSQLServerOpsRequestType) IsValid() bool { + _, err := ParseMSSQLServerOpsRequestType(string(x)) + return err == nil +} + +var _MSSQLServerOpsRequestTypeValue = map[string]MSSQLServerOpsRequestType{ + "Restart": MSSQLServerOpsRequestTypeRestart, +} + +// ParseMSSQLServerOpsRequestType attempts to convert a string to a MSSQLServerOpsRequestType. +func ParseMSSQLServerOpsRequestType(name string) (MSSQLServerOpsRequestType, error) { + if x, ok := _MSSQLServerOpsRequestTypeValue[name]; ok { + return x, nil + } + return MSSQLServerOpsRequestType(""), fmt.Errorf("%s is %w", name, ErrInvalidMSSQLServerOpsRequestType) +} + +// MustParseMSSQLServerOpsRequestType converts a string to a MSSQLServerOpsRequestType, and panics if is not valid. +func MustParseMSSQLServerOpsRequestType(name string) MSSQLServerOpsRequestType { + val, err := ParseMSSQLServerOpsRequestType(name) + if err != nil { + panic(err) + } + return val +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types.go index 897982f71..03a02477b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mysqlopsrequests,singular=mysqlopsrequest,shortName=myops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=mysqlopsrequests,singular=mysqlopsrequest,shortName=myops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go index 6f00e7941..197ec98a3 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go @@ -488,6 +488,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/offshoot-api/api/v1.Volume": schema_kmodulesxyz_offshoot_api_api_v1_Volume(ref), "kmodules.xyz/offshoot-api/api/v1.VolumeSource": schema_kmodulesxyz_offshoot_api_api_v1_VolumeSource(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.ArchiverOptions": schema_apimachinery_apis_ops_v1alpha1_ArchiverOptions(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.ClickHouseOpsRequest": schema_apimachinery_apis_ops_v1alpha1_ClickHouseOpsRequest(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.ClickHouseOpsRequestList": schema_apimachinery_apis_ops_v1alpha1_ClickHouseOpsRequestList(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.ClickHouseOpsRequestSpec": schema_apimachinery_apis_ops_v1alpha1_ClickHouseOpsRequestSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.ConfigNode": schema_apimachinery_apis_ops_v1alpha1_ConfigNode(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources": schema_apimachinery_apis_ops_v1alpha1_ContainerResources(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidOpsRequest": schema_apimachinery_apis_ops_v1alpha1_DruidOpsRequest(ref), @@ -534,6 +537,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaUpdateVersionSpec": schema_apimachinery_apis_ops_v1alpha1_KafkaUpdateVersionSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaVerticalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_KafkaVerticalScalingSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaVolumeExpansionSpec": schema_apimachinery_apis_ops_v1alpha1_KafkaVolumeExpansionSpec(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerOpsRequest": schema_apimachinery_apis_ops_v1alpha1_MSSQLServerOpsRequest(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerOpsRequestList": schema_apimachinery_apis_ops_v1alpha1_MSSQLServerOpsRequestList(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerOpsRequestSpec": schema_apimachinery_apis_ops_v1alpha1_MSSQLServerOpsRequestSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBCustomConfiguration": schema_apimachinery_apis_ops_v1alpha1_MariaDBCustomConfiguration(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBCustomConfigurationSpec": schema_apimachinery_apis_ops_v1alpha1_MariaDBCustomConfigurationSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBHorizontalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_MariaDBHorizontalScalingSpec(ref), @@ -661,9 +667,11 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec": schema_apimachinery_apis_ops_v1alpha1_RestartSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreCustomConfiguration": schema_apimachinery_apis_ops_v1alpha1_SinglestoreCustomConfiguration(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreCustomConfigurationSpec": schema_apimachinery_apis_ops_v1alpha1_SinglestoreCustomConfigurationSpec(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreHorizontalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_SinglestoreHorizontalScalingSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreOpsRequest": schema_apimachinery_apis_ops_v1alpha1_SinglestoreOpsRequest(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreOpsRequestList": schema_apimachinery_apis_ops_v1alpha1_SinglestoreOpsRequestList(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreOpsRequestSpec": schema_apimachinery_apis_ops_v1alpha1_SinglestoreOpsRequestSpec(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreUpdateVersionSpec": schema_apimachinery_apis_ops_v1alpha1_SinglestoreUpdateVersionSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreVerticalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_SinglestoreVerticalScalingSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreVolumeExpansionSpec": schema_apimachinery_apis_ops_v1alpha1_SinglestoreVolumeExpansionSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.SolrCustomConfigurationSpec": schema_apimachinery_apis_ops_v1alpha1_SolrCustomConfigurationSpec(ref), @@ -675,6 +683,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/ops/v1alpha1.SolrVolumeExpansionSpec": schema_apimachinery_apis_ops_v1alpha1_SolrVolumeExpansionSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec": schema_apimachinery_apis_ops_v1alpha1_TLSSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.Topology": schema_apimachinery_apis_ops_v1alpha1_Topology(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperOpsRequest": schema_apimachinery_apis_ops_v1alpha1_ZooKeeperOpsRequest(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperOpsRequestList": schema_apimachinery_apis_ops_v1alpha1_ZooKeeperOpsRequestList(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperOpsRequestSpec": schema_apimachinery_apis_ops_v1alpha1_ZooKeeperOpsRequestSpec(ref), } } @@ -25301,6 +25312,151 @@ func schema_apimachinery_apis_ops_v1alpha1_ArchiverOptions(ref common.ReferenceC } } +func schema_apimachinery_apis_ops_v1alpha1_ClickHouseOpsRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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("kubedb.dev/apimachinery/apis/ops/v1alpha1.ClickHouseOpsRequestSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.OpsRequestStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ClickHouseOpsRequestSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.OpsRequestStatus"}, + } +} + +func schema_apimachinery_apis_ops_v1alpha1_ClickHouseOpsRequestList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClickHouseOpsRequestList is a list of ClickHouseOpsRequests", + 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{ + Description: "Items is a list of ClickHouseOpsRequest CRD objects", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ClickHouseOpsRequest"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ClickHouseOpsRequest"}, + } +} + +func schema_apimachinery_apis_ops_v1alpha1_ClickHouseOpsRequestSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClickHouseOpsRequestSpec is the spec for ClickHouseOpsRequest", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "databaseRef": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the ClickHouse reference", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "restart": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for restarting database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"), + }, + }, + "timeout": { + SchemaProps: spec.SchemaProps{ + Description: "Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "apply": { + SchemaProps: spec.SchemaProps{ + Description: "ApplyOption is to control the execution of OpsRequest depending on the database state.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"databaseRef", "type"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + } +} + func schema_apimachinery_apis_ops_v1alpha1_ConfigNode(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -27165,6 +27321,151 @@ func schema_apimachinery_apis_ops_v1alpha1_KafkaVolumeExpansionSpec(ref common.R } } +func schema_apimachinery_apis_ops_v1alpha1_MSSQLServerOpsRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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("kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerOpsRequestSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.OpsRequestStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerOpsRequestSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.OpsRequestStatus"}, + } +} + +func schema_apimachinery_apis_ops_v1alpha1_MSSQLServerOpsRequestList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MSSQLServerOpsRequestList is a list of MSSQLServerOpsRequests", + 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{ + Description: "Items is a list of MSSQLServerOpsRequest CRD objects", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerOpsRequest"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerOpsRequest"}, + } +} + +func schema_apimachinery_apis_ops_v1alpha1_MSSQLServerOpsRequestSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MSSQLServerOpsRequestSpec is the spec for MSSQLServerOpsRequest", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "databaseRef": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the MSSQLServer reference", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "restart": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for restarting database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"), + }, + }, + "timeout": { + SchemaProps: spec.SchemaProps{ + Description: "Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "apply": { + SchemaProps: spec.SchemaProps{ + Description: "ApplyOption is to control the execution of OpsRequest depending on the database state.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"databaseRef", "type"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + } +} + func schema_apimachinery_apis_ops_v1alpha1_MariaDBCustomConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -32042,6 +32343,33 @@ func schema_apimachinery_apis_ops_v1alpha1_SinglestoreCustomConfigurationSpec(re } } +func schema_apimachinery_apis_ops_v1alpha1_SinglestoreHorizontalScalingSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SinglestoreHorizontalScalingSpec contains the horizontal scaling information of a Singlestore cluster", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "aggregator": { + SchemaProps: spec.SchemaProps{ + Description: "number of Aggregator node", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "leaf": { + SchemaProps: spec.SchemaProps{ + Description: "number of Leaf node", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + }, + }, + } +} + func schema_apimachinery_apis_ops_v1alpha1_SinglestoreOpsRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -32159,6 +32487,18 @@ func schema_apimachinery_apis_ops_v1alpha1_SinglestoreOpsRequestSpec(ref common. Format: "", }, }, + "updateVersion": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for upgrading SingleStore Version", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreUpdateVersionSpec"), + }, + }, + "horizontalScaling": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for horizontal scaling", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreHorizontalScalingSpec"), + }, + }, "verticalScaling": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for vertical scaling", @@ -32183,6 +32523,12 @@ func schema_apimachinery_apis_ops_v1alpha1_SinglestoreOpsRequestSpec(ref common. Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreCustomConfigurationSpec"), }, }, + "tls": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring TLS", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), + }, + }, "timeout": { SchemaProps: spec.SchemaProps{ Description: "Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.", @@ -32201,7 +32547,27 @@ func schema_apimachinery_apis_ops_v1alpha1_SinglestoreOpsRequestSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreVolumeExpansionSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SinglestoreVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + } +} + +func schema_apimachinery_apis_ops_v1alpha1_SinglestoreUpdateVersionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SinglestoreUpdateVersionSpec contains the update version information of a kafka cluster", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "targetVersion": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the target version name from catalog", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, } } @@ -32676,3 +33042,148 @@ func schema_apimachinery_apis_ops_v1alpha1_Topology(ref common.ReferenceCallback }, } } + +func schema_apimachinery_apis_ops_v1alpha1_ZooKeeperOpsRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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("kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperOpsRequestSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.OpsRequestStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/ops/v1alpha1.OpsRequestStatus", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperOpsRequestSpec"}, + } +} + +func schema_apimachinery_apis_ops_v1alpha1_ZooKeeperOpsRequestList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ZooKeeperOpsRequestList is a list of ZooKeeperOpsRequests", + 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{ + Description: "Items is a list of ZooKeeperOpsRequest CRD objects", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperOpsRequest"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperOpsRequest"}, + } +} + +func schema_apimachinery_apis_ops_v1alpha1_ZooKeeperOpsRequestSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ZooKeeperOpsRequestSpec is the spec for ZooKeeperOpsRequest", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "databaseRef": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the ZooKeeper reference", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "restart": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for restarting database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"), + }, + }, + "timeout": { + SchemaProps: spec.SchemaProps{ + Description: "Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "apply": { + SchemaProps: spec.SchemaProps{ + Description: "ApplyOption is to control the execution of OpsRequest depending on the database state.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"databaseRef", "type"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + } +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types.go index d2cacae7a..0032268c3 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=perconaxtradbopsrequests,singular=perconaxtradbopsrequest,shortName=pxcops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=perconaxtradbopsrequests,singular=perconaxtradbopsrequest,shortName=pxcops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types.go index bc3dbcc05..59718545b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types.go @@ -36,7 +36,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=pgbounceropsrequests,singular=pgbounceropsrequest,shortName=pbops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=pgbounceropsrequests,singular=pgbounceropsrequest,shortName=pbops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgpool_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgpool_ops_types.go index e27c67bcb..0adfa55de 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgpool_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgpool_ops_types.go @@ -38,7 +38,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=pgpoolopsrequests,singular=pgpoolopsrequest,shortName=ppops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=pgpoolopsrequests,singular=pgpoolopsrequest,shortName=ppops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types.go index e8b68c713..99b15ac00 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=postgresopsrequests,singular=postgresopsrequest,shortName=pgops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=postgresopsrequests,singular=postgresopsrequest,shortName=pgops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types.go index d4bf103d1..98f76ac67 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types.go @@ -39,7 +39,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=proxysqlopsrequests,singular=proxysqlopsrequest,shortName=prxops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=proxysqlopsrequests,singular=proxysqlopsrequest,shortName=prxops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/rabbitmq_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/rabbitmq_ops_types.go index 053b9ec25..2ab637806 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/rabbitmq_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/rabbitmq_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=rabbitmqopsrequests,singular=rabbitmqopsrequest,shortName=rmops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=rabbitmqopsrequests,singular=rabbitmqopsrequest,shortName=rmops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types.go index 13527d73d..191225c8d 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=redisopsrequests,singular=redisopsrequest,shortName=rdops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=redisopsrequests,singular=redisopsrequest,shortName=rdops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types.go index 838685b9e..573526e66 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=redissentinelopsrequests,singular=redissentinelopsrequest,shortName=rdsops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=redissentinelopsrequests,singular=redissentinelopsrequest,shortName=rdsops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/register.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/register.go index a9820f1ef..a65be6702 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/register.go @@ -54,6 +54,8 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, + &ClickHouseOpsRequest{}, + &ClickHouseOpsRequestList{}, &DruidOpsRequest{}, &DruidOpsRequestList{}, &ElasticsearchOpsRequest{}, @@ -64,22 +66,24 @@ func addKnownTypes(scheme *runtime.Scheme) error { &EtcdOpsRequestList{}, &KafkaOpsRequest{}, &KafkaOpsRequestList{}, + &MariaDBOpsRequest{}, + &MariaDBOpsRequestList{}, &MemcachedOpsRequest{}, &MemcachedOpsRequestList{}, &MongoDBOpsRequest{}, &MongoDBOpsRequestList{}, - &MariaDBOpsRequest{}, - &MariaDBOpsRequestList{}, + &MSSQLServerOpsRequest{}, + &MSSQLServerOpsRequestList{}, &MySQLOpsRequest{}, &MySQLOpsRequestList{}, &PerconaXtraDBOpsRequest{}, &PerconaXtraDBOpsRequestList{}, - &PostgresOpsRequest{}, - &PostgresOpsRequestList{}, - &PgpoolOpsRequest{}, - &PgpoolOpsRequestList{}, &PgBouncerOpsRequest{}, &PgBouncerOpsRequestList{}, + &PgpoolOpsRequest{}, + &PgpoolOpsRequestList{}, + &PostgresOpsRequest{}, + &PostgresOpsRequestList{}, &ProxySQLOpsRequest{}, &ProxySQLOpsRequestList{}, &RabbitMQOpsRequest{}, @@ -92,6 +96,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &SinglestoreOpsRequestList{}, &SolrOpsRequest{}, &SolrOpsRequestList{}, + &ZooKeeperOpsRequest{}, + &ZooKeeperOpsRequestList{}, ) scheme.AddKnownTypes(SchemeGroupVersion, diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/singlestore_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/singlestore_ops_types.go index c82cd91cd..133624af1 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/singlestore_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/singlestore_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=singlestoreopsrequests,singular=singlestoreopsrequest,shortName=sdbops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=singlestoreopsrequests,singular=singlestoreopsrequest,shortName=sdbops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" @@ -55,6 +55,10 @@ type SinglestoreOpsRequestSpec struct { DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc. Type SinglestoreOpsRequestType `json:"type"` + // Specifies information necessary for upgrading SingleStore Version + UpdateVersion *SinglestoreUpdateVersionSpec `json:"updateVersion,omitempty"` + // Specifies information necessary for horizontal scaling + HorizontalScaling *SinglestoreHorizontalScalingSpec `json:"horizontalScaling,omitempty"` // Specifies information necessary for vertical scaling VerticalScaling *SinglestoreVerticalScalingSpec `json:"verticalScaling,omitempty"` // Specifies information necessary for volume expansion @@ -63,6 +67,8 @@ type SinglestoreOpsRequestSpec struct { Restart *RestartSpec `json:"restart,omitempty"` // Specifies information necessary for custom configuration of Singlestore Configuration *SinglestoreCustomConfigurationSpec `json:"configuration,omitempty"` + // Specifies information necessary for configuring TLS + TLS *TLSSpec `json:"tls,omitempty"` // Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure. Timeout *metav1.Duration `json:"timeout,omitempty"` // ApplyOption is to control the execution of OpsRequest depending on the database state. @@ -70,10 +76,24 @@ type SinglestoreOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=VerticalScaling;VolumeExpansion;Restart;Configuration -// ENUM(VerticalScaling, VolumeExpansion, Restart, Configuration) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Configuration;ReconfigureTLS +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Configuration, ReconfigureTLS) type SinglestoreOpsRequestType string +// SinglestoreUpdateVersionSpec contains the update version information of a kafka cluster +type SinglestoreUpdateVersionSpec struct { + // Specifies the target version name from catalog + TargetVersion string `json:"targetVersion,omitempty"` +} + +// SinglestoreHorizontalScalingSpec contains the horizontal scaling information of a Singlestore cluster +type SinglestoreHorizontalScalingSpec struct { + // number of Aggregator node + Aggregator *int32 `json:"aggregator,omitempty"` + // number of Leaf node + Leaf *int32 `json:"leaf,omitempty"` +} + // SinglestoreVerticalScalingSpec contains the vertical scaling information of a Singlestore cluster type SinglestoreVerticalScalingSpec struct { // Resource spec for standalone node diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/singlestore_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/singlestore_ops_types_enum.go index cb2084ea6..110ec9e9e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/singlestore_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/singlestore_ops_types_enum.go @@ -12,6 +12,10 @@ import ( ) const ( + // SinglestoreOpsRequestTypeUpdateVersion is a SinglestoreOpsRequestType of type UpdateVersion. + SinglestoreOpsRequestTypeUpdateVersion SinglestoreOpsRequestType = "UpdateVersion" + // SinglestoreOpsRequestTypeHorizontalScaling is a SinglestoreOpsRequestType of type HorizontalScaling. + SinglestoreOpsRequestTypeHorizontalScaling SinglestoreOpsRequestType = "HorizontalScaling" // SinglestoreOpsRequestTypeVerticalScaling is a SinglestoreOpsRequestType of type VerticalScaling. SinglestoreOpsRequestTypeVerticalScaling SinglestoreOpsRequestType = "VerticalScaling" // SinglestoreOpsRequestTypeVolumeExpansion is a SinglestoreOpsRequestType of type VolumeExpansion. @@ -20,15 +24,20 @@ const ( SinglestoreOpsRequestTypeRestart SinglestoreOpsRequestType = "Restart" // SinglestoreOpsRequestTypeConfiguration is a SinglestoreOpsRequestType of type Configuration. SinglestoreOpsRequestTypeConfiguration SinglestoreOpsRequestType = "Configuration" + // SinglestoreOpsRequestTypeReconfigureTLS is a SinglestoreOpsRequestType of type ReconfigureTLS. + SinglestoreOpsRequestTypeReconfigureTLS SinglestoreOpsRequestType = "ReconfigureTLS" ) var ErrInvalidSinglestoreOpsRequestType = fmt.Errorf("not a valid SinglestoreOpsRequestType, try [%s]", strings.Join(_SinglestoreOpsRequestTypeNames, ", ")) var _SinglestoreOpsRequestTypeNames = []string{ + string(SinglestoreOpsRequestTypeUpdateVersion), + string(SinglestoreOpsRequestTypeHorizontalScaling), string(SinglestoreOpsRequestTypeVerticalScaling), string(SinglestoreOpsRequestTypeVolumeExpansion), string(SinglestoreOpsRequestTypeRestart), string(SinglestoreOpsRequestTypeConfiguration), + string(SinglestoreOpsRequestTypeReconfigureTLS), } // SinglestoreOpsRequestTypeNames returns a list of possible string values of SinglestoreOpsRequestType. @@ -41,10 +50,13 @@ func SinglestoreOpsRequestTypeNames() []string { // SinglestoreOpsRequestTypeValues returns a list of the values for SinglestoreOpsRequestType func SinglestoreOpsRequestTypeValues() []SinglestoreOpsRequestType { return []SinglestoreOpsRequestType{ + SinglestoreOpsRequestTypeUpdateVersion, + SinglestoreOpsRequestTypeHorizontalScaling, SinglestoreOpsRequestTypeVerticalScaling, SinglestoreOpsRequestTypeVolumeExpansion, SinglestoreOpsRequestTypeRestart, SinglestoreOpsRequestTypeConfiguration, + SinglestoreOpsRequestTypeReconfigureTLS, } } @@ -61,10 +73,13 @@ func (x SinglestoreOpsRequestType) IsValid() bool { } var _SinglestoreOpsRequestTypeValue = map[string]SinglestoreOpsRequestType{ - "VerticalScaling": SinglestoreOpsRequestTypeVerticalScaling, - "VolumeExpansion": SinglestoreOpsRequestTypeVolumeExpansion, - "Restart": SinglestoreOpsRequestTypeRestart, - "Configuration": SinglestoreOpsRequestTypeConfiguration, + "UpdateVersion": SinglestoreOpsRequestTypeUpdateVersion, + "HorizontalScaling": SinglestoreOpsRequestTypeHorizontalScaling, + "VerticalScaling": SinglestoreOpsRequestTypeVerticalScaling, + "VolumeExpansion": SinglestoreOpsRequestTypeVolumeExpansion, + "Restart": SinglestoreOpsRequestTypeRestart, + "Configuration": SinglestoreOpsRequestTypeConfiguration, + "ReconfigureTLS": SinglestoreOpsRequestTypeReconfigureTLS, } // ParseSinglestoreOpsRequestType attempts to convert a string to a SinglestoreOpsRequestType. diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/solr_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/solr_ops_types.go index 9a9439849..32090468a 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/solr_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/solr_ops_types.go @@ -37,7 +37,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=solropsrequests,singular=solropsrequest,shortName=slops,categories={datastore,kubedb,appscode} +// +kubebuilder:resource:path=solropsrequests,singular=solropsrequest,shortName=slops,categories={ops,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zookeeper_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zookeeper_ops_helpers.go new file mode 100644 index 000000000..e49633dd6 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zookeeper_ops_helpers.go @@ -0,0 +1,76 @@ +/* +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 ( + "fmt" + + "kubedb.dev/apimachinery/apis" + "kubedb.dev/apimachinery/apis/ops" + "kubedb.dev/apimachinery/crds" + + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "kmodules.xyz/client-go/apiextensions" +) + +func (r *ZooKeeperOpsRequest) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralZooKeeperOpsRequest)) +} + +var _ apis.ResourceInfo = &ZooKeeperOpsRequest{} + +func (r *ZooKeeperOpsRequest) ResourceFQN() string { + return fmt.Sprintf("%s.%s", ResourcePluralZooKeeperOpsRequest, ops.GroupName) +} + +func (r *ZooKeeperOpsRequest) ResourceShortCode() string { + return ResourceCodeZooKeeperOpsRequest +} + +func (r *ZooKeeperOpsRequest) ResourceKind() string { + return ResourceKindZooKeeperOpsRequest +} + +func (r *ZooKeeperOpsRequest) ResourceSingular() string { + return ResourceSingularZooKeeperOpsRequest +} + +func (r *ZooKeeperOpsRequest) ResourcePlural() string { + return ResourcePluralZooKeeperOpsRequest +} + +var _ Accessor = &ZooKeeperOpsRequest{} + +func (r *ZooKeeperOpsRequest) GetObjectMeta() metav1.ObjectMeta { + return r.ObjectMeta +} + +func (r *ZooKeeperOpsRequest) GetDBRefName() string { + return r.Spec.DatabaseRef.Name +} + +func (r *ZooKeeperOpsRequest) GetRequestType() any { + return r.Spec.Type +} + +func (r *ZooKeeperOpsRequest) GetStatus() OpsRequestStatus { + return r.Status +} + +func (r *ZooKeeperOpsRequest) SetStatus(s OpsRequestStatus) { + r.Status = s +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zookeeper_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zookeeper_ops_types.go new file mode 100644 index 000000000..a2ab93383 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zookeeper_ops_types.go @@ -0,0 +1,78 @@ +/* +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. +*/ + +//go:generate go-enum --mustparse --names --values +package v1alpha1 + +import ( + core "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + ResourceCodeZooKeeperOpsRequest = "zkops" + ResourceKindZooKeeperOpsRequest = "ZooKeeperOpsRequest" + ResourceSingularZooKeeperOpsRequest = "zookeeperopsrequest" + ResourcePluralZooKeeperOpsRequest = "zookeeperopsrequests" +) + +// ZooKeeperDBOpsRequest defines a ZooKeeper DBA operation. + +// +genclient +// +k8s:openapi-gen=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=zookeeperopsrequests,singular=zookeeperopsrequest,shortName=zkops,categories={ops,kubedb,appscode} +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +type ZooKeeperOpsRequest struct { + metav1.TypeMeta `json:",inline,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec ZooKeeperOpsRequestSpec `json:"spec,omitempty"` + Status OpsRequestStatus `json:"status,omitempty"` +} + +// ZooKeeperOpsRequestSpec is the spec for ZooKeeperOpsRequest +type ZooKeeperOpsRequestSpec struct { + // Specifies the ZooKeeper reference + DatabaseRef core.LocalObjectReference `json:"databaseRef"` + // Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc. + Type ZooKeeperOpsRequestType `json:"type"` + // Specifies information necessary for restarting database + Restart *RestartSpec `json:"restart,omitempty"` + // Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure. + Timeout *metav1.Duration `json:"timeout,omitempty"` + // ApplyOption is to control the execution of OpsRequest depending on the database state. + // +kubebuilder:default="IfReady" + Apply ApplyOption `json:"apply,omitempty"` +} + +// +kubebuilder:validation:Enum=Restart +// ENUM(Restart) +type ZooKeeperOpsRequestType string + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ZooKeeperOpsRequestList is a list of ZooKeeperOpsRequests +type ZooKeeperOpsRequestList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + // Items is a list of ZooKeeperOpsRequest CRD objects + Items []ZooKeeperOpsRequest `json:"items,omitempty"` +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zookeeper_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zookeeper_ops_types_enum.go new file mode 100644 index 000000000..d25eee581 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zookeeper_ops_types_enum.go @@ -0,0 +1,70 @@ +// Code generated by go-enum DO NOT EDIT. +// Version: +// Revision: +// Build Date: +// Built By: + +package v1alpha1 + +import ( + "fmt" + "strings" +) + +const ( + // ZooKeeperOpsRequestTypeRestart is a ZooKeeperOpsRequestType of type Restart. + ZooKeeperOpsRequestTypeRestart ZooKeeperOpsRequestType = "Restart" +) + +var ErrInvalidZooKeeperOpsRequestType = fmt.Errorf("not a valid ZooKeeperOpsRequestType, try [%s]", strings.Join(_ZooKeeperOpsRequestTypeNames, ", ")) + +var _ZooKeeperOpsRequestTypeNames = []string{ + string(ZooKeeperOpsRequestTypeRestart), +} + +// ZooKeeperOpsRequestTypeNames returns a list of possible string values of ZooKeeperOpsRequestType. +func ZooKeeperOpsRequestTypeNames() []string { + tmp := make([]string, len(_ZooKeeperOpsRequestTypeNames)) + copy(tmp, _ZooKeeperOpsRequestTypeNames) + return tmp +} + +// ZooKeeperOpsRequestTypeValues returns a list of the values for ZooKeeperOpsRequestType +func ZooKeeperOpsRequestTypeValues() []ZooKeeperOpsRequestType { + return []ZooKeeperOpsRequestType{ + ZooKeeperOpsRequestTypeRestart, + } +} + +// String implements the Stringer interface. +func (x ZooKeeperOpsRequestType) String() string { + return string(x) +} + +// IsValid provides a quick way to determine if the typed value is +// part of the allowed enumerated values +func (x ZooKeeperOpsRequestType) IsValid() bool { + _, err := ParseZooKeeperOpsRequestType(string(x)) + return err == nil +} + +var _ZooKeeperOpsRequestTypeValue = map[string]ZooKeeperOpsRequestType{ + "Restart": ZooKeeperOpsRequestTypeRestart, +} + +// ParseZooKeeperOpsRequestType attempts to convert a string to a ZooKeeperOpsRequestType. +func ParseZooKeeperOpsRequestType(name string) (ZooKeeperOpsRequestType, error) { + if x, ok := _ZooKeeperOpsRequestTypeValue[name]; ok { + return x, nil + } + return ZooKeeperOpsRequestType(""), fmt.Errorf("%s is %w", name, ErrInvalidZooKeeperOpsRequestType) +} + +// MustParseZooKeeperOpsRequestType converts a string to a ZooKeeperOpsRequestType, and panics if is not valid. +func MustParseZooKeeperOpsRequestType(name string) ZooKeeperOpsRequestType { + val, err := ParseZooKeeperOpsRequestType(name) + if err != nil { + panic(err) + } + return val +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zz_generated.deepcopy.go index 572bf734d..b95fcab99 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zz_generated.deepcopy.go @@ -47,6 +47,94 @@ func (in *ArchiverOptions) DeepCopy() *ArchiverOptions { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClickHouseOpsRequest) DeepCopyInto(out *ClickHouseOpsRequest) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouseOpsRequest. +func (in *ClickHouseOpsRequest) DeepCopy() *ClickHouseOpsRequest { + if in == nil { + return nil + } + out := new(ClickHouseOpsRequest) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClickHouseOpsRequest) 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 *ClickHouseOpsRequestList) DeepCopyInto(out *ClickHouseOpsRequestList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ClickHouseOpsRequest, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouseOpsRequestList. +func (in *ClickHouseOpsRequestList) DeepCopy() *ClickHouseOpsRequestList { + if in == nil { + return nil + } + out := new(ClickHouseOpsRequestList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClickHouseOpsRequestList) 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 *ClickHouseOpsRequestSpec) DeepCopyInto(out *ClickHouseOpsRequestSpec) { + *out = *in + out.DatabaseRef = in.DatabaseRef + if in.Restart != nil { + in, out := &in.Restart, &out.Restart + *out = new(RestartSpec) + **out = **in + } + if in.Timeout != nil { + in, out := &in.Timeout, &out.Timeout + *out = new(v1.Duration) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouseOpsRequestSpec. +func (in *ClickHouseOpsRequestSpec) DeepCopy() *ClickHouseOpsRequestSpec { + if in == nil { + return nil + } + out := new(ClickHouseOpsRequestSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ConfigNode) DeepCopyInto(out *ConfigNode) { *out = *in @@ -1453,6 +1541,94 @@ func (in *KafkaVolumeExpansionSpec) DeepCopy() *KafkaVolumeExpansionSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSSQLServerOpsRequest) DeepCopyInto(out *MSSQLServerOpsRequest) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerOpsRequest. +func (in *MSSQLServerOpsRequest) DeepCopy() *MSSQLServerOpsRequest { + if in == nil { + return nil + } + out := new(MSSQLServerOpsRequest) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MSSQLServerOpsRequest) 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 *MSSQLServerOpsRequestList) DeepCopyInto(out *MSSQLServerOpsRequestList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]MSSQLServerOpsRequest, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerOpsRequestList. +func (in *MSSQLServerOpsRequestList) DeepCopy() *MSSQLServerOpsRequestList { + if in == nil { + return nil + } + out := new(MSSQLServerOpsRequestList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MSSQLServerOpsRequestList) 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 *MSSQLServerOpsRequestSpec) DeepCopyInto(out *MSSQLServerOpsRequestSpec) { + *out = *in + out.DatabaseRef = in.DatabaseRef + if in.Restart != nil { + in, out := &in.Restart, &out.Restart + *out = new(RestartSpec) + **out = **in + } + if in.Timeout != nil { + in, out := &in.Timeout, &out.Timeout + *out = new(v1.Duration) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerOpsRequestSpec. +func (in *MSSQLServerOpsRequestSpec) DeepCopy() *MSSQLServerOpsRequestSpec { + if in == nil { + return nil + } + out := new(MSSQLServerOpsRequestSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MariaDBCustomConfiguration) DeepCopyInto(out *MariaDBCustomConfiguration) { *out = *in @@ -5028,6 +5204,32 @@ func (in *SinglestoreCustomConfigurationSpec) DeepCopy() *SinglestoreCustomConfi return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SinglestoreHorizontalScalingSpec) DeepCopyInto(out *SinglestoreHorizontalScalingSpec) { + *out = *in + if in.Aggregator != nil { + in, out := &in.Aggregator, &out.Aggregator + *out = new(int32) + **out = **in + } + if in.Leaf != nil { + in, out := &in.Leaf, &out.Leaf + *out = new(int32) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SinglestoreHorizontalScalingSpec. +func (in *SinglestoreHorizontalScalingSpec) DeepCopy() *SinglestoreHorizontalScalingSpec { + if in == nil { + return nil + } + out := new(SinglestoreHorizontalScalingSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SinglestoreOpsRequest) DeepCopyInto(out *SinglestoreOpsRequest) { *out = *in @@ -5093,6 +5295,16 @@ func (in *SinglestoreOpsRequestList) DeepCopyObject() runtime.Object { func (in *SinglestoreOpsRequestSpec) DeepCopyInto(out *SinglestoreOpsRequestSpec) { *out = *in out.DatabaseRef = in.DatabaseRef + if in.UpdateVersion != nil { + in, out := &in.UpdateVersion, &out.UpdateVersion + *out = new(SinglestoreUpdateVersionSpec) + **out = **in + } + if in.HorizontalScaling != nil { + in, out := &in.HorizontalScaling, &out.HorizontalScaling + *out = new(SinglestoreHorizontalScalingSpec) + (*in).DeepCopyInto(*out) + } if in.VerticalScaling != nil { in, out := &in.VerticalScaling, &out.VerticalScaling *out = new(SinglestoreVerticalScalingSpec) @@ -5113,6 +5325,11 @@ func (in *SinglestoreOpsRequestSpec) DeepCopyInto(out *SinglestoreOpsRequestSpec *out = new(SinglestoreCustomConfigurationSpec) (*in).DeepCopyInto(*out) } + if in.TLS != nil { + in, out := &in.TLS, &out.TLS + *out = new(TLSSpec) + (*in).DeepCopyInto(*out) + } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout *out = new(v1.Duration) @@ -5131,6 +5348,22 @@ func (in *SinglestoreOpsRequestSpec) DeepCopy() *SinglestoreOpsRequestSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SinglestoreUpdateVersionSpec) DeepCopyInto(out *SinglestoreUpdateVersionSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SinglestoreUpdateVersionSpec. +func (in *SinglestoreUpdateVersionSpec) DeepCopy() *SinglestoreUpdateVersionSpec { + if in == nil { + return nil + } + out := new(SinglestoreUpdateVersionSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SinglestoreVerticalScalingSpec) DeepCopyInto(out *SinglestoreVerticalScalingSpec) { *out = *in @@ -5454,3 +5687,91 @@ func (in *Topology) DeepCopy() *Topology { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ZooKeeperOpsRequest) DeepCopyInto(out *ZooKeeperOpsRequest) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZooKeeperOpsRequest. +func (in *ZooKeeperOpsRequest) DeepCopy() *ZooKeeperOpsRequest { + if in == nil { + return nil + } + out := new(ZooKeeperOpsRequest) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ZooKeeperOpsRequest) 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 *ZooKeeperOpsRequestList) DeepCopyInto(out *ZooKeeperOpsRequestList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ZooKeeperOpsRequest, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZooKeeperOpsRequestList. +func (in *ZooKeeperOpsRequestList) DeepCopy() *ZooKeeperOpsRequestList { + if in == nil { + return nil + } + out := new(ZooKeeperOpsRequestList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ZooKeeperOpsRequestList) 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 *ZooKeeperOpsRequestSpec) DeepCopyInto(out *ZooKeeperOpsRequestSpec) { + *out = *in + out.DatabaseRef = in.DatabaseRef + if in.Restart != nil { + in, out := &in.Restart, &out.Restart + *out = new(RestartSpec) + **out = **in + } + if in.Timeout != nil { + in, out := &in.Timeout, &out.Timeout + *out = new(v1.Duration) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZooKeeperOpsRequestSpec. +func (in *ZooKeeperOpsRequestSpec) DeepCopy() *ZooKeeperOpsRequestSpec { + if in == nil { + return nil + } + out := new(ZooKeeperOpsRequestSpec) + in.DeepCopyInto(out) + return out +} diff --git a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/publisher_types.go b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/publisher_types.go index f8c9b53c3..ea8101cc6 100644 --- a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/publisher_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/publisher_types.go @@ -139,7 +139,7 @@ const ( // +k8s:openapi-gen=true // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=publishers,singular=publisher,shortName=pub,categories={datastore,kubedb,appscode,all} +// +kubebuilder:resource:path=publishers,singular=publisher,shortName=pub,categories={pgstore,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" diff --git a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/subscriber_types.go b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/subscriber_types.go index 7bce32172..870925e21 100644 --- a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/subscriber_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/subscriber_types.go @@ -162,7 +162,7 @@ const ( // +k8s:openapi-gen=true // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=subscribers,singular=subscriber,shortName=sub,categories={datastore,kubedb,appscode,all} +// +kubebuilder:resource:path=subscribers,singular=subscriber,shortName=sub,categories={pgstore,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" diff --git a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mariadbdatabase_types.go b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mariadbdatabase_types.go index 52a1e0092..c898fd77e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mariadbdatabase_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mariadbdatabase_types.go @@ -79,7 +79,7 @@ type MariaDBDatabaseConfiguration struct { // +k8s:openapi-gen=true // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mariadbdatabases,singular=mariadbdatabase,shortName=mdschema,categories={datastore,kubedb,appscode,all} +// +kubebuilder:resource:path=mariadbdatabases,singular=mariadbdatabase,shortName=mdschema,categories={schema,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="DB_SERVER",type="string",JSONPath=".spec.database.serverRef.name" // +kubebuilder:printcolumn:name="DB_NAME",type="string",JSONPath=".spec.database.config.name" diff --git a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mongodbdatabase_types.go b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mongodbdatabase_types.go index 4d351079c..cefbd44b4 100644 --- a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mongodbdatabase_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mongodbdatabase_types.go @@ -66,7 +66,7 @@ type MongoDBDatabaseConfiguration struct { // +k8s:openapi-gen=true // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mongodbdatabases,singular=mongodbdatabase,shortName=mgschema,categories={datastore,kubedb,appscode,all} +// +kubebuilder:resource:path=mongodbdatabases,singular=mongodbdatabase,shortName=mgschema,categories={schema,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="DB_SERVER",type="string",JSONPath=".spec.database.serverRef.name" // +kubebuilder:printcolumn:name="DB_NAME",type="string",JSONPath=".spec.database.config.name" diff --git a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mysqldatabase_types.go b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mysqldatabase_types.go index 2633c9402..1a9c2a52e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mysqldatabase_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/mysqldatabase_types.go @@ -83,7 +83,7 @@ type MySQLDatabaseConfiguration struct { // +k8s:openapi-gen=true // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=mysqldatabases,singular=mysqldatabase,shortName=myschema,categories={datastore,kubedb,appscode,all} +// +kubebuilder:resource:path=mysqldatabases,singular=mysqldatabase,shortName=myschema,categories={schema,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="DB_SERVER",type="string",JSONPath=".spec.database.serverRef.name" // +kubebuilder:printcolumn:name="DB_NAME",type="string",JSONPath=".spec.database.config.name" diff --git a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/postgresdatabase_types.go b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/postgresdatabase_types.go index d9c77fd63..f74e23f10 100644 --- a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/postgresdatabase_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/postgresdatabase_types.go @@ -72,7 +72,7 @@ type Param struct { // +k8s:openapi-gen=true // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=postgresdatabases,singular=postgresdatabase,shortName=pgschema,categories={datastore,kubedb,appscode,all} +// +kubebuilder:resource:path=postgresdatabases,singular=postgresdatabase,shortName=pgschema,categories={schema,kubedb,appscode} // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="DB_SERVER",type="string",JSONPath=".spec.database.serverRef.name" // +kubebuilder:printcolumn:name="DB_NAME",type="string",JSONPath=".spec.database.config.name" diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/clickhouseopsrequest.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/clickhouseopsrequest.go new file mode 100644 index 000000000..fec280101 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/clickhouseopsrequest.go @@ -0,0 +1,196 @@ +/* +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. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + "time" + + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// ClickHouseOpsRequestsGetter has a method to return a ClickHouseOpsRequestInterface. +// A group's client should implement this interface. +type ClickHouseOpsRequestsGetter interface { + ClickHouseOpsRequests(namespace string) ClickHouseOpsRequestInterface +} + +// ClickHouseOpsRequestInterface has methods to work with ClickHouseOpsRequest resources. +type ClickHouseOpsRequestInterface interface { + Create(ctx context.Context, clickHouseOpsRequest *v1alpha1.ClickHouseOpsRequest, opts v1.CreateOptions) (*v1alpha1.ClickHouseOpsRequest, error) + Update(ctx context.Context, clickHouseOpsRequest *v1alpha1.ClickHouseOpsRequest, opts v1.UpdateOptions) (*v1alpha1.ClickHouseOpsRequest, error) + UpdateStatus(ctx context.Context, clickHouseOpsRequest *v1alpha1.ClickHouseOpsRequest, opts v1.UpdateOptions) (*v1alpha1.ClickHouseOpsRequest, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ClickHouseOpsRequest, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ClickHouseOpsRequestList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClickHouseOpsRequest, err error) + ClickHouseOpsRequestExpansion +} + +// clickHouseOpsRequests implements ClickHouseOpsRequestInterface +type clickHouseOpsRequests struct { + client rest.Interface + ns string +} + +// newClickHouseOpsRequests returns a ClickHouseOpsRequests +func newClickHouseOpsRequests(c *OpsV1alpha1Client, namespace string) *clickHouseOpsRequests { + return &clickHouseOpsRequests{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the clickHouseOpsRequest, and returns the corresponding clickHouseOpsRequest object, and an error if there is any. +func (c *clickHouseOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClickHouseOpsRequest, err error) { + result = &v1alpha1.ClickHouseOpsRequest{} + err = c.client.Get(). + Namespace(c.ns). + Resource("clickhouseopsrequests"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of ClickHouseOpsRequests that match those selectors. +func (c *clickHouseOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClickHouseOpsRequestList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.ClickHouseOpsRequestList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("clickhouseopsrequests"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested clickHouseOpsRequests. +func (c *clickHouseOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("clickhouseopsrequests"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a clickHouseOpsRequest and creates it. Returns the server's representation of the clickHouseOpsRequest, and an error, if there is any. +func (c *clickHouseOpsRequests) Create(ctx context.Context, clickHouseOpsRequest *v1alpha1.ClickHouseOpsRequest, opts v1.CreateOptions) (result *v1alpha1.ClickHouseOpsRequest, err error) { + result = &v1alpha1.ClickHouseOpsRequest{} + err = c.client.Post(). + Namespace(c.ns). + Resource("clickhouseopsrequests"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(clickHouseOpsRequest). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a clickHouseOpsRequest and updates it. Returns the server's representation of the clickHouseOpsRequest, and an error, if there is any. +func (c *clickHouseOpsRequests) Update(ctx context.Context, clickHouseOpsRequest *v1alpha1.ClickHouseOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.ClickHouseOpsRequest, err error) { + result = &v1alpha1.ClickHouseOpsRequest{} + err = c.client.Put(). + Namespace(c.ns). + Resource("clickhouseopsrequests"). + Name(clickHouseOpsRequest.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(clickHouseOpsRequest). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *clickHouseOpsRequests) UpdateStatus(ctx context.Context, clickHouseOpsRequest *v1alpha1.ClickHouseOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.ClickHouseOpsRequest, err error) { + result = &v1alpha1.ClickHouseOpsRequest{} + err = c.client.Put(). + Namespace(c.ns). + Resource("clickhouseopsrequests"). + Name(clickHouseOpsRequest.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(clickHouseOpsRequest). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the clickHouseOpsRequest and deletes it. Returns an error if one occurs. +func (c *clickHouseOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("clickhouseopsrequests"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *clickHouseOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("clickhouseopsrequests"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched clickHouseOpsRequest. +func (c *clickHouseOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClickHouseOpsRequest, err error) { + result = &v1alpha1.ClickHouseOpsRequest{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("clickhouseopsrequests"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/generated_expansion.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/generated_expansion.go index 65ed3e73d..ee44e05b7 100644 --- a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/generated_expansion.go +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/generated_expansion.go @@ -18,6 +18,8 @@ limitations under the License. package v1alpha1 +type ClickHouseOpsRequestExpansion interface{} + type DruidOpsRequestExpansion interface{} type ElasticsearchOpsRequestExpansion interface{} @@ -28,6 +30,8 @@ type FerretDBOpsRequestExpansion interface{} type KafkaOpsRequestExpansion interface{} +type MSSQLServerOpsRequestExpansion interface{} + type MariaDBOpsRequestExpansion interface{} type MemcachedOpsRequestExpansion interface{} @@ -55,3 +59,5 @@ type RedisSentinelOpsRequestExpansion interface{} type SinglestoreOpsRequestExpansion interface{} type SolrOpsRequestExpansion interface{} + +type ZooKeeperOpsRequestExpansion interface{} diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/mssqlserveropsrequest.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/mssqlserveropsrequest.go new file mode 100644 index 000000000..95c5174a5 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/mssqlserveropsrequest.go @@ -0,0 +1,196 @@ +/* +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. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + "time" + + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// MSSQLServerOpsRequestsGetter has a method to return a MSSQLServerOpsRequestInterface. +// A group's client should implement this interface. +type MSSQLServerOpsRequestsGetter interface { + MSSQLServerOpsRequests(namespace string) MSSQLServerOpsRequestInterface +} + +// MSSQLServerOpsRequestInterface has methods to work with MSSQLServerOpsRequest resources. +type MSSQLServerOpsRequestInterface interface { + Create(ctx context.Context, mSSQLServerOpsRequest *v1alpha1.MSSQLServerOpsRequest, opts v1.CreateOptions) (*v1alpha1.MSSQLServerOpsRequest, error) + Update(ctx context.Context, mSSQLServerOpsRequest *v1alpha1.MSSQLServerOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MSSQLServerOpsRequest, error) + UpdateStatus(ctx context.Context, mSSQLServerOpsRequest *v1alpha1.MSSQLServerOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MSSQLServerOpsRequest, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MSSQLServerOpsRequest, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MSSQLServerOpsRequestList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MSSQLServerOpsRequest, err error) + MSSQLServerOpsRequestExpansion +} + +// mSSQLServerOpsRequests implements MSSQLServerOpsRequestInterface +type mSSQLServerOpsRequests struct { + client rest.Interface + ns string +} + +// newMSSQLServerOpsRequests returns a MSSQLServerOpsRequests +func newMSSQLServerOpsRequests(c *OpsV1alpha1Client, namespace string) *mSSQLServerOpsRequests { + return &mSSQLServerOpsRequests{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the mSSQLServerOpsRequest, and returns the corresponding mSSQLServerOpsRequest object, and an error if there is any. +func (c *mSSQLServerOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MSSQLServerOpsRequest, err error) { + result = &v1alpha1.MSSQLServerOpsRequest{} + err = c.client.Get(). + Namespace(c.ns). + Resource("mssqlserveropsrequests"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of MSSQLServerOpsRequests that match those selectors. +func (c *mSSQLServerOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MSSQLServerOpsRequestList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.MSSQLServerOpsRequestList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("mssqlserveropsrequests"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested mSSQLServerOpsRequests. +func (c *mSSQLServerOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("mssqlserveropsrequests"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a mSSQLServerOpsRequest and creates it. Returns the server's representation of the mSSQLServerOpsRequest, and an error, if there is any. +func (c *mSSQLServerOpsRequests) Create(ctx context.Context, mSSQLServerOpsRequest *v1alpha1.MSSQLServerOpsRequest, opts v1.CreateOptions) (result *v1alpha1.MSSQLServerOpsRequest, err error) { + result = &v1alpha1.MSSQLServerOpsRequest{} + err = c.client.Post(). + Namespace(c.ns). + Resource("mssqlserveropsrequests"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mSSQLServerOpsRequest). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a mSSQLServerOpsRequest and updates it. Returns the server's representation of the mSSQLServerOpsRequest, and an error, if there is any. +func (c *mSSQLServerOpsRequests) Update(ctx context.Context, mSSQLServerOpsRequest *v1alpha1.MSSQLServerOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MSSQLServerOpsRequest, err error) { + result = &v1alpha1.MSSQLServerOpsRequest{} + err = c.client.Put(). + Namespace(c.ns). + Resource("mssqlserveropsrequests"). + Name(mSSQLServerOpsRequest.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mSSQLServerOpsRequest). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *mSSQLServerOpsRequests) UpdateStatus(ctx context.Context, mSSQLServerOpsRequest *v1alpha1.MSSQLServerOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MSSQLServerOpsRequest, err error) { + result = &v1alpha1.MSSQLServerOpsRequest{} + err = c.client.Put(). + Namespace(c.ns). + Resource("mssqlserveropsrequests"). + Name(mSSQLServerOpsRequest.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mSSQLServerOpsRequest). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the mSSQLServerOpsRequest and deletes it. Returns an error if one occurs. +func (c *mSSQLServerOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("mssqlserveropsrequests"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *mSSQLServerOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("mssqlserveropsrequests"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched mSSQLServerOpsRequest. +func (c *mSSQLServerOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MSSQLServerOpsRequest, err error) { + result = &v1alpha1.MSSQLServerOpsRequest{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("mssqlserveropsrequests"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/ops_client.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/ops_client.go index e58eb6f70..0848cc2f5 100644 --- a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/ops_client.go +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/ops_client.go @@ -29,11 +29,13 @@ import ( type OpsV1alpha1Interface interface { RESTClient() rest.Interface + ClickHouseOpsRequestsGetter DruidOpsRequestsGetter ElasticsearchOpsRequestsGetter EtcdOpsRequestsGetter FerretDBOpsRequestsGetter KafkaOpsRequestsGetter + MSSQLServerOpsRequestsGetter MariaDBOpsRequestsGetter MemcachedOpsRequestsGetter MongoDBOpsRequestsGetter @@ -48,6 +50,7 @@ type OpsV1alpha1Interface interface { RedisSentinelOpsRequestsGetter SinglestoreOpsRequestsGetter SolrOpsRequestsGetter + ZooKeeperOpsRequestsGetter } // OpsV1alpha1Client is used to interact with features provided by the ops.kubedb.com group. @@ -55,6 +58,10 @@ type OpsV1alpha1Client struct { restClient rest.Interface } +func (c *OpsV1alpha1Client) ClickHouseOpsRequests(namespace string) ClickHouseOpsRequestInterface { + return newClickHouseOpsRequests(c, namespace) +} + func (c *OpsV1alpha1Client) DruidOpsRequests(namespace string) DruidOpsRequestInterface { return newDruidOpsRequests(c, namespace) } @@ -75,6 +82,10 @@ func (c *OpsV1alpha1Client) KafkaOpsRequests(namespace string) KafkaOpsRequestIn return newKafkaOpsRequests(c, namespace) } +func (c *OpsV1alpha1Client) MSSQLServerOpsRequests(namespace string) MSSQLServerOpsRequestInterface { + return newMSSQLServerOpsRequests(c, namespace) +} + func (c *OpsV1alpha1Client) MariaDBOpsRequests(namespace string) MariaDBOpsRequestInterface { return newMariaDBOpsRequests(c, namespace) } @@ -131,6 +142,10 @@ func (c *OpsV1alpha1Client) SolrOpsRequests(namespace string) SolrOpsRequestInte return newSolrOpsRequests(c, namespace) } +func (c *OpsV1alpha1Client) ZooKeeperOpsRequests(namespace string) ZooKeeperOpsRequestInterface { + return newZooKeeperOpsRequests(c, namespace) +} + // NewForConfig creates a new OpsV1alpha1Client for the given config. // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), // where httpClient was generated with rest.HTTPClientFor(c). diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/zookeeperopsrequest.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/zookeeperopsrequest.go new file mode 100644 index 000000000..2719bdb3a --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/zookeeperopsrequest.go @@ -0,0 +1,196 @@ +/* +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. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + "time" + + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// ZooKeeperOpsRequestsGetter has a method to return a ZooKeeperOpsRequestInterface. +// A group's client should implement this interface. +type ZooKeeperOpsRequestsGetter interface { + ZooKeeperOpsRequests(namespace string) ZooKeeperOpsRequestInterface +} + +// ZooKeeperOpsRequestInterface has methods to work with ZooKeeperOpsRequest resources. +type ZooKeeperOpsRequestInterface interface { + Create(ctx context.Context, zooKeeperOpsRequest *v1alpha1.ZooKeeperOpsRequest, opts v1.CreateOptions) (*v1alpha1.ZooKeeperOpsRequest, error) + Update(ctx context.Context, zooKeeperOpsRequest *v1alpha1.ZooKeeperOpsRequest, opts v1.UpdateOptions) (*v1alpha1.ZooKeeperOpsRequest, error) + UpdateStatus(ctx context.Context, zooKeeperOpsRequest *v1alpha1.ZooKeeperOpsRequest, opts v1.UpdateOptions) (*v1alpha1.ZooKeeperOpsRequest, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ZooKeeperOpsRequest, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ZooKeeperOpsRequestList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ZooKeeperOpsRequest, err error) + ZooKeeperOpsRequestExpansion +} + +// zooKeeperOpsRequests implements ZooKeeperOpsRequestInterface +type zooKeeperOpsRequests struct { + client rest.Interface + ns string +} + +// newZooKeeperOpsRequests returns a ZooKeeperOpsRequests +func newZooKeeperOpsRequests(c *OpsV1alpha1Client, namespace string) *zooKeeperOpsRequests { + return &zooKeeperOpsRequests{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the zooKeeperOpsRequest, and returns the corresponding zooKeeperOpsRequest object, and an error if there is any. +func (c *zooKeeperOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ZooKeeperOpsRequest, err error) { + result = &v1alpha1.ZooKeeperOpsRequest{} + err = c.client.Get(). + Namespace(c.ns). + Resource("zookeeperopsrequests"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of ZooKeeperOpsRequests that match those selectors. +func (c *zooKeeperOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ZooKeeperOpsRequestList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.ZooKeeperOpsRequestList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("zookeeperopsrequests"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested zooKeeperOpsRequests. +func (c *zooKeeperOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("zookeeperopsrequests"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a zooKeeperOpsRequest and creates it. Returns the server's representation of the zooKeeperOpsRequest, and an error, if there is any. +func (c *zooKeeperOpsRequests) Create(ctx context.Context, zooKeeperOpsRequest *v1alpha1.ZooKeeperOpsRequest, opts v1.CreateOptions) (result *v1alpha1.ZooKeeperOpsRequest, err error) { + result = &v1alpha1.ZooKeeperOpsRequest{} + err = c.client.Post(). + Namespace(c.ns). + Resource("zookeeperopsrequests"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(zooKeeperOpsRequest). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a zooKeeperOpsRequest and updates it. Returns the server's representation of the zooKeeperOpsRequest, and an error, if there is any. +func (c *zooKeeperOpsRequests) Update(ctx context.Context, zooKeeperOpsRequest *v1alpha1.ZooKeeperOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.ZooKeeperOpsRequest, err error) { + result = &v1alpha1.ZooKeeperOpsRequest{} + err = c.client.Put(). + Namespace(c.ns). + Resource("zookeeperopsrequests"). + Name(zooKeeperOpsRequest.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(zooKeeperOpsRequest). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *zooKeeperOpsRequests) UpdateStatus(ctx context.Context, zooKeeperOpsRequest *v1alpha1.ZooKeeperOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.ZooKeeperOpsRequest, err error) { + result = &v1alpha1.ZooKeeperOpsRequest{} + err = c.client.Put(). + Namespace(c.ns). + Resource("zookeeperopsrequests"). + Name(zooKeeperOpsRequest.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(zooKeeperOpsRequest). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the zooKeeperOpsRequest and deletes it. Returns an error if one occurs. +func (c *zooKeeperOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("zookeeperopsrequests"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *zooKeeperOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("zookeeperopsrequests"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched zooKeeperOpsRequest. +func (c *zooKeeperOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ZooKeeperOpsRequest, err error) { + result = &v1alpha1.ZooKeeperOpsRequest{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("zookeeperopsrequests"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_clickhouseautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_clickhouseautoscalers.yaml index 194c5665c..da55e7e86 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_clickhouseautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_clickhouseautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: ClickHouseAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_druidautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_druidautoscalers.yaml index e1d99e74c..9815fdae6 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_druidautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_druidautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: DruidAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_elasticsearchautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_elasticsearchautoscalers.yaml index ae47357e6..2ab79abd0 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_elasticsearchautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_elasticsearchautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: ElasticsearchAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_etcdautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_etcdautoscalers.yaml index 3b1bc7267..853b224f1 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_etcdautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_etcdautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: EtcdAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_ferretdbautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_ferretdbautoscalers.yaml index 2a56973ba..b51130a18 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_ferretdbautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_ferretdbautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: FerretDBAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_kafkaautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_kafkaautoscalers.yaml index 0f8c1d6b9..091aee7ea 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_kafkaautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_kafkaautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: KafkaAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mariadbautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mariadbautoscalers.yaml index 2e9946e98..9d0252a87 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mariadbautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mariadbautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: MariaDBAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_memcachedautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_memcachedautoscalers.yaml index 4d8ffedd1..09b5b3854 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_memcachedautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_memcachedautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: MemcachedAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mongodbautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mongodbautoscalers.yaml index fda6184b8..8343eae29 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mongodbautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mongodbautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: MongoDBAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mssqlserverautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mssqlserverautoscalers.yaml index 32dbce09a..839b853be 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mssqlserverautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mssqlserverautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: MSSQLServerAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mysqlautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mysqlautoscalers.yaml index bd6ca6977..b63a38497 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mysqlautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mysqlautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: MySQLAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_perconaxtradbautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_perconaxtradbautoscalers.yaml index 6ed3e6e24..74313acdd 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_perconaxtradbautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_perconaxtradbautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: PerconaXtraDBAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_pgbouncerautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_pgbouncerautoscalers.yaml index b717ba8d5..d9a393e4d 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_pgbouncerautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_pgbouncerautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: PgBouncerAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_pgpoolautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_pgpoolautoscalers.yaml index 8d614ff53..9674aa398 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_pgpoolautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_pgpoolautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: PgpoolAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_postgresautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_postgresautoscalers.yaml index 79541fd2c..8db44c9c6 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_postgresautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_postgresautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: PostgresAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_proxysqlautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_proxysqlautoscalers.yaml index ba3b60cf4..3ba471d48 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_proxysqlautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_proxysqlautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: ProxySQLAutoscaler @@ -92,6 +92,13 @@ spec: type: string type: object type: object + databaseRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic opsRequestOptions: properties: apply: @@ -103,15 +110,8 @@ spec: timeout: type: string type: object - proxyRef: - properties: - name: - default: "" - type: string - type: object - x-kubernetes-map-type: atomic required: - - proxyRef + - databaseRef type: object status: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_rabbitmqautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_rabbitmqautoscalers.yaml index 7d8eeff61..73a3acba7 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_rabbitmqautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_rabbitmqautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: RabbitMQAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_redisautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_redisautoscalers.yaml index e1e394029..33cbd50ee 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_redisautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_redisautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: RedisAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_redissentinelautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_redissentinelautoscalers.yaml index eb1b73b06..638db82ea 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_redissentinelautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_redissentinelautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: RedisSentinelAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_singlestoreautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_singlestoreautoscalers.yaml index 7ca240ab3..a01e9d8fd 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_singlestoreautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_singlestoreautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: SinglestoreAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_solrautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_solrautoscalers.yaml index e23f3c80c..c6483647b 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_solrautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_solrautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: SolrAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_zookeeperautoscalers.yaml b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_zookeeperautoscalers.yaml index 278334b4b..2d07425fa 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_zookeeperautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_zookeeperautoscalers.yaml @@ -9,7 +9,7 @@ spec: group: autoscaling.kubedb.com names: categories: - - datastore + - autoscaler - kubedb - appscode kind: ZooKeeperAutoscaler diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_clickhouseversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_clickhouseversions.yaml index 16e119cbc..4de232c6a 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_clickhouseversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_clickhouseversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: ClickHouseVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_druidversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_druidversions.yaml index 412c56b0f..a7617cf43 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_druidversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_druidversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: DruidVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_elasticsearchversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_elasticsearchversions.yaml index 73d030c5d..7bf1424dd 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_elasticsearchversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_elasticsearchversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: ElasticsearchVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_etcdversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_etcdversions.yaml index 910c6f496..a364d7f1a 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_etcdversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_etcdversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: EtcdVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_ferretdbversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_ferretdbversions.yaml index 6ccc2c36e..0fc0fc8d6 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_ferretdbversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_ferretdbversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: FerretDBVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_kafkaconnectorversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_kafkaconnectorversions.yaml index 03d1c33a2..a6a94d3eb 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_kafkaconnectorversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_kafkaconnectorversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: KafkaConnectorVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_kafkaversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_kafkaversions.yaml index 269f78c1e..8ffc32535 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_kafkaversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_kafkaversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: KafkaVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mariadbversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mariadbversions.yaml index 61d21dc5b..43d6b1497 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mariadbversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mariadbversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: MariaDBVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_memcachedversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_memcachedversions.yaml index 086a3b89f..ad7910b71 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_memcachedversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_memcachedversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: MemcachedVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mongodbversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mongodbversions.yaml index b36a2bb80..6e80ac8c5 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mongodbversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mongodbversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: MongoDBVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mssqlserverversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mssqlserverversions.yaml index 2bd7ea243..034a5e3b5 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mssqlserverversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mssqlserverversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: MSSQLServerVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mysqlversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mysqlversions.yaml index 281bff963..e36a48d22 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mysqlversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mysqlversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: MySQLVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_perconaxtradbversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_perconaxtradbversions.yaml index 8ce688750..6ad716491 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_perconaxtradbversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_perconaxtradbversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: PerconaXtraDBVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_pgbouncerversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_pgbouncerversions.yaml index 14e3f34fc..e4fedcc4c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_pgbouncerversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_pgbouncerversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: PgBouncerVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_pgpoolversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_pgpoolversions.yaml index a210f8680..116fbdc1a 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_pgpoolversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_pgpoolversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: PgpoolVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_postgresversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_postgresversions.yaml index e391a69e7..fe4a99650 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_postgresversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_postgresversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: PostgresVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_proxysqlversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_proxysqlversions.yaml index e7f7d7da5..3fc42065b 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_proxysqlversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_proxysqlversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: ProxySQLVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_rabbitmqversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_rabbitmqversions.yaml index de42dd183..6cec02f08 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_rabbitmqversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_rabbitmqversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: RabbitMQVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_redisversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_redisversions.yaml index 491600223..e8c967406 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_redisversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_redisversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: RedisVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_schemaregistryversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_schemaregistryversions.yaml index 02ca97d01..dc4756de6 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_schemaregistryversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_schemaregistryversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: SchemaRegistryVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_singlestoreversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_singlestoreversions.yaml index 009f45182..1b42d9c04 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_singlestoreversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_singlestoreversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: SinglestoreVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_solrversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_solrversions.yaml index 64c7213d2..16bc33b5f 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_solrversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_solrversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: SolrVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_zookeeperversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_zookeeperversions.yaml index 71d521571..f6c55d77e 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_zookeeperversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_zookeeperversions.yaml @@ -9,7 +9,7 @@ spec: group: catalog.kubedb.com names: categories: - - datastore + - catalog - kubedb - appscode kind: ZooKeeperVersion diff --git a/vendor/kubedb.dev/apimachinery/crds/elasticsearch.kubedb.com_elasticsearchdashboards.yaml b/vendor/kubedb.dev/apimachinery/crds/elasticsearch.kubedb.com_elasticsearchdashboards.yaml index 57638c327..76fc5366b 100644 --- a/vendor/kubedb.dev/apimachinery/crds/elasticsearch.kubedb.com_elasticsearchdashboards.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/elasticsearch.kubedb.com_elasticsearchdashboards.yaml @@ -8,6 +8,10 @@ metadata: spec: group: elasticsearch.kubedb.com names: + categories: + - esstore + - kubedb + - appscode kind: ElasticsearchDashboard listKind: ElasticsearchDashboardList plural: elasticsearchdashboards diff --git a/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_connectclusters.yaml b/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_connectclusters.yaml index bf7f67511..f466abe10 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_connectclusters.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_connectclusters.yaml @@ -8,6 +8,10 @@ metadata: spec: group: kafka.kubedb.com names: + categories: + - kfstore + - kubedb + - appscode kind: ConnectCluster listKind: ConnectClusterList plural: connectclusters diff --git a/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_connectors.yaml b/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_connectors.yaml index 98c38328a..30b881662 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_connectors.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_connectors.yaml @@ -8,6 +8,10 @@ metadata: spec: group: kafka.kubedb.com names: + categories: + - kfstore + - kubedb + - appscode kind: Connector listKind: ConnectorList plural: connectors diff --git a/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_restproxies.yaml b/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_restproxies.yaml index 957e1274c..eb1c9668f 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_restproxies.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_restproxies.yaml @@ -8,6 +8,10 @@ metadata: spec: group: kafka.kubedb.com names: + categories: + - kfstore + - kubedb + - appscode kind: RestProxy listKind: RestProxyList plural: restproxies diff --git a/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_schemaregistries.yaml b/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_schemaregistries.yaml index e0224644d..febb4ff43 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_schemaregistries.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_schemaregistries.yaml @@ -8,6 +8,10 @@ metadata: spec: group: kafka.kubedb.com names: + categories: + - kfstore + - kubedb + - appscode kind: SchemaRegistry listKind: SchemaRegistryList plural: schemaregistries diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_clickhouses.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_clickhouses.yaml index adb4e4a70..307d4fca0 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_clickhouses.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_clickhouses.yaml @@ -8,6 +8,11 @@ metadata: spec: group: kubedb.com names: + categories: + - datastore + - kubedb + - appscode + - all kind: ClickHouse listKind: ClickHouseList plural: clickhouses @@ -6339,6 +6344,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_druids.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_druids.yaml index 1fb8522c6..6473f6d1c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_druids.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_druids.yaml @@ -8,6 +8,11 @@ metadata: spec: group: kubedb.com names: + categories: + - datastore + - kubedb + - appscode + - all kind: Druid listKind: DruidList plural: druids @@ -337,6 +342,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_elasticsearches.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_elasticsearches.yaml index 5f562fdbf..3cc06a820 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_elasticsearches.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_elasticsearches.yaml @@ -43674,6 +43674,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_etcds.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_etcds.yaml index 55f5741d0..a4a449436 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_etcds.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_etcds.yaml @@ -3916,6 +3916,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_ferretdbs.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_ferretdbs.yaml index c0e3f38d7..67a34ccfa 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_ferretdbs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_ferretdbs.yaml @@ -8,6 +8,11 @@ metadata: spec: group: kubedb.com names: + categories: + - datastore + - kubedb + - appscode + - all kind: FerretDB listKind: FerretDBList plural: ferretdbs @@ -3376,6 +3381,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_kafkas.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_kafkas.yaml index 494d0e48f..db418404a 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_kafkas.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_kafkas.yaml @@ -8,6 +8,11 @@ metadata: spec: group: kubedb.com names: + categories: + - datastore + - kubedb + - appscode + - all kind: Kafka listKind: KafkaList plural: kafkas @@ -3187,6 +3192,8 @@ spec: type: boolean enableSSL: type: boolean + halted: + type: boolean healthChecker: default: failureThreshold: 3 @@ -16294,6 +16301,8 @@ spec: type: boolean enableSSL: type: boolean + halted: + type: boolean healthChecker: default: failureThreshold: 3 @@ -19600,6 +19609,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mariadbs.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mariadbs.yaml index ede8ee10b..8b1028f32 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mariadbs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mariadbs.yaml @@ -8898,6 +8898,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_memcacheds.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_memcacheds.yaml index 42ab2baa3..37a924c46 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_memcacheds.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_memcacheds.yaml @@ -8025,6 +8025,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mongodbs.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mongodbs.yaml index 3aa4f33ee..027fc74ae 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mongodbs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mongodbs.yaml @@ -30037,6 +30037,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mssqlservers.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mssqlservers.yaml index 50123b441..00f9c4b7a 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mssqlservers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mssqlservers.yaml @@ -4613,6 +4613,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mysqls.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mysqls.yaml index 9b609a859..97279dc2a 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mysqls.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mysqls.yaml @@ -12181,6 +12181,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_perconaxtradbs.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_perconaxtradbs.yaml index 68e4c55bf..5854c5b92 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_perconaxtradbs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_perconaxtradbs.yaml @@ -8881,6 +8881,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgbouncers.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgbouncers.yaml index 5bd115521..4d74cf13b 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgbouncers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgbouncers.yaml @@ -9,7 +9,7 @@ spec: group: kubedb.com names: categories: - - proxy + - datastore - kubedb - appscode - all @@ -147,10 +147,13 @@ spec: type: object deletionPolicy: enum: + - Halt - Delete - WipeOut - DoNotTerminate type: string + halted: + type: boolean healthChecker: default: failureThreshold: 1 @@ -3790,6 +3793,8 @@ spec: - databaseName - databaseRef type: object + halted: + type: boolean healthChecker: default: failureThreshold: 1 @@ -6655,6 +6660,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: @@ -6728,6 +6734,7 @@ spec: type: string terminationPolicy: enum: + - Halt - Delete - WipeOut - DoNotTerminate diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgpools.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgpools.yaml index 4ebdd9ea8..92a975ccf 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgpools.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgpools.yaml @@ -3388,6 +3388,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml index 6a128ce3f..16fe0db8d 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml @@ -9181,6 +9181,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_proxysqls.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_proxysqls.yaml index 5ed4c42c8..c5941a6f6 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_proxysqls.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_proxysqls.yaml @@ -83,6 +83,8 @@ spec: - WipeOut - DoNotTerminate type: string + halted: + type: boolean healthChecker: default: failureThreshold: 1 @@ -3701,6 +3703,8 @@ spec: type: string type: object x-kubernetes-map-type: atomic + halted: + type: boolean healthChecker: default: failureThreshold: 1 @@ -6615,6 +6619,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_rabbitmqs.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_rabbitmqs.yaml index 4882a717a..120ae96fc 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_rabbitmqs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_rabbitmqs.yaml @@ -8,6 +8,11 @@ metadata: spec: group: kubedb.com names: + categories: + - datastore + - kubedb + - appscode + - all kind: RabbitMQ listKind: RabbitMQList plural: rabbitmqs @@ -66,6 +71,17 @@ spec: type: string disableSecurity: type: boolean + disabledProtocols: + items: + enum: + - http + - amqp + - mqtt + - stomp + - web_mqtt + - web_stomp + type: string + type: array enableSSL: type: boolean halted: @@ -3367,6 +3383,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redises.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redises.yaml index 2dd2e6e41..29920709c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redises.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redises.yaml @@ -8904,6 +8904,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redissentinels.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redissentinels.yaml index a966370f3..6c1139e82 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redissentinels.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redissentinels.yaml @@ -6581,6 +6581,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_singlestores.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_singlestores.yaml index 817a2b064..4b1b0d833 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_singlestores.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_singlestores.yaml @@ -8,6 +8,11 @@ metadata: spec: group: kubedb.com names: + categories: + - datastore + - kubedb + - appscode + - all kind: Singlestore listKind: SinglestoreList plural: singlestores @@ -4375,6 +4380,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_solrs.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_solrs.yaml index a83ece53e..bc510b157 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_solrs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_solrs.yaml @@ -8,6 +8,11 @@ metadata: spec: group: kubedb.com names: + categories: + - datastore + - kubedb + - appscode + - all kind: Solr listKind: SolrList plural: solrs @@ -3370,6 +3375,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_zookeepers.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_zookeepers.yaml index 63f64f9fd..b8de8e77f 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_zookeepers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_zookeepers.yaml @@ -8,6 +8,11 @@ metadata: spec: group: kubedb.com names: + categories: + - datastore + - kubedb + - appscode + - all kind: ZooKeeper listKind: ZooKeeperList plural: zookeepers @@ -3369,6 +3374,7 @@ spec: - primary - standby - stats + - dashboard type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_clickhouseopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_clickhouseopsrequests.yaml new file mode 100644 index 000000000..e56b50ac4 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_clickhouseopsrequests.yaml @@ -0,0 +1,131 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: clickhouseopsrequests.ops.kubedb.com +spec: + group: ops.kubedb.com + names: + categories: + - ops + - kubedb + - appscode + kind: ClickHouseOpsRequest + listKind: ClickHouseOpsRequestList + plural: clickhouseopsrequests + shortNames: + - chops + singular: clickhouseopsrequest + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .spec.type + name: Type + type: string + - jsonPath: .status.phase + name: Status + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + apply: + default: IfReady + enum: + - IfReady + - Always + type: string + databaseRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + restart: + type: object + timeout: + type: string + type: + enum: + - Restart + type: string + required: + - databaseRef + - type + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + severity: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + pausedBackups: + items: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + required: + - name + type: object + type: array + phase: + enum: + - Pending + - Progressing + - Successful + - WaitingForApproval + - Failed + - Approved + - Denied + - Skipped + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_druidopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_druidopsrequests.yaml index 0cff6f1dd..e76cea9f6 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_druidopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_druidopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: DruidOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml index 21cef5a54..3362d5ad9 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: ElasticsearchOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_etcdopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_etcdopsrequests.yaml index 11a55d8f6..bc3674330 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_etcdopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_etcdopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: EtcdOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_ferretdbopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_ferretdbopsrequests.yaml index 9da67451d..9700da76f 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_ferretdbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_ferretdbopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: FerretDBOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_kafkaopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_kafkaopsrequests.yaml index 9f0472cad..7e87bf6bd 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_kafkaopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_kafkaopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: KafkaOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml index 61ae12d24..1e5fe988d 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: MariaDBOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml index 6464037d7..05d12550a 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: MemcachedOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mongodbopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mongodbopsrequests.yaml index 6bc73778e..7ea91bca3 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mongodbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mongodbopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: MongoDBOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mssqlserveropsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mssqlserveropsrequests.yaml new file mode 100644 index 000000000..f7557c266 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mssqlserveropsrequests.yaml @@ -0,0 +1,131 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: mssqlserveropsrequests.ops.kubedb.com +spec: + group: ops.kubedb.com + names: + categories: + - ops + - kubedb + - appscode + kind: MSSQLServerOpsRequest + listKind: MSSQLServerOpsRequestList + plural: mssqlserveropsrequests + shortNames: + - msops + singular: mssqlserveropsrequest + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .spec.type + name: Type + type: string + - jsonPath: .status.phase + name: Status + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + apply: + default: IfReady + enum: + - IfReady + - Always + type: string + databaseRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + restart: + type: object + timeout: + type: string + type: + enum: + - Restart + type: string + required: + - databaseRef + - type + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + severity: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + pausedBackups: + items: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + required: + - name + type: object + type: array + phase: + enum: + - Pending + - Progressing + - Successful + - WaitingForApproval + - Failed + - Approved + - Denied + - Skipped + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml index 52dac4a88..7c60d23ce 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: MySQLOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml index 19df2ea26..d2d78cec7 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: PerconaXtraDBOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml index 58173bda7..818e86fbe 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: PgBouncerOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgpoolopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgpoolopsrequests.yaml index b45bd7125..66995b94b 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgpoolopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgpoolopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: PgpoolOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml index 672be275d..6530c7814 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: PostgresOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml index 399c1f7eb..ad2d959bd 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: ProxySQLOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_rabbitmqopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_rabbitmqopsrequests.yaml index b5be8c886..041c5c0ef 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_rabbitmqopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_rabbitmqopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: RabbitMQOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml index 8a5451d60..4e9f853e9 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: RedisOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml index 0b92921f6..982a0aace 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: RedisSentinelOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_singlestoreopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_singlestoreopsrequests.yaml index 197abc6c0..224eff87e 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_singlestoreopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_singlestoreopsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: SinglestoreOpsRequest @@ -106,17 +106,139 @@ spec: type: string type: object x-kubernetes-map-type: atomic + horizontalScaling: + properties: + aggregator: + format: int32 + type: integer + leaf: + format: int32 + type: integer + type: object restart: type: object timeout: type: string + tls: + properties: + certificates: + items: + properties: + alias: + type: string + dnsNames: + items: + type: string + type: array + duration: + type: string + emailAddresses: + items: + type: string + type: array + ipAddresses: + items: + type: string + type: array + issuerRef: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + privateKey: + properties: + encoding: + enum: + - PKCS1 + - PKCS8 + type: string + type: object + renewBefore: + type: string + secretName: + type: string + subject: + properties: + countries: + items: + type: string + type: array + localities: + items: + type: string + type: array + organizationalUnits: + items: + type: string + type: array + organizations: + items: + type: string + type: array + postalCodes: + items: + type: string + type: array + provinces: + items: + type: string + type: array + serialNumber: + type: string + streetAddresses: + items: + type: string + type: array + type: object + uris: + items: + type: string + type: array + required: + - alias + type: object + type: array + issuerRef: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + remove: + type: boolean + rotateCertificates: + type: boolean + type: object type: enum: + - UpdateVersion + - HorizontalScaling - VerticalScaling - VolumeExpansion - Restart - Configuration + - ReconfigureTLS type: string + updateVersion: + properties: + targetVersion: + type: string + type: object verticalScaling: properties: aggregator: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_solropsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_solropsrequests.yaml index daa371cc5..aa82131f8 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_solropsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_solropsrequests.yaml @@ -9,7 +9,7 @@ spec: group: ops.kubedb.com names: categories: - - datastore + - ops - kubedb - appscode kind: SolrOpsRequest diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_zookeeperopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_zookeeperopsrequests.yaml new file mode 100644 index 000000000..2bfe9e6b5 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_zookeeperopsrequests.yaml @@ -0,0 +1,131 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: zookeeperopsrequests.ops.kubedb.com +spec: + group: ops.kubedb.com + names: + categories: + - ops + - kubedb + - appscode + kind: ZooKeeperOpsRequest + listKind: ZooKeeperOpsRequestList + plural: zookeeperopsrequests + shortNames: + - zkops + singular: zookeeperopsrequest + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .spec.type + name: Type + type: string + - jsonPath: .status.phase + name: Status + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + apply: + default: IfReady + enum: + - IfReady + - Always + type: string + databaseRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + restart: + type: object + timeout: + type: string + type: + enum: + - Restart + type: string + required: + - databaseRef + - type + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + severity: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + pausedBackups: + items: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + required: + - name + type: object + type: array + phase: + enum: + - Pending + - Progressing + - Successful + - WaitingForApproval + - Failed + - Approved + - Denied + - Skipped + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_publishers.yaml b/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_publishers.yaml index 2884fb921..772c36114 100644 --- a/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_publishers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_publishers.yaml @@ -9,10 +9,9 @@ spec: group: postgres.kubedb.com names: categories: - - datastore + - pgstore - kubedb - appscode - - all kind: Publisher listKind: PublisherList plural: publishers diff --git a/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_subscribers.yaml b/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_subscribers.yaml index 8c6251737..9f6295d27 100644 --- a/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_subscribers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_subscribers.yaml @@ -9,10 +9,9 @@ spec: group: postgres.kubedb.com names: categories: - - datastore + - pgstore - kubedb - appscode - - all kind: Subscriber listKind: SubscriberList plural: subscribers diff --git a/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mariadbdatabases.yaml b/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mariadbdatabases.yaml index 817b0f576..87f49f83e 100644 --- a/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mariadbdatabases.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mariadbdatabases.yaml @@ -9,10 +9,9 @@ spec: group: schema.kubedb.com names: categories: - - datastore + - schema - kubedb - appscode - - all kind: MariaDBDatabase listKind: MariaDBDatabaseList plural: mariadbdatabases diff --git a/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mongodbdatabases.yaml b/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mongodbdatabases.yaml index 47e44d149..740f9c1ab 100644 --- a/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mongodbdatabases.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mongodbdatabases.yaml @@ -9,10 +9,9 @@ spec: group: schema.kubedb.com names: categories: - - datastore + - schema - kubedb - appscode - - all kind: MongoDBDatabase listKind: MongoDBDatabaseList plural: mongodbdatabases diff --git a/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mysqldatabases.yaml b/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mysqldatabases.yaml index 7e17ec37c..b96e38171 100644 --- a/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mysqldatabases.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_mysqldatabases.yaml @@ -9,10 +9,9 @@ spec: group: schema.kubedb.com names: categories: - - datastore + - schema - kubedb - appscode - - all kind: MySQLDatabase listKind: MySQLDatabaseList plural: mysqldatabases diff --git a/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_postgresdatabases.yaml b/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_postgresdatabases.yaml index 2d00ccd5c..227b9bdc5 100644 --- a/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_postgresdatabases.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/schema.kubedb.com_postgresdatabases.yaml @@ -9,10 +9,9 @@ spec: group: schema.kubedb.com names: categories: - - datastore + - schema - kubedb - appscode - - all kind: PostgresDatabase listKind: PostgresDatabaseList plural: postgresdatabases diff --git a/vendor/modules.txt b/vendor/modules.txt index 2e078b065..337e74d2c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1505,7 +1505,7 @@ kmodules.xyz/prober/api/v1 kmodules.xyz/resource-metadata/apis/node kmodules.xyz/resource-metadata/apis/node/v1alpha1 kmodules.xyz/resource-metadata/crds -# kubedb.dev/apimachinery v0.47.0-rc.2 +# kubedb.dev/apimachinery v0.47.0-rc.3 ## explicit; go 1.22.1 kubedb.dev/apimachinery/apis kubedb.dev/apimachinery/apis/archiver/v1alpha1 @@ -1549,7 +1549,7 @@ kubedb.dev/apimachinery/crds kubedb.dev/apimachinery/pkg/double_optin kubedb.dev/apimachinery/pkg/factory kubedb.dev/apimachinery/pkg/validator -# kubedb.dev/db-client-go v0.2.0-rc.2 +# kubedb.dev/db-client-go v0.2.0-rc.3 ## explicit; go 1.22.1 kubedb.dev/db-client-go/elasticsearch kubedb.dev/db-client-go/redis