From 6b2be825237a14839ad83e5d229ab9796d166ef7 Mon Sep 17 00:00:00 2001 From: 1gtm <1gtm@appscode.com> Date: Sat, 9 Nov 2024 02:56:15 +0000 Subject: [PATCH] Prepare for release v0.49.0-rc.0 ProductLine: KubeDB Release: v2024.11.8-rc.0 Release-tracker: https://github.com/kubedb/CHANGELOG/pull/100 Signed-off-by: 1gtm <1gtm@appscode.com> --- go.mod | 12 +- go.sum | 24 +- .../cert-manager/cert-manager/LICENSES | 2 +- vendor/kmodules.xyz/client-go/Makefile | 2 +- .../client-go/api/v1/certificates.go | 4 + .../kmodules.xyz/client-go/api/v1/cluster.go | 67 +- .../client-go/api/v1/generated.pb.go | 1094 ++++++++++++++--- .../client-go/api/v1/generated.proto | 36 + .../client-go/api/v1/zz_generated.deepcopy.go | 6 +- .../kmodules.xyz/client-go/client/client.go | 15 +- vendor/kmodules.xyz/client-go/meta/hash.go | 25 +- .../apis/node/v1alpha1/openapi_generated.go | 21 +- ...ore.k8s.appscode.com_genericresources.yaml | 13 +- ....appscode.com_genericresourceservices.yaml | 13 +- ...re.k8s.appscode.com_resourcesummaries.yaml | 13 +- ...ity.k8s.appscode.com_clusteridentitys.yaml | 13 +- .../identity.k8s.appscode.com_siteinfos.yaml | 13 +- .../ui.k8s.appscode.com_clusterprofiles.yaml | 63 + .../apis/archiver/v1alpha1/const.go | 81 ++ .../archiver/v1alpha1/openapi_generated.go | 17 +- .../autoscaling/v1alpha1/mssqlserver_types.go | 3 - .../autoscaling/v1alpha1/openapi_generated.go | 68 +- .../apis/autoscaling/v1alpha1/solr_types.go | 13 +- .../apis/autoscaling/v1alpha1/solr_webhook.go | 10 +- .../apis/autoscaling/v1alpha1/type.go | 2 +- .../v1alpha1/zz_generated.deepcopy.go | 48 +- .../v1alpha1/cassandra_version_types.go | 8 + .../catalog/v1alpha1/mariadb_version_types.go | 2 +- ...pers.go => mssqlserver_version_helpers.go} | 0 ..._types.go => mssqlserver_version_types.go} | 0 .../catalog/v1alpha1/openapi_generated.go | 64 +- .../v1alpha1/proxysql_version_types.go | 2 +- .../catalog/v1alpha1/solr_version_types.go | 2 + .../catalog/v1alpha1/zz_generated.deepcopy.go | 18 + .../apis/config/v1alpha1/openapi_generated.go | 17 +- .../v1alpha1/openapi_generated.go | 17 +- .../kafka/v1alpha1/connect_cluster_helpers.go | 17 +- .../apis/kafka/v1alpha1/openapi_generated.go | 17 +- .../kafka/v1alpha1/zz_generated.deepcopy.go | 4 +- .../apimachinery/apis/kubedb/constants.go | 167 ++- .../apis/kubedb/v1/kafka_helpers.go | 17 +- .../apis/kubedb/v1/memcached_helpers.go | 39 + .../apis/kubedb/v1/memcached_types.go | 10 + .../apis/kubedb/v1/openapi_generated.go | 52 +- .../apis/kubedb/v1/postgres_helpers.go | 4 + .../apis/kubedb/v1/redis_sentinel_types.go | 2 +- .../apimachinery/apis/kubedb/v1/types.go | 26 +- .../apis/kubedb/v1/zz_generated.deepcopy.go | 49 +- .../apis/kubedb/v1alpha1/openapi_generated.go | 17 +- .../apis/kubedb/v1alpha2/cassandra_helpers.go | 100 +- .../apis/kubedb/v1alpha2/cassandra_types.go | 5 + .../apis/kubedb/v1alpha2/cassandra_webhook.go | 5 +- .../kubedb/v1alpha2/clickhouse_helpers.go | 4 +- .../apis/kubedb/v1alpha2/druid_helpers.go | 152 ++- .../apis/kubedb/v1alpha2/druid_types.go | 25 +- .../apis/kubedb/v1alpha2/kafka_helpers.go | 4 +- .../kubedb/v1alpha2/mssqlserver_helpers.go | 13 +- .../kubedb/v1alpha2/mssqlserver_webhook.go | 39 + .../apis/kubedb/v1alpha2/openapi_generated.go | 117 +- .../apis/kubedb/v1alpha2/rabbitmq_helpers.go | 2 +- .../kubedb/v1alpha2/redis_sentinel_types.go | 2 +- .../apis/kubedb/v1alpha2/solr_helpers.go | 40 +- .../apis/kubedb/v1alpha2/solr_types.go | 1 + .../apis/kubedb/v1alpha2/types.go | 29 +- .../apis/kubedb/v1alpha2/zookeeper_helpers.go | 52 + .../apis/kubedb/v1alpha2/zookeeper_types.go | 32 + .../v1alpha2/zz_generated.conversion.go | 8 + .../kubedb/v1alpha2/zz_generated.deepcopy.go | 119 +- .../apis/ops/v1alpha1/clickhouse_ops-types.go | 6 +- .../ops/v1alpha1/clickhouse_ops-types_enum.go | 7 +- .../apis/ops/v1alpha1/constant.go | 22 + .../apis/ops/v1alpha1/druid_ops_types.go | 65 +- .../apis/ops/v1alpha1/druid_ops_types_enum.go | 31 +- .../ops/v1alpha1/elasticsearch_ops_types.go | 6 +- .../v1alpha1/elasticsearch_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/etcd_ops_types.go | 6 +- .../apis/ops/v1alpha1/etcd_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/ferretdb_ops.types.go | 6 +- .../ops/v1alpha1/ferretdb_ops.types_enum.go | 5 + .../apis/ops/v1alpha1/kafka_ops_types.go | 6 +- .../apis/ops/v1alpha1/kafka_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/mariadb_ops_types.go | 6 +- .../ops/v1alpha1/mariadb_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/memcached_ops_types.go | 6 +- .../ops/v1alpha1/memcached_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/mongodb_ops_types.go | 6 +- .../ops/v1alpha1/mongodb_ops_types_enum.go | 5 + .../ops/v1alpha1/mssqlserver_ops_types.go | 8 +- .../v1alpha1/mssqlserver_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/mysql_ops_types.go | 6 +- .../apis/ops/v1alpha1/mysql_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/openapi_generated.go | 394 +++++- .../ops/v1alpha1/perconaxtradb_ops_types.go | 6 +- .../v1alpha1/perconaxtradb_ops_types_enum.go | 5 + .../ops/v1alpha1/pgbouncer_ops_helpers.go | 2 +- .../apis/ops/v1alpha1/pgbouncer_ops_types.go | 8 +- .../ops/v1alpha1/pgbouncer_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/pgpool_ops_types.go | 6 +- .../ops/v1alpha1/pgpool_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/postgres_ops_types.go | 6 +- .../ops/v1alpha1/postgres_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/proxysql_ops_types.go | 6 +- .../ops/v1alpha1/proxysql_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/rabbitmq_ops_types.go | 6 +- .../ops/v1alpha1/rabbitmq_ops_types_enum.go | 5 + .../apis/ops/v1alpha1/redis_ops_types.go | 6 +- .../apis/ops/v1alpha1/redis_ops_types_enum.go | 5 + .../ops/v1alpha1/redis_sentinel_ops_types.go | 6 +- .../v1alpha1/redis_sentinel_ops_types_enum.go | 5 + .../ops/v1alpha1/singlestore_ops_types.go | 6 +- .../v1alpha1/singlestore_ops_types_enum.go | 15 +- .../apis/ops/v1alpha1/solr_ops_types.go | 6 +- .../apis/ops/v1alpha1/solr_ops_types_enum.go | 5 + .../apimachinery/apis/ops/v1alpha1/type.go | 6 + .../apis/ops/v1alpha1/zookeeper_ops_types.go | 8 +- .../ops/v1alpha1/zookeeper_ops_types_enum.go | 10 + .../ops/v1alpha1/zz_generated.deepcopy.go | 363 +++++- .../postgres/v1alpha1/openapi_generated.go | 25 +- .../apis/postgres/v1alpha1/publisher_types.go | 2 +- .../postgres/v1alpha1/subscriber_types.go | 2 +- .../v1alpha1/zz_generated.deepcopy.go | 4 +- .../apis/schema/v1alpha1/openapi_generated.go | 17 +- .../ui/v1alpha1/database_connection_types.go | 19 +- .../apis/ui/v1alpha1/openapi_generated.go | 267 ++-- .../apis/ui/v1alpha1/zz_generated.deepcopy.go | 129 +- ...ing.kubedb.com_mssqlserverautoscalers.yaml | 2 - ...utoscaling.kubedb.com_solrautoscalers.yaml | 257 +++- .../catalog.kubedb.com_cassandraversions.yaml | 8 + .../catalog.kubedb.com_mariadbversions.yaml | 2 +- .../catalog.kubedb.com_proxysqlversions.yaml | 2 + .../crds/catalog.kubedb.com_solrversions.yaml | 11 + .../kafka.kubedb.com_connectclusters.yaml | 10 + .../crds/kubedb.com_cassandras.yaml | 207 ++++ .../crds/kubedb.com_clickhouses.yaml | 6 + .../apimachinery/crds/kubedb.com_druids.yaml | 132 ++ .../crds/kubedb.com_elasticsearches.yaml | 25 + .../apimachinery/crds/kubedb.com_etcds.yaml | 13 + .../crds/kubedb.com_ferretdbs.yaml | 6 + .../apimachinery/crds/kubedb.com_kafkas.yaml | 31 + .../crds/kubedb.com_mariadbs.yaml | 25 + .../crds/kubedb.com_memcacheds.yaml | 17 + .../crds/kubedb.com_mongodbs.yaml | 25 + .../crds/kubedb.com_mssqlservers.yaml | 13 + .../apimachinery/crds/kubedb.com_mysqls.yaml | 25 + .../crds/kubedb.com_perconaxtradbs.yaml | 45 + .../crds/kubedb.com_pgbouncers.yaml | 11 + .../apimachinery/crds/kubedb.com_pgpools.yaml | 6 + .../crds/kubedb.com_postgreses.yaml | 25 + .../crds/kubedb.com_proxysqls.yaml | 11 + .../crds/kubedb.com_rabbitmqs.yaml | 6 + .../apimachinery/crds/kubedb.com_redises.yaml | 25 + .../crds/kubedb.com_redissentinels.yaml | 13 + .../crds/kubedb.com_singlestores.yaml | 18 + .../apimachinery/crds/kubedb.com_solrs.yaml | 1 + .../crds/kubedb.com_zookeepers.yaml | 127 ++ .../ops.kubedb.com_clickhouseopsrequests.yaml | 11 + .../crds/ops.kubedb.com_druidopsrequests.yaml | 165 +++ ...s.kubedb.com_elasticsearchopsrequests.yaml | 11 + .../crds/ops.kubedb.com_etcdopsrequests.yaml | 11 + .../ops.kubedb.com_ferretdbopsrequests.yaml | 11 + .../crds/ops.kubedb.com_kafkaopsrequests.yaml | 11 + .../ops.kubedb.com_mariadbopsrequests.yaml | 11 + .../ops.kubedb.com_memcachedopsrequests.yaml | 11 + .../ops.kubedb.com_mongodbopsrequests.yaml | 11 + ...ops.kubedb.com_mssqlserveropsrequests.yaml | 11 + .../crds/ops.kubedb.com_mysqlopsrequests.yaml | 11 + ...s.kubedb.com_perconaxtradbopsrequests.yaml | 11 + .../ops.kubedb.com_pgbounceropsrequests.yaml | 27 +- .../ops.kubedb.com_pgpoolopsrequests.yaml | 11 + .../ops.kubedb.com_postgresopsrequests.yaml | 11 + .../ops.kubedb.com_proxysqlopsrequests.yaml | 11 + .../ops.kubedb.com_rabbitmqopsrequests.yaml | 11 + .../crds/ops.kubedb.com_redisopsrequests.yaml | 11 + ...s.kubedb.com_redissentinelopsrequests.yaml | 11 + ...ops.kubedb.com_singlestoreopsrequests.yaml | 13 +- .../crds/ops.kubedb.com_solropsrequests.yaml | 11 + .../ops.kubedb.com_zookeeperopsrequests.yaml | 117 ++ .../crds/postgres.kubedb.com_publishers.yaml | 16 +- .../crds/postgres.kubedb.com_subscribers.yaml | 16 +- .../ui.kubedb.com_databaseconnections.yaml | 43 +- vendor/modules.txt | 12 +- 181 files changed, 5374 insertions(+), 918 deletions(-) create mode 100644 vendor/kmodules.xyz/resource-metadata/crds/ui.k8s.appscode.com_clusterprofiles.yaml create mode 100644 vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/const.go rename vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/{mssql_version_helpers.go => mssqlserver_version_helpers.go} (100%) rename vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/{mssql_version_types.go => mssqlserver_version_types.go} (100%) diff --git a/go.mod b/go.mod index 37d3b390b..b50b23912 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ toolchain go1.22.5 require ( github.com/Masterminds/semver/v3 v3.3.0 - github.com/cert-manager/cert-manager v1.15.1 + github.com/cert-manager/cert-manager v1.15.2 github.com/fatih/camelcase v1.0.0 github.com/go-sql-driver/mysql v1.8.1 github.com/prometheus/client_golang v1.18.0 @@ -26,11 +26,11 @@ require ( k8s.io/klog/v2 v2.130.1 k8s.io/kubectl v0.29.0 kmodules.xyz/cert-manager-util v0.29.0 - kmodules.xyz/client-go v0.30.17 + kmodules.xyz/client-go v0.30.32 kmodules.xyz/custom-resources v0.30.0 - kmodules.xyz/monitoring-agent-api v0.30.1 - kubedb.dev/apimachinery v0.48.0 - kubedb.dev/db-client-go v0.3.0 + kmodules.xyz/monitoring-agent-api v0.30.2 + kubedb.dev/apimachinery v0.49.0-rc.0 + kubedb.dev/db-client-go v0.4.0-rc.0 sigs.k8s.io/controller-runtime v0.18.4 sigs.k8s.io/yaml v1.4.0 stash.appscode.dev/apimachinery v0.36.0 @@ -144,7 +144,7 @@ require ( kmodules.xyz/objectstore-api v0.29.1 // indirect kmodules.xyz/offshoot-api v0.30.1 // indirect kmodules.xyz/prober v0.29.0 // indirect - kmodules.xyz/resource-metadata v0.18.15 // indirect + kmodules.xyz/resource-metadata v0.20.0 // indirect kubeops.dev/petset v0.0.7 // indirect kubeops.dev/sidekick v0.0.8 // indirect kubestash.dev/apimachinery v0.13.0 // indirect diff --git a/go.sum b/go.sum index c263575f7..929790863 100644 --- a/go.sum +++ b/go.sum @@ -56,8 +56,8 @@ github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdb github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cert-manager/cert-manager v1.15.1 h1:HSG4k2GlJ2YgTLkZfQzrArNaQpM9+ehDDg550IxAD94= -github.com/cert-manager/cert-manager v1.15.1/go.mod h1:p98JoGv3J9JhdKU9ngsj2EhWGI6/GlU7kpjWu5lf2js= +github.com/cert-manager/cert-manager v1.15.2 h1:Mjbvc+FjYeg2928xy7bcS+c+ARxyqBcXM9QypOg1/Uo= +github.com/cert-manager/cert-manager v1.15.2/go.mod h1:stBge/DTvrhfQMB/93+Y62s+gQgZBsfL1o0C/4AL/mI= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= @@ -715,24 +715,24 @@ kmodules.xyz/apiversion v0.2.0 h1:vAQYqZFm4xu4pbB1cAdHbFEPES6EQkcR4wc06xdTOWk= kmodules.xyz/apiversion v0.2.0/go.mod h1:oPX8g8LvlPdPX3Yc5YvCzJHQnw3YF/X4/jdW0b1am80= kmodules.xyz/cert-manager-util v0.29.0 h1:HjEaEsv66xeMKiI8LwfTRls0z9V9L0qEvPBdOcX/CsI= kmodules.xyz/cert-manager-util v0.29.0/go.mod h1:0YuaPwp+P3Pw7Spxf6eDhOCMDDNXfNV2xIuxIexT1QU= -kmodules.xyz/client-go v0.30.17 h1:Ec22XIkAsN8Fwd001P0EzRTsfeibIFkzkZ6oYjLe5LQ= -kmodules.xyz/client-go v0.30.17/go.mod h1:CAu+JlA8RVGtj6LQHu0Q1w2mnFUajuti49c7T1AvGdM= +kmodules.xyz/client-go v0.30.32 h1:y1qb4IJwYdkROLcc7e0UcJSDj8D2YeLsawAWHnCF+JU= +kmodules.xyz/client-go v0.30.32/go.mod h1:CAu+JlA8RVGtj6LQHu0Q1w2mnFUajuti49c7T1AvGdM= kmodules.xyz/custom-resources v0.30.0 h1:vR3CbseHMLwR4GvtcJJuRuwIV8voKqFqNii27rMcm1o= kmodules.xyz/custom-resources v0.30.0/go.mod h1:ZsTuI2mLG2s3byre7bHmpxJ9w0HDqAkRTL1+izGFI24= -kmodules.xyz/monitoring-agent-api v0.30.1 h1:OdYucfl7OblBqVhCyEcOC3HvUrOKtDh8lcMHmV58yxA= -kmodules.xyz/monitoring-agent-api v0.30.1/go.mod h1:oR3tk5O4koYar4cD9N3AjbBFr9XTwBU3sw9qD2NdNQc= +kmodules.xyz/monitoring-agent-api v0.30.2 h1:sAgz5P5EXZqhlj1NzJ+QltAgeIx5bGSMj+aYy2EiKaw= +kmodules.xyz/monitoring-agent-api v0.30.2/go.mod h1:BoZFPDDRB7J39CcUsSDlzgW8PQCwik4ILPleyUob+Mg= kmodules.xyz/objectstore-api v0.29.1 h1:uUsjf8KU0w4LYowSEOnl0AbHT3hsHIu1wNLHqGe1o6s= kmodules.xyz/objectstore-api v0.29.1/go.mod h1:xG+5awH1SXYKxwN/+k1FEQvzixd5tgNqEN/1LEiB2FE= kmodules.xyz/offshoot-api v0.30.1 h1:TrulAYO+oBsXe9sZZGTmNWIuI8qD2izMpgcTSPvgAmI= kmodules.xyz/offshoot-api v0.30.1/go.mod h1:T3mpjR6fui0QzOcmQvIuANytW48fe9ytmy/1cgx6D4g= 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.15 h1:EUPN26+tBa8rD2n6lpCMqytla24TOgPoNvx782WbKSw= -kmodules.xyz/resource-metadata v0.18.15/go.mod h1:Q02Xh75qc9MB2rdeo1wbpBn4WCXwoDBxLtonxz57Dng= -kubedb.dev/apimachinery v0.48.0 h1:gMGqkBRs81wbmGPQIqMGY/MztKg4MYjZ39d9F656V2c= -kubedb.dev/apimachinery v0.48.0/go.mod h1:TeZW+vt9OLf0Jyb/AZktvOOzf3NV+rFhHDN/zTh1EjA= -kubedb.dev/db-client-go v0.3.0 h1:NJByCx4ugh+SY34A2OLnqCfG+6dB/N8A/wcJDz7zkoM= -kubedb.dev/db-client-go v0.3.0/go.mod h1:DSZEAC/yeT2ctjTX5h8rHnMbEKvmRaico4sSdoW3LqI= +kmodules.xyz/resource-metadata v0.20.0 h1:3nb/K0F6N2s0BOMrHC6+moK60q0Jqvac8UjWI3kW0kY= +kmodules.xyz/resource-metadata v0.20.0/go.mod h1:yPqwR6xSTXuIgOjR6kNPDDJUe++sS+h7gtCmevJR60g= +kubedb.dev/apimachinery v0.49.0-rc.0 h1:7WLTSSoXEb8trDFW5AcDxfYJxX7j5TQU2OYijLgAfTc= +kubedb.dev/apimachinery v0.49.0-rc.0/go.mod h1:l3sl+LZXvllja1xbZTgmzHNY7hQGK/uLXjkSothH5ns= +kubedb.dev/db-client-go v0.4.0-rc.0 h1:v3vSPoJwSpfJKCli/dOEKsmw04X33/9hECxVFxiXCZM= +kubedb.dev/db-client-go v0.4.0-rc.0/go.mod h1:zEywYYXmobvmihtfRlBq7klVoW7DrPtuVavM/1Tji/s= kubeops.dev/petset v0.0.7 h1:F77BTRfUqRVO7kNc8q2oFSSviDmYBqni/osXqu0kgJ4= kubeops.dev/petset v0.0.7/go.mod h1:lt0SZV4ohRy7RiwLNUnMoauG4lCbcRbSqhMg20rdUQg= kubeops.dev/sidekick v0.0.8 h1:A9OEsy4qmc2sfR1DDHvkfF/LOl/oBUtqSpgBIjvzlRs= diff --git a/vendor/github.com/cert-manager/cert-manager/LICENSES b/vendor/github.com/cert-manager/cert-manager/LICENSES index 803503815..a1645b381 100644 --- a/vendor/github.com/cert-manager/cert-manager/LICENSES +++ b/vendor/github.com/cert-manager/cert-manager/LICENSES @@ -150,7 +150,7 @@ google.golang.org/api,https://github.com/googleapis/google-api-go-client/blob/v0 google.golang.org/api/internal/third_party/uritemplates,https://github.com/googleapis/google-api-go-client/blob/v0.181.0/internal/third_party/uritemplates/LICENSE,BSD-3-Clause google.golang.org/genproto/googleapis/api,https://github.com/googleapis/go-genproto/blob/fc5f0ca64291/googleapis/api/LICENSE,Apache-2.0 google.golang.org/genproto/googleapis/rpc,https://github.com/googleapis/go-genproto/blob/fc5f0ca64291/googleapis/rpc/LICENSE,Apache-2.0 -google.golang.org/grpc,https://github.com/grpc/grpc-go/blob/v1.64.0/LICENSE,Apache-2.0 +google.golang.org/grpc,https://github.com/grpc/grpc-go/blob/v1.64.1/LICENSE,Apache-2.0 google.golang.org/protobuf,https://github.com/protocolbuffers/protobuf-go/blob/v1.34.1/LICENSE,BSD-3-Clause gopkg.in/inf.v0,https://github.com/go-inf/inf/blob/v0.9.1/LICENSE,BSD-3-Clause gopkg.in/ini.v1,https://github.com/go-ini/ini/blob/v1.67.0/LICENSE,Apache-2.0 diff --git a/vendor/kmodules.xyz/client-go/Makefile b/vendor/kmodules.xyz/client-go/Makefile index 4ff50bd7c..9c7cb06c3 100644 --- a/vendor/kmodules.xyz/client-go/Makefile +++ b/vendor/kmodules.xyz/client-go/Makefile @@ -56,7 +56,7 @@ OS := $(if $(GOOS),$(GOOS),$(shell go env GOOS)) ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH)) BASEIMAGE_PROD ?= gcr.io/distroless/static-debian12 -BASEIMAGE_DBG ?= debian:bookworm +BASEIMAGE_DBG ?= debian:12 GO_VERSION ?= 1.23 BUILD_IMAGE ?= ghcr.io/appscode/golang-dev:$(GO_VERSION) diff --git a/vendor/kmodules.xyz/client-go/api/v1/certificates.go b/vendor/kmodules.xyz/client-go/api/v1/certificates.go index c72d55df9..a6ca4f774 100644 --- a/vendor/kmodules.xyz/client-go/api/v1/certificates.go +++ b/vendor/kmodules.xyz/client-go/api/v1/certificates.go @@ -59,6 +59,10 @@ type CertificateSpec struct { Duration *metav1.Duration `json:"duration,omitempty" protobuf:"bytes,5,opt,name=duration"` // Certificate renew before expiration duration + // + // Deprecated use `ReconfigureTLS` type OpsRequest instead. + // + // +deprecated // +optional RenewBefore *metav1.Duration `json:"renewBefore,omitempty" protobuf:"bytes,6,opt,name=renewBefore"` diff --git a/vendor/kmodules.xyz/client-go/api/v1/cluster.go b/vendor/kmodules.xyz/client-go/api/v1/cluster.go index 5977959e5..ca9579cff 100644 --- a/vendor/kmodules.xyz/client-go/api/v1/cluster.go +++ b/vendor/kmodules.xyz/client-go/api/v1/cluster.go @@ -24,23 +24,21 @@ import ( "strings" ) -// +kubebuilder:validation:Enum=Aws;Azure;DigitalOcean;GoogleCloud;Linode;Packet;Scaleway;Vultr;BareMetal;KIND;Generic;Private +// +kubebuilder:validation:Enum=AKS;DigitalOcean;EKS;Exoscale;Generic;GKE;Linode;Packet;Rancher;Scaleway;Vultr type HostingProvider string const ( - HostingProviderAWS HostingProvider = "Aws" - HostingProviderAzure HostingProvider = "Azure" + HostingProviderAKS HostingProvider = "AKS" HostingProviderDigitalOcean HostingProvider = "DigitalOcean" - HostingProviderGoogleCloud HostingProvider = "GoogleCloud" + HostingProviderEKS HostingProvider = "EKS" HostingProviderExoscale HostingProvider = "Exoscale" + HostingProviderGeneric HostingProvider = "Generic" + HostingProviderGKE HostingProvider = "GKE" HostingProviderLinode HostingProvider = "Linode" HostingProviderPacket HostingProvider = "Packet" + HostingProviderRancher HostingProvider = "Rancher" HostingProviderScaleway HostingProvider = "Scaleway" HostingProviderVultr HostingProvider = "Vultr" - HostingProviderBareMetal HostingProvider = "BareMetal" - HostingProviderKIND HostingProvider = "KIND" - HostingProviderGeneric HostingProvider = "Generic" - HostingProviderPrivate HostingProvider = "Private" ) const ( @@ -49,22 +47,34 @@ const ( ClusterNameKey string = "cluster.appscode.com/name" ClusterDisplayNameKey string = "cluster.appscode.com/display-name" ClusterProviderNameKey string = "cluster.appscode.com/provider" + + ClientOrgKey string = "ace.appscode.com/client-org" + ClientKeyPrefix string = "client.ace.appscode.com/" ) type ClusterMetadata struct { - UID string `json:"uid" protobuf:"bytes,1,opt,name=uid"` - Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"` - DisplayName string `json:"displayName,omitempty" protobuf:"bytes,3,opt,name=displayName"` - Provider HostingProvider `json:"provider,omitempty" protobuf:"bytes,4,opt,name=provider,casttype=HostingProvider"` - OwnerID string `json:"ownerID,omitempty"` - OwnerType string `json:"ownerType,omitempty"` - APIEndpoint string `json:"apiEndpoint,omitempty"` - CABundle string `json:"caBundle,omitempty"` + UID string `json:"uid" protobuf:"bytes,1,opt,name=uid"` + Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"` + DisplayName string `json:"displayName,omitempty" protobuf:"bytes,3,opt,name=displayName"` + Provider HostingProvider `json:"provider,omitempty" protobuf:"bytes,4,opt,name=provider,casttype=HostingProvider"` + OwnerID string `json:"ownerID,omitempty" protobuf:"bytes,5,opt,name=ownerID"` + OwnerType string `json:"ownerType,omitempty" protobuf:"bytes,6,opt,name=ownerType"` + APIEndpoint string `json:"apiEndpoint,omitempty" protobuf:"bytes,7,opt,name=apiEndpoint"` + CABundle string `json:"caBundle,omitempty" protobuf:"bytes,8,opt,name=caBundle"` + ManagerID string `json:"managerID,omitempty" protobuf:"bytes,9,opt,name=managerID"` + HubClusterID string `json:"hubClusterID,omitempty" protobuf:"bytes,10,opt,name=hubClusterID"` +} + +func (md ClusterMetadata) Manager() string { + if md.ManagerID != "" && md.ManagerID != "0" { + return md.ManagerID + } + return md.OwnerID } func (md ClusterMetadata) State() string { hasher := hmac.New(sha256.New, []byte(md.UID)) - state := fmt.Sprintf("%s,%s", md.APIEndpoint, md.OwnerID) + state := fmt.Sprintf("%s,%s", md.APIEndpoint, md.Manager()) hasher.Write([]byte(state)) return base64.URLEncoding.EncodeToString(hasher.Sum(nil)) } @@ -153,27 +163,26 @@ func (cm ClusterManager) String() string { } type CAPIClusterInfo struct { - Provider CAPIProvider `json:"provider"` - Namespace string `json:"namespace"` - ClusterName string `json:"clusterName"` + Provider CAPIProvider `json:"provider" protobuf:"bytes,1,opt,name=provider,casttype=CAPIProvider"` + Namespace string `json:"namespace" protobuf:"bytes,2,opt,name=namespace"` + ClusterName string `json:"clusterName" protobuf:"bytes,3,opt,name=clusterName"` } // ClusterInfo used in ace-installer type ClusterInfo struct { - UID string `json:"uid"` - Name string `json:"name"` - ClusterManagers []string `json:"clusterManagers"` + UID string `json:"uid" protobuf:"bytes,1,opt,name=uid"` + Name string `json:"name" protobuf:"bytes,2,opt,name=name"` + ClusterManagers []string `json:"clusterManagers" protobuf:"bytes,3,rep,name=clusterManagers"` // +optional - CAPI CAPIClusterInfo `json:"capi"` + CAPI *CAPIClusterInfo `json:"capi" protobuf:"bytes,4,opt,name=capi"` } // +kubebuilder:validation:Enum=capa;capg;capz type CAPIProvider string const ( - CAPIProviderUnknown CAPIProvider = "" - CAPIProviderCAPA CAPIProvider = "capa" - CAPIProviderCAPG CAPIProvider = "capg" - CAPIProviderCAPZ CAPIProvider = "capz" - CAPIProviderCAPH CAPIProvider = "caph" + CAPIProviderCAPA CAPIProvider = "capa" + CAPIProviderCAPG CAPIProvider = "capg" + CAPIProviderCAPZ CAPIProvider = "capz" + CAPIProviderCAPH CAPIProvider = "caph" ) diff --git a/vendor/kmodules.xyz/client-go/api/v1/generated.pb.go b/vendor/kmodules.xyz/client-go/api/v1/generated.pb.go index afb785759..f1f0d5954 100644 --- a/vendor/kmodules.xyz/client-go/api/v1/generated.pb.go +++ b/vendor/kmodules.xyz/client-go/api/v1/generated.pb.go @@ -44,10 +44,38 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +func (m *CAPIClusterInfo) Reset() { *m = CAPIClusterInfo{} } +func (*CAPIClusterInfo) ProtoMessage() {} +func (*CAPIClusterInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_af8e7a11c7a1ccd9, []int{0} +} +func (m *CAPIClusterInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CAPIClusterInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *CAPIClusterInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CAPIClusterInfo.Merge(m, src) +} +func (m *CAPIClusterInfo) XXX_Size() int { + return m.Size() +} +func (m *CAPIClusterInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CAPIClusterInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CAPIClusterInfo proto.InternalMessageInfo + func (m *CertificatePrivateKey) Reset() { *m = CertificatePrivateKey{} } func (*CertificatePrivateKey) ProtoMessage() {} func (*CertificatePrivateKey) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{0} + return fileDescriptor_af8e7a11c7a1ccd9, []int{1} } func (m *CertificatePrivateKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -75,7 +103,7 @@ var xxx_messageInfo_CertificatePrivateKey proto.InternalMessageInfo func (m *CertificateSpec) Reset() { *m = CertificateSpec{} } func (*CertificateSpec) ProtoMessage() {} func (*CertificateSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{1} + return fileDescriptor_af8e7a11c7a1ccd9, []int{2} } func (m *CertificateSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -100,10 +128,38 @@ func (m *CertificateSpec) XXX_DiscardUnknown() { var xxx_messageInfo_CertificateSpec proto.InternalMessageInfo +func (m *ClusterInfo) Reset() { *m = ClusterInfo{} } +func (*ClusterInfo) ProtoMessage() {} +func (*ClusterInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_af8e7a11c7a1ccd9, []int{3} +} +func (m *ClusterInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClusterInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ClusterInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterInfo.Merge(m, src) +} +func (m *ClusterInfo) XXX_Size() int { + return m.Size() +} +func (m *ClusterInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterInfo proto.InternalMessageInfo + func (m *ClusterMetadata) Reset() { *m = ClusterMetadata{} } func (*ClusterMetadata) ProtoMessage() {} func (*ClusterMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{2} + return fileDescriptor_af8e7a11c7a1ccd9, []int{4} } func (m *ClusterMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -131,7 +187,7 @@ var xxx_messageInfo_ClusterMetadata proto.InternalMessageInfo func (m *Condition) Reset() { *m = Condition{} } func (*Condition) ProtoMessage() {} func (*Condition) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{3} + return fileDescriptor_af8e7a11c7a1ccd9, []int{5} } func (m *Condition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -159,7 +215,7 @@ var xxx_messageInfo_Condition proto.InternalMessageInfo func (m *HealthCheckSpec) Reset() { *m = HealthCheckSpec{} } func (*HealthCheckSpec) ProtoMessage() {} func (*HealthCheckSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{4} + return fileDescriptor_af8e7a11c7a1ccd9, []int{6} } func (m *HealthCheckSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -187,7 +243,7 @@ var xxx_messageInfo_HealthCheckSpec proto.InternalMessageInfo func (m *ImageInfo) Reset() { *m = ImageInfo{} } func (*ImageInfo) ProtoMessage() {} func (*ImageInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{5} + return fileDescriptor_af8e7a11c7a1ccd9, []int{7} } func (m *ImageInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -215,7 +271,7 @@ var xxx_messageInfo_ImageInfo proto.InternalMessageInfo func (m *Lineage) Reset() { *m = Lineage{} } func (*Lineage) ProtoMessage() {} func (*Lineage) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{6} + return fileDescriptor_af8e7a11c7a1ccd9, []int{8} } func (m *Lineage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -243,7 +299,7 @@ var xxx_messageInfo_Lineage proto.InternalMessageInfo func (m *ObjectID) Reset() { *m = ObjectID{} } func (*ObjectID) ProtoMessage() {} func (*ObjectID) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{7} + return fileDescriptor_af8e7a11c7a1ccd9, []int{9} } func (m *ObjectID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -271,7 +327,7 @@ var xxx_messageInfo_ObjectID proto.InternalMessageInfo func (m *ObjectInfo) Reset() { *m = ObjectInfo{} } func (*ObjectInfo) ProtoMessage() {} func (*ObjectInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{8} + return fileDescriptor_af8e7a11c7a1ccd9, []int{10} } func (m *ObjectInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -299,7 +355,7 @@ var xxx_messageInfo_ObjectInfo proto.InternalMessageInfo func (m *ObjectReference) Reset() { *m = ObjectReference{} } func (*ObjectReference) ProtoMessage() {} func (*ObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{9} + return fileDescriptor_af8e7a11c7a1ccd9, []int{11} } func (m *ObjectReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -327,7 +383,7 @@ var xxx_messageInfo_ObjectReference proto.InternalMessageInfo func (m *PullCredentials) Reset() { *m = PullCredentials{} } func (*PullCredentials) ProtoMessage() {} func (*PullCredentials) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{10} + return fileDescriptor_af8e7a11c7a1ccd9, []int{12} } func (m *PullCredentials) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -355,7 +411,7 @@ var xxx_messageInfo_PullCredentials proto.InternalMessageInfo func (m *ReadonlyHealthCheckSpec) Reset() { *m = ReadonlyHealthCheckSpec{} } func (*ReadonlyHealthCheckSpec) ProtoMessage() {} func (*ReadonlyHealthCheckSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{11} + return fileDescriptor_af8e7a11c7a1ccd9, []int{13} } func (m *ReadonlyHealthCheckSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -383,7 +439,7 @@ var xxx_messageInfo_ReadonlyHealthCheckSpec proto.InternalMessageInfo func (m *ResourceID) Reset() { *m = ResourceID{} } func (*ResourceID) ProtoMessage() {} func (*ResourceID) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{12} + return fileDescriptor_af8e7a11c7a1ccd9, []int{14} } func (m *ResourceID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -411,7 +467,7 @@ var xxx_messageInfo_ResourceID proto.InternalMessageInfo func (m *TLSConfig) Reset() { *m = TLSConfig{} } func (*TLSConfig) ProtoMessage() {} func (*TLSConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{13} + return fileDescriptor_af8e7a11c7a1ccd9, []int{15} } func (m *TLSConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -439,7 +495,7 @@ var xxx_messageInfo_TLSConfig proto.InternalMessageInfo func (m *TimeOfDay) Reset() { *m = TimeOfDay{} } func (*TimeOfDay) ProtoMessage() {} func (*TimeOfDay) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{14} + return fileDescriptor_af8e7a11c7a1ccd9, []int{16} } func (m *TimeOfDay) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TimeOfDay.Unmarshal(m, b) @@ -462,7 +518,7 @@ var xxx_messageInfo_TimeOfDay proto.InternalMessageInfo func (m *TypedObjectReference) Reset() { *m = TypedObjectReference{} } func (*TypedObjectReference) ProtoMessage() {} func (*TypedObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{15} + return fileDescriptor_af8e7a11c7a1ccd9, []int{17} } func (m *TypedObjectReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -490,7 +546,7 @@ var xxx_messageInfo_TypedObjectReference proto.InternalMessageInfo func (m *X509Subject) Reset() { *m = X509Subject{} } func (*X509Subject) ProtoMessage() {} func (*X509Subject) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{16} + return fileDescriptor_af8e7a11c7a1ccd9, []int{18} } func (m *X509Subject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -516,8 +572,10 @@ func (m *X509Subject) XXX_DiscardUnknown() { var xxx_messageInfo_X509Subject proto.InternalMessageInfo func init() { + proto.RegisterType((*CAPIClusterInfo)(nil), "kmodules.xyz.client_go.api.v1.CAPIClusterInfo") proto.RegisterType((*CertificatePrivateKey)(nil), "kmodules.xyz.client_go.api.v1.CertificatePrivateKey") proto.RegisterType((*CertificateSpec)(nil), "kmodules.xyz.client_go.api.v1.CertificateSpec") + proto.RegisterType((*ClusterInfo)(nil), "kmodules.xyz.client_go.api.v1.ClusterInfo") proto.RegisterType((*ClusterMetadata)(nil), "kmodules.xyz.client_go.api.v1.ClusterMetadata") proto.RegisterType((*Condition)(nil), "kmodules.xyz.client_go.api.v1.Condition") proto.RegisterType((*HealthCheckSpec)(nil), "kmodules.xyz.client_go.api.v1.HealthCheckSpec") @@ -540,115 +598,166 @@ func init() { } var fileDescriptor_af8e7a11c7a1ccd9 = []byte{ - // 1728 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcf, 0x6f, 0x23, 0x49, - 0x15, 0x76, 0xc7, 0x4e, 0xe2, 0x2e, 0x27, 0xe3, 0x49, 0xcd, 0xa0, 0x31, 0x23, 0xc6, 0x1d, 0xbc, - 0x62, 0x94, 0x01, 0xa6, 0x4d, 0x46, 0xb3, 0xb0, 0xac, 0x84, 0x20, 0xed, 0xec, 0x66, 0xbd, 0x9b, - 0x49, 0x42, 0x39, 0xc3, 0xae, 0x16, 0x04, 0xaa, 0x74, 0x3f, 0x3b, 0x45, 0xda, 0xdd, 0xad, 0xaa, - 0x6e, 0x83, 0xf7, 0xb4, 0x47, 0xb8, 0x2d, 0x37, 0x8e, 0x3b, 0x12, 0x7f, 0x02, 0x17, 0xfe, 0x02, - 0x46, 0x9c, 0x86, 0x0b, 0xda, 0x03, 0xb2, 0x18, 0x73, 0x45, 0x5c, 0x10, 0x12, 0xca, 0x09, 0x55, - 0xf5, 0x4f, 0x3b, 0xce, 0x24, 0x8b, 0x90, 0xf6, 0xe6, 0xfe, 0xde, 0xf7, 0xbe, 0xaa, 0xae, 0x7a, - 0xbf, 0xda, 0xe8, 0xe1, 0xd9, 0xd0, 0x77, 0x22, 0x17, 0x84, 0xf9, 0xcb, 0xf1, 0x47, 0x6d, 0xdb, - 0x65, 0xe0, 0x85, 0x0f, 0x07, 0x7e, 0x9b, 0x06, 0xac, 0x3d, 0xda, 0x6e, 0x0f, 0xc0, 0x03, 0x4e, - 0x43, 0x70, 0xcc, 0x80, 0xfb, 0xa1, 0x8f, 0xef, 0x15, 0xe9, 0x66, 0x4c, 0xff, 0xd9, 0xc0, 0x37, - 0x69, 0xc0, 0xcc, 0xd1, 0xf6, 0xdd, 0x87, 0x03, 0x16, 0x9e, 0x46, 0x27, 0xa6, 0xed, 0x0f, 0xdb, - 0x03, 0x7f, 0xe0, 0xb7, 0x95, 0xd7, 0x49, 0xd4, 0x57, 0x4f, 0xea, 0x41, 0xfd, 0x8a, 0xd5, 0xee, - 0xb6, 0xce, 0xde, 0x10, 0x26, 0x8b, 0x17, 0xb3, 0x7d, 0x0e, 0x0b, 0x56, 0xbc, 0xfb, 0x38, 0xe7, - 0x0c, 0xa9, 0x7d, 0xca, 0x3c, 0xe0, 0xe3, 0x76, 0x70, 0x36, 0x90, 0x80, 0x68, 0x0f, 0x21, 0xa4, - 0x0b, 0xbc, 0x5a, 0x3f, 0x46, 0x5f, 0xea, 0x00, 0x0f, 0x59, 0x9f, 0xd9, 0x34, 0x84, 0x23, 0xce, - 0x46, 0x34, 0x84, 0xf7, 0x60, 0x8c, 0x2d, 0x54, 0x05, 0xcf, 0xf6, 0x1d, 0xe6, 0x0d, 0x1a, 0xda, - 0xa6, 0xb6, 0xa5, 0x5b, 0xf7, 0x9f, 0x4f, 0x8c, 0xd2, 0x74, 0x62, 0x54, 0xdf, 0x4a, 0xf0, 0xf3, - 0x89, 0x81, 0x73, 0x8f, 0x14, 0x25, 0x99, 0x5f, 0xeb, 0x5f, 0xcb, 0xa8, 0x5e, 0x50, 0xef, 0x05, - 0x60, 0xe3, 0xd7, 0xd0, 0x32, 0x75, 0x19, 0x15, 0x89, 0xe8, 0x7a, 0x22, 0xba, 0xbc, 0x23, 0x41, - 0x12, 0xdb, 0xf0, 0x87, 0x48, 0x67, 0x42, 0x44, 0xc0, 0x09, 0xf4, 0x1b, 0x4b, 0x9b, 0xda, 0x56, - 0xed, 0xd1, 0x43, 0x33, 0x7e, 0x3f, 0x75, 0x82, 0xf2, 0x0c, 0xcc, 0xd1, 0xb6, 0x79, 0x3c, 0x0e, - 0xc0, 0xd9, 0xf7, 0x6d, 0xea, 0x1e, 0x9e, 0xfc, 0x1c, 0xec, 0x90, 0x40, 0x1f, 0x38, 0x78, 0x36, - 0x58, 0xeb, 0xd3, 0x89, 0xa1, 0x77, 0x53, 0x0d, 0x92, 0xcb, 0xe1, 0x47, 0x08, 0x09, 0xb0, 0x39, - 0x84, 0x07, 0x74, 0x08, 0x8d, 0xb2, 0xda, 0x05, 0x4e, 0x76, 0x81, 0x7a, 0x99, 0x85, 0x14, 0x58, - 0xf8, 0x87, 0x68, 0x55, 0x44, 0x6a, 0x85, 0x46, 0x45, 0xed, 0xe6, 0xeb, 0xe6, 0x2b, 0xef, 0xd7, - 0xfc, 0xe0, 0xf5, 0x6f, 0x7d, 0xb7, 0x17, 0x7b, 0x58, 0xb5, 0xe9, 0xc4, 0x58, 0x4d, 0x1e, 0x48, - 0xaa, 0x83, 0x3f, 0x40, 0x55, 0x27, 0xe2, 0x34, 0x64, 0xbe, 0xd7, 0x58, 0x56, 0x9a, 0x66, 0xe1, - 0x0d, 0xb3, 0x1b, 0x34, 0x83, 0xb3, 0x81, 0x04, 0x84, 0x29, 0x6f, 0x50, 0x4a, 0xef, 0x26, 0x5e, - 0xd6, 0x9a, 0xbc, 0x8b, 0xf4, 0x89, 0x64, 0x6a, 0x98, 0xa2, 0x1a, 0x07, 0x0f, 0x7e, 0x61, 0x41, - 0xdf, 0xe7, 0xd0, 0x58, 0xf9, 0x9f, 0xc4, 0xeb, 0xd3, 0x89, 0x51, 0x23, 0xb9, 0x0c, 0x29, 0x6a, - 0xe2, 0x2d, 0x54, 0x75, 0x3c, 0x21, 0x8f, 0x46, 0x34, 0x56, 0x37, 0xcb, 0x5b, 0x7a, 0xb2, 0x99, - 0x83, 0x9e, 0xc2, 0x48, 0x66, 0xc5, 0xdb, 0xa8, 0xc6, 0x82, 0x1d, 0xc7, 0xe1, 0x20, 0x04, 0x88, - 0x46, 0x55, 0x91, 0x95, 0x78, 0xf7, 0x28, 0x83, 0x49, 0x91, 0x83, 0xbf, 0x82, 0x2a, 0x11, 0x67, - 0xa2, 0xa1, 0x2b, 0x6e, 0x75, 0x3a, 0x31, 0x2a, 0x4f, 0x49, 0x57, 0x10, 0x85, 0xe2, 0x37, 0xd1, - 0x0d, 0x18, 0x52, 0xe6, 0xe6, 0x9a, 0x48, 0xf1, 0xf0, 0x74, 0x62, 0xdc, 0x78, 0x6b, 0xc6, 0x42, - 0xe6, 0x98, 0xd8, 0x41, 0x28, 0xc8, 0xe2, 0xb5, 0x51, 0x53, 0x07, 0xf3, 0xf8, 0x8a, 0x9b, 0x5c, - 0x98, 0x1d, 0xd6, 0x0d, 0x19, 0x2c, 0xf9, 0x33, 0x29, 0xe8, 0xb6, 0xfe, 0xa4, 0xa1, 0x7a, 0xc7, - 0x8d, 0x44, 0x08, 0xfc, 0x09, 0x84, 0xd4, 0xa1, 0x21, 0xc5, 0xf7, 0x50, 0x39, 0x62, 0x4e, 0x12, - 0xf3, 0xb5, 0x24, 0xda, 0xca, 0x4f, 0xbb, 0xbb, 0x44, 0xe2, 0x78, 0x13, 0x55, 0x3c, 0x19, 0x8d, - 0x4b, 0xca, 0xbe, 0x96, 0xd8, 0x2b, 0x2a, 0x0e, 0x95, 0x05, 0xbf, 0x8e, 0x6a, 0x0e, 0x13, 0x81, - 0x4b, 0xc7, 0x85, 0xb0, 0xbd, 0x95, 0x10, 0x6b, 0xbb, 0xb9, 0x89, 0x14, 0x79, 0xf8, 0xfb, 0xa8, - 0x1a, 0x70, 0x7f, 0xc4, 0x1c, 0xe0, 0x2a, 0x72, 0x75, 0xeb, 0xb5, 0x34, 0x8b, 0x8f, 0x12, 0xfc, - 0x7c, 0x62, 0xd4, 0xdf, 0xf1, 0x45, 0xc8, 0xbc, 0x41, 0x0a, 0x91, 0xcc, 0xa9, 0xf5, 0x9f, 0x32, - 0xd2, 0x3b, 0xbe, 0xe7, 0x30, 0x15, 0x5a, 0xdb, 0xa8, 0x12, 0x8e, 0x03, 0x48, 0xa4, 0xee, 0xa5, - 0xfb, 0x94, 0x69, 0x78, 0x3e, 0x31, 0xd6, 0x33, 0xa2, 0x04, 0x88, 0xa2, 0xe2, 0x9f, 0xa2, 0x15, - 0x11, 0xd2, 0x30, 0x12, 0x2a, 0xca, 0x75, 0xeb, 0xed, 0xc4, 0x69, 0xa5, 0xa7, 0xd0, 0xf3, 0x89, - 0x71, 0xad, 0xc2, 0x65, 0x66, 0xda, 0xb1, 0x1f, 0x49, 0x54, 0xf1, 0xbb, 0x08, 0xfb, 0x27, 0x02, - 0xf8, 0x08, 0x9c, 0xbd, 0xb8, 0xb6, 0xc9, 0x8c, 0x92, 0xe7, 0x53, 0xb6, 0xee, 0x26, 0x6b, 0xe1, - 0xc3, 0x0b, 0x0c, 0xb2, 0xc0, 0x0b, 0xef, 0xa0, 0xaa, 0x80, 0x11, 0x70, 0x16, 0x8e, 0x55, 0xda, - 0xe8, 0xd6, 0xd7, 0xd2, 0xd3, 0xea, 0x25, 0xf8, 0xf9, 0xc4, 0xd8, 0xc8, 0xb7, 0x92, 0x80, 0x24, - 0x73, 0xc3, 0x23, 0x84, 0x5d, 0x2a, 0xc2, 0x63, 0x4e, 0x3d, 0x11, 0x1f, 0x05, 0x1b, 0x42, 0x63, - 0x35, 0x2d, 0x1a, 0xd7, 0xc9, 0x41, 0xe9, 0x91, 0x6f, 0x7d, 0xff, 0x82, 0x1a, 0x59, 0xb0, 0x02, - 0xbe, 0x8f, 0x56, 0x38, 0x50, 0xe1, 0x7b, 0x8d, 0xaa, 0xda, 0xf8, 0x8d, 0xf4, 0x98, 0x89, 0x42, - 0x49, 0x62, 0xc5, 0x0f, 0xd0, 0xea, 0x10, 0x84, 0xa0, 0x03, 0x68, 0xe8, 0x8a, 0x58, 0x4f, 0x88, - 0xab, 0x4f, 0x62, 0x98, 0xa4, 0xf6, 0xd6, 0x3f, 0x35, 0x54, 0x7f, 0x07, 0xa8, 0x1b, 0x9e, 0x76, - 0x4e, 0xc1, 0x3e, 0x53, 0xd5, 0xfb, 0x37, 0x1a, 0xba, 0xc3, 0x81, 0x3a, 0xbe, 0xe7, 0x8e, 0xe7, - 0x6c, 0x2a, 0xb8, 0x6b, 0x8f, 0xbe, 0x7d, 0x45, 0x3e, 0x91, 0xc5, 0xde, 0x96, 0x91, 0xec, 0xe3, - 0xce, 0x25, 0x04, 0x72, 0xd9, 0xba, 0x78, 0x0f, 0x6d, 0x38, 0x4c, 0xd0, 0x13, 0x17, 0xde, 0xe7, - 0x2c, 0x04, 0x65, 0x50, 0x99, 0x54, 0xb5, 0xbe, 0x9c, 0x88, 0x6e, 0xec, 0xce, 0x13, 0xc8, 0x45, - 0x9f, 0xd6, 0xbf, 0x35, 0xa4, 0x77, 0x87, 0x74, 0x00, 0x5d, 0xaf, 0xef, 0xcb, 0x46, 0xc5, 0xe4, - 0xc3, 0x7c, 0xa3, 0x52, 0x0c, 0x12, 0xdb, 0xf0, 0x31, 0xaa, 0xba, 0xcc, 0x03, 0x3a, 0x00, 0xd1, - 0x58, 0xda, 0x2c, 0x6f, 0xd5, 0x1e, 0xdd, 0xbf, 0xe2, 0xfd, 0xf7, 0x63, 0xba, 0x75, 0x33, 0x8d, - 0xac, 0x04, 0x10, 0x24, 0x53, 0xc2, 0x43, 0x54, 0x0f, 0x22, 0xd7, 0xed, 0x70, 0x70, 0xc0, 0x0b, - 0x19, 0x75, 0x85, 0x0a, 0x68, 0x55, 0xc5, 0x5f, 0x29, 0x7e, 0x34, 0xeb, 0x65, 0xdd, 0x9a, 0x4e, - 0x8c, 0xfa, 0x1c, 0x48, 0xe6, 0xb5, 0x5b, 0xbf, 0xd6, 0xd0, 0x6a, 0xb2, 0x0b, 0x7c, 0x80, 0x96, - 0xed, 0x53, 0xca, 0xbc, 0x86, 0xa6, 0xde, 0xe6, 0xc1, 0x15, 0x0b, 0xc6, 0x6d, 0x57, 0x9e, 0x57, - 0x7e, 0x40, 0x1d, 0xe9, 0x4f, 0x62, 0x19, 0x6c, 0x22, 0x64, 0xfb, 0x5e, 0x48, 0x65, 0xac, 0xc7, - 0x47, 0xa4, 0xc7, 0xc5, 0xb3, 0x93, 0xa1, 0xa4, 0xc0, 0x68, 0xfd, 0x4e, 0x43, 0xd5, 0x44, 0x74, - 0x57, 0x5e, 0xc1, 0x80, 0xfb, 0x51, 0x30, 0x7f, 0x05, 0x7b, 0x12, 0x24, 0xb1, 0x4d, 0xd6, 0xce, - 0x33, 0xe6, 0x39, 0xf3, 0xb5, 0xf3, 0x3d, 0xe6, 0x39, 0x44, 0x59, 0x70, 0x1b, 0xe9, 0xb2, 0x86, - 0x8a, 0x80, 0xda, 0x69, 0xe5, 0xdc, 0x48, 0x68, 0xfa, 0x41, 0x6a, 0x20, 0x39, 0x27, 0x2b, 0xc7, - 0x95, 0xcb, 0xca, 0x71, 0xeb, 0xf7, 0x1a, 0x42, 0xf9, 0xbb, 0xe3, 0xf7, 0x51, 0x95, 0x83, 0xf0, - 0x23, 0x6e, 0x43, 0x92, 0x06, 0x0f, 0xae, 0x4c, 0x83, 0x98, 0xde, 0xdd, 0xcd, 0x23, 0x21, 0xc5, - 0x48, 0x26, 0x86, 0x9f, 0xa0, 0x32, 0xcf, 0x46, 0x20, 0xf3, 0x5a, 0x97, 0x91, 0xcf, 0x40, 0x59, - 0x9f, 0x91, 0x13, 0x90, 0xd4, 0x69, 0x39, 0xa8, 0x3e, 0x47, 0x9a, 0x3d, 0x1c, 0xed, 0x73, 0x1c, - 0xce, 0xa5, 0xbd, 0xaa, 0xf5, 0x0f, 0x0d, 0xcd, 0x07, 0xdd, 0xe7, 0x5f, 0xe6, 0x5d, 0x84, 0x65, - 0x7d, 0x66, 0x36, 0xec, 0xd8, 0xb6, 0x1f, 0x79, 0xf1, 0xb8, 0x16, 0x2f, 0x9a, 0x15, 0xc7, 0xde, - 0x05, 0x06, 0x59, 0xe0, 0x85, 0x7f, 0x92, 0x8e, 0x7c, 0x04, 0xfa, 0x32, 0x95, 0x64, 0x64, 0x6f, - 0x2d, 0x9a, 0x27, 0x17, 0x8e, 0x92, 0x73, 0xc3, 0xa1, 0xd4, 0x20, 0x05, 0xbd, 0xd6, 0x0b, 0x0d, - 0x5d, 0x56, 0xb4, 0xf0, 0x77, 0xd0, 0x7a, 0x00, 0x9c, 0xf9, 0x4e, 0x0f, 0x6c, 0xdf, 0x73, 0xe2, - 0xa9, 0x77, 0xd9, 0xda, 0x98, 0x4e, 0x8c, 0xf5, 0xa3, 0xa2, 0x81, 0xcc, 0xf2, 0xe4, 0x98, 0x13, - 0xb2, 0x21, 0xf8, 0x51, 0x98, 0x7a, 0x2e, 0x29, 0x4f, 0x35, 0xe6, 0x1c, 0xcf, 0x58, 0xc8, 0x1c, - 0x13, 0xff, 0x00, 0xdd, 0xec, 0x53, 0xe6, 0x46, 0x1c, 0x8e, 0x4f, 0x39, 0x88, 0x53, 0xdf, 0x75, - 0x54, 0xd8, 0x2f, 0x5b, 0xb7, 0xa7, 0x13, 0xe3, 0xe6, 0xdb, 0x73, 0x36, 0x72, 0x81, 0xdd, 0xfa, - 0x8b, 0x86, 0x50, 0x1e, 0xa1, 0xd7, 0xcb, 0xc3, 0x07, 0x68, 0x75, 0x04, 0x5c, 0xc8, 0xee, 0xbb, - 0x34, 0xdb, 0x59, 0x7e, 0x14, 0xc3, 0x24, 0xb5, 0x67, 0x21, 0x54, 0xbe, 0x74, 0xdc, 0x49, 0x93, - 0xba, 0x72, 0x69, 0x52, 0x3f, 0x46, 0xcb, 0xc2, 0xf6, 0x03, 0x48, 0xc6, 0x8a, 0x66, 0xba, 0xa7, - 0x9e, 0x04, 0xe5, 0x30, 0x92, 0xee, 0x5f, 0x01, 0x24, 0x26, 0xb7, 0xfe, 0xac, 0x21, 0xfd, 0x78, - 0xbf, 0xd7, 0xf1, 0xbd, 0x3e, 0x1b, 0xcc, 0x7e, 0x66, 0x68, 0xff, 0xdf, 0xcf, 0x8c, 0x53, 0xb4, - 0x66, 0xe7, 0xa3, 0x63, 0xda, 0x1d, 0xcc, 0xeb, 0x4f, 0x9b, 0xaa, 0x2b, 0xde, 0x4e, 0x5e, 0x6b, - 0xad, 0x60, 0x10, 0x64, 0x46, 0xb9, 0xf5, 0x55, 0xa4, 0xcb, 0x80, 0x38, 0xec, 0xef, 0xd2, 0xf1, - 0x9b, 0xb7, 0x7f, 0xfb, 0xa9, 0x51, 0xfa, 0xd5, 0x33, 0xa3, 0xf4, 0xc9, 0x33, 0xa3, 0xf4, 0xe9, - 0x33, 0xa3, 0xf4, 0xf1, 0x5f, 0x37, 0x4b, 0xad, 0x3f, 0x68, 0xe8, 0xb6, 0x7a, 0x89, 0xf9, 0xec, - 0xff, 0x26, 0xaa, 0xd2, 0x80, 0xed, 0x15, 0x2e, 0x37, 0xab, 0x46, 0x3b, 0x47, 0xdd, 0xf8, 0x7e, - 0x33, 0xc6, 0x17, 0x53, 0x6a, 0xff, 0x58, 0x46, 0xb5, 0xc2, 0xe7, 0x94, 0x4c, 0x29, 0x9f, 0x0f, - 0xa8, 0xc7, 0x3e, 0x52, 0x43, 0x9b, 0x50, 0x9d, 0x4a, 0x8f, 0x53, 0xea, 0xb0, 0x68, 0x20, 0xb3, - 0x3c, 0xfc, 0x0d, 0xa4, 0xab, 0x92, 0xc0, 0x19, 0xa4, 0x9d, 0x48, 0x5d, 0x5f, 0x27, 0x05, 0x49, - 0x6e, 0xc7, 0x5d, 0x74, 0xab, 0xe8, 0x4d, 0xdd, 0xa7, 0x1e, 0x0b, 0xe3, 0xda, 0xa1, 0x5b, 0x77, - 0xa6, 0x13, 0xe3, 0xd6, 0xe1, 0x45, 0x33, 0x59, 0xe4, 0x23, 0x5b, 0xa0, 0x2b, 0x63, 0x87, 0x85, - 0x72, 0xe1, 0x4a, 0xde, 0x02, 0xf7, 0x33, 0x94, 0x14, 0x18, 0x72, 0x9f, 0x6a, 0xfc, 0xf6, 0x6c, - 0x90, 0x43, 0x73, 0xb6, 0xcf, 0xa3, 0x14, 0x24, 0xb9, 0x1d, 0x7f, 0x0f, 0xd5, 0x45, 0xc8, 0x01, - 0xc2, 0xfc, 0x7b, 0x68, 0x45, 0xb9, 0xa8, 0xd6, 0xdf, 0x9b, 0x35, 0x91, 0x79, 0xae, 0xfc, 0x3c, - 0x0b, 0x7c, 0x11, 0x52, 0xb7, 0xe3, 0x3b, 0xd9, 0xb7, 0x9c, 0xfa, 0x3c, 0x3b, 0xca, 0x61, 0x52, - 0xe4, 0xe0, 0x37, 0xd0, 0x9a, 0x00, 0xce, 0xa8, 0x7b, 0x10, 0x0d, 0x4f, 0x80, 0x27, 0xf3, 0x66, - 0x16, 0xa8, 0xbd, 0x82, 0x8d, 0xcc, 0x30, 0xad, 0xce, 0xf3, 0x97, 0xcd, 0xd2, 0x8b, 0x97, 0xcd, - 0xd2, 0x67, 0x2f, 0x9b, 0xa5, 0x8f, 0xa7, 0x4d, 0xed, 0xf9, 0xb4, 0xa9, 0xbd, 0x98, 0x36, 0xb5, - 0xcf, 0xa6, 0x4d, 0xed, 0x6f, 0xd3, 0xa6, 0xf6, 0xc9, 0xdf, 0x9b, 0xa5, 0x0f, 0xef, 0xbd, 0xf2, - 0x8f, 0x96, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x6b, 0xda, 0x16, 0x88, 0x11, 0x00, 0x00, + // 1921 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x8f, 0x1b, 0x49, + 0x15, 0x77, 0xc7, 0x9e, 0x8c, 0xfd, 0x3c, 0x89, 0x93, 0x4a, 0x50, 0x4c, 0x44, 0xdc, 0x43, 0x47, + 0x44, 0x13, 0xd8, 0xf4, 0x30, 0xa3, 0x04, 0x96, 0x15, 0x08, 0xc6, 0x76, 0x36, 0xf1, 0xee, 0x24, + 0x63, 0xca, 0x13, 0x76, 0xb5, 0x20, 0x50, 0x4d, 0x77, 0xd9, 0x53, 0x4c, 0xbb, 0xbb, 0x55, 0xd5, + 0x3d, 0xcb, 0xec, 0x69, 0x8f, 0x70, 0x5b, 0x6e, 0x1c, 0x37, 0x12, 0x7f, 0x02, 0x12, 0xe2, 0x2f, + 0x20, 0xc7, 0x70, 0x41, 0x2b, 0x81, 0x2c, 0x62, 0xae, 0x88, 0x0b, 0x02, 0xa1, 0x39, 0xa1, 0xaa, + 0xae, 0xfe, 0xb0, 0xc7, 0xb3, 0x33, 0x0b, 0x48, 0x7b, 0x73, 0xbf, 0xdf, 0xef, 0xbd, 0xfa, 0x78, + 0xaf, 0xde, 0x87, 0xe1, 0xde, 0xc1, 0x38, 0x70, 0x63, 0x8f, 0x0a, 0xfb, 0x67, 0x47, 0x1f, 0xac, + 0x3b, 0x1e, 0xa3, 0x7e, 0x74, 0x6f, 0x14, 0xac, 0x93, 0x90, 0xad, 0x1f, 0x6e, 0xac, 0x8f, 0xa8, + 0x4f, 0x39, 0x89, 0xa8, 0x6b, 0x87, 0x3c, 0x88, 0x02, 0x74, 0xab, 0x48, 0xb7, 0x13, 0xfa, 0x4f, + 0x46, 0x81, 0x4d, 0x42, 0x66, 0x1f, 0x6e, 0xdc, 0xbc, 0x37, 0x62, 0xd1, 0x7e, 0xbc, 0x67, 0x3b, + 0xc1, 0x78, 0x7d, 0x14, 0x8c, 0x82, 0x75, 0xa5, 0xb5, 0x17, 0x0f, 0xd5, 0x97, 0xfa, 0x50, 0xbf, + 0x12, 0x6b, 0x37, 0xad, 0x83, 0xd7, 0x85, 0xcd, 0x92, 0xc5, 0x9c, 0x80, 0xd3, 0x05, 0x2b, 0xde, + 0xbc, 0x9f, 0x73, 0xc6, 0xc4, 0xd9, 0x67, 0x3e, 0xe5, 0x47, 0xeb, 0xe1, 0xc1, 0x48, 0x0a, 0xc4, + 0xfa, 0x98, 0x46, 0x64, 0x81, 0x96, 0xf5, 0x5b, 0x03, 0x1a, 0x9d, 0xad, 0x7e, 0xaf, 0xe3, 0xc5, + 0x22, 0xa2, 0xbc, 0xe7, 0x0f, 0x03, 0xf4, 0x6d, 0xa8, 0x86, 0x3c, 0x38, 0x64, 0x2e, 0xe5, 0x4d, + 0x63, 0xd5, 0x58, 0xab, 0xb5, 0x57, 0x5f, 0x4c, 0xcc, 0xd2, 0x74, 0x62, 0x56, 0xfb, 0x5a, 0x7e, + 0x3c, 0x31, 0x57, 0xa4, 0x5a, 0xfa, 0x8d, 0x33, 0x0d, 0xb4, 0x0e, 0x35, 0x9f, 0x8c, 0xa9, 0x08, + 0x89, 0x43, 0x9b, 0x17, 0x94, 0xfa, 0x55, 0xad, 0x5e, 0x7b, 0x9a, 0x02, 0x38, 0xe7, 0xa0, 0x07, + 0x50, 0x77, 0x92, 0xd5, 0x25, 0xdc, 0x2c, 0x2b, 0x95, 0x6b, 0x5a, 0xa5, 0xde, 0xc9, 0x21, 0x5c, + 0xe4, 0x59, 0x3f, 0x84, 0x2f, 0x74, 0x28, 0x8f, 0xd8, 0x90, 0x39, 0x24, 0xa2, 0x7d, 0xce, 0x0e, + 0x49, 0x44, 0xdf, 0xa6, 0x47, 0xa8, 0x0d, 0x55, 0xea, 0x3b, 0x81, 0xcb, 0xfc, 0x91, 0xde, 0xfe, + 0x9d, 0x74, 0xfb, 0x0f, 0xb5, 0xfc, 0x78, 0x62, 0xa2, 0x5c, 0x23, 0x95, 0xe2, 0x4c, 0xcf, 0xfa, + 0xc7, 0x12, 0x34, 0x0a, 0xd6, 0x07, 0x21, 0x75, 0xd0, 0x6d, 0x58, 0x22, 0x1e, 0x23, 0x42, 0x1b, + 0xbd, 0xa4, 0x8d, 0x2e, 0x6d, 0x49, 0x21, 0x4e, 0x30, 0xf4, 0x1e, 0xd4, 0x98, 0x10, 0x31, 0xe5, + 0x98, 0x0e, 0xd5, 0xe9, 0xeb, 0x9b, 0xf7, 0xec, 0xc4, 0x33, 0xca, 0xf7, 0xd2, 0x7b, 0xf6, 0xe1, + 0x86, 0xbd, 0x7b, 0x14, 0x52, 0x77, 0x3b, 0x70, 0x88, 0xb7, 0xb3, 0xf7, 0x53, 0xea, 0x44, 0x98, + 0x0e, 0x29, 0xa7, 0xbe, 0x43, 0xdb, 0x97, 0xe4, 0x45, 0xf5, 0x52, 0x1b, 0x38, 0x37, 0x87, 0x36, + 0x01, 0x04, 0x75, 0x38, 0x8d, 0x0a, 0xf7, 0x84, 0xf4, 0x2e, 0x60, 0x90, 0x21, 0xb8, 0xc0, 0x42, + 0xdf, 0x87, 0x65, 0x11, 0xab, 0x15, 0x9a, 0x15, 0xb5, 0x9b, 0xaf, 0xda, 0x9f, 0x1a, 0x99, 0xf6, + 0xbb, 0x0f, 0xbe, 0xfe, 0xad, 0x41, 0xa2, 0xd1, 0xae, 0x4f, 0x27, 0xe6, 0xb2, 0xfe, 0xc0, 0xa9, + 0x1d, 0xf4, 0x2e, 0x54, 0xdd, 0x98, 0x93, 0x88, 0x05, 0x7e, 0x73, 0x49, 0xd9, 0xb4, 0x0b, 0x27, + 0xcc, 0x62, 0xcf, 0x0e, 0x0f, 0x46, 0x52, 0x20, 0x6c, 0x19, 0x7b, 0xd2, 0x74, 0x57, 0x6b, 0xb5, + 0x57, 0xa4, 0x2f, 0xd2, 0x2f, 0x9c, 0x59, 0x43, 0x04, 0xea, 0x9c, 0xfa, 0xf4, 0xfd, 0x36, 0x1d, + 0x06, 0x9c, 0x36, 0x2f, 0xfe, 0x57, 0xc6, 0x1b, 0x32, 0x6a, 0x70, 0x6e, 0x06, 0x17, 0x6d, 0xa2, + 0x35, 0xa8, 0xba, 0xbe, 0x50, 0x71, 0xd8, 0x5c, 0x5e, 0x2d, 0xaf, 0xd5, 0xf4, 0x66, 0x9e, 0x0e, + 0x94, 0x0c, 0x67, 0x28, 0xda, 0x80, 0x3a, 0x0b, 0xb7, 0x5c, 0x97, 0x53, 0x21, 0xa8, 0x68, 0x56, + 0x15, 0x59, 0x19, 0xef, 0xf5, 0x33, 0x31, 0x2e, 0x72, 0xd0, 0x97, 0xa0, 0x12, 0x73, 0x26, 0x9a, + 0x35, 0xc5, 0xad, 0x4e, 0x27, 0x66, 0xe5, 0x19, 0xee, 0x09, 0xac, 0xa4, 0xe8, 0x0d, 0xb8, 0x4c, + 0xc7, 0x84, 0x79, 0xb9, 0x4d, 0x50, 0x3c, 0x34, 0x9d, 0x98, 0x97, 0x1f, 0xce, 0x20, 0x78, 0x8e, + 0x89, 0x5c, 0x80, 0x30, 0x8b, 0xd7, 0x66, 0x5d, 0x5d, 0xcc, 0xfd, 0x33, 0x3c, 0xb9, 0xf0, 0x75, + 0xb4, 0x2f, 0xcb, 0x60, 0xc9, 0xbf, 0x71, 0xc1, 0xae, 0xf5, 0x27, 0x03, 0xea, 0xc5, 0x44, 0x70, + 0x0b, 0xca, 0x31, 0x73, 0x75, 0xbc, 0xd7, 0x75, 0xa4, 0x95, 0x9f, 0xf5, 0xba, 0x58, 0xca, 0xd1, + 0x2a, 0x54, 0xe4, 0x2b, 0xd6, 0x8f, 0x7c, 0x45, 0xe3, 0x15, 0x15, 0x83, 0x0a, 0x41, 0xdf, 0x81, + 0x86, 0x7e, 0xb2, 0x4f, 0x88, 0x4f, 0x46, 0x94, 0x8b, 0x66, 0x59, 0x9d, 0xf9, 0xda, 0x74, 0x62, + 0x36, 0x3a, 0xb3, 0x10, 0x9e, 0xe7, 0xa2, 0x6d, 0xa8, 0x38, 0x24, 0x64, 0x3a, 0x72, 0xed, 0xb3, + 0xce, 0x3b, 0x9b, 0xc6, 0x92, 0xfb, 0x97, 0x42, 0xac, 0xac, 0x58, 0xff, 0x2a, 0x43, 0xb6, 0x24, + 0x8d, 0x88, 0x4b, 0x22, 0xf2, 0xbf, 0x9f, 0xf0, 0x01, 0xd4, 0x5d, 0x26, 0x42, 0x8f, 0x1c, 0x2d, + 0x4a, 0x5e, 0xdd, 0x1c, 0xc2, 0x45, 0x1e, 0xfa, 0x6e, 0x21, 0xc5, 0x56, 0x94, 0xce, 0xed, 0x05, + 0x29, 0xb6, 0xf1, 0x38, 0x10, 0x11, 0xf3, 0x47, 0x0b, 0xb2, 0xec, 0x5d, 0x58, 0x0e, 0xde, 0xf7, + 0x29, 0xef, 0x75, 0xd5, 0x1b, 0xac, 0xb5, 0x1b, 0x5a, 0x7f, 0x79, 0x27, 0x11, 0xe3, 0x14, 0x97, + 0x09, 0x59, 0xfd, 0x94, 0x29, 0x47, 0xbd, 0xa9, 0x42, 0x42, 0xde, 0x49, 0x01, 0x9c, 0x73, 0xe4, + 0x99, 0x48, 0xc8, 0x1e, 0xfa, 0x6e, 0x18, 0x30, 0x3f, 0x6a, 0x2e, 0xcf, 0x9e, 0x69, 0xab, 0xdf, + 0x4b, 0x21, 0x5c, 0xe4, 0xa1, 0xd7, 0xa0, 0xea, 0x90, 0x76, 0xec, 0xbb, 0x1e, 0x6d, 0x56, 0x95, + 0xce, 0x95, 0xf4, 0x4c, 0x9d, 0xad, 0x44, 0x8e, 0x33, 0x86, 0xdc, 0xd5, 0x38, 0xf1, 0x73, 0xaf, + 0xdb, 0xac, 0xcd, 0xee, 0xea, 0x49, 0x0a, 0xe0, 0x9c, 0x83, 0x5e, 0x87, 0x95, 0xfd, 0x78, 0x2f, + 0x75, 0x70, 0xb7, 0x09, 0x4a, 0xe7, 0xba, 0xd6, 0x59, 0x79, 0x5c, 0xc0, 0xf0, 0x0c, 0xd3, 0xfa, + 0x77, 0x19, 0x6a, 0x9d, 0xc0, 0x77, 0x99, 0x4a, 0x32, 0x1b, 0x50, 0x89, 0xe4, 0x4d, 0x24, 0xd7, + 0x7e, 0x2b, 0xf5, 0xa9, 0x3c, 0xf9, 0xf1, 0xc4, 0xbc, 0x94, 0x11, 0xd5, 0xad, 0x28, 0x2a, 0xfa, + 0x31, 0x5c, 0x14, 0x11, 0x89, 0x62, 0xa1, 0xef, 0xfa, 0x4d, 0xad, 0x74, 0x71, 0xa0, 0xa4, 0xc7, + 0x13, 0xf3, 0x5c, 0xc5, 0xd7, 0xce, 0x6c, 0x27, 0x7a, 0x58, 0x5b, 0x45, 0x6f, 0x01, 0x0a, 0xf6, + 0x04, 0xe5, 0x87, 0xd4, 0x7d, 0x94, 0xd4, 0x67, 0x99, 0x5b, 0x65, 0x2c, 0x95, 0xdb, 0x37, 0xf5, + 0x5a, 0x68, 0xe7, 0x04, 0x03, 0x2f, 0xd0, 0x42, 0x5b, 0x50, 0x15, 0xf4, 0x90, 0x72, 0x16, 0x1d, + 0x69, 0x67, 0x7f, 0x25, 0xf5, 0xc2, 0x40, 0xcb, 0x8f, 0x27, 0xe6, 0xd5, 0x7c, 0x2b, 0x5a, 0x88, + 0x33, 0x35, 0x74, 0x08, 0xc8, 0x23, 0x22, 0xda, 0xe5, 0xc4, 0x17, 0xc9, 0x55, 0xb0, 0x31, 0x55, + 0x61, 0xa0, 0xca, 0xc7, 0x79, 0xb2, 0xb1, 0xd4, 0xc8, 0xb7, 0xbe, 0x7d, 0xc2, 0x1a, 0x5e, 0xb0, + 0x02, 0xba, 0x03, 0x17, 0x39, 0x25, 0x22, 0xf0, 0x75, 0xf8, 0x5c, 0x4e, 0xaf, 0x19, 0x2b, 0x29, + 0xd6, 0xa8, 0x8c, 0xfd, 0x31, 0x15, 0x82, 0x8c, 0xa8, 0x0e, 0x9c, 0x2c, 0xf6, 0x9f, 0x24, 0x62, + 0x9c, 0xe2, 0xd6, 0xdf, 0x0d, 0x68, 0x3c, 0xa6, 0xc4, 0x8b, 0xf6, 0x3b, 0xfb, 0xd4, 0x39, 0x50, + 0x75, 0xfc, 0x97, 0x06, 0xdc, 0xe0, 0x94, 0xb8, 0x81, 0xef, 0x1d, 0xcd, 0x61, 0x2a, 0x11, 0xd4, + 0x37, 0xbf, 0x71, 0x46, 0xa6, 0xc1, 0x8b, 0xb5, 0xdb, 0xa6, 0xde, 0xc7, 0x8d, 0x53, 0x08, 0xf8, + 0xb4, 0x75, 0xd1, 0x23, 0xb8, 0xea, 0x32, 0x41, 0xf6, 0x3c, 0xfa, 0x0e, 0x67, 0x11, 0x55, 0x80, + 0xca, 0x3a, 0xd5, 0xf6, 0x17, 0xb5, 0xd1, 0xab, 0xdd, 0x79, 0x02, 0x3e, 0xa9, 0x63, 0xfd, 0xd3, + 0x80, 0x5a, 0x6f, 0x4c, 0x46, 0x54, 0x25, 0xf0, 0xdb, 0xb0, 0xc4, 0xe4, 0xc7, 0x7c, 0xcb, 0xa2, + 0x18, 0x38, 0xc1, 0xd0, 0x2e, 0x54, 0x3d, 0xe6, 0x53, 0x32, 0xa2, 0xa2, 0x79, 0x61, 0xb5, 0xbc, + 0x56, 0xdf, 0xbc, 0x73, 0xc6, 0xf9, 0xb7, 0x13, 0x7a, 0xfe, 0xbe, 0xb5, 0x40, 0xe0, 0xcc, 0x12, + 0x1a, 0x43, 0x23, 0x8c, 0x3d, 0xaf, 0xc3, 0xa9, 0x4b, 0xfd, 0x88, 0x11, 0x4f, 0xa8, 0x80, 0x3e, + 0x3b, 0x8d, 0xf7, 0x67, 0xb5, 0x92, 0x52, 0x31, 0x27, 0xc4, 0xf3, 0xb6, 0xad, 0x5f, 0x18, 0xb0, + 0xac, 0x77, 0x81, 0x9e, 0xc2, 0x92, 0xb3, 0x4f, 0x98, 0xdf, 0x34, 0xd4, 0x69, 0xee, 0x9e, 0xb1, + 0x60, 0xd2, 0x80, 0xa9, 0x92, 0x91, 0x5d, 0x50, 0x47, 0xea, 0xe3, 0xc4, 0x0c, 0xb2, 0x01, 0x9c, + 0xc0, 0x8f, 0x88, 0x8c, 0xf5, 0xe4, 0x8a, 0x6a, 0x49, 0x19, 0xed, 0x64, 0x52, 0x5c, 0x60, 0x58, + 0xbf, 0x36, 0xa0, 0xaa, 0x8d, 0x76, 0xa5, 0x0b, 0x46, 0x3c, 0x88, 0xc3, 0x79, 0x17, 0x3c, 0x92, + 0x42, 0x9c, 0x60, 0xb2, 0xce, 0x1c, 0x30, 0xdf, 0x9d, 0xaf, 0x33, 0x6f, 0x33, 0xdf, 0xc5, 0x0a, + 0x99, 0xed, 0xaa, 0xcb, 0xe7, 0xe8, 0xaa, 0xd3, 0xd2, 0x55, 0x39, 0xad, 0x74, 0x59, 0xbf, 0x31, + 0x00, 0xf2, 0xb3, 0xa3, 0x77, 0xa0, 0xca, 0xa9, 0x08, 0x62, 0xee, 0x50, 0xfd, 0x0c, 0xee, 0x9e, + 0xf9, 0x0c, 0x12, 0x7a, 0xaf, 0x9b, 0x47, 0x42, 0x2a, 0xc3, 0x99, 0x31, 0xf4, 0x04, 0xca, 0x3c, + 0x6b, 0x86, 0xed, 0x73, 0x39, 0x23, 0xef, 0x86, 0xb3, 0x9a, 0x2c, 0x7b, 0x61, 0x69, 0xc7, 0x72, + 0xa1, 0x31, 0x47, 0x9a, 0xbd, 0x1c, 0xe3, 0x33, 0x5c, 0xce, 0xa9, 0x75, 0xdd, 0xfa, 0x9b, 0x01, + 0xf3, 0x41, 0xf7, 0xd9, 0x97, 0x79, 0x0b, 0x90, 0xcc, 0xcf, 0xcc, 0xa1, 0x5b, 0x8e, 0x13, 0xc4, + 0x7e, 0xd2, 0xb8, 0x27, 0x8b, 0x66, 0xc9, 0x71, 0x70, 0x82, 0x81, 0x17, 0x68, 0xa1, 0x1f, 0xa5, + 0xcd, 0x3f, 0xa6, 0xc3, 0xa4, 0x8b, 0xaa, 0x6f, 0xae, 0x2d, 0x9a, 0x2c, 0x16, 0x0e, 0x15, 0x73, + 0x63, 0x82, 0xb4, 0x81, 0x0b, 0xf6, 0xac, 0x97, 0x06, 0x9c, 0x96, 0xb4, 0xd0, 0x37, 0xe1, 0x52, + 0x48, 0x39, 0x0b, 0xdc, 0x01, 0x75, 0x02, 0xdf, 0x4d, 0xe6, 0x9f, 0xa5, 0xf6, 0xd5, 0xe9, 0xc4, + 0xbc, 0xd4, 0x2f, 0x02, 0x78, 0x96, 0x27, 0x1b, 0xde, 0x88, 0x8d, 0x69, 0x10, 0x47, 0xa9, 0xe6, + 0x05, 0xa5, 0xa9, 0x1a, 0xde, 0xdd, 0x19, 0x04, 0xcf, 0x31, 0xd1, 0xf7, 0xe0, 0xca, 0x90, 0x30, + 0x2f, 0xe6, 0x74, 0x77, 0x9f, 0x53, 0xb1, 0x1f, 0x78, 0xae, 0x0a, 0xfb, 0xa5, 0xf6, 0xf5, 0xe9, + 0xc4, 0xbc, 0xf2, 0xe6, 0x1c, 0x86, 0x4f, 0xb0, 0xad, 0x3f, 0x1a, 0x00, 0x79, 0x84, 0x9e, 0xef, + 0x1d, 0xde, 0x85, 0xe5, 0x43, 0xca, 0x85, 0xac, 0xbe, 0x17, 0x66, 0x2b, 0xcb, 0x0f, 0x12, 0x31, + 0x4e, 0xf1, 0x2c, 0x84, 0xca, 0xa7, 0xb6, 0x86, 0xe9, 0xa3, 0xae, 0x9c, 0xfa, 0xa8, 0xef, 0xc3, + 0x92, 0x70, 0x82, 0x90, 0xea, 0xb6, 0xa2, 0x95, 0xee, 0x69, 0x20, 0x85, 0xb2, 0x19, 0x49, 0xf7, + 0xaf, 0x04, 0x38, 0x21, 0x5b, 0x7f, 0x30, 0xa0, 0xb6, 0xbb, 0x3d, 0xe8, 0x04, 0xfe, 0x90, 0x8d, + 0x66, 0x07, 0x4e, 0xe3, 0xff, 0x3b, 0x70, 0xee, 0xc3, 0x8a, 0x93, 0x0f, 0x11, 0x69, 0x75, 0xb0, + 0xcf, 0x3f, 0x77, 0xa8, 0xaa, 0x98, 0xb5, 0x68, 0x05, 0x40, 0xe0, 0x19, 0xcb, 0xd6, 0x97, 0xa1, + 0x26, 0x03, 0x62, 0x67, 0xd8, 0x25, 0x47, 0x6f, 0x5c, 0xff, 0xd5, 0xc7, 0x66, 0xe9, 0xe7, 0xcf, + 0xcd, 0xd2, 0x47, 0xcf, 0xcd, 0xd2, 0xc7, 0xcf, 0xcd, 0xd2, 0x87, 0x7f, 0x5e, 0x2d, 0x59, 0xbf, + 0x33, 0xe0, 0xba, 0x3a, 0xc4, 0xfc, 0xeb, 0x7f, 0x0d, 0xaa, 0x24, 0x64, 0x8f, 0x0a, 0xce, 0xcd, + 0xb2, 0xd1, 0x56, 0xbf, 0x97, 0xf8, 0x37, 0x63, 0x7c, 0x3e, 0xa9, 0xf6, 0xf7, 0x65, 0xa8, 0x17, + 0x06, 0x6b, 0xf9, 0xa4, 0x02, 0x3e, 0x22, 0x3e, 0xfb, 0x40, 0x35, 0x6d, 0x42, 0x55, 0xaa, 0x5a, + 0xf2, 0xa4, 0x76, 0x8a, 0x00, 0x9e, 0xe5, 0xa1, 0xaf, 0x41, 0x4d, 0xa5, 0x04, 0xce, 0x68, 0x5a, + 0x89, 0x94, 0xfb, 0x3a, 0xa9, 0x10, 0xe7, 0x38, 0xea, 0xc1, 0xb5, 0xa2, 0x36, 0xf1, 0x9e, 0xf9, + 0x2c, 0x4a, 0x27, 0xb0, 0x1b, 0xd3, 0x89, 0x79, 0x6d, 0xe7, 0x24, 0x8c, 0x17, 0xe9, 0xc8, 0x12, + 0xe8, 0xc9, 0xd8, 0x61, 0x91, 0x5c, 0xb8, 0x92, 0x97, 0xc0, 0xed, 0x4c, 0x8a, 0x0b, 0x0c, 0xb9, + 0x4f, 0x35, 0xaa, 0xf8, 0x0e, 0x95, 0x4d, 0x73, 0xb6, 0xcf, 0x7e, 0x2a, 0xc4, 0x39, 0x2e, 0xa7, + 0x44, 0x11, 0x71, 0x4a, 0xa3, 0x7c, 0x32, 0xbe, 0x98, 0x4f, 0x89, 0x83, 0x59, 0x08, 0xcf, 0x73, + 0xe5, 0xa0, 0x1e, 0x06, 0x22, 0x22, 0x5e, 0x27, 0x70, 0xb3, 0xa9, 0x5e, 0x0d, 0xea, 0xfd, 0x5c, + 0x8c, 0x8b, 0x1c, 0x39, 0x4b, 0x08, 0xca, 0x19, 0xf1, 0x9e, 0xc6, 0xe3, 0x3d, 0xca, 0x75, 0xbf, + 0x99, 0x05, 0xea, 0xa0, 0x80, 0xe1, 0x19, 0x66, 0xbb, 0xf3, 0xe2, 0x55, 0xab, 0xf4, 0xf2, 0x55, + 0xab, 0xf4, 0xc9, 0xab, 0x56, 0xe9, 0xc3, 0x69, 0xcb, 0x78, 0x31, 0x6d, 0x19, 0x2f, 0xa7, 0x2d, + 0xe3, 0x93, 0x69, 0xcb, 0xf8, 0xcb, 0xb4, 0x65, 0x7c, 0xf4, 0xd7, 0x56, 0xe9, 0xbd, 0x5b, 0x9f, + 0xfa, 0x67, 0xe1, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x12, 0x7e, 0x97, 0xff, 0x4c, 0x14, 0x00, + 0x00, +} + +func (m *CAPIClusterInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CAPIClusterInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CAPIClusterInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0x1a + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x12 + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func (m *CertificatePrivateKey) Marshal() (dAtA []byte, err error) { @@ -808,6 +917,60 @@ func (m *CertificateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ClusterInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ClusterInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClusterInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CAPI != nil { + { + size, err := m.CAPI.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.ClusterManagers) > 0 { + for iNdEx := len(m.ClusterManagers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterManagers[iNdEx]) + copy(dAtA[i:], m.ClusterManagers[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClusterManagers[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + i -= len(m.UID) + copy(dAtA[i:], m.UID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func (m *ClusterMetadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -828,6 +991,36 @@ func (m *ClusterMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + i -= len(m.HubClusterID) + copy(dAtA[i:], m.HubClusterID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.HubClusterID))) + i-- + dAtA[i] = 0x52 + i -= len(m.ManagerID) + copy(dAtA[i:], m.ManagerID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ManagerID))) + i-- + dAtA[i] = 0x4a + i -= len(m.CABundle) + copy(dAtA[i:], m.CABundle) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle))) + i-- + dAtA[i] = 0x42 + i -= len(m.APIEndpoint) + copy(dAtA[i:], m.APIEndpoint) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIEndpoint))) + i-- + dAtA[i] = 0x3a + i -= len(m.OwnerType) + copy(dAtA[i:], m.OwnerType) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.OwnerType))) + i-- + dAtA[i] = 0x32 + i -= len(m.OwnerID) + copy(dAtA[i:], m.OwnerID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.OwnerID))) + i-- + dAtA[i] = 0x2a i -= len(m.Provider) copy(dAtA[i:], m.Provider) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Provider))) @@ -1499,6 +1692,21 @@ func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } +func (m *CAPIClusterInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Provider) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ClusterName) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *CertificatePrivateKey) Size() (n int) { if m == nil { return 0 @@ -1567,6 +1775,29 @@ func (m *CertificateSpec) Size() (n int) { return n } +func (m *ClusterInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.ClusterManagers) > 0 { + for _, s := range m.ClusterManagers { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.CAPI != nil { + l = m.CAPI.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + func (m *ClusterMetadata) Size() (n int) { if m == nil { return 0 @@ -1581,6 +1812,18 @@ func (m *ClusterMetadata) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) l = len(m.Provider) n += 1 + l + sovGenerated(uint64(l)) + l = len(m.OwnerID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.OwnerType) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.APIEndpoint) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.CABundle) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ManagerID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.HubClusterID) + n += 1 + l + sovGenerated(uint64(l)) return n } @@ -1854,6 +2097,18 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *CAPIClusterInfo) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CAPIClusterInfo{`, + `Provider:` + fmt.Sprintf("%v", this.Provider) + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `ClusterName:` + fmt.Sprintf("%v", this.ClusterName) + `,`, + `}`, + }, "") + return s +} func (this *CertificatePrivateKey) String() string { if this == nil { return "nil" @@ -1884,6 +2139,19 @@ func (this *CertificateSpec) String() string { }, "") return s } +func (this *ClusterInfo) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterInfo{`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `ClusterManagers:` + fmt.Sprintf("%v", this.ClusterManagers) + `,`, + `CAPI:` + strings.Replace(this.CAPI.String(), "CAPIClusterInfo", "CAPIClusterInfo", 1) + `,`, + `}`, + }, "") + return s +} func (this *ClusterMetadata) String() string { if this == nil { return "nil" @@ -1893,6 +2161,12 @@ func (this *ClusterMetadata) String() string { `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `DisplayName:` + fmt.Sprintf("%v", this.DisplayName) + `,`, `Provider:` + fmt.Sprintf("%v", this.Provider) + `,`, + `OwnerID:` + fmt.Sprintf("%v", this.OwnerID) + `,`, + `OwnerType:` + fmt.Sprintf("%v", this.OwnerType) + `,`, + `APIEndpoint:` + fmt.Sprintf("%v", this.APIEndpoint) + `,`, + `CABundle:` + fmt.Sprintf("%v", this.CABundle) + `,`, + `ManagerID:` + fmt.Sprintf("%v", this.ManagerID) + `,`, + `HubClusterID:` + fmt.Sprintf("%v", this.HubClusterID) + `,`, `}`, }, "") return s @@ -2089,7 +2363,7 @@ func valueToStringGenerated(v interface{}) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } -func (m *CertificatePrivateKey) Unmarshal(dAtA []byte) error { +func (m *CAPIClusterInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2112,15 +2386,15 @@ func (m *CertificatePrivateKey) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CertificatePrivateKey: wiretype end group for non-group") + return fmt.Errorf("proto: CAPIClusterInfo: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CertificatePrivateKey: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CAPIClusterInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Encoding", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2148,32 +2422,178 @@ func (m *CertificatePrivateKey) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Encoding = PrivateKeyEncoding(dAtA[iNdEx:postIndex]) + m.Provider = CAPIProvider(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGenerated } - if (iNdEx + skippy) > l { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CertificateSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CertificatePrivateKey) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CertificatePrivateKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CertificatePrivateKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Encoding", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Encoding = PrivateKeyEncoding(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CertificateSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 @@ -2593,6 +3013,188 @@ func (m *CertificateSpec) Unmarshal(dAtA []byte) error { } return nil } +func (m *ClusterInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterManagers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterManagers = append(m.ClusterManagers, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CAPI", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CAPI == nil { + m.CAPI = &CAPIClusterInfo{} + } + if err := m.CAPI.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ClusterMetadata) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2750,6 +3352,198 @@ func (m *ClusterMetadata) Unmarshal(dAtA []byte) error { } m.Provider = HostingProvider(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnerID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnerType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIEndpoint", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.APIEndpoint = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CABundle = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ManagerID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ManagerID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HubClusterID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HubClusterID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) diff --git a/vendor/kmodules.xyz/client-go/api/v1/generated.proto b/vendor/kmodules.xyz/client-go/api/v1/generated.proto index d8fc1a444..a6b1e76b1 100644 --- a/vendor/kmodules.xyz/client-go/api/v1/generated.proto +++ b/vendor/kmodules.xyz/client-go/api/v1/generated.proto @@ -27,6 +27,14 @@ import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; // Package-wide variables from generator "generated". option go_package = "kmodules.xyz/client-go/api/v1"; +message CAPIClusterInfo { + optional string provider = 1; + + optional string namespace = 2; + + optional string clusterName = 3; +} + // CertificatePrivateKey contains configuration options for private keys // used by the Certificate controller. // This allows control of how private keys are rotated. @@ -63,6 +71,10 @@ message CertificateSpec { optional k8s.io.apimachinery.pkg.apis.meta.v1.Duration duration = 5; // Certificate renew before expiration duration + // + // Deprecated use `ReconfigureTLS` type OpsRequest instead. + // + // +deprecated // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.Duration renewBefore = 6; @@ -87,6 +99,18 @@ message CertificateSpec { optional CertificatePrivateKey privateKey = 11; } +// ClusterInfo used in ace-installer +message ClusterInfo { + optional string uid = 1; + + optional string name = 2; + + repeated string clusterManagers = 3; + + // +optional + optional CAPIClusterInfo capi = 4; +} + message ClusterMetadata { optional string uid = 1; @@ -95,6 +119,18 @@ message ClusterMetadata { optional string displayName = 3; optional string provider = 4; + + optional string ownerID = 5; + + optional string ownerType = 6; + + optional string apiEndpoint = 7; + + optional string caBundle = 8; + + optional string managerID = 9; + + optional string hubClusterID = 10; } // Condition defines an observation of a object operational state. diff --git a/vendor/kmodules.xyz/client-go/api/v1/zz_generated.deepcopy.go b/vendor/kmodules.xyz/client-go/api/v1/zz_generated.deepcopy.go index 9e3330952..f44550fbd 100644 --- a/vendor/kmodules.xyz/client-go/api/v1/zz_generated.deepcopy.go +++ b/vendor/kmodules.xyz/client-go/api/v1/zz_generated.deepcopy.go @@ -127,7 +127,11 @@ func (in *ClusterInfo) DeepCopyInto(out *ClusterInfo) { *out = make([]string, len(*in)) copy(*out, *in) } - out.CAPI = in.CAPI + if in.CAPI != nil { + in, out := &in.CAPI, &out.CAPI + *out = new(CAPIClusterInfo) + **out = **in + } return } diff --git a/vendor/kmodules.xyz/client-go/client/client.go b/vendor/kmodules.xyz/client-go/client/client.go index e24b7b4c3..68b8da6b1 100644 --- a/vendor/kmodules.xyz/client-go/client/client.go +++ b/vendor/kmodules.xyz/client-go/client/client.go @@ -21,6 +21,8 @@ import ( "reflect" "strings" + "kmodules.xyz/client-go/meta" + "github.com/pkg/errors" kerr "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" @@ -115,8 +117,19 @@ func CreateOrPatch(ctx context.Context, c client.Client, obj client.Object, tran return kutil.VerbUnchanged, err } + vt := kutil.VerbUnchanged + if mod.GetGeneration() > 0 { + if cur.GetGeneration() != mod.GetGeneration() { + vt = kutil.VerbPatched + } + } else { + // Secret, ServiceAccount etc resources do not use metadata.generation + if meta.ObjectHash(cur) != meta.ObjectHash(mod) { + vt = kutil.VerbPatched + } + } assign(obj, mod) - return kutil.VerbPatched, nil + return vt, nil } func assign(target, src any) { diff --git a/vendor/kmodules.xyz/client-go/meta/hash.go b/vendor/kmodules.xyz/client-go/meta/hash.go index 6fc87ae33..0e7778f4f 100644 --- a/vendor/kmodules.xyz/client-go/meta/hash.go +++ b/vendor/kmodules.xyz/client-go/meta/hash.go @@ -33,7 +33,11 @@ func ResourceHash(obj metav1.Object) string { h := xxh3.New() _, _ = h.WriteString(string(obj.GetUID())) _, _ = h.WriteString(",") - _, _ = h.WriteString(strconv.FormatInt(obj.GetGeneration(), 10)) + if obj.GetGeneration() > 0 { + _, _ = h.WriteString(strconv.FormatInt(obj.GetGeneration(), 10)) + } else { + _, _ = h.WriteString(ObjectHash(obj)) + } return strconv.FormatUint(h.Sum64(), 10) } @@ -57,11 +61,20 @@ func ObjectHash(in metav1.Object) string { obj["annotations"] = data } - st := structs.New(in) - for _, field := range st.Fields() { - fieldName := field.Name() - if fieldName != "ObjectMeta" && fieldName != "TypeMeta" && fieldName != "Status" { - obj[fieldName] = field.Value() + u, isUnstructured := in.(*unstructured.Unstructured) + if isUnstructured { + for fieldName, v := range u.UnstructuredContent() { + if fieldName != "metadata" && fieldName != "apiVersion" && fieldName != "kind" && fieldName != "status" { + obj[fieldName] = v + } + } + } else { + st := structs.New(in) + for _, field := range st.Fields() { + fieldName := field.Name() + if fieldName != "ObjectMeta" && fieldName != "TypeMeta" && fieldName != "Status" { + obj[fieldName] = field.Value() + } } } diff --git a/vendor/kmodules.xyz/resource-metadata/apis/node/v1alpha1/openapi_generated.go b/vendor/kmodules.xyz/resource-metadata/apis/node/v1alpha1/openapi_generated.go index e40406501..543a3b8f6 100644 --- a/vendor/kmodules.xyz/resource-metadata/apis/node/v1alpha1/openapi_generated.go +++ b/vendor/kmodules.xyz/resource-metadata/apis/node/v1alpha1/openapi_generated.go @@ -16128,23 +16128,27 @@ func schema_kmodulesxyz_client_go_api_v1_CAPIClusterInfo(ref common.ReferenceCal Properties: map[string]spec.Schema{ "provider": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "namespace": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "clusterName": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"provider", "namespace", "clusterName"}, }, }, } @@ -16211,7 +16215,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -16327,8 +16331,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, diff --git a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresources.yaml b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresources.yaml index 9e66496cf..42224dcfc 100644 --- a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresources.yaml +++ b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresources.yaml @@ -119,18 +119,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresourceservices.yaml b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresourceservices.yaml index 70c8746e5..47a77c592 100644 --- a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresourceservices.yaml +++ b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresourceservices.yaml @@ -71,18 +71,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_resourcesummaries.yaml b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_resourcesummaries.yaml index e9b5b7317..6bd8b36ab 100644 --- a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_resourcesummaries.yaml +++ b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_resourcesummaries.yaml @@ -119,18 +119,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_clusteridentitys.yaml b/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_clusteridentitys.yaml index 8315c19e5..c591f0c41 100644 --- a/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_clusteridentitys.yaml +++ b/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_clusteridentitys.yaml @@ -53,18 +53,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_siteinfos.yaml b/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_siteinfos.yaml index 5415cf5b8..80f1faa45 100644 --- a/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_siteinfos.yaml +++ b/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_siteinfos.yaml @@ -50,18 +50,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/crds/ui.k8s.appscode.com_clusterprofiles.yaml b/vendor/kmodules.xyz/resource-metadata/crds/ui.k8s.appscode.com_clusterprofiles.yaml new file mode 100644 index 000000000..aee0a38ec --- /dev/null +++ b/vendor/kmodules.xyz/resource-metadata/crds/ui.k8s.appscode.com_clusterprofiles.yaml @@ -0,0 +1,63 @@ + +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + name: clusterprofiles.ui.k8s.appscode.com +spec: + group: ui.k8s.appscode.com + names: + kind: ClusterProfile + listKind: ClusterProfileList + plural: clusterprofiles + singular: clusterprofile + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Status + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: ClusterProfileSpec defines the desired state of ClusterProfile + properties: + description: + type: string + provider: + type: string + requiredFeatureSets: + additionalProperties: + items: + type: string + type: array + type: object + title: + type: string + required: + - description + - title + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/const.go b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/const.go new file mode 100644 index 000000000..433e627b5 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/const.go @@ -0,0 +1,81 @@ +/* +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 + +const ( + RepositorySuffixFull = "full" + RepositorySuffixManifest = "manifest" + SessionNameFull = "full-backup" + SessionNameManifest = "manifest-backup" + + BackupConfigNameSuffix = "archiver" + SnapshotNameSuffix = "incremental-snapshot" + SidekickNameSuffix = "sidekick" + WalgContainerName = "wal-g" + RestoreSessionName = "manifest-restorer" + + RestoreJobNameBinlog = "binlog-restorer" + RestoreJobNameOplog = "oplog-restorer" + RestoreJobNameWal = "wal-restorer" + RestoreCmdBinlogFetch = "binlog-fetch" + RestoreCmdOplogReplay = "oplog-replay" + RestoreCmdWalFetch = "wal-fetch" + + BackupDirBinlog = "binlog-backup" + BackupDirOplog = "oplog-backup" + BackupDirWal = "wal-backup" + BackupCmdBinlogPush = "binlog-push" + BackupCmdOplogPush = "oplog-push" + BackupCmdWalPush = "wal-push" +) + +// azure +const ( + WALG_AZ_PREFIX = "WALG_AZ_PREFIX" + AZURE_STORAGE_ACCOUNT = "AZURE_STORAGE_ACCOUNT" + AZURE_STORAGE_ACCESS_KEY = "AZURE_STORAGE_ACCESS_KEY" + AZURE_ACCOUNT_KEY = "AZURE_ACCOUNT_KEY" +) + +// s3 +const ( + WALG_S3_PREFIX = "WALG_S3_PREFIX" + AWS_ENDPOINT = "AWS_ENDPOINT" + AWS_REGION = "AWS_REGION" + AWS_S3_FORCE_PATH_STYLE = "AWS_S3_FORCE_PATH_STYLE" + WALG_S3_CA_CERT_FILE = "WALG_S3_CA_CERT_FILE" + CA_CERT_DATA = "CA_CERT_DATA" + + S3CredVolumeName = "s3-cred" + S3CAMountPath = "/s3-cred/public.crt" +) + +// gcs +const ( + WALG_GS_PREFIX = "WALG_GS_PREFIX" + GOOGLE_APPLICATION_CREDENTIALS = "GOOGLE_APPLICATION_CREDENTIALS" + + GoogleCredVolumeName = "google-cred" + GoogleCredMountPath = "/google-cred" + GoogleCredFileName = "GOOGLE_SERVICE_ACCOUNT_JSON_KEY" +) + +// others +const ( + WALG_FILE_PREFIX = "WALG_FILE_PREFIX" + OPLOG_PUSH_WAIT_FOR_BECOME_PRIMARY = "OPLOG_PUSH_WAIT_FOR_BECOME_PRIMARY" +) diff --git a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/openapi_generated.go index 6ad348f71..7fce89526 100644 --- a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/openapi_generated.go @@ -21099,7 +21099,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21215,8 +21215,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21283,6 +21282,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, 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 ed0bec882..a8d0aac4f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mssqlserver_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/mssqlserver_types.go @@ -79,9 +79,6 @@ type MSSQLServerStorageAutoscalerSpec struct { } type MSSQLServerOpsRequestOptions struct { - // Specifies the Readiness Criteria - ReadinessCriteria *opsapi.MSSQLServerReplicaReadinessCriteria `json:"readinessCriteria,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"` 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 cb71b93cd..054464fc5 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go @@ -21225,7 +21225,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21341,8 +21341,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21409,6 +21408,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, @@ -26143,7 +26154,7 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_ComputeAutoscalerSpec(ref com }, "podLifeTimeThreshold": { SchemaProps: spec.SchemaProps{ - Description: "Specifies the minimum pod life time. The default is 15m. If the resource Request is inside the recommended range & there is no quickOOM (out-of-memory), we can still update the pod, if that pod's lifeTime is greater than this threshold.", + Description: "Specifies the minimum pod lifetime. The default is 15m. If the resource Request is inside the recommended range & there is no quickOOM (out-of-memory), we can still update the pod, if that pod's lifeTime is greater than this threshold.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -27687,12 +27698,6 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_MSSQLServerOpsRequestOptions( SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "readinessCriteria": { - SchemaProps: spec.SchemaProps{ - Description: "Specifies the Readiness Criteria", - Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerReplicaReadinessCriteria"), - }, - }, "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.", @@ -27710,7 +27715,7 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_MSSQLServerOpsRequestOptions( }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerReplicaReadinessCriteria"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, } } @@ -30833,7 +30838,22 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_SolrComputeAutoscalerSpec(ref Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.NodeTopology"), }, }, - "solr": { + "node": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ComputeAutoscalerSpec"), + }, + }, + "overseer": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ComputeAutoscalerSpec"), + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ComputeAutoscalerSpec"), + }, + }, + "coordinator": { SchemaProps: spec.SchemaProps{ Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.ComputeAutoscalerSpec"), }, @@ -30879,7 +30899,27 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_SolrStorageAutoscalerSpec(ref SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "solr": { + "nodeTopology": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.NodeTopology"), + }, + }, + "node": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.StorageAutoscalerSpec"), + }, + }, + "overseer": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.StorageAutoscalerSpec"), + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.StorageAutoscalerSpec"), + }, + }, + "coordinator": { SchemaProps: spec.SchemaProps{ Ref: ref("kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.StorageAutoscalerSpec"), }, @@ -30888,7 +30928,7 @@ func schema_apimachinery_apis_autoscaling_v1alpha1_SolrStorageAutoscalerSpec(ref }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.StorageAutoscalerSpec"}, + "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.NodeTopology", "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1.StorageAutoscalerSpec"}, } } 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 827cf414c..579e2e22f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/solr_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/solr_types.go @@ -71,11 +71,20 @@ type SolrComputeAutoscalerSpec struct { // +optional NodeTopology *NodeTopology `json:"nodeTopology,omitempty"` - Solr *ComputeAutoscalerSpec `json:"solr,omitempty"` + Node *ComputeAutoscalerSpec `json:"node,omitempty"` + Overseer *ComputeAutoscalerSpec `json:"overseer,omitempty"` + Data *ComputeAutoscalerSpec `json:"data,omitempty"` + Coordinator *ComputeAutoscalerSpec `json:"coordinator,omitempty"` } type SolrStorageAutoscalerSpec struct { - Solr *StorageAutoscalerSpec `json:"solr,omitempty"` + // +optional + NodeTopology *NodeTopology `json:"nodeTopology,omitempty"` + + Node *StorageAutoscalerSpec `json:"node,omitempty"` + Overseer *StorageAutoscalerSpec `json:"overseer,omitempty"` + Data *StorageAutoscalerSpec `json:"data,omitempty"` + Coordinator *StorageAutoscalerSpec `json:"coordinator,omitempty"` } type SolrOpsRequestOptions struct { diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/solr_webhook.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/solr_webhook.go index 5a7b46ddb..a59475c71 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/solr_webhook.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/solr_webhook.go @@ -56,11 +56,17 @@ func (r *SolrAutoscaler) setDefaults() { r.setOpsReqOptsDefaults() if r.Spec.Storage != nil { - setDefaultStorageValues(r.Spec.Storage.Solr) + setDefaultStorageValues(r.Spec.Storage.Node) + setDefaultStorageValues(r.Spec.Storage.Overseer) + setDefaultStorageValues(r.Spec.Storage.Data) + setDefaultStorageValues(r.Spec.Storage.Coordinator) } if r.Spec.Compute != nil { - setDefaultComputeValues(r.Spec.Compute.Solr) + setDefaultStorageValues(r.Spec.Storage.Node) + setDefaultStorageValues(r.Spec.Storage.Overseer) + setDefaultStorageValues(r.Spec.Storage.Data) + setDefaultStorageValues(r.Spec.Storage.Coordinator) } } diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/type.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/type.go index f1bcbc170..ae587d3e6 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/type.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/type.go @@ -80,7 +80,7 @@ type ComputeAutoscalerSpec struct { // +optional ResourceDiffPercentage int32 `json:"resourceDiffPercentage,omitempty"` - // Specifies the minimum pod life time. The default is 15m. + // Specifies the minimum pod lifetime. The default is 15m. // If the resource Request is inside the recommended range & there is no quickOOM (out-of-memory), // we can still update the pod, if that pod's lifeTime is greater than this threshold. // +optional 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 612888735..e62649041 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 @@ -1676,11 +1676,6 @@ func (in *MSSQLServerComputeAutoscalerSpec) DeepCopy() *MSSQLServerComputeAutosc // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MSSQLServerOpsRequestOptions) DeepCopyInto(out *MSSQLServerOpsRequestOptions) { *out = *in - if in.ReadinessCriteria != nil { - in, out := &in.ReadinessCriteria, &out.ReadinessCriteria - *out = new(opsv1alpha1.MSSQLServerReplicaReadinessCriteria) - **out = **in - } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout *out = new(metav1.Duration) @@ -4149,8 +4144,23 @@ func (in *SolrComputeAutoscalerSpec) DeepCopyInto(out *SolrComputeAutoscalerSpec *out = new(NodeTopology) (*in).DeepCopyInto(*out) } - if in.Solr != nil { - in, out := &in.Solr, &out.Solr + if in.Node != nil { + in, out := &in.Node, &out.Node + *out = new(ComputeAutoscalerSpec) + (*in).DeepCopyInto(*out) + } + if in.Overseer != nil { + in, out := &in.Overseer, &out.Overseer + *out = new(ComputeAutoscalerSpec) + (*in).DeepCopyInto(*out) + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = new(ComputeAutoscalerSpec) + (*in).DeepCopyInto(*out) + } + if in.Coordinator != nil { + in, out := &in.Coordinator, &out.Coordinator *out = new(ComputeAutoscalerSpec) (*in).DeepCopyInto(*out) } @@ -4191,8 +4201,28 @@ func (in *SolrOpsRequestOptions) DeepCopy() *SolrOpsRequestOptions { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SolrStorageAutoscalerSpec) DeepCopyInto(out *SolrStorageAutoscalerSpec) { *out = *in - if in.Solr != nil { - in, out := &in.Solr, &out.Solr + if in.NodeTopology != nil { + in, out := &in.NodeTopology, &out.NodeTopology + *out = new(NodeTopology) + (*in).DeepCopyInto(*out) + } + if in.Node != nil { + in, out := &in.Node, &out.Node + *out = new(StorageAutoscalerSpec) + (*in).DeepCopyInto(*out) + } + if in.Overseer != nil { + in, out := &in.Overseer, &out.Overseer + *out = new(StorageAutoscalerSpec) + (*in).DeepCopyInto(*out) + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = new(StorageAutoscalerSpec) + (*in).DeepCopyInto(*out) + } + if in.Coordinator != nil { + in, out := &in.Coordinator, &out.Coordinator *out = new(StorageAutoscalerSpec) (*in).DeepCopyInto(*out) } diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/cassandra_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/cassandra_version_types.go index 7d5a4c01d..c9e03bdfd 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/cassandra_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/cassandra_version_types.go @@ -60,6 +60,9 @@ type CassandraVersionSpec struct { // Database Image DB CassandraVersionDatabase `json:"db"` + // Exporter Image + Exporter CassandraVersionExporter `json:"exporter"` + // Database Image InitContainer CassandraInitContainer `json:"initContainer"` @@ -71,6 +74,11 @@ type CassandraVersionSpec struct { UI []ChartInfo `json:"ui,omitempty"` } +// CassandraVersionExporter is the image for the Cassandra exporter +type CassandraVersionExporter struct { + Image string `json:"image"` +} + // CassandraVersionDatabase is the Cassandra Database image type CassandraVersionDatabase struct { Image string `json:"image"` 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 82e8dfdbe..f7abbd684 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={catalog,kubedb,appscode} +// +kubebuilder:resource:path=mariadbversions,singular=mariadbversion,scope=Cluster,shortName=mdversion,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/mssql_version_helpers.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssqlserver_version_helpers.go similarity index 100% rename from vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssql_version_helpers.go rename to vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssqlserver_version_helpers.go diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssql_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssqlserver_version_types.go similarity index 100% rename from vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssql_version_types.go rename to vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssqlserver_version_types.go diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go index e0624fc7f..54bf95dd8 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go @@ -498,6 +498,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraInitContainer": schema_apimachinery_apis_catalog_v1alpha1_CassandraInitContainer(ref), "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraVersion": schema_apimachinery_apis_catalog_v1alpha1_CassandraVersion(ref), "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraVersionDatabase": schema_apimachinery_apis_catalog_v1alpha1_CassandraVersionDatabase(ref), + "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraVersionExporter": schema_apimachinery_apis_catalog_v1alpha1_CassandraVersionExporter(ref), "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraVersionList": schema_apimachinery_apis_catalog_v1alpha1_CassandraVersionList(ref), "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraVersionSpec": schema_apimachinery_apis_catalog_v1alpha1_CassandraVersionSpec(ref), "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraVersionStatus": schema_apimachinery_apis_catalog_v1alpha1_CassandraVersionStatus(ref), @@ -21251,7 +21252,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21367,8 +21368,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21435,6 +21435,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, @@ -25682,6 +25694,27 @@ func schema_apimachinery_apis_catalog_v1alpha1_CassandraVersionDatabase(ref comm } } +func schema_apimachinery_apis_catalog_v1alpha1_CassandraVersionExporter(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "CassandraVersionExporter is the image for the Cassandra exporter", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"image"}, + }, + }, + } +} + func schema_apimachinery_apis_catalog_v1alpha1_CassandraVersionList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -25753,6 +25786,13 @@ func schema_apimachinery_apis_catalog_v1alpha1_CassandraVersionSpec(ref common.R Ref: ref("kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraVersionDatabase"), }, }, + "exporter": { + SchemaProps: spec.SchemaProps{ + Description: "Exporter Image", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraVersionExporter"), + }, + }, "initContainer": { SchemaProps: spec.SchemaProps{ Description: "Database Image", @@ -25781,11 +25821,11 @@ func schema_apimachinery_apis_catalog_v1alpha1_CassandraVersionSpec(ref common.R }, }, }, - Required: []string{"version", "db", "initContainer"}, + Required: []string{"version", "db", "exporter", "initContainer"}, }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraVersionDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext"}, + "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraVersionDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.CassandraVersionExporter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext"}, } } @@ -31699,11 +31739,17 @@ func schema_apimachinery_apis_catalog_v1alpha1_SolrVersionSpec(ref common.Refere Format: "", }, }, - "securityContext": { + "updateConstraints": { SchemaProps: spec.SchemaProps{ - Description: "SecurityContext is for the additional security information for the Solr container", + Description: "SecurityContext is for the additional security information for the Solr container update constraints", Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext"), + Ref: ref("kubedb.dev/apimachinery/apis/catalog/v1alpha1.UpdateConstraints"), + }, + }, + "securityContext": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext"), }, }, }, @@ -31711,7 +31757,7 @@ func schema_apimachinery_apis_catalog_v1alpha1_SolrVersionSpec(ref common.Refere }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SolrInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SolrVersionDatabase"}, + "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SolrInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SolrVersionDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.UpdateConstraints"}, } } 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 548373d03..cc5f55cc5 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={catalog,kubedb,appscode} +// +kubebuilder:resource:path=proxysqlversions,singular=proxysqlversion,scope=Cluster,shortName=prxversion,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/solr_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/solr_version_types.go index 96848d0dd..460e1f5e3 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 @@ -59,6 +59,8 @@ type SolrVersionSpec struct { // +optional Deprecated bool `json:"deprecated,omitempty"` // SecurityContext is for the additional security information for the Solr container + // update constraints + UpdateConstraints UpdateConstraints `json:"updateConstraints,omitempty"` // +optional SecurityContext SecurityContext `json:"securityContext"` } diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/zz_generated.deepcopy.go index 8368d286a..8d1ebcb34 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/zz_generated.deepcopy.go @@ -158,6 +158,22 @@ func (in *CassandraVersionDatabase) DeepCopy() *CassandraVersionDatabase { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CassandraVersionExporter) DeepCopyInto(out *CassandraVersionExporter) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraVersionExporter. +func (in *CassandraVersionExporter) DeepCopy() *CassandraVersionExporter { + if in == nil { + return nil + } + out := new(CassandraVersionExporter) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CassandraVersionList) DeepCopyInto(out *CassandraVersionList) { *out = *in @@ -195,6 +211,7 @@ func (in *CassandraVersionList) DeepCopyObject() runtime.Object { func (in *CassandraVersionSpec) DeepCopyInto(out *CassandraVersionSpec) { *out = *in out.DB = in.DB + out.Exporter = in.Exporter out.InitContainer = in.InitContainer in.SecurityContext.DeepCopyInto(&out.SecurityContext) if in.UI != nil { @@ -3713,6 +3730,7 @@ func (in *SolrVersionSpec) DeepCopyInto(out *SolrVersionSpec) { *out = *in out.DB = in.DB out.InitContainer = in.InitContainer + in.UpdateConstraints.DeepCopyInto(&out.UpdateConstraints) in.SecurityContext.DeepCopyInto(&out.SecurityContext) return } diff --git a/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go index ddd9b519a..4428a800a 100644 --- a/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go @@ -21075,7 +21075,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21191,8 +21191,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21259,6 +21258,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, diff --git a/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/openapi_generated.go index d3cb21b18..9cfa2d03e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/openapi_generated.go @@ -21075,7 +21075,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21191,8 +21191,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21259,6 +21258,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, diff --git a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connect_cluster_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connect_cluster_helpers.go index f54789c72..6bf3082d1 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connect_cluster_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/connect_cluster_helpers.go @@ -196,14 +196,6 @@ func (k *ConnectCluster) KafkaClientCredentialsSecretName() string { return meta_util.NameWithSuffix(k.Name, "kafka-client-cred") } -func (k *ConnectCluster) DefaultUserCredSecretName(username string) string { - return meta_util.NameWithSuffix(k.Name, strings.ReplaceAll(fmt.Sprintf("%s-cred", username), "_", "-")) -} - -func (k *ConnectCluster) DefaultKeystoreCredSecretName() string { - return meta_util.NameWithSuffix(k.Name, strings.ReplaceAll("connect-keystore-cred", "_", "-")) -} - // CertificateName returns the default certificate name and/or certificate secret name for a certificate alias func (k *ConnectCluster) CertificateName(alias ConnectClusterCertificateAlias) string { return meta_util.NameWithSuffix(k.Name, fmt.Sprintf("%s-connect-cert", string(alias))) @@ -213,7 +205,14 @@ func (k *ConnectCluster) GetAuthSecretName() string { if k.Spec.AuthSecret != nil && k.Spec.AuthSecret.Name != "" { return k.Spec.AuthSecret.Name } - return k.DefaultUserCredSecretName("admin") + return meta_util.NameWithSuffix(k.OffshootName(), "auth") +} + +func (k *ConnectCluster) GetKeystoreSecretName() string { + if k.Spec.KeystoreCredSecret != nil && k.Spec.KeystoreCredSecret.Name != "" { + return k.Spec.KeystoreCredSecret.Name + } + return meta_util.NameWithSuffix(k.OffshootName(), "keystore-cred") } // GetCertSecretName returns the secret name for a certificate alias if any, diff --git a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/openapi_generated.go index 3b07413ba..5151dfa6e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/openapi_generated.go @@ -21091,7 +21091,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21207,8 +21207,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21275,6 +21274,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, diff --git a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/zz_generated.deepcopy.go index b333a0f4b..84e26a739 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/zz_generated.deepcopy.go @@ -128,12 +128,12 @@ func (in *ConnectClusterSpec) DeepCopyInto(out *ConnectClusterSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(kubedbv1.SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.KeystoreCredSecret != nil { in, out := &in.KeystoreCredSecret, &out.KeystoreCredSecret *out = new(kubedbv1.SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.TLS != nil { in, out := &in.TLS, &out.TLS diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go index 19bfafa52..68ffd7773 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go @@ -123,18 +123,39 @@ const ( ElasticsearchMinHeapSize = 128 * 1024 * 1024 // =========================== Memcached Constants ============================ - MemcachedConfigKey = "memcached.conf" // MemcachedConfigKey is going to create for the customize redis configuration + + MemcachedConfigKey = "memcached.conf" // MemcachedConfigKey is going to create for the customize memcached configuration + MemcachedDefaultKey = "default.conf" // MemcachedDatabasePortName = "db" MemcachedPrimaryServicePortName = "primary" MemcachedDatabasePort = 11211 - MemcachedShardKey = MemcachedKey + "/shard" MemcachedContainerName = "memcached" + MemcachedExporterContainerName = "exporter" MemcachedConfigVolumeName = "memcached-config" - MemcachedConfigVolumePath = "/etc/memcached/" + MemcachedConfigVolumePath = "/usr/config/" MemcachedDataVolumeName = "data" - MemcachedDataVolumePath = "/data" + MemcachedDataVolumePath = "/usr/data/" + + MemcachedAuthVolumeName = "auth" + MemcachedAuthVolumePath = "/usr/auth/" + + MemcachedExporterAuthVolumeName = "exporter-auth" + MemcachedExporterAuthVolumePath = "/auth/" + + MemcachedExporterTLSVolumeName = "exporter-tls" + MemcachedExporterTLSVolumePath = "/certs/" + + MemcachedTLSVolumeName = "tls" + MemcachedTLSVolumePath = "/usr/certs/" + + MemcachedHealthKey = "kubedb_memcached_health_key" + MemcachedHealthValue = "kubedb_memcached_health_value" + + MemcachedUserName = "user" + MemcachedPassword = "pass" + // =========================== MongoDB Constants ============================ MongoDBDatabasePortName = "db" @@ -389,6 +410,7 @@ const ( MSSQLDatabasePort = 1433 MSSQLDatabaseMirroringEndpointPort = 5022 MSSQLCoordinatorPort = 2381 + MSSQLMonitoringDefaultServicePort = 9399 // environment variables EnvAcceptEula = "ACCEPT_EULA" @@ -396,6 +418,7 @@ const ( EnvMSSQLAgentEnabled = "MSSQL_AGENT_ENABLED" EnvMSSQLSAUsername = "MSSQL_SA_USERNAME" EnvMSSQLSAPassword = "MSSQL_SA_PASSWORD" + EnvMSSQLVersion = "VERSION" // container related MSSQLContainerName = "mssql" @@ -629,22 +652,42 @@ const ( ZooKeeperMetricsPortName = "metrics" ZooKeeperMetricsPort = 7000 ZooKeeperAdminServerPortName = "admin-server" + ZooKeeperSecureClientPortName = "secure-client" ZooKeeperAdminServerPort = 8080 + ZooKeeperSecureClientPort = 2182 ZooKeeperNode = "/kubedb_health_checker_node" ZooKeeperData = "kubedb_health_checker_data" ZooKeeperConfigVolumeName = "zookeeper-config" ZooKeeperConfigVolumePath = "/conf" + ZooKeeperVolumeTempConfig = "temp-config" ZooKeeperDataVolumeName = "data" ZooKeeperDataVolumePath = "/data" ZooKeeperScriptVolumeName = "script-vol" ZooKeeperScriptVolumePath = "/scripts" ZooKeeperContainerName = "zookeeper" + ZooKeeperUserAdmin = "admin" ZooKeeperInitContainerName = "zookeeper" + "-init" ZooKeeperConfigFileName = "zoo.cfg" ZooKeeperLog4jPropertiesFileName = "log4j.properties" ZooKeeperLog4jQuietPropertiesFileName = "log4j-quiet.properties" + ZooKeeperCertDir = "/var/private/ssl" + ZooKeeperKeyStoreDir = "/var/private/ssl/server.keystore.jks" + ZooKeeperTrustStoreDir = "/var/private/ssl/server.truststore.jks" + + ZooKeeperKeystoreKey = "keystore.jks" + ZooKeeperTruststoreKey = "truststore.jks" + ZooKeeperServerKeystoreKey = "server.keystore.jks" + ZooKeeperServerTruststoreKey = "server.truststore.jks" + ZooKeeperKeyPassword = "ssl.key.password" + ZooKeeperKeystorePasswordKey = "ssl.quorum.keyStore.password" + ZooKeeperTruststorePasswordKey = "ssl.quorum.trustStore.password" + ZooKeeperKeystoreLocationKey = "ssl.quorum.keyStore.location" + ZooKeeperTruststoreLocationKey = "ssl.quorum.trustStore.location" + + ZooKeeperSSLPropertiesFileName = "ssl.properties" + EnvZooKeeperDomain = "DOMAIN" EnvZooKeeperQuorumPort = "QUORUM_PORT" EnvZooKeeperLeaderPort = "LEADER_PORT" @@ -966,15 +1009,16 @@ const ( DruidConfigDirRouters = "/opt/druid/conf/druid/cluster/query/router" DruidCConfigDirMySQLMetadata = "/opt/druid/extensions/mysql-metadata-storage" - DruidVolumeOperatorConfig = "operator-config-volume" - DruidVolumeMainConfig = "main-config-volume" - DruidVolumeCustomConfig = "custom-config" - DruidMetadataTLSVolume = "metadata-tls-volume" + DruidVolumeOperatorConfig = "operator-config-volume" + DruidVolumeMainConfig = "main-config-volume" + DruidVolumeCustomConfig = "custom-config" + DruidMetadataTLSVolume = "metadata-tls-volume" + DruidMetadataTLSTempVolume = "metadata-tls-volume-temp" - DruidOperatorConfigDir = "/tmp/config/operator-config" - DruidMainConfigDir = "/opt/druid/conf" - DruidCustomConfigDir = "/tmp/config/custom-config" - DruidMetadataTLSConfigDir = "/tmp/metadata-tls" + DruidOperatorConfigDir = "/tmp/config/operator-config" + DruidMainConfigDir = "/opt/druid/conf" + DruidCustomConfigDir = "/tmp/config/custom-config" + DruidMetadataTLSTempConfigDir = "/tmp/metadata-tls" DruidVolumeCommonConfig = "common-config-volume" DruidCommonConfigFile = "common.runtime.properties" @@ -1000,14 +1044,23 @@ const ( EnvDruidCoordinatorAsOverlord = "DRUID_COORDINATOR_AS_OVERLORD" EnvDruidMetadataTLSEnable = "DRUID_METADATA_TLS_ENABLE" EnvDruidMetadataStorageType = "DRUID_METADATA_STORAGE_TYPE" + EnvDruidKeyStorePassword = "DRUID_KEY_STORE_PASSWORD" - DruidPortCoordinators = 8081 - DruidPortOverlords = 8090 - DruidPortHistoricals = 8083 - DruidPortMiddleManagers = 8091 - DruidPortBrokers = 8082 - DruidPortRouters = 8888 - DruidExporterPort = 9104 + DruidPlainTextPortCoordinators = 8081 + DruidPlainTextPortOverlords = 8090 + DruidPlainTextPortHistoricals = 8083 + DruidPlainTextPortMiddleManagers = 8091 + DruidPlainTextPortBrokers = 8082 + DruidPlainTextPortRouters = 8888 + + DruidTLSPortCoordinators = 8281 + DruidTLSPortOverlords = 8290 + DruidTLSPortHistoricals = 8283 + DruidTLSPortMiddleManagers = 8291 + DruidTLSPortBrokers = 8282 + DruidTLSPortRouters = 9088 + + DruidExporterPort = 9104 DruidMetadataStorageTypePostgres = "Postgres" @@ -1030,24 +1083,49 @@ const ( DruidMetadataStorageConnectorPasswordEnvConfig = "{\"type\": \"environment\", \"variable\": \"DRUID_METADATA_STORAGE_PASSWORD\"}" DruidMetadataStorageCreateTables = "druid.metadata.storage.connector.createTables" + // Druid TLS + DruidKeystorePasswordKey = "keystore_password" + DruidTrustStorePasswordKey = "truststore_password" + DruidKeystoreSecretKey = "keystore-cred" + + DruidEnablePlaintextPort = "druid.enablePlaintextPort" + DruidEnableTLSPort = "druid.enableTlsPort" + DruidKeyStorePath = "druid.server.https.keyStorePath" + DruidKeyStoreType = "druid.server.https.keyStoreType" + DruidCertAlias = "druid.server.https.certAlias" + DruidKeyStorePassword = "druid.server.https.keyStorePassword" + DruidRequireClientCertificate = "druid.server.https.requireClientCertificate" + DruidTrustStoreType = "druid.server.https.trustStoreType" + + DruidTrustStorePassword = "druid.client.https.trustStorePassword" + DruidTrustStorePath = "druid.client.https.trustStorePath" + DruidClientTrustStoreType = "druid.client.https.trustStoreType" + DruidClientValidateHostNames = "druid.client.https.validateHostnames" + + DruidKeyStoreTypeJKS = "jks" + DruidKeyStorePasswordEnvConfig = "{\"type\": \"environment\", \"variable\": \"DRUID_KEY_STORE_PASSWORD\"}" + + DruidValueTrue = "true" + DruidValueFalse = "false" + + DruidCertDir = "/opt/druid/ssl" + DruidCertMetadataSubDir = "metadata" + // MySQL TLS DruidMetadataMySQLUseSSL = "druid.metadata.mysql.ssl.useSSL" DruidMetadataMySQLClientCertKeyStoreURL = "druid.metadata.mysql.ssl.clientCertificateKeyStoreUrl" - DruidMetadataMySQLClientCertKeyStorePath = "/opt/druid/conf/tls/metadatakeystore.jks" DruidMetadataMySQLClientCertKeyStoreType = "druid.metadata.mysql.ssl.clientCertificateKeyStoreType" DruidMetadataMySQLClientCertKeyStoreTypeJKS = "JKS" DruidMetadataMySQLClientCertKeyStorePassword = "druid.metadata.mysql.ssl.clientCertificateKeyStorePassword" DruidMetadataMySQLClientCertKeyStorePasswordValue = "password" // Postgres TLS - DruidMetadataPostgresUseSSL = "druid.metadata.postgres.ssl.useSSL" - DruidMetadataPGUseSSLMode = "druid.metadata.postgres.ssl.sslMode" - DruidMetadataPGSSLCert = "druid.metadata.postgres.ssl.sslCert" - DruidMetadataPGSSLCertPath = "/opt/druid/conf/tls/tls.crt" - DruidMetadataPGSSLKey = "druid.metadata.postgres.ssl.sslKey" - DruidMetadataPGSSLKeyPath = "/opt/druid/conf/tls/tls.key" - DruidMetadataPGSSLRootCert = "druid.metadata.postgres.ssl.sslRootCert" - DruidMetadataPGSSLRootCertPath = "/opt/druid/conf/tls/ca.cert" + DruidMetadataPostgresUseSSL = "druid.metadata.postgres.ssl.useSSL" + DruidMetadataPGUseSSLMode = "druid.metadata.postgres.ssl.sslMode" + DruidMetadataPGUseSSLModeVerifyFull = "verify-full" + DruidMetadataPGSSLCert = "druid.metadata.postgres.ssl.sslCert" + DruidMetadataPGSSLKey = "druid.metadata.postgres.ssl.sslKey" + DruidMetadataPGSSLRootCert = "druid.metadata.postgres.ssl.sslRootCert" // Deep Storage DruidDeepStorageTypeKey = "druid.storage.type" @@ -1102,6 +1180,7 @@ const ( DruidExtensionBasicSecurity = "druid-basic-security" DruidExtensionMultiStageQuery = "druid-multi-stage-query" DruidExtensionPrometheusEmitter = "prometheus-emitter" + DruidExtensionSSLContext = "simple-client-sslcontext" DruidService = "druid.service" // Monitoring Configurations @@ -1122,6 +1201,9 @@ const ( DruidMonitoringTaskCountStatsMonitor = "org.apache.druid.server.metrics.TaskCountStatsMonitor" DruidMonitoringSysMonitor = "org.apache.druid.java.util.metrics.SysMonitor" + DruidDimensionMapDir = "/opt/druid/conf/metrics.json" + DruidEmitterPrometheusStrategyValue = "exporter" + /// Coordinators Configurations DruidCoordinatorStartDelay = "druid.coordinator.startDelay" DruidCoordinatorPeriod = "druid.coordinator.period" @@ -1297,14 +1379,15 @@ const ( const ( // envs - EnvFerretDBUser = "FERRETDB_PG_USER" - EnvFerretDBPassword = "FERRETDB_PG_PASSWORD" - EnvFerretDBHandler = "FERRETDB_HANDLER" - EnvFerretDBPgURL = "FERRETDB_POSTGRESQL_URL" - EnvFerretDBTLSPort = "FERRETDB_LISTEN_TLS" - EnvFerretDBCAPath = "FERRETDB_LISTEN_TLS_CA_FILE" - EnvFerretDBCertPath = "FERRETDB_LISTEN_TLS_CERT_FILE" - EnvFerretDBKeyPath = "FERRETDB_LISTEN_TLS_KEY_FILE" + EnvFerretDBUser = "FERRETDB_PG_USER" + EnvFerretDBPassword = "FERRETDB_PG_PASSWORD" + EnvFerretDBHandler = "FERRETDB_HANDLER" + EnvFerretDBPgURL = "FERRETDB_POSTGRESQL_URL" + EnvFerretDBTLSPort = "FERRETDB_LISTEN_TLS" + EnvFerretDBCAPath = "FERRETDB_LISTEN_TLS_CA_FILE" + EnvFerretDBCertPath = "FERRETDB_LISTEN_TLS_CERT_FILE" + EnvFerretDBKeyPath = "FERRETDB_LISTEN_TLS_KEY_FILE" + EnvFerretDBDebugAddr = "FERRETDB_DEBUG_ADDR" FerretDBContainerName = "ferretdb" FerretDBMainImage = "ghcr.io/ferretdb/ferretdb" @@ -1315,7 +1398,7 @@ const ( FerretDBExternalClientPath = "/etc/certs/ext" FerretDBDefaultPort = 27017 - FerretDBMetricsPort = 8080 + FerretDBMetricsPort = 56790 FerretDBTLSPort = 27018 FerretDBMetricsPath = "/debug/metrics" @@ -1407,15 +1490,17 @@ const ( CassandraInterNodePort = 7000 CassandraInterNodeSslPort = 7001 CassandraJmxPort = 7199 + CassandraExporterPort = 8080 CassandraNativeTcpPortName = "cql" CassandraInterNodePortName = "internode" CassandraInterNodeSslPortName = "internode-ssl" CassandraJmxPortName = "jmx" + CassandraExporterPortName = "exporter" - CassandraUserAdmin = "admin" - CassandraStandaloneSeed = "cassandra-sample-0.cassandra-sample-pods.default.svc.cluster.local" - CassandraAuthCommand = "/usr/local/bin/docker-entrypoint.sh cassandra -f & /tmp/sc/cassandra-auth.sh" + CassandraUserAdmin = "admin" + + CassandraAuthCommand = "/tmp/sc/cassandra-auth.sh" CassandraMetadataName = "metadata.name" CassandraMetadataNamespace = "metadata.namespace" CassandraStatusPodIP = "status.podIP" @@ -1574,7 +1659,7 @@ var ( // DefaultResourcesMemoryIntensiveSDB must be used for Singlestore when enabled monitoring or version >= 8.5.x DefaultResourcesMemoryIntensiveSDB = core.ResourceRequirements{ Requests: core.ResourceList{ - core.ResourceCPU: resource.MustParse(".500"), + core.ResourceCPU: resource.MustParse(".600"), core.ResourceMemory: resource.MustParse("2Gi"), }, Limits: core.ResourceList{ 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 77249b4d5..dcf426865 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_helpers.go @@ -231,7 +231,14 @@ func (k *Kafka) GetAuthSecretName() string { if k.Spec.AuthSecret != nil && k.Spec.AuthSecret.Name != "" { return k.Spec.AuthSecret.Name } - return k.DefaultUserCredSecretName("admin") + return meta_util.NameWithSuffix(k.OffshootName(), "auth") +} + +func (k *Kafka) GetKeystoreSecretName() string { + if k.Spec.KeystoreCredSecret != nil && k.Spec.KeystoreCredSecret.Name != "" { + return k.Spec.KeystoreCredSecret.Name + } + return meta_util.NameWithSuffix(k.OffshootName(), "keystore-cred") } func (k *Kafka) GetPersistentSecrets() []string { @@ -249,14 +256,6 @@ func (k *Kafka) CruiseControlConfigSecretName() string { return meta_util.NameWithSuffix(k.OffshootName(), "cruise-control-config") } -func (k *Kafka) DefaultUserCredSecretName(username string) string { - return meta_util.NameWithSuffix(k.Name, strings.ReplaceAll(fmt.Sprintf("%s-cred", username), "_", "-")) -} - -func (k *Kafka) DefaultKeystoreCredSecretName() string { - return meta_util.NameWithSuffix(k.Name, strings.ReplaceAll("keystore-cred", "_", "-")) -} - // CertificateName returns the default certificate name and/or certificate secret name for a certificate alias func (k *Kafka) CertificateName(alias KafkaCertificateAlias) string { return meta_util.NameWithSuffix(k.Name, fmt.Sprintf("%s-cert", string(alias))) diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/memcached_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/memcached_helpers.go index 1ec7ca27d..24a62cf76 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/memcached_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/memcached_helpers.go @@ -30,6 +30,7 @@ import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" + kmapi "kmodules.xyz/client-go/api/v1" "kmodules.xyz/client-go/apiextensions" core_util "kmodules.xyz/client-go/core/v1" meta_util "kmodules.xyz/client-go/meta" @@ -64,6 +65,18 @@ func (m Memcached) OffshootSelectors() map[string]string { } } +func (m Memcached) GetMemcachedAuthSecretName() string { + if m.Spec.AuthSecret != nil && m.Spec.AuthSecret.Name != "" { + return m.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(m.OffshootName(), "auth") +} + +// Owner returns owner reference to resources +func (m *Memcached) Owner() *metav1.OwnerReference { + return metav1.NewControllerRef(m, SchemeGroupVersion.WithKind(m.ResourceKind())) +} + func (m Memcached) OffshootLabels() map[string]string { return m.offshootLabels(m.OffshootSelectors(), nil) } @@ -279,6 +292,23 @@ func (m *Memcached) setDefaultContainerResourceLimits(podTemplate *ofstv2.PodTem } } +// CertificateName returns the default certificate name and/or certificate secret name for a certificate alias +func (m *Memcached) CertificateName(alias MemcachedCertificateAlias) string { + return meta_util.NameWithSuffix(m.Name, fmt.Sprintf("%s-cert", string(alias))) +} + +// GetCertSecretName returns the secret name for a certificate alias if any provide, +// otherwise returns default certificate secret name for the given alias. +func (m *Memcached) GetCertSecretName(alias MemcachedCertificateAlias) string { + if m.Spec.TLS != nil { + name, ok := kmapi.GetCertificateSecretName(m.Spec.TLS.Certificates, string(alias)) + if ok { + return name + } + } + return m.CertificateName(alias) +} + func (m *MemcachedSpec) GetPersistentSecrets() []string { return nil } @@ -288,3 +318,12 @@ func (m *Memcached) ReplicasAreReady(lister pslister.PetSetLister) (bool, string expectedItems := 1 return checkReplicas(lister.PetSets(m.Namespace), labels.SelectorFromSet(m.OffshootLabels()), expectedItems) } + +func (m *Memcached) SetTLSDefaults() { + if m.Spec.TLS == nil || m.Spec.TLS.IssuerRef == nil { + return + } + m.Spec.TLS.Certificates = kmapi.SetMissingSecretNameForCertificate(m.Spec.TLS.Certificates, string(MemcachedServerCert), m.CertificateName(MemcachedServerCert)) + m.Spec.TLS.Certificates = kmapi.SetMissingSecretNameForCertificate(m.Spec.TLS.Certificates, string(MemcachedClientCert), m.CertificateName(MemcachedClientCert)) + m.Spec.TLS.Certificates = kmapi.SetMissingSecretNameForCertificate(m.Spec.TLS.Certificates, string(MemcachedMetricsExporterCert), m.CertificateName(MemcachedMetricsExporterCert)) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/memcached_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/memcached_types.go index 50314a72f..8f30eeae9 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/memcached_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/memcached_types.go @@ -66,6 +66,15 @@ type MemcachedSpec struct { // If specified, this file will be used as configuration file otherwise default configuration file will be used. ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"` + // Database Authentication Secret + // If specified, this will be used for authentication otherwise default secret will be used. + // +optional + AuthSecret *SecretReference `json:"authSecret,omitempty"` + + // If disable Auth true then don't create any auth secret + // +optional + DisableAuth bool `json:"disableAuth,omitempty"` + // DataVolume is an optional field to add one volume to each // memcached pod. The volume will be made available under // /data and owned by the memcached user. @@ -115,6 +124,7 @@ type MemcachedCertificateAlias string const ( MemcachedServerCert MemcachedCertificateAlias = "server" + MemcachedClientCert MemcachedCertificateAlias = "client" MemcachedMetricsExporterCert MemcachedCertificateAlias = "metrics-exporter" ) 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 2f20f5136..2431f11cf 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/openapi_generated.go @@ -21188,7 +21188,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21304,8 +21304,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21372,6 +21371,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, @@ -25573,6 +25584,12 @@ func schema_apimachinery_apis_kubedb_v1_ArchiverRecovery(ref common.ReferenceCal Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), }, }, + "replicationStrategy": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"recoveryTimestamp"}, }, @@ -27463,6 +27480,19 @@ func schema_apimachinery_apis_kubedb_v1_MemcachedSpec(ref common.ReferenceCallba Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), }, }, + "authSecret": { + SchemaProps: spec.SchemaProps{ + Description: "Database Authentication Secret If specified, this will be used for authentication otherwise default secret will be used.", + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1.SecretReference"), + }, + }, + "disableAuth": { + SchemaProps: spec.SchemaProps{ + Description: "If disable Auth true then don't create any auth secret", + Type: []string{"boolean"}, + Format: "", + }, + }, "dataVolume": { SchemaProps: spec.SchemaProps{ Description: "DataVolume is an optional field to add one volume to each memcached pod. The volume will be made available under /data and owned by the memcached user.\n\nWhile not mandated by the API and not configured automatically, the intended purpose is to use that volume for memcached's persistent memory support (https://memcached.org/blog/persistent-memory/) by adding the memory-file and memory-limit options to the config (https://github.com/memcached/memcached/wiki/WarmRestart).\n\nFor that purpose, a CSI inline volume provided by PMEM-CSI can be used, in which case each pod will get its own, empty volume. Warm restarts are not supported.\n\nFor testing, an empty dir can be used instead.", @@ -27522,7 +27552,7 @@ func schema_apimachinery_apis_kubedb_v1_MemcachedSpec(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.VolumeSource", "kmodules.xyz/client-go/api/v1.HealthCheckSpec", "kmodules.xyz/client-go/api/v1.TLSConfig", "kmodules.xyz/monitoring-agent-api/api/v1.AgentSpec", "kmodules.xyz/offshoot-api/api/v2.PodTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.NamedServiceTemplateSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.VolumeSource", "kmodules.xyz/client-go/api/v1.HealthCheckSpec", "kmodules.xyz/client-go/api/v1.TLSConfig", "kmodules.xyz/monitoring-agent-api/api/v1.AgentSpec", "kmodules.xyz/offshoot-api/api/v2.PodTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.SecretReference"}, } } @@ -30964,6 +30994,18 @@ func schema_apimachinery_apis_kubedb_v1_SecretReference(ref common.ReferenceCall Format: "", }, }, + "rotateAfter": { + SchemaProps: spec.SchemaProps{ + Description: "Recommendation engine will generate RotateAuth opsReq using this field", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "activeFrom": { + SchemaProps: spec.SchemaProps{ + Description: "ActiveFrom holds the RFC3339 time. The referred authSecret is in-use from this timestamp.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, "externallyManaged": { SchemaProps: spec.SchemaProps{ Type: []string{"boolean"}, @@ -30973,6 +31015,8 @@ func schema_apimachinery_apis_kubedb_v1_SecretReference(ref common.ReferenceCall }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/postgres_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/postgres_helpers.go index 2c0520e16..ddf77bdfa 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/postgres_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/postgres_helpers.go @@ -34,6 +34,7 @@ import ( "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" + "k8s.io/utils/ptr" kmapi "kmodules.xyz/client-go/api/v1" "kmodules.xyz/client-go/apiextensions" meta_util "kmodules.xyz/client-go/meta" @@ -266,6 +267,9 @@ func (p *Postgres) SetDefaults(postgresVersion *catalog.PostgresVersion) { p.Spec.Monitor.Prometheus.Exporter.SecurityContext.RunAsGroup = postgresVersion.Spec.SecurityContext.RunAsUser } } + if p.Spec.Init != nil && p.Spec.Init.Archiver != nil && p.Spec.Init.Archiver.ReplicationStrategy == nil { + p.Spec.Init.Archiver.ReplicationStrategy = ptr.To(ReplicationStrategyNone) + } } func getMajorPgVersion(postgresVersion *catalog.PostgresVersion) (uint64, error) { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_sentinel_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_sentinel_types.go index 975a8e3f2..7bb58e6c8 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_sentinel_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_sentinel_types.go @@ -31,7 +31,7 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=redissentinels,singular=redissentinel,categories={datastore,kubedb,appscode,all} +// +kubebuilder:resource:path=redissentinels,singular=redissentinel,shortName=rds,categories={datastore,kubedb,appscode,all} // +kubebuilder:subresource:status // +kubebuilder:storageversion // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version" diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/types.go index 9a9d904ea..3ee92588c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/types.go @@ -133,6 +133,21 @@ const ( StatsServiceAlias ServiceAlias = "stats" ) +// +kubebuilder:validation:Enum=fscopy;clone;sync;none +type PITRReplicationStrategy string + +const ( + // ReplicationStrategySync means data will be synced from primary to secondary + ReplicationStrategySync PITRReplicationStrategy = "sync" + // ReplicationStrategyFSCopy means data will be copied from filesystem + ReplicationStrategyFSCopy PITRReplicationStrategy = "fscopy" + // ReplicationStrategyClone means volumeSnapshot will be used to create pvc's + ReplicationStrategyClone PITRReplicationStrategy = "clone" + // ReplicationStrategyNone means no replication will be used + // data will be fully restored in every replicas instead of replication + ReplicationStrategyNone PITRReplicationStrategy = "none" +) + // +kubebuilder:validation:Enum=DNS;IP;IPv4;IPv6 type AddressType string @@ -190,7 +205,13 @@ type SystemUserSecretsSpec struct { type SecretReference struct { core.LocalObjectReference `json:",inline,omitempty"` - ExternallyManaged bool `json:"externallyManaged,omitempty"` + // Recommendation engine will generate RotateAuth opsReq using this field + // +optional + RotateAfter *metav1.Duration `json:"rotateAfter,omitempty"` + // ActiveFrom holds the RFC3339 time. The referred authSecret is in-use from this timestamp. + // +optional + ActiveFrom *metav1.Time `json:"activeFrom,omitempty"` + ExternallyManaged bool `json:"externallyManaged,omitempty"` } type Age struct { @@ -214,5 +235,6 @@ type ArchiverRecovery struct { ManifestRepository *kmapi.ObjectReference `json:"manifestRepository,omitempty"` // FullDBRepository means db restore + manifest restore - FullDBRepository *kmapi.ObjectReference `json:"fullDBRepository,omitempty"` + FullDBRepository *kmapi.ObjectReference `json:"fullDBRepository,omitempty"` + ReplicationStrategy *PITRReplicationStrategy `json:"replicationStrategy,omitempty"` } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/zz_generated.deepcopy.go index 5a627fe87..aae7c4037 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/zz_generated.deepcopy.go @@ -141,6 +141,11 @@ func (in *ArchiverRecovery) DeepCopyInto(out *ArchiverRecovery) { *out = new(apiv1.ObjectReference) **out = **in } + if in.ReplicationStrategy != nil { + in, out := &in.ReplicationStrategy, &out.ReplicationStrategy + *out = new(PITRReplicationStrategy) + **out = **in + } return } @@ -488,7 +493,7 @@ func (in *ElasticsearchSpec) DeepCopyInto(out *ElasticsearchSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Storage != nil { in, out := &in.Storage, &out.Storage @@ -811,7 +816,7 @@ func (in *KafkaCruiseControl) DeepCopyInto(out *KafkaCruiseControl) { if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Replicas != nil { in, out := &in.Replicas, &out.Replicas @@ -919,7 +924,7 @@ func (in *KafkaSpec) DeepCopyInto(out *KafkaSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret @@ -929,7 +934,7 @@ func (in *KafkaSpec) DeepCopyInto(out *KafkaSpec) { if in.KeystoreCredSecret != nil { in, out := &in.KeystoreCredSecret, &out.KeystoreCredSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.TLS != nil { in, out := &in.TLS, &out.TLS @@ -1090,7 +1095,7 @@ func (in *MariaDBSpec) DeepCopyInto(out *MariaDBSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -1251,6 +1256,11 @@ func (in *MemcachedSpec) DeepCopyInto(out *MemcachedSpec) { *out = new(corev1.LocalObjectReference) **out = **in } + if in.AuthSecret != nil { + in, out := &in.AuthSecret, &out.AuthSecret + *out = new(SecretReference) + (*in).DeepCopyInto(*out) + } if in.DataVolume != nil { in, out := &in.DataVolume, &out.DataVolume *out = new(corev1.VolumeSource) @@ -1557,7 +1567,7 @@ func (in *MongoDBSpec) DeepCopyInto(out *MongoDBSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -1837,7 +1847,7 @@ func (in *MySQLSpec) DeepCopyInto(out *MySQLSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -2101,7 +2111,7 @@ func (in *PerconaXtraDBSpec) DeepCopyInto(out *PerconaXtraDBSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -2270,7 +2280,7 @@ func (in *PgBouncerSpec) DeepCopyInto(out *PgBouncerSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret @@ -2480,7 +2490,7 @@ func (in *PostgresSpec) DeepCopyInto(out *PostgresSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Storage != nil { in, out := &in.Storage, &out.Storage @@ -2704,7 +2714,7 @@ func (in *ProxySQLSpec) DeepCopyInto(out *ProxySQLSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Monitor != nil { in, out := &in.Monitor, &out.Monitor @@ -2986,7 +2996,7 @@ func (in *RedisSentinelSpec) DeepCopyInto(out *RedisSentinelSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Monitor != nil { in, out := &in.Monitor, &out.Monitor @@ -3062,7 +3072,7 @@ func (in *RedisSpec) DeepCopyInto(out *RedisSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -3182,6 +3192,15 @@ func (in *ScriptSourceSpec) DeepCopy() *ScriptSourceSpec { func (in *SecretReference) DeepCopyInto(out *SecretReference) { *out = *in out.LocalObjectReference = in.LocalObjectReference + if in.RotateAfter != nil { + in, out := &in.RotateAfter, &out.RotateAfter + *out = new(metav1.Duration) + **out = **in + } + if in.ActiveFrom != nil { + in, out := &in.ActiveFrom, &out.ActiveFrom + *out = (*in).DeepCopy() + } return } @@ -3223,12 +3242,12 @@ func (in *SystemUserSecretsSpec) DeepCopyInto(out *SystemUserSecretsSpec) { if in.ReplicationUserSecret != nil { in, out := &in.ReplicationUserSecret, &out.ReplicationUserSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.MonitorUserSecret != nil { in, out := &in.MonitorUserSecret, &out.MonitorUserSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } return } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go index cc6e2a4b3..a3a6ade96 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go @@ -21133,7 +21133,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21249,8 +21249,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21317,6 +21316,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_helpers.go index dcb404431..c9774862a 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_helpers.go @@ -27,6 +27,7 @@ import ( "kubedb.dev/apimachinery/apis/kubedb" "kubedb.dev/apimachinery/crds" + promapi "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" "gomodules.xyz/pointer" core "k8s.io/api/core/v1" meta "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -37,6 +38,7 @@ import ( meta_util "kmodules.xyz/client-go/meta" "kmodules.xyz/client-go/policy/secomp" appcat "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" + mona "kmodules.xyz/monitoring-agent-api/api/v1" ofst "kmodules.xyz/offshoot-api/api/v2" ) @@ -146,7 +148,7 @@ func (r *Cassandra) GetAuthSecretName() string { if r.Spec.AuthSecret != nil && r.Spec.AuthSecret.Name != "" { return r.Spec.AuthSecret.Name } - return r.DefaultUserCredSecretName("admin") + return meta_util.NameWithSuffix(r.OffshootName(), "auth") } func (r *Cassandra) ConfigSecretName() string { @@ -178,6 +180,73 @@ func (r *Cassandra) GetConnectionScheme() string { return scheme } +func (r *Cassandra) OffShootSelectors(extraSelectors ...map[string]string) map[string]string { + selector := map[string]string{ + meta_util.NameLabelKey: r.ResourceFQN(), + meta_util.InstanceLabelKey: r.Name, + meta_util.ManagedByLabelKey: kubedb.GroupName, + } + return meta_util.OverwriteKeys(selector, extraSelectors...) +} + +func (r *Cassandra) offShootLabels(selector, override map[string]string) map[string]string { + selector[meta_util.ComponentLabelKey] = kubedb.ComponentDatabase + return meta_util.FilterKeys(kubedb.GroupName, selector, meta_util.OverwriteKeys(nil, r.Labels, override)) +} + +func (r *Cassandra) OffShootLabels() map[string]string { + return r.offShootLabels(r.OffShootSelectors(), nil) +} + +func (r *Cassandra) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]string) map[string]string { + svcTemplate := GetServiceTemplate(r.Spec.ServiceTemplates, alias) + return r.offShootLabels(meta_util.OverwriteKeys(r.OffShootSelectors(), extraLabels...), svcTemplate.Labels) +} + +func (r *Cassandra) OffShootName() string { + return r.Name +} + +type CassandraStatsService struct { + *Cassandra +} + +func (ks CassandraStatsService) TLSConfig() *promapi.TLSConfig { + return nil +} + +func (ks CassandraStatsService) GetNamespace() string { + return ks.Cassandra.GetNamespace() +} + +func (ks CassandraStatsService) ServiceName() string { + return ks.OffShootName() + "-stats" +} + +func (ks CassandraStatsService) ServiceMonitorName() string { + return ks.ServiceName() +} + +func (ks CassandraStatsService) ServiceMonitorAdditionalLabels() map[string]string { + return ks.OffshootLabels() +} + +func (ks CassandraStatsService) Path() string { + return kubedb.DefaultStatsPath +} + +func (ks CassandraStatsService) Scheme() string { + return "" +} + +func (r *Cassandra) StatsService() mona.StatsAccessor { + return &CassandraStatsService{r} +} + +func (r *Cassandra) StatsServiceLabels() map[string]string { + return r.ServiceLabels(StatsServiceAlias, map[string]string{kubedb.LabelRole: kubedb.RoleStats}) +} + func (r *Cassandra) SetHealthCheckerDefaults() { if r.Spec.HealthChecker.PeriodSeconds == nil { r.Spec.HealthChecker.PeriodSeconds = pointer.Int32P(30) @@ -203,17 +272,6 @@ func (r *Cassandra) SetDefaults() { r.Spec.DeletionPolicy = TerminationPolicyDelete } - if !r.Spec.DisableSecurity { - if r.Spec.AuthSecret == nil { - r.Spec.AuthSecret = &SecretReference{ - LocalObjectReference: core.LocalObjectReference{ - Name: r.DefaultUserCredSecretName(kubedb.CassandraUserAdmin), - }, - ExternallyManaged: false, - } - } - } - var casVersion catalog.CassandraVersion err := DefaultClient.Get(context.TODO(), types.NamespacedName{ Name: r.Spec.Version, @@ -274,6 +332,17 @@ func (r *Cassandra) SetDefaults() { } r.SetHealthCheckerDefaults() } + + r.Spec.Monitor.SetDefaults() + + if r.Spec.Monitor != nil && r.Spec.Monitor.Prometheus != nil { + if r.Spec.Monitor.Prometheus.Exporter.SecurityContext.RunAsUser == nil { + r.Spec.Monitor.Prometheus.Exporter.SecurityContext.RunAsUser = casVersion.Spec.SecurityContext.RunAsUser + } + if r.Spec.Monitor.Prometheus.Exporter.SecurityContext.RunAsGroup == nil { + r.Spec.Monitor.Prometheus.Exporter.SecurityContext.RunAsGroup = casVersion.Spec.SecurityContext.RunAsUser + } + } } func (r *Cassandra) setDefaultContainerSecurityContext(csVersion *catalog.CassandraVersion, podTemplate *ofst.PodTemplateSpec) { @@ -334,14 +403,17 @@ func (r *Cassandra) assignDefaultContainerSecurityContext(csVersion *catalog.Cas func (r *Cassandra) GetSeed() string { seed := " " + namespace := r.Namespace + name := r.Name if r.Spec.Topology == nil { - seed = kubedb.CassandraStandaloneSeed + " , " + seed = fmt.Sprintf("%s-0.%s-pods.%s.svc.cluster.local", name, name, namespace) + seed = seed + " , " return seed } for _, rack := range r.Spec.Topology.Rack { rackCount := min(*rack.Replicas, 3) for i := int32(0); i < rackCount; i++ { - current_seed := fmt.Sprintf("cassandra-sample-rack-%s-%d.cassandra-sample-rack-%s-pods.default.svc.cluster.local", rack.Name, i, rack.Name) + current_seed := fmt.Sprintf("%s-rack-%s-%d.%s-rack-%s-pods.%s.svc.cluster.local", name, rack.Name, i, name, rack.Name, namespace) seed += current_seed + " , " } } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_types.go index 5cf6a6571..0ff02c71c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_types.go @@ -20,6 +20,7 @@ import ( core "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kmapi "kmodules.xyz/client-go/api/v1" + mona "kmodules.xyz/monitoring-agent-api/api/v1" ofst "kmodules.xyz/offshoot-api/api/v2" ) @@ -90,6 +91,10 @@ type CassandraSpec struct { // +optional ServiceTemplates []NamedServiceTemplateSpec `json:"serviceTemplates,omitempty"` + // Monitor is used monitor database instance + // +optional + Monitor *mona.AgentSpec `json:"monitor,omitempty"` + // DeletionPolicy controls the delete operation for database // +optional DeletionPolicy TerminationPolicy `json:"deletionPolicy,omitempty"` diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_webhook.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_webhook.go index c85e1e89a..a948bfa7d 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_webhook.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_webhook.go @@ -230,10 +230,9 @@ func (c *Cassandra) validateClusterStorageType(rack RackSpec, allErr field.Error } func (r *Cassandra) ValidateVersion(db *Cassandra) error { - chVersion := catalog.CassandraVersion{} - err := DefaultClient.Get(context.TODO(), types.NamespacedName{Name: db.Spec.Version}, &chVersion) + casVersion := catalog.CassandraVersion{} + err := DefaultClient.Get(context.TODO(), types.NamespacedName{Name: db.Spec.Version}, &casVersion) if err != nil { - // fmt.Sprint(db.Spec.Version, "version not supported") return errors.New(fmt.Sprint("version ", db.Spec.Version, " not supported")) } return nil diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/clickhouse_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/clickhouse_helpers.go index aa0a69519..2715e6d16 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/clickhouse_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/clickhouse_helpers.go @@ -195,7 +195,7 @@ func (c *ClickHouse) GetAuthSecretName() string { if c.Spec.AuthSecret != nil && c.Spec.AuthSecret.Name != "" { return c.Spec.AuthSecret.Name } - return c.DefaultUserCredSecretName("admin") + return meta_util.NameWithSuffix(c.OffshootName(), "auth") } func (r *ClickHouse) ConfigSecretName() string { @@ -491,7 +491,7 @@ func (c *ClickHouse) ReplicasAreReady(lister pslister.PetSetLister) (bool, strin for _, cluster := range c.Spec.ClusterTopology.Cluster { expectedItems += int(*cluster.Shards) } - if !c.Spec.ClusterTopology.ClickHouseKeeper.ExternallyManaged { + if c.Spec.ClusterTopology.ClickHouseKeeper != nil && !c.Spec.ClusterTopology.ClickHouseKeeper.ExternallyManaged { if c.Spec.ClusterTopology.ClickHouseKeeper.Spec.Replicas != nil { expectedItems += 1 } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_helpers.go index 45fd8c665..f8c2d4f4e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_helpers.go @@ -19,6 +19,7 @@ package v1alpha2 import ( "context" "fmt" + "path/filepath" "strconv" "strings" @@ -102,6 +103,13 @@ func (d *Druid) GoverningServiceName() string { return meta_util.NameWithSuffix(d.ServiceName(), "pods") } +func (d *Druid) GetAuthSecretName() string { + if d.Spec.AuthSecret != nil && d.Spec.AuthSecret.Name != "" { + return d.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(d.OffShootName(), "auth") +} + func (d *Druid) OffShootSelectors(extraSelectors ...map[string]string) map[string]string { selector := map[string]string{ meta_util.NameLabelKey: d.ResourceFQN(), @@ -125,14 +133,18 @@ func (d *Druid) ServiceLabels(alias ServiceAlias, extraLabels ...map[string]stri return d.offShootLabels(meta_util.OverwriteKeys(d.OffShootSelectors(), extraLabels...), svcTemplate.Labels) } -func (r *Druid) Finalizer() string { - return fmt.Sprintf("%s/%s", apis.Finalizer, r.ResourceSingular()) +func (d *Druid) Finalizer() string { + return fmt.Sprintf("%s/%s", apis.Finalizer, d.ResourceSingular()) } func (d *Druid) DefaultUserCredSecretName(username string) string { return meta_util.NameWithSuffix(d.Name, strings.ReplaceAll(fmt.Sprintf("%s-cred", username), "_", "-")) } +func (d *Druid) DruidSecretName(suffix string) string { + return strings.Join([]string{d.Name, suffix}, "-") +} + type DruidStatsService struct { *Druid } @@ -204,21 +216,23 @@ func (d *Druid) PodControllerLabels(nodeType DruidNodeRoleType, extraLabels ...m } func (d *Druid) GetNodeSpec(nodeType DruidNodeRoleType) (*DruidNode, *DruidDataNode) { - if nodeType == DruidNodeRoleCoordinators { + switch nodeType { + case DruidNodeRoleCoordinators: return d.Spec.Topology.Coordinators, nil - } else if nodeType == DruidNodeRoleOverlords { + case DruidNodeRoleOverlords: return d.Spec.Topology.Overlords, nil - } else if nodeType == DruidNodeRoleMiddleManagers { + case DruidNodeRoleMiddleManagers: return nil, d.Spec.Topology.MiddleManagers - } else if nodeType == DruidNodeRoleHistoricals { + case DruidNodeRoleHistoricals: return nil, d.Spec.Topology.Historicals - } else if nodeType == DruidNodeRoleBrokers { + case DruidNodeRoleBrokers: return d.Spec.Topology.Brokers, nil - } else if nodeType == DruidNodeRoleRouters { + case DruidNodeRoleRouters: return d.Spec.Topology.Routers, nil + default: + klog.Errorf("unknown druid node role %s\n", nodeType) + return nil, nil } - - panic("Node role name does not match any known types") } func (d *Druid) ServiceAccountName() string { @@ -235,19 +249,42 @@ func (d *Druid) DruidNodeRoleStringSingular(nodeRole DruidNodeRoleType) string { } func (d *Druid) DruidNodeContainerPort(nodeRole DruidNodeRoleType) int32 { - if nodeRole == DruidNodeRoleCoordinators { - return kubedb.DruidPortCoordinators - } else if nodeRole == DruidNodeRoleOverlords { - return kubedb.DruidPortOverlords - } else if nodeRole == DruidNodeRoleMiddleManagers { - return kubedb.DruidPortMiddleManagers - } else if nodeRole == DruidNodeRoleHistoricals { - return kubedb.DruidPortHistoricals - } else if nodeRole == DruidNodeRoleBrokers { - return kubedb.DruidPortBrokers + if !d.Spec.EnableSSL { + switch nodeRole { + case DruidNodeRoleCoordinators: + return kubedb.DruidPlainTextPortCoordinators + case DruidNodeRoleOverlords: + return kubedb.DruidPlainTextPortOverlords + case DruidNodeRoleMiddleManagers: + return kubedb.DruidPlainTextPortMiddleManagers + case DruidNodeRoleHistoricals: + return kubedb.DruidPlainTextPortHistoricals + case DruidNodeRoleBrokers: + return kubedb.DruidPlainTextPortBrokers + case DruidNodeRoleRouters: + return kubedb.DruidPlainTextPortRouters + default: + klog.Errorf("unknown druid node role %s\n", nodeRole) + } + } else { + switch nodeRole { + case DruidNodeRoleCoordinators: + return kubedb.DruidTLSPortCoordinators + case DruidNodeRoleOverlords: + return kubedb.DruidTLSPortOverlords + case DruidNodeRoleMiddleManagers: + return kubedb.DruidTLSPortMiddleManagers + case DruidNodeRoleHistoricals: + return kubedb.DruidTLSPortHistoricals + case DruidNodeRoleBrokers: + return kubedb.DruidTLSPortBrokers + case DruidNodeRoleRouters: + return kubedb.DruidTLSPortRouters + default: + klog.Errorf("unknown node role %s\n", nodeRole) + } } - // Routers - return kubedb.DruidPortRouters + return -1 } func (d *Druid) SetHealthCheckerDefaults() { @@ -280,9 +317,9 @@ func (d *Druid) AppBindingMeta() appcat.AppBindingMeta { func (d *Druid) GetConnectionScheme() string { scheme := "http" - //if d.Spec.EnableSSL { - // scheme = "https" - //} + if d.Spec.EnableSSL { + scheme = "https" + } return scheme } @@ -320,7 +357,8 @@ func (d *Druid) GetMetadataStorageType(metadataStorage string) DruidMetadataStor metadataStorage == kubedb.DruidMetadataStorageTypePostgres || metadataStorage == strings.ToLower(string(kubedb.DruidMetadataStorageTypePostgres)) { return DruidMetadataStoragePostgreSQL } else { - panic(fmt.Sprintf("Unknown metadata storage type: %s", metadataStorage)) + klog.Errorf("Unknown metadata storage type: %s", metadataStorage) + return "" } } @@ -365,13 +403,30 @@ func (d *Druid) OffshootSelectors(extraSelectors ...map[string]string) map[strin return meta_util.OverwriteKeys(selector, extraSelectors...) } -func (d Druid) OffshootLabels() map[string]string { +func (d *Druid) OffshootLabels() map[string]string { return d.offshootLabels(d.OffshootSelectors(), nil) } -func (e Druid) offshootLabels(selector, override map[string]string) map[string]string { +func (d *Druid) offshootLabels(selector, override map[string]string) map[string]string { selector[meta_util.ComponentLabelKey] = kubedb.ComponentDatabase - return meta_util.FilterKeys(kubedb.GroupName, selector, meta_util.OverwriteKeys(nil, e.Labels, override)) + return meta_util.FilterKeys(kubedb.GroupName, selector, meta_util.OverwriteKeys(nil, d.Labels, override)) +} + +// CertificateName returns the default certificate name and/or certificate secret name for a certificate alias +func (d *Druid) CertificateName(alias DruidCertificateAlias) string { + return meta_util.NameWithSuffix(d.Name, fmt.Sprintf("%s-cert", string(alias))) +} + +// GetCertSecretName returns the secret name for a certificate alias if any, +// otherwise returns default certificate secret name for the given alias. +func (d *Druid) GetCertSecretName(alias DruidCertificateAlias) string { + if d.Spec.TLS != nil { + name, ok := kmapi.GetCertificateSecretName(d.Spec.TLS.Certificates, string(alias)) + if ok { + return name + } + } + return d.CertificateName(alias) } func (d *Druid) SetDefaults() { @@ -379,14 +434,12 @@ func (d *Druid) SetDefaults() { d.Spec.DeletionPolicy = TerminationPolicyDelete } - if d.Spec.DisableSecurity == nil { - d.Spec.DisableSecurity = pointer.BoolP(false) - } - - if !*d.Spec.DisableSecurity { - if d.Spec.AuthSecret == nil { - d.Spec.AuthSecret = &v1.LocalObjectReference{ - Name: d.DefaultUserCredSecretName(kubedb.DruidUserAdmin), + if d.Spec.EnableSSL { + if d.Spec.KeystoreCredSecret == nil { + d.Spec.KeystoreCredSecret = &SecretReference{ + LocalObjectReference: core.LocalObjectReference{ + Name: d.DruidSecretName(kubedb.DruidKeystoreSecretKey), + }, } } } @@ -523,6 +576,18 @@ func (d *Druid) SetDefaults() { } d.Spec.Monitor.SetDefaults() } + + if d.Spec.EnableSSL { + d.SetTLSDefaults() + } +} + +func (d *Druid) SetTLSDefaults() { + if d.Spec.TLS == nil || d.Spec.TLS.IssuerRef == nil { + return + } + d.Spec.TLS.Certificates = kmapi.SetMissingSecretNameForCertificate(d.Spec.TLS.Certificates, string(DruidServerCert), d.CertificateName(DruidServerCert)) + d.Spec.TLS.Certificates = kmapi.SetMissingSecretNameForCertificate(d.Spec.TLS.Certificates, string(DruidClientCert), d.CertificateName(DruidClientCert)) } func (d *Druid) SetDefaultsToMetadataStorage() { @@ -725,3 +790,16 @@ func (d *Druid) GetZooKeeperName() string { func (d *Druid) GetInitConfigMapName() string { return d.OffShootName() + "-init-script" } + +// CertSecretVolumeName returns the CertSecretVolumeName +// Values will be like: client-certs, server-certs etc. +func (d *Druid) CertSecretVolumeName(alias DruidCertificateAlias) string { + return string(alias) + "-certs" +} + +// CertSecretVolumeMountPath returns the CertSecretVolumeMountPath +// if configDir is "/var/druid/ssl", +// mountPath will be, "/var/druid/ssl/". +func (d *Druid) CertSecretVolumeMountPath(configDir string, cert string) string { + return filepath.Join(configDir, cert) +} 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 ef34f62ef..d572d1155 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_types.go @@ -64,11 +64,11 @@ type DruidSpec struct { // disable security. It disables authentication security of user. // If unset, default is false // +optional - DisableSecurity *bool `json:"disableSecurity,omitempty"` + DisableSecurity bool `json:"disableSecurity,omitempty"` // Database authentication secret // +optional - AuthSecret *core.LocalObjectReference `json:"authSecret,omitempty"` + AuthSecret *SecretReference `json:"authSecret,omitempty"` // Init is used to initialize database // +optional @@ -79,9 +79,16 @@ type DruidSpec struct { // +optional ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"` - //// TLS contains tls configurations - //// +optional - //TLS *kmapi.TLSConfig `json:"tls,omitempty"` + // To enable ssl for http layer + EnableSSL bool `json:"enableSSL,omitempty"` + + // Keystore encryption secret + // +optional + KeystoreCredSecret *SecretReference `json:"keystoreCredSecret,omitempty"` + + // TLS contains tls configurations + // +optional + TLS *kmapi.TLSConfig `json:"tls,omitempty"` // MetadataStorage contains information for Druid to connect to external dependency metadata storage // +optional @@ -274,3 +281,11 @@ const ( DruidDeepStorageAzure DruidDeepStorageType = "azure" DruidDeepStorageHDFS DruidDeepStorageType = "hdfs" ) + +// +kubebuilder:validation:Enum=server;client +type DruidCertificateAlias string + +const ( + DruidServerCert DruidCertificateAlias = "server" + DruidClientCert DruidCertificateAlias = "client" +) 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 f550ac339..95d5ebf41 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_helpers.go @@ -239,8 +239,8 @@ func (k *Kafka) CruiseControlConfigSecretName() string { return meta_util.NameWithSuffix(k.OffshootName(), "cruise-control-config") } -func (k *Kafka) DefaultUserCredSecretName(username string) string { - return meta_util.NameWithSuffix(k.Name, strings.ReplaceAll(fmt.Sprintf("%s-cred", username), "_", "-")) +func (k *Kafka) DefaultUserCredSecretName() string { + return meta_util.NameWithSuffix(k.OffshootName(), "auth") } func (k *Kafka) DefaultKeystoreCredSecretName() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mssqlserver_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mssqlserver_helpers.go index d8875b6cf..d37479609 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mssqlserver_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mssqlserver_helpers.go @@ -88,7 +88,7 @@ func (m *MSSQLServer) ServiceName() string { } func (m *MSSQLServer) SecondaryServiceName() string { - return metautil.NameWithPrefix(m.ServiceName(), "secondary") + return metautil.NameWithPrefix(m.ServiceName(), string(SecondaryServiceAlias)) } func (m *MSSQLServer) GoverningServiceName() string { @@ -245,6 +245,7 @@ func (m *MSSQLServer) GetPersistentSecrets() []string { secrets = append(secrets, m.EndpointCertSecretName()) secrets = append(secrets, m.DbmLoginSecretName()) secrets = append(secrets, m.MasterKeySecretName()) + secrets = append(secrets, m.ConfigSecretName()) return secrets } @@ -378,8 +379,14 @@ func (m *MSSQLServer) SetDefaults() { m.setDefaultContainerResourceLimits(m.Spec.PodTemplate) - m.Spec.Monitor.SetDefaults() - if m.Spec.Monitor != nil && m.Spec.Monitor.Prometheus != nil { + if m.Spec.Monitor != nil { + if m.Spec.Monitor.Prometheus == nil { + m.Spec.Monitor.Prometheus = &mona.PrometheusSpec{} + } + if m.Spec.Monitor.Prometheus.Exporter.Port == 0 { + m.Spec.Monitor.Prometheus.Exporter.Port = kubedb.MSSQLMonitoringDefaultServicePort + } + m.Spec.Monitor.SetDefaults() if m.Spec.Monitor.Prometheus.Exporter.SecurityContext.RunAsUser == nil { m.Spec.Monitor.Prometheus.Exporter.SecurityContext.RunAsUser = mssqlVersion.Spec.SecurityContext.RunAsUser } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mssqlserver_webhook.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mssqlserver_webhook.go index 4cd24ea3c..a088f2b98 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mssqlserver_webhook.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mssqlserver_webhook.go @@ -19,10 +19,13 @@ package v1alpha2 import ( "context" "errors" + "fmt" catalog "kubedb.dev/apimachinery/apis/catalog/v1alpha1" "kubedb.dev/apimachinery/apis/kubedb" + "gomodules.xyz/x/arrays" + core "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" @@ -156,6 +159,14 @@ func (m *MSSQLServer) ValidateCreateOrUpdate() field.ErrorList { m.Name, "spec.tls.issuerRef' is missing")) } + if m.Spec.PodTemplate != nil { + if err = ValidateMSSQLServerEnvVar(getMSSQLServerContainerEnvs(m), forbiddenMSSQLServerEnvVars, m.ResourceKind()); err != nil { + allErr = append(allErr, field.Invalid(field.NewPath("spec").Child("podTemplate"), + m.Name, + err.Error())) + } + } + err = mssqlValidateVolumes(m.Spec.PodTemplate) if err != nil { allErr = append(allErr, field.Invalid(field.NewPath("spec").Child("podTemplate").Child("spec").Child("volumes"), @@ -276,3 +287,31 @@ func mssqlValidateVolumesMountPaths(podTemplate *ofst.PodTemplateSpec) error { return nil } + +var forbiddenMSSQLServerEnvVars = []string{ + kubedb.EnvMSSQLSAUsername, + kubedb.EnvMSSQLSAPassword, + kubedb.EnvAcceptEula, + kubedb.EnvMSSQLEnableHADR, + kubedb.EnvMSSQLAgentEnabled, + kubedb.EnvMSSQLVersion, +} + +func getMSSQLServerContainerEnvs(m *MSSQLServer) []core.EnvVar { + for _, container := range m.Spec.PodTemplate.Spec.Containers { + if container.Name == kubedb.MSSQLContainerName { + return container.Env + } + } + return []core.EnvVar{} +} + +func ValidateMSSQLServerEnvVar(envs []core.EnvVar, forbiddenEnvs []string, resourceType string) error { + for _, env := range envs { + present, _ := arrays.Contains(forbiddenEnvs, env.Name) + if present { + return fmt.Errorf("environment variable %s is forbidden to use in %s spec", env.Name, resourceType) + } + } + return nil +} 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 2428653d5..c587cbcc8 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go @@ -501,6 +501,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.CassandraApp": schema_apimachinery_apis_kubedb_v1alpha2_CassandraApp(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.CassandraList": schema_apimachinery_apis_kubedb_v1alpha2_CassandraList(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.CassandraSpec": schema_apimachinery_apis_kubedb_v1alpha2_CassandraSpec(ref), + "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.CassandraStatsService": schema_apimachinery_apis_kubedb_v1alpha2_CassandraStatsService(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.CassandraStatus": schema_apimachinery_apis_kubedb_v1alpha2_CassandraStatus(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ClickHouse": schema_apimachinery_apis_kubedb_v1alpha2_ClickHouse(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ClickHouseKeeper": schema_apimachinery_apis_kubedb_v1alpha2_ClickHouseKeeper(ref), @@ -21280,7 +21281,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21396,8 +21397,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21464,6 +21464,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, @@ -25665,6 +25677,12 @@ func schema_apimachinery_apis_kubedb_v1alpha2_ArchiverRecovery(ref common.Refere Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), }, }, + "replicationStrategy": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"recoveryTimestamp"}, }, @@ -25889,6 +25907,12 @@ func schema_apimachinery_apis_kubedb_v1alpha2_CassandraSpec(ref common.Reference }, }, }, + "monitor": { + SchemaProps: spec.SchemaProps{ + Description: "Monitor is used monitor database instance", + Ref: ref("kmodules.xyz/monitoring-agent-api/api/v1.AgentSpec"), + }, + }, "deletionPolicy": { SchemaProps: spec.SchemaProps{ Description: "DeletionPolicy controls the delete operation for database", @@ -25908,7 +25932,27 @@ func schema_apimachinery_apis_kubedb_v1alpha2_CassandraSpec(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "kmodules.xyz/client-go/api/v1.HealthCheckSpec", "kmodules.xyz/offshoot-api/api/v2.PodTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Topology"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "kmodules.xyz/client-go/api/v1.HealthCheckSpec", "kmodules.xyz/monitoring-agent-api/api/v1.AgentSpec", "kmodules.xyz/offshoot-api/api/v2.PodTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Topology"}, + } +} + +func schema_apimachinery_apis_kubedb_v1alpha2_CassandraStatsService(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "Cassandra": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Cassandra"), + }, + }, + }, + Required: []string{"Cassandra"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Cassandra"}, } } @@ -26929,7 +26973,7 @@ func schema_apimachinery_apis_kubedb_v1alpha2_DruidSpec(ref common.ReferenceCall "authSecret": { SchemaProps: spec.SchemaProps{ Description: "Database authentication secret", - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference"), }, }, "init": { @@ -26944,6 +26988,25 @@ func schema_apimachinery_apis_kubedb_v1alpha2_DruidSpec(ref common.ReferenceCall Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), }, }, + "enableSSL": { + SchemaProps: spec.SchemaProps{ + Description: "To enable ssl for http layer", + Type: []string{"boolean"}, + Format: "", + }, + }, + "keystoreCredSecret": { + SchemaProps: spec.SchemaProps{ + Description: "Keystore encryption secret", + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference"), + }, + }, + "tls": { + SchemaProps: spec.SchemaProps{ + Description: "TLS contains tls configurations", + Ref: ref("kmodules.xyz/client-go/api/v1.TLSConfig"), + }, + }, "metadataStorage": { SchemaProps: spec.SchemaProps{ Description: "MetadataStorage contains information for Druid to connect to external dependency metadata storage", @@ -27008,7 +27071,7 @@ func schema_apimachinery_apis_kubedb_v1alpha2_DruidSpec(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "kmodules.xyz/client-go/api/v1.HealthCheckSpec", "kmodules.xyz/monitoring-agent-api/api/v1.AgentSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.DeepStorageSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.DruidClusterTopology", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.InitSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.MetadataStorage", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ZookeeperRef"}, + "k8s.io/api/core/v1.LocalObjectReference", "kmodules.xyz/client-go/api/v1.HealthCheckSpec", "kmodules.xyz/client-go/api/v1.TLSConfig", "kmodules.xyz/monitoring-agent-api/api/v1.AgentSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.DeepStorageSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.DruidClusterTopology", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.InitSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.MetadataStorage", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ZookeeperRef"}, } } @@ -34174,6 +34237,18 @@ func schema_apimachinery_apis_kubedb_v1alpha2_SecretReference(ref common.Referen Format: "", }, }, + "rotateAfter": { + SchemaProps: spec.SchemaProps{ + Description: "Recommendation engine will generate RotateAuth opsReq using this field", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "activeFrom": { + SchemaProps: spec.SchemaProps{ + Description: "ActiveFrom holds the RFC3339 time. The referred authSecret is in-use from this timestamp.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, "externallyManaged": { SchemaProps: spec.SchemaProps{ Type: []string{"boolean"}, @@ -34183,6 +34258,8 @@ func schema_apimachinery_apis_kubedb_v1alpha2_SecretReference(ref common.Referen }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } @@ -35180,12 +35257,26 @@ func schema_apimachinery_apis_kubedb_v1alpha2_ZooKeeperSpec(ref common.Reference Format: "int32", }, }, + "clientSecurePort": { + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, "storage": { SchemaProps: spec.SchemaProps{ Description: "Storage to specify how storage shall be used.", Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), }, }, + "enableSSL": { + SchemaProps: spec.SchemaProps{ + Description: "To enable ssl for http layer", + Type: []string{"boolean"}, + Format: "", + }, + }, "disableAuth": { SchemaProps: spec.SchemaProps{ Description: "If disable Auth true then don't create any auth secret", @@ -35205,6 +35296,18 @@ func schema_apimachinery_apis_kubedb_v1alpha2_ZooKeeperSpec(ref common.Reference Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), }, }, + "keystoreCredSecret": { + SchemaProps: spec.SchemaProps{ + Description: "Keystore encryption secret", + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference"), + }, + }, + "tls": { + SchemaProps: spec.SchemaProps{ + Description: "TLS contains tls configurations", + Ref: ref("kmodules.xyz/client-go/api/v1.TLSConfig"), + }, + }, "podTemplate": { SchemaProps: spec.SchemaProps{ Description: "PodTemplate is an optional configuration for pods used to expose database", @@ -35258,7 +35361,7 @@ func schema_apimachinery_apis_kubedb_v1alpha2_ZooKeeperSpec(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "kmodules.xyz/client-go/api/v1.HealthCheckSpec", "kmodules.xyz/monitoring-agent-api/api/v1.AgentSpec", "kmodules.xyz/offshoot-api/api/v2.PodTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "kmodules.xyz/client-go/api/v1.HealthCheckSpec", "kmodules.xyz/client-go/api/v1.TLSConfig", "kmodules.xyz/monitoring-agent-api/api/v1.AgentSpec", "kmodules.xyz/offshoot-api/api/v2.PodTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference"}, } } 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 44a5e1698..f998beb0c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_helpers.go @@ -78,7 +78,7 @@ func (r *RabbitMQ) GetAuthSecretName() string { if r.Spec.AuthSecret != nil && r.Spec.AuthSecret.Name != "" { return r.Spec.AuthSecret.Name } - return r.DefaultUserCredSecretName("admin") + return meta_util.NameWithSuffix(r.OffshootName(), "auth") } func (r *RabbitMQ) GetPersistentSecrets() []string { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_types.go index 86eb5631d..dbb060832 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/redis_sentinel_types.go @@ -31,7 +31,7 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:object:root=true -// +kubebuilder:resource:path=redissentinels,singular=redissentinel,categories={datastore,kubedb,appscode,all} +// +kubebuilder:resource:path=redissentinels,singular=redissentinel,shortName=rds,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" 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 b91305a7d..ca0b3b26c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_helpers.go @@ -97,6 +97,13 @@ func (s *Solr) SolrSecretName(suffix string) string { return strings.Join([]string{s.Name, suffix}, "-") } +func (s *Solr) GetAuthSecretName() string { + if s.Spec.AuthSecret != nil && s.Spec.AuthSecret.Name != "" { + return s.Spec.AuthSecret.Name + } + return meta_util.NameWithSuffix(s.OffshootName(), "auth") +} + func (s *Solr) SolrSecretKey() string { return kubedb.SolrSecretKey } @@ -249,6 +256,22 @@ func (s *Solr) PVCName(alias string) string { return meta_util.NameWithSuffix(s.Name, alias) } +func (s Solr) NodeRoleSpecificLabelKey(roleType SolrNodeRoleType) string { + return kubedb.GroupName + "/role-" + string(roleType) +} + +func (s Solr) OverseerSelectors() map[string]string { + return s.OffshootSelectors(map[string]string{string(SolrNodeRoleOverseer): SolrNodeRoleSet}) +} + +func (s Solr) DataSelectors() map[string]string { + return s.OffshootSelectors(map[string]string{string(SolrNodeRoleData): SolrNodeRoleSet}) +} + +func (s Solr) CoordinatorSelectors() map[string]string { + return s.OffshootSelectors(map[string]string{string(SolrNodeRoleCoordinator): SolrNodeRoleSet}) +} + func (s *Solr) SetDefaults() { if s.Spec.DeletionPolicy == "" { s.Spec.DeletionPolicy = TerminationPolicyDelete @@ -262,18 +285,6 @@ func (s *Solr) SetDefaults() { s.Spec.StorageType = StorageTypeDurable } - if s.Spec.AuthSecret == nil { - s.Spec.AuthSecret = &v1.LocalObjectReference{ - Name: s.SolrSecretName("admin-cred"), - } - } - - if s.Spec.KeystoreSecret == nil { - s.Spec.KeystoreSecret = &v1.LocalObjectReference{ - Name: s.SolrSecretName("keystore-cred"), - } - } - if s.Spec.ZookeeperDigestSecret == nil { s.Spec.ZookeeperDigestSecret = &v1.LocalObjectReference{ Name: s.SolrSecretName("zk-digest"), @@ -448,9 +459,8 @@ func (s *Solr) GetPersistentSecrets() []string { var secrets []string // Add Admin/Elastic user secret name - if s.Spec.AuthSecret != nil { - secrets = append(secrets, s.Spec.AuthSecret.Name) - } + + secrets = append(secrets, s.GetAuthSecretName()) if s.Spec.AuthConfigSecret != nil { secrets = append(secrets, s.Spec.AuthConfigSecret.Name) 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 1587bc34c..b56760945 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_types.go @@ -180,6 +180,7 @@ const ( SolrNodeRoleOverseer SolrNodeRoleType = "overseer" SolrNodeRoleData SolrNodeRoleType = "data" SolrNodeRoleCoordinator SolrNodeRoleType = "coordinator" + SolrNodeRoleCombined SolrNodeRoleType = "combined" SolrNodeRoleSet = "set" ) diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/types.go index 8e3d41bb2..bb818a960 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/types.go @@ -124,7 +124,7 @@ const ( TerminationPolicyDoNotTerminate TerminationPolicy = "DoNotTerminate" ) -// +kubebuilder:validation:Enum=primary;standby;stats;dashboard +// +kubebuilder:validation:Enum=primary;standby;stats;dashboard;secondary type ServiceAlias string const ( @@ -132,6 +132,22 @@ const ( StandbyServiceAlias ServiceAlias = "standby" StatsServiceAlias ServiceAlias = "stats" DashboardServiceAlias ServiceAlias = "dashboard" + SecondaryServiceAlias ServiceAlias = "secondary" +) + +// +kubebuilder:validation:Enum=fscopy;clone;sync;none +type PITRReplicationStrategy string + +const ( + // ReplicationStrategySync means data will be synced from primary to secondary + ReplicationStrategySync PITRReplicationStrategy = "sync" + // ReplicationStrategyFSCopy means data will be copied from filesystem + ReplicationStrategyFSCopy PITRReplicationStrategy = "fscopy" + // ReplicationStrategyClone means volumeSnapshot will be used to create pvc's + ReplicationStrategyClone PITRReplicationStrategy = "clone" + // ReplicationStrategyNone means no replication will be used + // data will be restored instead of replication + ReplicationStrategyNone PITRReplicationStrategy = "none" ) // +kubebuilder:validation:Enum=DNS;IP;IPv4;IPv6 @@ -206,7 +222,13 @@ type SystemUserSecretsSpec struct { type SecretReference struct { core.LocalObjectReference `json:",inline,omitempty"` - ExternallyManaged bool `json:"externallyManaged,omitempty"` + // Recommendation engine will generate RotateAuth opsReq using this field + // +optional + RotateAfter *metav1.Duration `json:"rotateAfter,omitempty"` + // ActiveFrom holds the RFC3339 time. The referred authSecret is in-use from this timestamp. + // +optional + ActiveFrom *metav1.Time `json:"activeFrom,omitempty"` + ExternallyManaged bool `json:"externallyManaged,omitempty"` } type Age struct { @@ -230,5 +252,6 @@ type ArchiverRecovery struct { ManifestRepository *kmapi.ObjectReference `json:"manifestRepository,omitempty"` // FullDBRepository means db restore + manifest restore - FullDBRepository *kmapi.ObjectReference `json:"fullDBRepository,omitempty"` + FullDBRepository *kmapi.ObjectReference `json:"fullDBRepository,omitempty"` + ReplicationStrategy *PITRReplicationStrategy `json:"replicationStrategy,omitempty"` } diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_helpers.go index 9edb2999e..5bd4730ef 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_helpers.go @@ -19,6 +19,7 @@ package v1alpha2 import ( "context" "fmt" + "strings" "kubedb.dev/apimachinery/apis" catalog "kubedb.dev/apimachinery/apis/catalog/v1alpha1" @@ -32,6 +33,7 @@ import ( "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/types" "k8s.io/klog/v2" + kmapi "kmodules.xyz/client-go/api/v1" "kmodules.xyz/client-go/apiextensions" coreutil "kmodules.xyz/client-go/core/v1" meta_util "kmodules.xyz/client-go/meta" @@ -145,6 +147,21 @@ func (z *ZooKeeper) GetAuthSecretName() string { return meta_util.NameWithSuffix(z.OffshootName(), "auth") } +func (z *ZooKeeper) GetKeystoreSecretName() string { + if z.Spec.KeystoreCredSecret != nil && z.Spec.KeystoreCredSecret.Name != "" { + return z.Spec.KeystoreCredSecret.Name + } + return meta_util.NameWithSuffix(z.OffshootName(), "keystore-cred") +} + +func (k *ZooKeeper) DefaultUserCredSecretName(username string) string { + return meta_util.NameWithSuffix(k.Name, strings.ReplaceAll(fmt.Sprintf("%s-cred", username), "_", "-")) +} + +func (z *ZooKeeper) DefaultKeystoreCredSecretName() string { + return meta_util.NameWithSuffix(z.Name, strings.ReplaceAll("keystore-cred", "_", "-")) +} + func (z *ZooKeeper) GetPersistentSecrets() []string { if z == nil { return nil @@ -204,6 +221,10 @@ func (z *ZooKeeper) SetDefaults() { apis.SetDefaultResourceLimits(&initContainer.Resources, kubedb.DefaultInitContainerResource) } + if z.Spec.EnableSSL { + z.SetTLSDefaults() + } + z.SetHealthCheckerDefaults() if z.Spec.Monitor != nil { if z.Spec.Monitor.Prometheus == nil { @@ -216,6 +237,14 @@ func (z *ZooKeeper) SetDefaults() { } } +func (z *ZooKeeper) SetTLSDefaults() { + if z.Spec.TLS == nil || z.Spec.TLS.IssuerRef == nil { + return + } + z.Spec.TLS.Certificates = kmapi.SetMissingSecretNameForCertificate(z.Spec.TLS.Certificates, string(ZooKeeperServerCert), z.CertificateName(ZooKeeperServerCert)) + z.Spec.TLS.Certificates = kmapi.SetMissingSecretNameForCertificate(z.Spec.TLS.Certificates, string(ZooKeeperClientCert), z.CertificateName(ZooKeeperClientCert)) +} + func (z *ZooKeeper) setDefaultContainerSecurityContext(zkVersion *catalog.ZooKeeperVersion, podTemplate *ofst.PodTemplateSpec) { if podTemplate == nil { return @@ -347,3 +376,26 @@ func (z *ZooKeeper) ReplicasAreReady(lister pslister.PetSetLister) (bool, string expectedItems := 1 return checkReplicasOfPetSet(lister.PetSets(z.Namespace), labels.SelectorFromSet(z.OffshootLabels()), expectedItems) } + +// CertificateName returns the default certificate name and/or certificate secret name for a certificate alias +func (z *ZooKeeper) CertificateName(alias ZooKeeperCertificateAlias) string { + return meta_util.NameWithSuffix(z.Name, fmt.Sprintf("%s-cert", string(alias))) +} + +// GetCertSecretName returns the secret name for a certificate alias if any, +// otherwise returns default certificate secret name for the given alias. +func (z *ZooKeeper) GetCertSecretName(alias ZooKeeperCertificateAlias) string { + if z.Spec.TLS != nil { + name, ok := kmapi.GetCertificateSecretName(z.Spec.TLS.Certificates, string(alias)) + if ok { + return name + } + } + return z.CertificateName(alias) +} + +// CertSecretVolumeName returns the CertSecretVolumeName +// Values will be like: client-certs, server-certs etc. +func (k *ZooKeeper) CertSecretVolumeName(alias ZooKeeperCertificateAlias) string { + return string(alias) + "-certs" +} 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 2e09dd241..661a5feea 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_types.go @@ -65,9 +65,16 @@ type ZooKeeperSpec struct { // +kubebuilder:default=8080 AdminServerPort int32 `json:"adminServerPort"` + // +optional + // +kubebuilder:default=2182 + ClientSecurePort int32 `json:"clientSecurePort"` + // Storage to specify how storage shall be used. Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"` + // To enable ssl for http layer + EnableSSL bool `json:"enableSSL,omitempty"` + // If disable Auth true then don't create any auth secret // +optional DisableAuth bool `json:"disableAuth,omitempty"` @@ -81,6 +88,14 @@ type ZooKeeperSpec struct { // +optional ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"` + // Keystore encryption secret + // +optional + KeystoreCredSecret *SecretReference `json:"keystoreCredSecret,omitempty"` + + // TLS contains tls configurations + // +optional + TLS *kmapi.TLSConfig `json:"tls,omitempty"` + // PodTemplate is an optional configuration for pods used to expose database // +optional PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"` @@ -121,6 +136,14 @@ type ZooKeeperStatus struct { Conditions []kmapi.Condition `json:"conditions,omitempty"` } +// +kubebuilder:validation:Enum=server;client +type ZooKeeperCertificateAlias string + +const ( + ZooKeeperServerCert ZooKeeperCertificateAlias = "server" + ZooKeeperClientCert ZooKeeperCertificateAlias = "client" +) + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type ZooKeeperList struct { @@ -128,3 +151,12 @@ type ZooKeeperList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []ZooKeeper `json:"items"` } + +// +kubebuilder:validation:Enum=controller;broker;combined +type ZooKeeperNodeRoleType string + +const ( + ZooKeeperNodeRoleController ZooKeeperNodeRoleType = "controller" + ZooKeeperNodeRoleBroker ZooKeeperNodeRoleType = "broker" + ZooKeeperNodeRoleCombined ZooKeeperNodeRoleType = "combined" +) 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 75a0fcdfc..a9586fa31 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 @@ -1100,6 +1100,7 @@ func autoConvert_v1alpha2_ArchiverRecovery_To_v1_ArchiverRecovery(in *ArchiverRe out.EncryptionSecret = (*clientgoapiv1.ObjectReference)(unsafe.Pointer(in.EncryptionSecret)) out.ManifestRepository = (*clientgoapiv1.ObjectReference)(unsafe.Pointer(in.ManifestRepository)) out.FullDBRepository = (*clientgoapiv1.ObjectReference)(unsafe.Pointer(in.FullDBRepository)) + out.ReplicationStrategy = (*v1.PITRReplicationStrategy)(unsafe.Pointer(in.ReplicationStrategy)) return nil } @@ -1113,6 +1114,7 @@ func autoConvert_v1_ArchiverRecovery_To_v1alpha2_ArchiverRecovery(in *v1.Archive out.EncryptionSecret = (*clientgoapiv1.ObjectReference)(unsafe.Pointer(in.EncryptionSecret)) out.ManifestRepository = (*clientgoapiv1.ObjectReference)(unsafe.Pointer(in.ManifestRepository)) out.FullDBRepository = (*clientgoapiv1.ObjectReference)(unsafe.Pointer(in.FullDBRepository)) + out.ReplicationStrategy = (*PITRReplicationStrategy)(unsafe.Pointer(in.ReplicationStrategy)) return nil } @@ -2354,6 +2356,8 @@ func autoConvert_v1_MemcachedSpec_To_v1alpha2_MemcachedSpec(in *v1.MemcachedSpec out.Replicas = (*int32)(unsafe.Pointer(in.Replicas)) out.Monitor = (*monitoringagentapiapiv1.AgentSpec)(unsafe.Pointer(in.Monitor)) out.ConfigSecret = (*corev1.LocalObjectReference)(unsafe.Pointer(in.ConfigSecret)) + // WARNING: in.AuthSecret requires manual conversion: does not exist in peer-type + // WARNING: in.DisableAuth requires manual conversion: does not exist in peer-type out.DataVolume = (*corev1.VolumeSource)(unsafe.Pointer(in.DataVolume)) if err := Convert_v2_PodTemplateSpec_To_v1_PodTemplateSpec(&in.PodTemplate, &out.PodTemplate, s); err != nil { return err @@ -3415,6 +3419,7 @@ func autoConvert_v1alpha2_PgBouncerSpec_To_v1_PgBouncerSpec(in *PgBouncerSpec, o out.TLS = (*clientgoapiv1.TLSConfig)(unsafe.Pointer(in.TLS)) // WARNING: in.TerminationPolicy requires manual conversion: does not exist in peer-type out.HealthChecker = in.HealthChecker + out.Halted = in.Halted return nil } @@ -3439,6 +3444,7 @@ func autoConvert_v1_PgBouncerSpec_To_v1alpha2_PgBouncerSpec(in *v1.PgBouncerSpec out.TLS = (*clientgoapiv1.TLSConfig)(unsafe.Pointer(in.TLS)) // WARNING: in.DeletionPolicy requires manual conversion: does not exist in peer-type out.HealthChecker = in.HealthChecker + out.Halted = in.Halted return nil } @@ -3818,6 +3824,7 @@ func autoConvert_v1alpha2_ProxySQLSpec_To_v1_ProxySQLSpec(in *ProxySQLSpec, out out.TLS = (*clientgoapiv1.TLSConfig)(unsafe.Pointer(in.TLS)) // WARNING: in.TerminationPolicy requires manual conversion: does not exist in peer-type out.HealthChecker = in.HealthChecker + out.Halted = in.Halted return nil } @@ -3840,6 +3847,7 @@ func autoConvert_v1_ProxySQLSpec_To_v1alpha2_ProxySQLSpec(in *v1.ProxySQLSpec, o out.TLS = (*clientgoapiv1.TLSConfig)(unsafe.Pointer(in.TLS)) // WARNING: in.DeletionPolicy requires manual conversion: does not exist in peer-type out.HealthChecker = in.HealthChecker + out.Halted = in.Halted return nil } 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 7e98f2fd0..4f8458a76 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 @@ -142,6 +142,11 @@ func (in *ArchiverRecovery) DeepCopyInto(out *ArchiverRecovery) { *out = new(apiv1.ObjectReference) **out = **in } + if in.ReplicationStrategy != nil { + in, out := &in.ReplicationStrategy, &out.ReplicationStrategy + *out = new(PITRReplicationStrategy) + **out = **in + } return } @@ -274,7 +279,7 @@ func (in *CassandraSpec) DeepCopyInto(out *CassandraSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret @@ -293,6 +298,11 @@ func (in *CassandraSpec) DeepCopyInto(out *CassandraSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.Monitor != nil { + in, out := &in.Monitor, &out.Monitor + *out = new(monitoringagentapiapiv1.AgentSpec) + (*in).DeepCopyInto(*out) + } in.HealthChecker.DeepCopyInto(&out.HealthChecker) return } @@ -307,6 +317,27 @@ func (in *CassandraSpec) DeepCopy() *CassandraSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CassandraStatsService) DeepCopyInto(out *CassandraStatsService) { + *out = *in + if in.Cassandra != nil { + in, out := &in.Cassandra, &out.Cassandra + *out = new(Cassandra) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraStatsService. +func (in *CassandraStatsService) DeepCopy() *CassandraStatsService { + if in == nil { + return nil + } + out := new(CassandraStatsService) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CassandraStatus) DeepCopyInto(out *CassandraStatus) { *out = *in @@ -490,7 +521,7 @@ func (in *ClickHouseSpec) DeepCopyInto(out *ClickHouseSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret @@ -989,15 +1020,10 @@ func (in *DruidSpec) DeepCopyInto(out *DruidSpec) { *out = new(DruidClusterTopology) (*in).DeepCopyInto(*out) } - if in.DisableSecurity != nil { - in, out := &in.DisableSecurity, &out.DisableSecurity - *out = new(bool) - **out = **in - } if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret - *out = new(corev1.LocalObjectReference) - **out = **in + *out = new(SecretReference) + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -1009,6 +1035,16 @@ func (in *DruidSpec) DeepCopyInto(out *DruidSpec) { *out = new(corev1.LocalObjectReference) **out = **in } + if in.KeystoreCredSecret != nil { + in, out := &in.KeystoreCredSecret, &out.KeystoreCredSecret + *out = new(SecretReference) + (*in).DeepCopyInto(*out) + } + if in.TLS != nil { + in, out := &in.TLS, &out.TLS + *out = new(apiv1.TLSConfig) + (*in).DeepCopyInto(*out) + } if in.MetadataStorage != nil { in, out := &in.MetadataStorage, &out.MetadataStorage *out = new(MetadataStorage) @@ -1322,7 +1358,7 @@ func (in *ElasticsearchSpec) DeepCopyInto(out *ElasticsearchSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Storage != nil { in, out := &in.Storage, &out.Storage @@ -1560,7 +1596,7 @@ func (in *EtcdSpec) DeepCopyInto(out *EtcdSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -1745,7 +1781,7 @@ func (in *FerretDBSpec) DeepCopyInto(out *FerretDBSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.PodTemplate != nil { in, out := &in.PodTemplate, &out.PodTemplate @@ -2020,7 +2056,7 @@ func (in *KafkaCruiseControl) DeepCopyInto(out *KafkaCruiseControl) { if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Replicas != nil { in, out := &in.Replicas, &out.Replicas @@ -2142,7 +2178,7 @@ func (in *KafkaSpec) DeepCopyInto(out *KafkaSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret @@ -2152,7 +2188,7 @@ func (in *KafkaSpec) DeepCopyInto(out *KafkaSpec) { if in.KeystoreCredSecret != nil { in, out := &in.KeystoreCredSecret, &out.KeystoreCredSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.TLS != nil { in, out := &in.TLS, &out.TLS @@ -2386,7 +2422,7 @@ func (in *MSSQLServerSpec) DeepCopyInto(out *MSSQLServerSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret @@ -2577,7 +2613,7 @@ func (in *MariaDBSpec) DeepCopyInto(out *MariaDBSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -3084,7 +3120,7 @@ func (in *MongoDBSpec) DeepCopyInto(out *MongoDBSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -3361,7 +3397,7 @@ func (in *MySQLSpec) DeepCopyInto(out *MySQLSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -3626,7 +3662,7 @@ func (in *PerconaXtraDBSpec) DeepCopyInto(out *PerconaXtraDBSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -3796,7 +3832,7 @@ func (in *PgBouncerSpec) DeepCopyInto(out *PgBouncerSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret @@ -3948,7 +3984,7 @@ func (in *PgpoolSpec) DeepCopyInto(out *PgpoolSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret @@ -4196,7 +4232,7 @@ func (in *PostgresSpec) DeepCopyInto(out *PostgresSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Storage != nil { in, out := &in.Storage, &out.Storage @@ -4421,7 +4457,7 @@ func (in *ProxySQLSpec) DeepCopyInto(out *ProxySQLSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Monitor != nil { in, out := &in.Monitor, &out.Monitor @@ -4565,7 +4601,7 @@ func (in *RabbitMQSpec) DeepCopyInto(out *RabbitMQSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret @@ -4920,7 +4956,7 @@ func (in *RedisSentinelSpec) DeepCopyInto(out *RedisSentinelSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Monitor != nil { in, out := &in.Monitor, &out.Monitor @@ -4996,7 +5032,7 @@ func (in *RedisSpec) DeepCopyInto(out *RedisSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.Init != nil { in, out := &in.Init, &out.Init @@ -5134,6 +5170,15 @@ func (in *ScriptSourceSpec) DeepCopy() *ScriptSourceSpec { func (in *SecretReference) DeepCopyInto(out *SecretReference) { *out = *in out.LocalObjectReference = in.LocalObjectReference + if in.RotateAfter != nil { + in, out := &in.RotateAfter, &out.RotateAfter + *out = new(v1.Duration) + **out = **in + } + if in.ActiveFrom != nil { + in, out := &in.ActiveFrom, &out.ActiveFrom + *out = (*in).DeepCopy() + } return } @@ -5292,12 +5337,12 @@ func (in *SinglestoreSpec) DeepCopyInto(out *SinglestoreSpec) { if in.LicenseSecret != nil { in, out := &in.LicenseSecret, &out.LicenseSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.PodTemplate != nil { in, out := &in.PodTemplate, &out.PodTemplate @@ -5648,12 +5693,12 @@ func (in *SystemUserSecretsSpec) DeepCopyInto(out *SystemUserSecretsSpec) { if in.ReplicationUserSecret != nil { in, out := &in.ReplicationUserSecret, &out.ReplicationUserSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.MonitorUserSecret != nil { in, out := &in.MonitorUserSecret, &out.MonitorUserSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } return } @@ -5810,13 +5855,23 @@ func (in *ZooKeeperSpec) DeepCopyInto(out *ZooKeeperSpec) { if in.AuthSecret != nil { in, out := &in.AuthSecret, &out.AuthSecret *out = new(SecretReference) - **out = **in + (*in).DeepCopyInto(*out) } if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret *out = new(corev1.LocalObjectReference) **out = **in } + if in.KeystoreCredSecret != nil { + in, out := &in.KeystoreCredSecret, &out.KeystoreCredSecret + *out = new(SecretReference) + (*in).DeepCopyInto(*out) + } + if in.TLS != nil { + in, out := &in.TLS, &out.TLS + *out = new(apiv1.TLSConfig) + (*in).DeepCopyInto(*out) + } in.PodTemplate.DeepCopyInto(&out.PodTemplate) if in.ServiceTemplates != nil { in, out := &in.ServiceTemplates, &out.ServiceTemplates 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 index 53c66cb82..f923be547 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/clickhouse_ops-types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/clickhouse_ops-types.go @@ -54,6 +54,8 @@ type ClickHouseOpsRequestSpec struct { DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc. Type ClickHouseOpsRequestType `json:"type"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -63,8 +65,8 @@ type ClickHouseOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=Restart -// ENUM(Restart) +// +kubebuilder:validation:Enum=Restart;RotateAuth +// ENUM(Restart, RotateAuth) type ClickHouseOpsRequestType string // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object 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 index 48062bbaf..fc27f2a41 100644 --- 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 @@ -14,12 +14,15 @@ import ( const ( // ClickHouseOpsRequestTypeRestart is a ClickHouseOpsRequestType of type Restart. ClickHouseOpsRequestTypeRestart ClickHouseOpsRequestType = "Restart" + // ClickHouseOpsRequestTypeRotateAuth is a ClickHouseOpsRequestType of type RotateAuth. + ClickHouseOpsRequestTypeRotateAuth ClickHouseOpsRequestType = "RotateAuth" ) var ErrInvalidClickHouseOpsRequestType = fmt.Errorf("not a valid ClickHouseOpsRequestType, try [%s]", strings.Join(_ClickHouseOpsRequestTypeNames, ", ")) var _ClickHouseOpsRequestTypeNames = []string{ string(ClickHouseOpsRequestTypeRestart), + string(ClickHouseOpsRequestTypeRotateAuth), } // ClickHouseOpsRequestTypeNames returns a list of possible string values of ClickHouseOpsRequestType. @@ -33,6 +36,7 @@ func ClickHouseOpsRequestTypeNames() []string { func ClickHouseOpsRequestTypeValues() []ClickHouseOpsRequestType { return []ClickHouseOpsRequestType{ ClickHouseOpsRequestTypeRestart, + ClickHouseOpsRequestTypeRotateAuth, } } @@ -49,7 +53,8 @@ func (x ClickHouseOpsRequestType) IsValid() bool { } var _ClickHouseOpsRequestTypeValue = map[string]ClickHouseOpsRequestType{ - "Restart": ClickHouseOpsRequestTypeRestart, + "Restart": ClickHouseOpsRequestTypeRestart, + "RotateAuth": ClickHouseOpsRequestTypeRotateAuth, } // ParseClickHouseOpsRequestType attempts to convert a string to a ClickHouseOpsRequestType. diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go index da9b164d2..db24040d8 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go @@ -101,6 +101,12 @@ const ( IssueCertificatesFailed = "IssueCertificatesFailed" ) +// RotateAuth +const ( + RotateAuth = "RotateAuth" + UpdateCredential = "UpdateCredential" +) + // Restart const ( Restart = "Restart" @@ -309,8 +315,24 @@ const ( // Druid Constants const ( + ScaleUpCoordinators = "ScaleUpCoordinators" + ScaleUpOverlords = "ScaleUpOverlords" + ScaleUpBrokers = "ScaleUpBrokers" + ScaleUpHistoricals = "ScaleUpHistoricals" + ScaleUpMiddleManagers = "ScaleUpMiddleManagers" + ScaleUpRouters = "ScaleUpRouters" + + ScaleDownCoordinators = "ScaleDownCoordinators" + ScaleDownOverlords = "ScaleDownOverlords" + ScaleDownBrokers = "ScaleDownBrokers" + ScaleDownHistoricals = "ScaleDownHistoricals" + ScaleDownMiddleManagers = "ScaleDownMiddleManagers" + ScaleDownRouters = "ScaleDownRouters" + UpdateMiddleManagersNodePVCs = "UpdateMiddleManagersNodePVCs" UpdateHistoricalsNodePVCs = "UpdateHistoricalsNodePVCs" + + UpdateCredentialDynamically = "UpdateCredentialDynamically" ) // SingleStore Constants 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 0c32106c8..6e175a002 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 @@ -55,12 +55,22 @@ type DruidOpsRequestSpec struct { DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: UpdateVersion, HorizontalScaling, VerticalScaling etc. Type DruidOpsRequestType `json:"type"` + // Specifies information necessary for horizontal scaling + HorizontalScaling *DruidHorizontalScalingSpec `json:"horizontalScaling,omitempty"` // Specifies information necessary for vertical scaling VerticalScaling *DruidVerticalScalingSpec `json:"verticalScaling,omitempty"` // Specifies information necessary for volume expansion VolumeExpansion *DruidVolumeExpansionSpec `json:"volumeExpansion,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // Specifies information necessary for restarting database Restart *RestartSpec `json:"restart,omitempty"` + // Specifies information necessary for upgrading Druid + UpdateVersion *DruidUpdateVersionSpec `json:"updateVersion,omitempty"` + // Specifies information necessary for custom configuration of Druid + Configuration *DruidCustomConfigurationSpec `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. @@ -68,8 +78,8 @@ type DruidOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=VerticalScaling;VolumeExpansion;Restart -// ENUM(VerticalScaling, VolumeExpansion, Restart) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type DruidOpsRequestType string // DruidVerticalScalingSpec contains the vertical scaling information of a Druid cluster @@ -82,6 +92,28 @@ type DruidVerticalScalingSpec struct { Routers *PodResources `json:"routers,omitempty"` } +// DruidHorizontalScalingSpec contains the horizontal scaling information of a Druid cluster +type DruidHorizontalScalingSpec struct { + // Node topology specification + Topology *DruidHorizontalScalingTopologySpec `json:"topology,omitempty"` +} + +// DruidHorizontalScalingTopologySpec contains the horizontal scaling information in cluster topology mode +type DruidHorizontalScalingTopologySpec struct { + // Number of coordinator nodes + Coordinators *int32 `json:"coordinators,omitempty"` + // Number of overlords nodes + Overlords *int32 `json:"overlords,omitempty"` + // Number of middleManagers nodes + MiddleManagers *int32 `json:"middleManagers,omitempty"` + // Number of historicals nodes + Historicals *int32 `json:"historicals,omitempty"` + // Number of brokers nodes + Brokers *int32 `json:"brokers,omitempty"` + // Number of routers nodes + Routers *int32 `json:"routers,omitempty"` +} + // DruidVolumeExpansionSpec is the spec for Druid volume expansion type DruidVolumeExpansionSpec struct { Mode VolumeExpansionMode `json:"mode"` @@ -91,6 +123,35 @@ type DruidVolumeExpansionSpec struct { Historicals *resource.Quantity `json:"historicals,omitempty"` } +// DruidUpdateVersionSpec contains the update version information of a druid cluster +type DruidUpdateVersionSpec struct { + // Specifies the target version name from catalog + TargetVersion string `json:"targetVersion,omitempty"` +} + +// DruidCustomConfigurationSpec is the spec for Reconfiguring the Druid Settings +type DruidCustomConfigurationSpec struct { + // ConfigSecret is an optional field to provide custom configuration file for database. + // +optional + ConfigSecret *core.LocalObjectReference `json:"configSecret,omitempty"` + // ApplyConfig is an optional field to provide Druid configuration. + // Provided configuration will be applied to config files stored in ConfigSecret. + // If the ConfigSecret is missing, the operator will create a new k8s secret by the + // following naming convention: {db-name}-user-config . + // Expected input format: + // applyConfig: + // file-name.properties: | + // key=value + // server.properties: | + // log.retention.ms=10000 + // +optional + ApplyConfig map[string]string `json:"applyConfig,omitempty"` + // If set to "true", the user provided configuration will be removed. + // The Druid cluster will start will default configuration that is generated by the operator. + // +optional + RemoveCustomConfig bool `json:"removeCustomConfig,omitempty"` +} + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // DruidOpsRequestList is a list of DruidOpsRequests diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/druid_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/druid_ops_types_enum.go index 6db24eb7a..be4917a96 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/druid_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/druid_ops_types_enum.go @@ -12,20 +12,35 @@ import ( ) const ( + // DruidOpsRequestTypeUpdateVersion is a DruidOpsRequestType of type UpdateVersion. + DruidOpsRequestTypeUpdateVersion DruidOpsRequestType = "UpdateVersion" + // DruidOpsRequestTypeHorizontalScaling is a DruidOpsRequestType of type HorizontalScaling. + DruidOpsRequestTypeHorizontalScaling DruidOpsRequestType = "HorizontalScaling" // DruidOpsRequestTypeVerticalScaling is a DruidOpsRequestType of type VerticalScaling. DruidOpsRequestTypeVerticalScaling DruidOpsRequestType = "VerticalScaling" // DruidOpsRequestTypeVolumeExpansion is a DruidOpsRequestType of type VolumeExpansion. DruidOpsRequestTypeVolumeExpansion DruidOpsRequestType = "VolumeExpansion" // DruidOpsRequestTypeRestart is a DruidOpsRequestType of type Restart. DruidOpsRequestTypeRestart DruidOpsRequestType = "Restart" + // DruidOpsRequestTypeReconfigure is a DruidOpsRequestType of type Reconfigure. + DruidOpsRequestTypeReconfigure DruidOpsRequestType = "Reconfigure" + // DruidOpsRequestTypeReconfigureTLS is a DruidOpsRequestType of type ReconfigureTLS. + DruidOpsRequestTypeReconfigureTLS DruidOpsRequestType = "ReconfigureTLS" + // DruidOpsRequestTypeRotateAuth is a DruidOpsRequestType of type RotateAuth. + DruidOpsRequestTypeRotateAuth DruidOpsRequestType = "RotateAuth" ) var ErrInvalidDruidOpsRequestType = fmt.Errorf("not a valid DruidOpsRequestType, try [%s]", strings.Join(_DruidOpsRequestTypeNames, ", ")) var _DruidOpsRequestTypeNames = []string{ + string(DruidOpsRequestTypeUpdateVersion), + string(DruidOpsRequestTypeHorizontalScaling), string(DruidOpsRequestTypeVerticalScaling), string(DruidOpsRequestTypeVolumeExpansion), string(DruidOpsRequestTypeRestart), + string(DruidOpsRequestTypeReconfigure), + string(DruidOpsRequestTypeReconfigureTLS), + string(DruidOpsRequestTypeRotateAuth), } // DruidOpsRequestTypeNames returns a list of possible string values of DruidOpsRequestType. @@ -38,9 +53,14 @@ func DruidOpsRequestTypeNames() []string { // DruidOpsRequestTypeValues returns a list of the values for DruidOpsRequestType func DruidOpsRequestTypeValues() []DruidOpsRequestType { return []DruidOpsRequestType{ + DruidOpsRequestTypeUpdateVersion, + DruidOpsRequestTypeHorizontalScaling, DruidOpsRequestTypeVerticalScaling, DruidOpsRequestTypeVolumeExpansion, DruidOpsRequestTypeRestart, + DruidOpsRequestTypeReconfigure, + DruidOpsRequestTypeReconfigureTLS, + DruidOpsRequestTypeRotateAuth, } } @@ -57,9 +77,14 @@ func (x DruidOpsRequestType) IsValid() bool { } var _DruidOpsRequestTypeValue = map[string]DruidOpsRequestType{ - "VerticalScaling": DruidOpsRequestTypeVerticalScaling, - "VolumeExpansion": DruidOpsRequestTypeVolumeExpansion, - "Restart": DruidOpsRequestTypeRestart, + "UpdateVersion": DruidOpsRequestTypeUpdateVersion, + "HorizontalScaling": DruidOpsRequestTypeHorizontalScaling, + "VerticalScaling": DruidOpsRequestTypeVerticalScaling, + "VolumeExpansion": DruidOpsRequestTypeVolumeExpansion, + "Restart": DruidOpsRequestTypeRestart, + "Reconfigure": DruidOpsRequestTypeReconfigure, + "ReconfigureTLS": DruidOpsRequestTypeReconfigureTLS, + "RotateAuth": DruidOpsRequestTypeRotateAuth, } // ParseDruidOpsRequestType attempts to convert a string to a DruidOpsRequestType. 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 ed716d2fd..607d9988a 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 @@ -67,6 +67,8 @@ type ElasticsearchOpsRequestSpec struct { Configuration *ElasticsearchCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -76,8 +78,8 @@ type ElasticsearchOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type ElasticsearchOpsRequestType string // ElasticsearchReplicaReadinessCriteria is the criteria for checking readiness of an Elasticsearch database diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types_enum.go index d007f1cb1..26d79bc40 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/elasticsearch_ops_types_enum.go @@ -26,6 +26,8 @@ const ( ElasticsearchOpsRequestTypeReconfigure ElasticsearchOpsRequestType = "Reconfigure" // ElasticsearchOpsRequestTypeReconfigureTLS is a ElasticsearchOpsRequestType of type ReconfigureTLS. ElasticsearchOpsRequestTypeReconfigureTLS ElasticsearchOpsRequestType = "ReconfigureTLS" + // ElasticsearchOpsRequestTypeRotateAuth is a ElasticsearchOpsRequestType of type RotateAuth. + ElasticsearchOpsRequestTypeRotateAuth ElasticsearchOpsRequestType = "RotateAuth" ) var ErrInvalidElasticsearchOpsRequestType = fmt.Errorf("not a valid ElasticsearchOpsRequestType, try [%s]", strings.Join(_ElasticsearchOpsRequestTypeNames, ", ")) @@ -38,6 +40,7 @@ var _ElasticsearchOpsRequestTypeNames = []string{ string(ElasticsearchOpsRequestTypeRestart), string(ElasticsearchOpsRequestTypeReconfigure), string(ElasticsearchOpsRequestTypeReconfigureTLS), + string(ElasticsearchOpsRequestTypeRotateAuth), } // ElasticsearchOpsRequestTypeNames returns a list of possible string values of ElasticsearchOpsRequestType. @@ -57,6 +60,7 @@ func ElasticsearchOpsRequestTypeValues() []ElasticsearchOpsRequestType { ElasticsearchOpsRequestTypeRestart, ElasticsearchOpsRequestTypeReconfigure, ElasticsearchOpsRequestTypeReconfigureTLS, + ElasticsearchOpsRequestTypeRotateAuth, } } @@ -80,6 +84,7 @@ var _ElasticsearchOpsRequestTypeValue = map[string]ElasticsearchOpsRequestType{ "Restart": ElasticsearchOpsRequestTypeRestart, "Reconfigure": ElasticsearchOpsRequestTypeReconfigure, "ReconfigureTLS": ElasticsearchOpsRequestTypeReconfigureTLS, + "RotateAuth": ElasticsearchOpsRequestTypeRotateAuth, } // ParseElasticsearchOpsRequestType attempts to convert a string to a ElasticsearchOpsRequestType. 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 363edf494..4dae4e912 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 @@ -66,6 +66,8 @@ type EtcdOpsRequestSpec struct { Configuration *EtcdCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // Specifies information necessary for restarting database Restart *RestartSpec `json:"restart,omitempty"` // ApplyOption is to control the execution of OpsRequest depending on the database state. @@ -73,8 +75,8 @@ type EtcdOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type EtcdOpsRequestType string // EtcdReplicaReadinessCriteria is the criteria for checking readiness of a Etcd pod diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types_enum.go index 55b45d722..822933689 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/etcd_ops_types_enum.go @@ -26,6 +26,8 @@ const ( EtcdOpsRequestTypeReconfigure EtcdOpsRequestType = "Reconfigure" // EtcdOpsRequestTypeReconfigureTLS is a EtcdOpsRequestType of type ReconfigureTLS. EtcdOpsRequestTypeReconfigureTLS EtcdOpsRequestType = "ReconfigureTLS" + // EtcdOpsRequestTypeRotateAuth is a EtcdOpsRequestType of type RotateAuth. + EtcdOpsRequestTypeRotateAuth EtcdOpsRequestType = "RotateAuth" ) var ErrInvalidEtcdOpsRequestType = fmt.Errorf("not a valid EtcdOpsRequestType, try [%s]", strings.Join(_EtcdOpsRequestTypeNames, ", ")) @@ -38,6 +40,7 @@ var _EtcdOpsRequestTypeNames = []string{ string(EtcdOpsRequestTypeRestart), string(EtcdOpsRequestTypeReconfigure), string(EtcdOpsRequestTypeReconfigureTLS), + string(EtcdOpsRequestTypeRotateAuth), } // EtcdOpsRequestTypeNames returns a list of possible string values of EtcdOpsRequestType. @@ -57,6 +60,7 @@ func EtcdOpsRequestTypeValues() []EtcdOpsRequestType { EtcdOpsRequestTypeRestart, EtcdOpsRequestTypeReconfigure, EtcdOpsRequestTypeReconfigureTLS, + EtcdOpsRequestTypeRotateAuth, } } @@ -80,6 +84,7 @@ var _EtcdOpsRequestTypeValue = map[string]EtcdOpsRequestType{ "Restart": EtcdOpsRequestTypeRestart, "Reconfigure": EtcdOpsRequestTypeReconfigure, "ReconfigureTLS": EtcdOpsRequestTypeReconfigureTLS, + "RotateAuth": EtcdOpsRequestTypeRotateAuth, } // ParseEtcdOpsRequestType attempts to convert a string to a EtcdOpsRequestType. 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 7e86a23be..c144137d0 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 @@ -64,6 +64,8 @@ type FerretDBOpsRequestSpec struct { VerticalScaling *FerretDBVerticalScalingSpec `json:"verticalScaling,omitempty"` // Specifies information necessary for configuring TLS TLS *FerretDBTLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -85,8 +87,8 @@ type FerretDBTLSSpec struct { ClientAuthMode v1alpha2.ClusterAuthMode `json:"clientAuthMode,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;VerticalScaling;Restart;HorizontalScaling;ReconfigureTLS -// ENUM(UpdateVersion, Restart, VerticalScaling, HorizontalScaling, ReconfigureTLS) +// +kubebuilder:validation:Enum=UpdateVersion;VerticalScaling;Restart;HorizontalScaling;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, Restart, VerticalScaling, HorizontalScaling, ReconfigureTLS, RotateAuth) type FerretDBOpsRequestType string // FerretDBUpdateVersionSpec contains the update version information of a ferretdb cluster diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ferretdb_ops.types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ferretdb_ops.types_enum.go index 284db35ac..5bdf97d30 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ferretdb_ops.types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ferretdb_ops.types_enum.go @@ -22,6 +22,8 @@ const ( FerretDBOpsRequestTypeHorizontalScaling FerretDBOpsRequestType = "HorizontalScaling" // FerretDBOpsRequestTypeReconfigureTLS is a FerretDBOpsRequestType of type ReconfigureTLS. FerretDBOpsRequestTypeReconfigureTLS FerretDBOpsRequestType = "ReconfigureTLS" + // FerretDBOpsRequestTypeRotateAuth is a FerretDBOpsRequestType of type RotateAuth. + FerretDBOpsRequestTypeRotateAuth FerretDBOpsRequestType = "RotateAuth" ) var ErrInvalidFerretDBOpsRequestType = fmt.Errorf("not a valid FerretDBOpsRequestType, try [%s]", strings.Join(_FerretDBOpsRequestTypeNames, ", ")) @@ -32,6 +34,7 @@ var _FerretDBOpsRequestTypeNames = []string{ string(FerretDBOpsRequestTypeVerticalScaling), string(FerretDBOpsRequestTypeHorizontalScaling), string(FerretDBOpsRequestTypeReconfigureTLS), + string(FerretDBOpsRequestTypeRotateAuth), } // FerretDBOpsRequestTypeNames returns a list of possible string values of FerretDBOpsRequestType. @@ -49,6 +52,7 @@ func FerretDBOpsRequestTypeValues() []FerretDBOpsRequestType { FerretDBOpsRequestTypeVerticalScaling, FerretDBOpsRequestTypeHorizontalScaling, FerretDBOpsRequestTypeReconfigureTLS, + FerretDBOpsRequestTypeRotateAuth, } } @@ -70,6 +74,7 @@ var _FerretDBOpsRequestTypeValue = map[string]FerretDBOpsRequestType{ "VerticalScaling": FerretDBOpsRequestTypeVerticalScaling, "HorizontalScaling": FerretDBOpsRequestTypeHorizontalScaling, "ReconfigureTLS": FerretDBOpsRequestTypeReconfigureTLS, + "RotateAuth": FerretDBOpsRequestTypeRotateAuth, } // ParseFerretDBOpsRequestType attempts to convert a string to a FerretDBOpsRequestType. 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 b42510ca9..cf995f98f 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 @@ -67,6 +67,8 @@ type KafkaOpsRequestSpec struct { Configuration *KafkaCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -76,8 +78,8 @@ type KafkaOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type KafkaOpsRequestType string // KafkaReplicaReadinessCriteria is the criteria for checking readiness of a Kafka pod diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/kafka_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/kafka_ops_types_enum.go index 7b38b6be4..f669219f8 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/kafka_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/kafka_ops_types_enum.go @@ -26,6 +26,8 @@ const ( KafkaOpsRequestTypeReconfigure KafkaOpsRequestType = "Reconfigure" // KafkaOpsRequestTypeReconfigureTLS is a KafkaOpsRequestType of type ReconfigureTLS. KafkaOpsRequestTypeReconfigureTLS KafkaOpsRequestType = "ReconfigureTLS" + // KafkaOpsRequestTypeRotateAuth is a KafkaOpsRequestType of type RotateAuth. + KafkaOpsRequestTypeRotateAuth KafkaOpsRequestType = "RotateAuth" ) var ErrInvalidKafkaOpsRequestType = fmt.Errorf("not a valid KafkaOpsRequestType, try [%s]", strings.Join(_KafkaOpsRequestTypeNames, ", ")) @@ -38,6 +40,7 @@ var _KafkaOpsRequestTypeNames = []string{ string(KafkaOpsRequestTypeRestart), string(KafkaOpsRequestTypeReconfigure), string(KafkaOpsRequestTypeReconfigureTLS), + string(KafkaOpsRequestTypeRotateAuth), } // KafkaOpsRequestTypeNames returns a list of possible string values of KafkaOpsRequestType. @@ -57,6 +60,7 @@ func KafkaOpsRequestTypeValues() []KafkaOpsRequestType { KafkaOpsRequestTypeRestart, KafkaOpsRequestTypeReconfigure, KafkaOpsRequestTypeReconfigureTLS, + KafkaOpsRequestTypeRotateAuth, } } @@ -80,6 +84,7 @@ var _KafkaOpsRequestTypeValue = map[string]KafkaOpsRequestType{ "Restart": KafkaOpsRequestTypeRestart, "Reconfigure": KafkaOpsRequestTypeReconfigure, "ReconfigureTLS": KafkaOpsRequestTypeReconfigureTLS, + "RotateAuth": KafkaOpsRequestTypeRotateAuth, } // ParseKafkaOpsRequestType attempts to convert a string to a KafkaOpsRequestType. 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 47e3e720d..52585bc60 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 @@ -67,6 +67,8 @@ type MariaDBOpsRequestSpec struct { Configuration *MariaDBCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *MariaDBTLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -76,8 +78,8 @@ type MariaDBOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type MariaDBOpsRequestType string // MariaDBReplicaReadinessCriteria is the criteria for checking readiness of an MariaDB database diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types_enum.go index 45f85b1c1..e8eda6c60 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mariadb_ops_types_enum.go @@ -26,6 +26,8 @@ const ( MariaDBOpsRequestTypeReconfigure MariaDBOpsRequestType = "Reconfigure" // MariaDBOpsRequestTypeReconfigureTLS is a MariaDBOpsRequestType of type ReconfigureTLS. MariaDBOpsRequestTypeReconfigureTLS MariaDBOpsRequestType = "ReconfigureTLS" + // MariaDBOpsRequestTypeRotateAuth is a MariaDBOpsRequestType of type RotateAuth. + MariaDBOpsRequestTypeRotateAuth MariaDBOpsRequestType = "RotateAuth" ) var ErrInvalidMariaDBOpsRequestType = fmt.Errorf("not a valid MariaDBOpsRequestType, try [%s]", strings.Join(_MariaDBOpsRequestTypeNames, ", ")) @@ -38,6 +40,7 @@ var _MariaDBOpsRequestTypeNames = []string{ string(MariaDBOpsRequestTypeRestart), string(MariaDBOpsRequestTypeReconfigure), string(MariaDBOpsRequestTypeReconfigureTLS), + string(MariaDBOpsRequestTypeRotateAuth), } // MariaDBOpsRequestTypeNames returns a list of possible string values of MariaDBOpsRequestType. @@ -57,6 +60,7 @@ func MariaDBOpsRequestTypeValues() []MariaDBOpsRequestType { MariaDBOpsRequestTypeRestart, MariaDBOpsRequestTypeReconfigure, MariaDBOpsRequestTypeReconfigureTLS, + MariaDBOpsRequestTypeRotateAuth, } } @@ -80,6 +84,7 @@ var _MariaDBOpsRequestTypeValue = map[string]MariaDBOpsRequestType{ "Restart": MariaDBOpsRequestTypeRestart, "Reconfigure": MariaDBOpsRequestTypeReconfigure, "ReconfigureTLS": MariaDBOpsRequestTypeReconfigureTLS, + "RotateAuth": MariaDBOpsRequestTypeRotateAuth, } // ParseMariaDBOpsRequestType attempts to convert a string to a MariaDBOpsRequestType. 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 d13f7592e..a166ae93d 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 @@ -66,6 +66,8 @@ type MemcachedOpsRequestSpec struct { Configuration *MemcachedCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -75,8 +77,8 @@ type MemcachedOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type MemcachedOpsRequestType string // MemcachedReplicaReadinessCriteria is the criteria for checking readiness of a Memcached pod diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types_enum.go index c77ec8a96..4b1645459 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/memcached_ops_types_enum.go @@ -26,6 +26,8 @@ const ( MemcachedOpsRequestTypeReconfigure MemcachedOpsRequestType = "Reconfigure" // MemcachedOpsRequestTypeReconfigureTLS is a MemcachedOpsRequestType of type ReconfigureTLS. MemcachedOpsRequestTypeReconfigureTLS MemcachedOpsRequestType = "ReconfigureTLS" + // MemcachedOpsRequestTypeRotateAuth is a MemcachedOpsRequestType of type RotateAuth. + MemcachedOpsRequestTypeRotateAuth MemcachedOpsRequestType = "RotateAuth" ) var ErrInvalidMemcachedOpsRequestType = fmt.Errorf("not a valid MemcachedOpsRequestType, try [%s]", strings.Join(_MemcachedOpsRequestTypeNames, ", ")) @@ -38,6 +40,7 @@ var _MemcachedOpsRequestTypeNames = []string{ string(MemcachedOpsRequestTypeRestart), string(MemcachedOpsRequestTypeReconfigure), string(MemcachedOpsRequestTypeReconfigureTLS), + string(MemcachedOpsRequestTypeRotateAuth), } // MemcachedOpsRequestTypeNames returns a list of possible string values of MemcachedOpsRequestType. @@ -57,6 +60,7 @@ func MemcachedOpsRequestTypeValues() []MemcachedOpsRequestType { MemcachedOpsRequestTypeRestart, MemcachedOpsRequestTypeReconfigure, MemcachedOpsRequestTypeReconfigureTLS, + MemcachedOpsRequestTypeRotateAuth, } } @@ -80,6 +84,7 @@ var _MemcachedOpsRequestTypeValue = map[string]MemcachedOpsRequestType{ "Restart": MemcachedOpsRequestTypeRestart, "Reconfigure": MemcachedOpsRequestTypeReconfigure, "ReconfigureTLS": MemcachedOpsRequestTypeReconfigureTLS, + "RotateAuth": MemcachedOpsRequestTypeRotateAuth, } // ParseMemcachedOpsRequestType attempts to convert a string to a MemcachedOpsRequestType. 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 baf5a7152..30e4975df 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 @@ -67,6 +67,8 @@ type MongoDBOpsRequestSpec struct { Configuration *MongoDBCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // Specifies information necessary for restarting database Restart *RestartSpec `json:"restart,omitempty"` // Specifies information necessary for reprovisioning database @@ -83,8 +85,8 @@ type MongoDBOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;Reprovision -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, Reprovision) +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;Reprovision;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, Reprovision, RotateAuth) type MongoDBOpsRequestType string // MongoDBReplicaReadinessCriteria is the criteria for checking readiness of a MongoDB pod diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types_enum.go index 753e52519..bed49cfc4 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mongodb_ops_types_enum.go @@ -28,6 +28,8 @@ const ( MongoDBOpsRequestTypeReconfigureTLS MongoDBOpsRequestType = "ReconfigureTLS" // MongoDBOpsRequestTypeReprovision is a MongoDBOpsRequestType of type Reprovision. MongoDBOpsRequestTypeReprovision MongoDBOpsRequestType = "Reprovision" + // MongoDBOpsRequestTypeRotateAuth is a MongoDBOpsRequestType of type RotateAuth. + MongoDBOpsRequestTypeRotateAuth MongoDBOpsRequestType = "RotateAuth" ) var ErrInvalidMongoDBOpsRequestType = fmt.Errorf("not a valid MongoDBOpsRequestType, try [%s]", strings.Join(_MongoDBOpsRequestTypeNames, ", ")) @@ -41,6 +43,7 @@ var _MongoDBOpsRequestTypeNames = []string{ string(MongoDBOpsRequestTypeReconfigure), string(MongoDBOpsRequestTypeReconfigureTLS), string(MongoDBOpsRequestTypeReprovision), + string(MongoDBOpsRequestTypeRotateAuth), } // MongoDBOpsRequestTypeNames returns a list of possible string values of MongoDBOpsRequestType. @@ -61,6 +64,7 @@ func MongoDBOpsRequestTypeValues() []MongoDBOpsRequestType { MongoDBOpsRequestTypeReconfigure, MongoDBOpsRequestTypeReconfigureTLS, MongoDBOpsRequestTypeReprovision, + MongoDBOpsRequestTypeRotateAuth, } } @@ -85,6 +89,7 @@ var _MongoDBOpsRequestTypeValue = map[string]MongoDBOpsRequestType{ "Reconfigure": MongoDBOpsRequestTypeReconfigure, "ReconfigureTLS": MongoDBOpsRequestTypeReconfigureTLS, "Reprovision": MongoDBOpsRequestTypeReprovision, + "RotateAuth": MongoDBOpsRequestTypeRotateAuth, } // ParseMongoDBOpsRequestType attempts to convert a string to a MongoDBOpsRequestType. 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 index d7ccd1c1f..9d7bb32fa 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mssqlserver_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mssqlserver_ops_types.go @@ -67,6 +67,8 @@ type MSSQLServerOpsRequestSpec struct { Configuration *MSSQLServerCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -76,8 +78,8 @@ type MSSQLServerOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type MSSQLServerOpsRequestType string // MSSQLServerReplicaReadinessCriteria is the criteria for checking readiness of a MSSQLServer pod @@ -105,7 +107,7 @@ type MSSQLServerVerticalScalingSpec struct { // MSSQLServerVolumeExpansionSpec is the spec for MSSQLServer volume expansion type MSSQLServerVolumeExpansionSpec struct { - // volume specification for Postgres + // volume specification for MSSQLServer MSSQLServer *resource.Quantity `json:"mssqlserver,omitempty"` Mode VolumeExpansionMode `json:"mode"` } 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 index b3344ff88..442a476b7 100644 --- 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 @@ -26,6 +26,8 @@ const ( MSSQLServerOpsRequestTypeReconfigure MSSQLServerOpsRequestType = "Reconfigure" // MSSQLServerOpsRequestTypeReconfigureTLS is a MSSQLServerOpsRequestType of type ReconfigureTLS. MSSQLServerOpsRequestTypeReconfigureTLS MSSQLServerOpsRequestType = "ReconfigureTLS" + // MSSQLServerOpsRequestTypeRotateAuth is a MSSQLServerOpsRequestType of type RotateAuth. + MSSQLServerOpsRequestTypeRotateAuth MSSQLServerOpsRequestType = "RotateAuth" ) var ErrInvalidMSSQLServerOpsRequestType = fmt.Errorf("not a valid MSSQLServerOpsRequestType, try [%s]", strings.Join(_MSSQLServerOpsRequestTypeNames, ", ")) @@ -38,6 +40,7 @@ var _MSSQLServerOpsRequestTypeNames = []string{ string(MSSQLServerOpsRequestTypeRestart), string(MSSQLServerOpsRequestTypeReconfigure), string(MSSQLServerOpsRequestTypeReconfigureTLS), + string(MSSQLServerOpsRequestTypeRotateAuth), } // MSSQLServerOpsRequestTypeNames returns a list of possible string values of MSSQLServerOpsRequestType. @@ -57,6 +60,7 @@ func MSSQLServerOpsRequestTypeValues() []MSSQLServerOpsRequestType { MSSQLServerOpsRequestTypeRestart, MSSQLServerOpsRequestTypeReconfigure, MSSQLServerOpsRequestTypeReconfigureTLS, + MSSQLServerOpsRequestTypeRotateAuth, } } @@ -80,6 +84,7 @@ var _MSSQLServerOpsRequestTypeValue = map[string]MSSQLServerOpsRequestType{ "Restart": MSSQLServerOpsRequestTypeRestart, "Reconfigure": MSSQLServerOpsRequestTypeReconfigure, "ReconfigureTLS": MSSQLServerOpsRequestTypeReconfigureTLS, + "RotateAuth": MSSQLServerOpsRequestTypeRotateAuth, } // ParseMSSQLServerOpsRequestType attempts to convert a string to a MSSQLServerOpsRequestType. 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 03a02477b..ddc4d0815 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 @@ -67,6 +67,8 @@ type MySQLOpsRequestSpec struct { Configuration *MySQLCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *MySQLTLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -76,8 +78,8 @@ type MySQLOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type MySQLOpsRequestType string // MySQLReplicaReadinessCriteria is the criteria for checking readiness of a MySQL pod diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types_enum.go index 7b9950f96..3e48bdf23 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/mysql_ops_types_enum.go @@ -26,6 +26,8 @@ const ( MySQLOpsRequestTypeReconfigure MySQLOpsRequestType = "Reconfigure" // MySQLOpsRequestTypeReconfigureTLS is a MySQLOpsRequestType of type ReconfigureTLS. MySQLOpsRequestTypeReconfigureTLS MySQLOpsRequestType = "ReconfigureTLS" + // MySQLOpsRequestTypeRotateAuth is a MySQLOpsRequestType of type RotateAuth. + MySQLOpsRequestTypeRotateAuth MySQLOpsRequestType = "RotateAuth" ) var ErrInvalidMySQLOpsRequestType = fmt.Errorf("not a valid MySQLOpsRequestType, try [%s]", strings.Join(_MySQLOpsRequestTypeNames, ", ")) @@ -38,6 +40,7 @@ var _MySQLOpsRequestTypeNames = []string{ string(MySQLOpsRequestTypeRestart), string(MySQLOpsRequestTypeReconfigure), string(MySQLOpsRequestTypeReconfigureTLS), + string(MySQLOpsRequestTypeRotateAuth), } // MySQLOpsRequestTypeNames returns a list of possible string values of MySQLOpsRequestType. @@ -57,6 +60,7 @@ func MySQLOpsRequestTypeValues() []MySQLOpsRequestType { MySQLOpsRequestTypeRestart, MySQLOpsRequestTypeReconfigure, MySQLOpsRequestTypeReconfigureTLS, + MySQLOpsRequestTypeRotateAuth, } } @@ -80,6 +84,7 @@ var _MySQLOpsRequestTypeValue = map[string]MySQLOpsRequestType{ "Restart": MySQLOpsRequestTypeRestart, "Reconfigure": MySQLOpsRequestTypeReconfigure, "ReconfigureTLS": MySQLOpsRequestTypeReconfigureTLS, + "RotateAuth": MySQLOpsRequestTypeRotateAuth, } // ParseMySQLOpsRequestType attempts to convert a string to a MySQLOpsRequestType. 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 144f53656..1806f12ea 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go @@ -492,14 +492,19 @@ 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.AuthSpec": schema_apimachinery_apis_ops_v1alpha1_AuthSpec(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.DruidCustomConfigurationSpec": schema_apimachinery_apis_ops_v1alpha1_DruidCustomConfigurationSpec(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidHorizontalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_DruidHorizontalScalingSpec(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidHorizontalScalingTopologySpec": schema_apimachinery_apis_ops_v1alpha1_DruidHorizontalScalingTopologySpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidOpsRequest": schema_apimachinery_apis_ops_v1alpha1_DruidOpsRequest(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidOpsRequestList": schema_apimachinery_apis_ops_v1alpha1_DruidOpsRequestList(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidOpsRequestSpec": schema_apimachinery_apis_ops_v1alpha1_DruidOpsRequestSpec(ref), + "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidUpdateVersionSpec": schema_apimachinery_apis_ops_v1alpha1_DruidUpdateVersionSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidVerticalScalingSpec": schema_apimachinery_apis_ops_v1alpha1_DruidVerticalScalingSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidVolumeExpansionSpec": schema_apimachinery_apis_ops_v1alpha1_DruidVolumeExpansionSpec(ref), "kubedb.dev/apimachinery/apis/ops/v1alpha1.ElasticsearchCustomConfiguration": schema_apimachinery_apis_ops_v1alpha1_ElasticsearchCustomConfiguration(ref), @@ -21282,7 +21287,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21398,8 +21403,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21466,6 +21470,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, @@ -25536,6 +25552,26 @@ func schema_apimachinery_apis_ops_v1alpha1_ArchiverOptions(ref common.ReferenceC } } +func schema_apimachinery_apis_ops_v1alpha1_AuthSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "secretRef": { + SchemaProps: spec.SchemaProps{ + Description: "SecretRef holds the new authSecret If it is given, ops-manager will use this. Otherwise, will generate random password", + Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.LocalObjectReference"}, + } +} + func schema_apimachinery_apis_ops_v1alpha1_ClickHouseOpsRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -25653,6 +25689,12 @@ func schema_apimachinery_apis_ops_v1alpha1_ClickHouseOpsRequestSpec(ref common.R Format: "", }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -25677,7 +25719,7 @@ func schema_apimachinery_apis_ops_v1alpha1_ClickHouseOpsRequestSpec(ref common.R }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, } } @@ -25722,6 +25764,126 @@ func schema_apimachinery_apis_ops_v1alpha1_ContainerResources(ref common.Referen } } +func schema_apimachinery_apis_ops_v1alpha1_DruidCustomConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DruidCustomConfigurationSpec is the spec for Reconfiguring the Druid Settings", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "configSecret": { + SchemaProps: spec.SchemaProps{ + Description: "ConfigSecret is an optional field to provide custom configuration file for database.", + Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + }, + }, + "applyConfig": { + SchemaProps: spec.SchemaProps{ + Description: "ApplyConfig is an optional field to provide Druid configuration. Provided configuration will be applied to config files stored in ConfigSecret. If the ConfigSecret is missing, the operator will create a new k8s secret by the following naming convention: {db-name}-user-config . Expected input format:\n\tapplyConfig:\n\t\tfile-name.properties: |\n\t\t\tkey=value\n\t\tserver.properties: |\n\t\t\tlog.retention.ms=10000", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "removeCustomConfig": { + SchemaProps: spec.SchemaProps{ + Description: "If set to \"true\", the user provided configuration will be removed. The Druid cluster will start will default configuration that is generated by the operator.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.LocalObjectReference"}, + } +} + +func schema_apimachinery_apis_ops_v1alpha1_DruidHorizontalScalingSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DruidHorizontalScalingSpec contains the horizontal scaling information of a Druid cluster", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "topology": { + SchemaProps: spec.SchemaProps{ + Description: "Node topology specification", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidHorizontalScalingTopologySpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidHorizontalScalingTopologySpec"}, + } +} + +func schema_apimachinery_apis_ops_v1alpha1_DruidHorizontalScalingTopologySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DruidHorizontalScalingTopologySpec contains the horizontal scaling information in cluster topology mode", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "coordinators": { + SchemaProps: spec.SchemaProps{ + Description: "Number of coordinator nodes", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "overlords": { + SchemaProps: spec.SchemaProps{ + Description: "Number of overlords nodes", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "middleManagers": { + SchemaProps: spec.SchemaProps{ + Description: "Number of middleManagers nodes", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "historicals": { + SchemaProps: spec.SchemaProps{ + Description: "Number of historicals nodes", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "brokers": { + SchemaProps: spec.SchemaProps{ + Description: "Number of brokers nodes", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "routers": { + SchemaProps: spec.SchemaProps{ + Description: "Number of routers nodes", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + }, + }, + } +} + func schema_apimachinery_apis_ops_v1alpha1_DruidOpsRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -25839,6 +26001,12 @@ func schema_apimachinery_apis_ops_v1alpha1_DruidOpsRequestSpec(ref common.Refere Format: "", }, }, + "horizontalScaling": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for horizontal scaling", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidHorizontalScalingSpec"), + }, + }, "verticalScaling": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for vertical scaling", @@ -25851,12 +26019,36 @@ func schema_apimachinery_apis_ops_v1alpha1_DruidOpsRequestSpec(ref common.Refere Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidVolumeExpansionSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"), }, }, + "updateVersion": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for upgrading Druid", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidUpdateVersionSpec"), + }, + }, + "configuration": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for custom configuration of Druid", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidCustomConfigurationSpec"), + }, + }, + "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.", @@ -25875,7 +26067,27 @@ func schema_apimachinery_apis_ops_v1alpha1_DruidOpsRequestSpec(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.DruidVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + } +} + +func schema_apimachinery_apis_ops_v1alpha1_DruidUpdateVersionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DruidUpdateVersionSpec contains the update version information of a druid 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: "", + }, + }, + }, + }, + }, } } @@ -26319,6 +26531,12 @@ func schema_apimachinery_apis_ops_v1alpha1_ElasticsearchOpsRequestSpec(ref commo Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -26343,7 +26561,7 @@ func schema_apimachinery_apis_ops_v1alpha1_ElasticsearchOpsRequestSpec(ref commo }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ElasticsearchCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ElasticsearchHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ElasticsearchUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ElasticsearchVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ElasticsearchVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ElasticsearchCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ElasticsearchHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ElasticsearchUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ElasticsearchVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ElasticsearchVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -26760,6 +26978,12 @@ func schema_apimachinery_apis_ops_v1alpha1_EtcdOpsRequestSpec(ref common.Referen Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -26778,7 +27002,7 @@ func schema_apimachinery_apis_ops_v1alpha1_EtcdOpsRequestSpec(ref common.Referen }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "kubedb.dev/apimachinery/apis/ops/v1alpha1.EtcdCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.EtcdHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.EtcdUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.EtcdVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.EtcdVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.EtcdCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.EtcdHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.EtcdUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.EtcdVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.EtcdVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -27011,6 +27235,12 @@ func schema_apimachinery_apis_ops_v1alpha1_FerretDBOpsRequestSpec(ref common.Ref Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.FerretDBTLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -27035,7 +27265,7 @@ func schema_apimachinery_apis_ops_v1alpha1_FerretDBOpsRequestSpec(ref common.Ref }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.FerretDBHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.FerretDBTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.FerretDBUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.FerretDBVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.FerretDBHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.FerretDBTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.FerretDBUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.FerretDBVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, } } @@ -27412,6 +27642,12 @@ func schema_apimachinery_apis_ops_v1alpha1_KafkaOpsRequestSpec(ref common.Refere Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -27436,7 +27672,7 @@ func schema_apimachinery_apis_ops_v1alpha1_KafkaOpsRequestSpec(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.KafkaVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -27759,6 +27995,12 @@ func schema_apimachinery_apis_ops_v1alpha1_MSSQLServerOpsRequestSpec(ref common. Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -27783,7 +28025,7 @@ func schema_apimachinery_apis_ops_v1alpha1_MSSQLServerOpsRequestSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MSSQLServerVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -27857,7 +28099,7 @@ func schema_apimachinery_apis_ops_v1alpha1_MSSQLServerVolumeExpansionSpec(ref co Properties: map[string]spec.Schema{ "mssqlserver": { SchemaProps: spec.SchemaProps{ - Description: "volume specification for Postgres", + Description: "volume specification for MSSQLServer", Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), }, }, @@ -28139,6 +28381,12 @@ func schema_apimachinery_apis_ops_v1alpha1_MariaDBOpsRequestSpec(ref common.Refe Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBTLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -28163,7 +28411,7 @@ func schema_apimachinery_apis_ops_v1alpha1_MariaDBOpsRequestSpec(ref common.Refe }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MariaDBVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, } } @@ -28562,6 +28810,12 @@ func schema_apimachinery_apis_ops_v1alpha1_MemcachedOpsRequestSpec(ref common.Re Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -28586,7 +28840,7 @@ func schema_apimachinery_apis_ops_v1alpha1_MemcachedOpsRequestSpec(ref common.Re }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MemcachedCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MemcachedHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MemcachedUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MemcachedVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MemcachedVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MemcachedCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MemcachedHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MemcachedUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MemcachedVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MemcachedVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -28951,6 +29205,12 @@ func schema_apimachinery_apis_ops_v1alpha1_MongoDBOpsRequestSpec(ref common.Refe Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -28993,7 +29253,7 @@ func schema_apimachinery_apis_ops_v1alpha1_MongoDBOpsRequestSpec(ref common.Refe }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ArchiverOptions", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBReplicaReadinessCriteria", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.Reprovision", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ArchiverOptions", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBReplicaReadinessCriteria", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MongoDBVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.Reprovision", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -29405,6 +29665,12 @@ func schema_apimachinery_apis_ops_v1alpha1_MySQLOpsRequestSpec(ref common.Refere Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLTLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -29429,7 +29695,7 @@ func schema_apimachinery_apis_ops_v1alpha1_MySQLOpsRequestSpec(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.MySQLVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, } } @@ -29929,6 +30195,12 @@ func schema_apimachinery_apis_ops_v1alpha1_PerconaXtraDBOpsRequestSpec(ref commo Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBTLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -29953,7 +30225,7 @@ func schema_apimachinery_apis_ops_v1alpha1_PerconaXtraDBOpsRequestSpec(ref commo }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PerconaXtraDBVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, } } @@ -30281,7 +30553,7 @@ func schema_apimachinery_apis_ops_v1alpha1_PgBouncerOpsRequestSpec(ref common.Re Description: "PgBouncerOpsRequestSpec is the spec for PgBouncerOpsRequest", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "serverRef": { + "databaseRef": { SchemaProps: spec.SchemaProps{ Description: "Specifies the PgBouncer reference", Default: map[string]interface{}{}, @@ -30326,6 +30598,12 @@ func schema_apimachinery_apis_ops_v1alpha1_PgBouncerOpsRequestSpec(ref common.Re Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -30346,11 +30624,11 @@ func schema_apimachinery_apis_ops_v1alpha1_PgBouncerOpsRequestSpec(ref common.Re }, }, }, - Required: []string{"serverRef", "type"}, + 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.PgBouncerCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgBouncerVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -30609,6 +30887,12 @@ func schema_apimachinery_apis_ops_v1alpha1_PgpoolOpsRequestSpec(ref common.Refer Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PgpoolTLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -30633,7 +30917,7 @@ func schema_apimachinery_apis_ops_v1alpha1_PgpoolOpsRequestSpec(ref common.Refer }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgpoolCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgpoolHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgpoolTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgpoolUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgpoolVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgpoolCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgpoolHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgpoolTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgpoolUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PgpoolVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, } } @@ -31039,6 +31323,12 @@ func schema_apimachinery_apis_ops_v1alpha1_PostgresOpsRequestSpec(ref common.Ref Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresTLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -31063,7 +31353,7 @@ func schema_apimachinery_apis_ops_v1alpha1_PostgresOpsRequestSpec(ref common.Ref }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.PostgresVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, } } @@ -31458,6 +31748,12 @@ func schema_apimachinery_apis_ops_v1alpha1_ProxySQLOpsRequestSpec(ref common.Ref Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -31482,7 +31778,7 @@ func schema_apimachinery_apis_ops_v1alpha1_ProxySQLOpsRequestSpec(ref common.Ref }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ProxySQLVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -31760,6 +32056,12 @@ func schema_apimachinery_apis_ops_v1alpha1_RabbitMQOpsRequestSpec(ref common.Ref Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -31784,7 +32086,7 @@ func schema_apimachinery_apis_ops_v1alpha1_RabbitMQOpsRequestSpec(ref common.Ref }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RabbitMQCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RabbitMQHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RabbitMQUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RabbitMQVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RabbitMQVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RabbitMQCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RabbitMQHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RabbitMQUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RabbitMQVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RabbitMQVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -32088,6 +32390,12 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisOpsRequestSpec(ref common.Refere Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisTLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -32118,7 +32426,7 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisOpsRequestSpec(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisTLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec"}, } } @@ -32339,6 +32647,12 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisSentinelOpsRequestSpec(ref commo Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -32363,7 +32677,7 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisSentinelOpsRequestSpec(ref commo }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RedisSentinelVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -32932,6 +33246,12 @@ func schema_apimachinery_apis_ops_v1alpha1_SinglestoreOpsRequestSpec(ref common. Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "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.", @@ -32950,7 +33270,7 @@ 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.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"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "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"}, } } @@ -33297,6 +33617,12 @@ func schema_apimachinery_apis_ops_v1alpha1_SolrOpsRequestSpec(ref common.Referen Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, "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.", @@ -33315,7 +33641,7 @@ func schema_apimachinery_apis_ops_v1alpha1_SolrOpsRequestSpec(ref common.Referen }, }, 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.SolrCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SolrHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SolrUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SolrVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SolrVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SolrCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SolrHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SolrUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SolrVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.SolrVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -33709,6 +34035,18 @@ func schema_apimachinery_apis_ops_v1alpha1_ZooKeeperOpsRequestSpec(ref common.Re Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperCustomConfigurationSpec"), }, }, + "authentication": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring authSecret of the database", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec"), + }, + }, + "tls": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for configuring TLS", + Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"), + }, + }, "restart": { SchemaProps: spec.SchemaProps{ Description: "Specifies information necessary for restarting database", @@ -33733,7 +34071,7 @@ func schema_apimachinery_apis_ops_v1alpha1_ZooKeeperOpsRequestSpec(ref common.Re }, }, 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.ZooKeeperCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperVolumeExpansionSpec"}, + "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "kubedb.dev/apimachinery/apis/ops/v1alpha1.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperCustomConfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperHorizontalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperUpdateVersionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.ZooKeeperVolumeExpansionSpec"}, } } 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 0032268c3..95319c5c1 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 @@ -67,6 +67,8 @@ type PerconaXtraDBOpsRequestSpec struct { Configuration *PerconaXtraDBCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *PerconaXtraDBTLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -76,8 +78,8 @@ type PerconaXtraDBOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type PerconaXtraDBOpsRequestType string // PerconaXtraDBReplicaReadinessCriteria is the criteria for checking readiness of an PerconaXtraDB database diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types_enum.go index 36637c5b5..eda9705f9 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/perconaxtradb_ops_types_enum.go @@ -26,6 +26,8 @@ const ( PerconaXtraDBOpsRequestTypeReconfigure PerconaXtraDBOpsRequestType = "Reconfigure" // PerconaXtraDBOpsRequestTypeReconfigureTLS is a PerconaXtraDBOpsRequestType of type ReconfigureTLS. PerconaXtraDBOpsRequestTypeReconfigureTLS PerconaXtraDBOpsRequestType = "ReconfigureTLS" + // PerconaXtraDBOpsRequestTypeRotateAuth is a PerconaXtraDBOpsRequestType of type RotateAuth. + PerconaXtraDBOpsRequestTypeRotateAuth PerconaXtraDBOpsRequestType = "RotateAuth" ) var ErrInvalidPerconaXtraDBOpsRequestType = fmt.Errorf("not a valid PerconaXtraDBOpsRequestType, try [%s]", strings.Join(_PerconaXtraDBOpsRequestTypeNames, ", ")) @@ -38,6 +40,7 @@ var _PerconaXtraDBOpsRequestTypeNames = []string{ string(PerconaXtraDBOpsRequestTypeRestart), string(PerconaXtraDBOpsRequestTypeReconfigure), string(PerconaXtraDBOpsRequestTypeReconfigureTLS), + string(PerconaXtraDBOpsRequestTypeRotateAuth), } // PerconaXtraDBOpsRequestTypeNames returns a list of possible string values of PerconaXtraDBOpsRequestType. @@ -57,6 +60,7 @@ func PerconaXtraDBOpsRequestTypeValues() []PerconaXtraDBOpsRequestType { PerconaXtraDBOpsRequestTypeRestart, PerconaXtraDBOpsRequestTypeReconfigure, PerconaXtraDBOpsRequestTypeReconfigureTLS, + PerconaXtraDBOpsRequestTypeRotateAuth, } } @@ -80,6 +84,7 @@ var _PerconaXtraDBOpsRequestTypeValue = map[string]PerconaXtraDBOpsRequestType{ "Restart": PerconaXtraDBOpsRequestTypeRestart, "Reconfigure": PerconaXtraDBOpsRequestTypeReconfigure, "ReconfigureTLS": PerconaXtraDBOpsRequestTypeReconfigureTLS, + "RotateAuth": PerconaXtraDBOpsRequestTypeRotateAuth, } // ParsePerconaXtraDBOpsRequestType attempts to convert a string to a PerconaXtraDBOpsRequestType. diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_helpers.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_helpers.go index 2f8d08a36..0734cbd3a 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_helpers.go @@ -64,7 +64,7 @@ func (p *PgBouncerOpsRequest) GetObjectMeta() metav1.ObjectMeta { } func (p *PgBouncerOpsRequest) GetDBRefName() string { - return p.Spec.ServerRef.Name + return p.Spec.DatabaseRef.Name } func (p *PgBouncerOpsRequest) GetRequestType() any { 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 b679dc082..628edaf13 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 @@ -51,7 +51,7 @@ type PgBouncerOpsRequest struct { // PgBouncerOpsRequestSpec is the spec for PgBouncerOpsRequest type PgBouncerOpsRequestSpec struct { // Specifies the PgBouncer reference - ServerRef core.LocalObjectReference `json:"serverRef"` + DatabaseRef core.LocalObjectReference `json:"databaseRef"` // Specifies the ops request type: Upgrade, HorizontalScaling, VerticalScaling etc. Type PgBouncerOpsRequestType `json:"type"` // Specifies information necessary for upgrading PgBouncer @@ -64,6 +64,8 @@ type PgBouncerOpsRequestSpec struct { Configuration *PgBouncerCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -73,8 +75,8 @@ type PgBouncerOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=HorizontalScaling;VerticalScaling;UpdateVersion;Reconfigure -// ENUM(HorizontalScaling, VerticalScaling, UpdateVersion, Reconfigure) +// +kubebuilder:validation:Enum=HorizontalScaling;VerticalScaling;UpdateVersion;Reconfigure;RotateAuth +// ENUM(HorizontalScaling, VerticalScaling, UpdateVersion, Reconfigure, RotateAuth) type PgBouncerOpsRequestType string type PgBouncerUpdateVersionSpec struct { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types_enum.go index 215cf3d4b..6043a822c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgbouncer_ops_types_enum.go @@ -20,6 +20,8 @@ const ( PgBouncerOpsRequestTypeUpdateVersion PgBouncerOpsRequestType = "UpdateVersion" // PgBouncerOpsRequestTypeReconfigure is a PgBouncerOpsRequestType of type Reconfigure. PgBouncerOpsRequestTypeReconfigure PgBouncerOpsRequestType = "Reconfigure" + // PgBouncerOpsRequestTypeRotateAuth is a PgBouncerOpsRequestType of type RotateAuth. + PgBouncerOpsRequestTypeRotateAuth PgBouncerOpsRequestType = "RotateAuth" ) var ErrInvalidPgBouncerOpsRequestType = fmt.Errorf("not a valid PgBouncerOpsRequestType, try [%s]", strings.Join(_PgBouncerOpsRequestTypeNames, ", ")) @@ -29,6 +31,7 @@ var _PgBouncerOpsRequestTypeNames = []string{ string(PgBouncerOpsRequestTypeVerticalScaling), string(PgBouncerOpsRequestTypeUpdateVersion), string(PgBouncerOpsRequestTypeReconfigure), + string(PgBouncerOpsRequestTypeRotateAuth), } // PgBouncerOpsRequestTypeNames returns a list of possible string values of PgBouncerOpsRequestType. @@ -45,6 +48,7 @@ func PgBouncerOpsRequestTypeValues() []PgBouncerOpsRequestType { PgBouncerOpsRequestTypeVerticalScaling, PgBouncerOpsRequestTypeUpdateVersion, PgBouncerOpsRequestTypeReconfigure, + PgBouncerOpsRequestTypeRotateAuth, } } @@ -65,6 +69,7 @@ var _PgBouncerOpsRequestTypeValue = map[string]PgBouncerOpsRequestType{ "VerticalScaling": PgBouncerOpsRequestTypeVerticalScaling, "UpdateVersion": PgBouncerOpsRequestTypeUpdateVersion, "Reconfigure": PgBouncerOpsRequestTypeReconfigure, + "RotateAuth": PgBouncerOpsRequestTypeRotateAuth, } // ParsePgBouncerOpsRequestType attempts to convert a string to a PgBouncerOpsRequestType. 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 0adfa55de..ac28f60f0 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 @@ -66,6 +66,8 @@ type PgpoolOpsRequestSpec struct { Configuration *PgpoolCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *PgpoolTLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -87,8 +89,8 @@ type PgpoolTLSSpec struct { ClientAuthMode v1alpha2.PgpoolClientAuthMode `json:"clientAuthMode,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;VerticalScaling;Reconfigure;Restart;HorizontalScaling;ReconfigureTLS -// ENUM(UpdateVersion, Restart, Reconfigure, VerticalScaling, HorizontalScaling, ReconfigureTLS) +// +kubebuilder:validation:Enum=UpdateVersion;VerticalScaling;Reconfigure;Restart;HorizontalScaling;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, Restart, Reconfigure, VerticalScaling, HorizontalScaling, ReconfigureTLS, RotateAuth) type PgpoolOpsRequestType string // PgpoolUpdateVersionSpec contains the update version information of a pgpool cluster diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgpool_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgpool_ops_types_enum.go index 04c36a612..05b6fad16 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgpool_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/pgpool_ops_types_enum.go @@ -24,6 +24,8 @@ const ( PgpoolOpsRequestTypeHorizontalScaling PgpoolOpsRequestType = "HorizontalScaling" // PgpoolOpsRequestTypeReconfigureTLS is a PgpoolOpsRequestType of type ReconfigureTLS. PgpoolOpsRequestTypeReconfigureTLS PgpoolOpsRequestType = "ReconfigureTLS" + // PgpoolOpsRequestTypeRotateAuth is a PgpoolOpsRequestType of type RotateAuth. + PgpoolOpsRequestTypeRotateAuth PgpoolOpsRequestType = "RotateAuth" ) var ErrInvalidPgpoolOpsRequestType = fmt.Errorf("not a valid PgpoolOpsRequestType, try [%s]", strings.Join(_PgpoolOpsRequestTypeNames, ", ")) @@ -35,6 +37,7 @@ var _PgpoolOpsRequestTypeNames = []string{ string(PgpoolOpsRequestTypeVerticalScaling), string(PgpoolOpsRequestTypeHorizontalScaling), string(PgpoolOpsRequestTypeReconfigureTLS), + string(PgpoolOpsRequestTypeRotateAuth), } // PgpoolOpsRequestTypeNames returns a list of possible string values of PgpoolOpsRequestType. @@ -53,6 +56,7 @@ func PgpoolOpsRequestTypeValues() []PgpoolOpsRequestType { PgpoolOpsRequestTypeVerticalScaling, PgpoolOpsRequestTypeHorizontalScaling, PgpoolOpsRequestTypeReconfigureTLS, + PgpoolOpsRequestTypeRotateAuth, } } @@ -75,6 +79,7 @@ var _PgpoolOpsRequestTypeValue = map[string]PgpoolOpsRequestType{ "VerticalScaling": PgpoolOpsRequestTypeVerticalScaling, "HorizontalScaling": PgpoolOpsRequestTypeHorizontalScaling, "ReconfigureTLS": PgpoolOpsRequestTypeReconfigureTLS, + "RotateAuth": PgpoolOpsRequestTypeRotateAuth, } // ParsePgpoolOpsRequestType attempts to convert a string to a PgpoolOpsRequestType. 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 99b15ac00..bc2839490 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 @@ -80,6 +80,8 @@ type PostgresOpsRequestSpec struct { Configuration *PostgresCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *PostgresTLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -89,8 +91,8 @@ type PostgresOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=Upgrade;UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type PostgresOpsRequestType string type PostgresUpdateVersionSpec struct { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types_enum.go index 4ec97d61b..e9dbf8951 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/postgres_ops_types_enum.go @@ -26,6 +26,8 @@ const ( PostgresOpsRequestTypeReconfigure PostgresOpsRequestType = "Reconfigure" // PostgresOpsRequestTypeReconfigureTLS is a PostgresOpsRequestType of type ReconfigureTLS. PostgresOpsRequestTypeReconfigureTLS PostgresOpsRequestType = "ReconfigureTLS" + // PostgresOpsRequestTypeRotateAuth is a PostgresOpsRequestType of type RotateAuth. + PostgresOpsRequestTypeRotateAuth PostgresOpsRequestType = "RotateAuth" ) var ErrInvalidPostgresOpsRequestType = fmt.Errorf("not a valid PostgresOpsRequestType, try [%s]", strings.Join(_PostgresOpsRequestTypeNames, ", ")) @@ -38,6 +40,7 @@ var _PostgresOpsRequestTypeNames = []string{ string(PostgresOpsRequestTypeRestart), string(PostgresOpsRequestTypeReconfigure), string(PostgresOpsRequestTypeReconfigureTLS), + string(PostgresOpsRequestTypeRotateAuth), } // PostgresOpsRequestTypeNames returns a list of possible string values of PostgresOpsRequestType. @@ -57,6 +60,7 @@ func PostgresOpsRequestTypeValues() []PostgresOpsRequestType { PostgresOpsRequestTypeRestart, PostgresOpsRequestTypeReconfigure, PostgresOpsRequestTypeReconfigureTLS, + PostgresOpsRequestTypeRotateAuth, } } @@ -80,6 +84,7 @@ var _PostgresOpsRequestTypeValue = map[string]PostgresOpsRequestType{ "Restart": PostgresOpsRequestTypeRestart, "Reconfigure": PostgresOpsRequestTypeReconfigure, "ReconfigureTLS": PostgresOpsRequestTypeReconfigureTLS, + "RotateAuth": PostgresOpsRequestTypeRotateAuth, } // ParsePostgresOpsRequestType attempts to convert a string to a PostgresOpsRequestType. 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 98f76ac67..6fbe2f229 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 @@ -67,6 +67,8 @@ type ProxySQLOpsRequestSpec struct { Configuration *ProxySQLCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -76,8 +78,8 @@ type ProxySQLOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type ProxySQLOpsRequestType string // ProxySQLReplicaReadinessCriteria is the criteria for checking readiness of a ProxySQL pod diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types_enum.go index 0339c2eaa..8e53368c2 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/proxysql_ops_types_enum.go @@ -24,6 +24,8 @@ const ( ProxySQLOpsRequestTypeReconfigure ProxySQLOpsRequestType = "Reconfigure" // ProxySQLOpsRequestTypeReconfigureTLS is a ProxySQLOpsRequestType of type ReconfigureTLS. ProxySQLOpsRequestTypeReconfigureTLS ProxySQLOpsRequestType = "ReconfigureTLS" + // ProxySQLOpsRequestTypeRotateAuth is a ProxySQLOpsRequestType of type RotateAuth. + ProxySQLOpsRequestTypeRotateAuth ProxySQLOpsRequestType = "RotateAuth" ) var ErrInvalidProxySQLOpsRequestType = fmt.Errorf("not a valid ProxySQLOpsRequestType, try [%s]", strings.Join(_ProxySQLOpsRequestTypeNames, ", ")) @@ -35,6 +37,7 @@ var _ProxySQLOpsRequestTypeNames = []string{ string(ProxySQLOpsRequestTypeRestart), string(ProxySQLOpsRequestTypeReconfigure), string(ProxySQLOpsRequestTypeReconfigureTLS), + string(ProxySQLOpsRequestTypeRotateAuth), } // ProxySQLOpsRequestTypeNames returns a list of possible string values of ProxySQLOpsRequestType. @@ -53,6 +56,7 @@ func ProxySQLOpsRequestTypeValues() []ProxySQLOpsRequestType { ProxySQLOpsRequestTypeRestart, ProxySQLOpsRequestTypeReconfigure, ProxySQLOpsRequestTypeReconfigureTLS, + ProxySQLOpsRequestTypeRotateAuth, } } @@ -75,6 +79,7 @@ var _ProxySQLOpsRequestTypeValue = map[string]ProxySQLOpsRequestType{ "Restart": ProxySQLOpsRequestTypeRestart, "Reconfigure": ProxySQLOpsRequestTypeReconfigure, "ReconfigureTLS": ProxySQLOpsRequestTypeReconfigureTLS, + "RotateAuth": ProxySQLOpsRequestTypeRotateAuth, } // ParseProxySQLOpsRequestType attempts to convert a string to a ProxySQLOpsRequestType. 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 2ab637806..79f9d2a5f 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 @@ -67,6 +67,8 @@ type RabbitMQOpsRequestSpec struct { Configuration *RabbitMQCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -76,8 +78,8 @@ type RabbitMQOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type RabbitMQOpsRequestType string // RabbitMQUpdateVersionSpec contains the update version information of a rabbitmq cluster diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/rabbitmq_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/rabbitmq_ops_types_enum.go index ee2c32470..117e4d42e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/rabbitmq_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/rabbitmq_ops_types_enum.go @@ -26,6 +26,8 @@ const ( RabbitMQOpsRequestTypeReconfigure RabbitMQOpsRequestType = "Reconfigure" // RabbitMQOpsRequestTypeReconfigureTLS is a RabbitMQOpsRequestType of type ReconfigureTLS. RabbitMQOpsRequestTypeReconfigureTLS RabbitMQOpsRequestType = "ReconfigureTLS" + // RabbitMQOpsRequestTypeRotateAuth is a RabbitMQOpsRequestType of type RotateAuth. + RabbitMQOpsRequestTypeRotateAuth RabbitMQOpsRequestType = "RotateAuth" ) var ErrInvalidRabbitMQOpsRequestType = fmt.Errorf("not a valid RabbitMQOpsRequestType, try [%s]", strings.Join(_RabbitMQOpsRequestTypeNames, ", ")) @@ -38,6 +40,7 @@ var _RabbitMQOpsRequestTypeNames = []string{ string(RabbitMQOpsRequestTypeRestart), string(RabbitMQOpsRequestTypeReconfigure), string(RabbitMQOpsRequestTypeReconfigureTLS), + string(RabbitMQOpsRequestTypeRotateAuth), } // RabbitMQOpsRequestTypeNames returns a list of possible string values of RabbitMQOpsRequestType. @@ -57,6 +60,7 @@ func RabbitMQOpsRequestTypeValues() []RabbitMQOpsRequestType { RabbitMQOpsRequestTypeRestart, RabbitMQOpsRequestTypeReconfigure, RabbitMQOpsRequestTypeReconfigureTLS, + RabbitMQOpsRequestTypeRotateAuth, } } @@ -80,6 +84,7 @@ var _RabbitMQOpsRequestTypeValue = map[string]RabbitMQOpsRequestType{ "Restart": RabbitMQOpsRequestTypeRestart, "Reconfigure": RabbitMQOpsRequestTypeReconfigure, "ReconfigureTLS": RabbitMQOpsRequestTypeReconfigureTLS, + "RotateAuth": RabbitMQOpsRequestTypeRotateAuth, } // ParseRabbitMQOpsRequestType attempts to convert a string to a RabbitMQOpsRequestType. 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 191225c8d..7c9d9c722 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 @@ -67,6 +67,8 @@ type RedisOpsRequestSpec struct { Configuration *RedisCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *RedisTLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // Specifies information necessary for restarting database Restart *RestartSpec `json:"restart,omitempty"` // Specifies information necessary for replacing sentinel instances @@ -78,8 +80,8 @@ type RedisOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;ReplaceSentinel -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, ReplaceSentinel) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;ReplaceSentinel;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, ReplaceSentinel, RotateAuth) type RedisOpsRequestType string type RedisTLSSpec struct { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types_enum.go index 65640e397..47b134a8b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_ops_types_enum.go @@ -28,6 +28,8 @@ const ( RedisOpsRequestTypeReconfigureTLS RedisOpsRequestType = "ReconfigureTLS" // RedisOpsRequestTypeReplaceSentinel is a RedisOpsRequestType of type ReplaceSentinel. RedisOpsRequestTypeReplaceSentinel RedisOpsRequestType = "ReplaceSentinel" + // RedisOpsRequestTypeRotateAuth is a RedisOpsRequestType of type RotateAuth. + RedisOpsRequestTypeRotateAuth RedisOpsRequestType = "RotateAuth" ) var ErrInvalidRedisOpsRequestType = fmt.Errorf("not a valid RedisOpsRequestType, try [%s]", strings.Join(_RedisOpsRequestTypeNames, ", ")) @@ -41,6 +43,7 @@ var _RedisOpsRequestTypeNames = []string{ string(RedisOpsRequestTypeReconfigure), string(RedisOpsRequestTypeReconfigureTLS), string(RedisOpsRequestTypeReplaceSentinel), + string(RedisOpsRequestTypeRotateAuth), } // RedisOpsRequestTypeNames returns a list of possible string values of RedisOpsRequestType. @@ -61,6 +64,7 @@ func RedisOpsRequestTypeValues() []RedisOpsRequestType { RedisOpsRequestTypeReconfigure, RedisOpsRequestTypeReconfigureTLS, RedisOpsRequestTypeReplaceSentinel, + RedisOpsRequestTypeRotateAuth, } } @@ -85,6 +89,7 @@ var _RedisOpsRequestTypeValue = map[string]RedisOpsRequestType{ "Reconfigure": RedisOpsRequestTypeReconfigure, "ReconfigureTLS": RedisOpsRequestTypeReconfigureTLS, "ReplaceSentinel": RedisOpsRequestTypeReplaceSentinel, + "RotateAuth": RedisOpsRequestTypeRotateAuth, } // ParseRedisOpsRequestType attempts to convert a string to a RedisOpsRequestType. 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 573526e66..c2adc2899 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 @@ -65,6 +65,8 @@ type RedisSentinelOpsRequestSpec struct { Configuration *RedisSentinelCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` // 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. @@ -74,8 +76,8 @@ type RedisSentinelOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;Restart;Reconfigure;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, Restart, Reconfigure, ReconfigureTLS) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type RedisSentinelOpsRequestType string // RedisSentinelReplicaReadinessCriteria is the criteria for checking readiness of a RedisSentinel pod diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types_enum.go index 51a54c7eb..bde87bdaa 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/redis_sentinel_ops_types_enum.go @@ -24,6 +24,8 @@ const ( RedisSentinelOpsRequestTypeReconfigure RedisSentinelOpsRequestType = "Reconfigure" // RedisSentinelOpsRequestTypeReconfigureTLS is a RedisSentinelOpsRequestType of type ReconfigureTLS. RedisSentinelOpsRequestTypeReconfigureTLS RedisSentinelOpsRequestType = "ReconfigureTLS" + // RedisSentinelOpsRequestTypeRotateAuth is a RedisSentinelOpsRequestType of type RotateAuth. + RedisSentinelOpsRequestTypeRotateAuth RedisSentinelOpsRequestType = "RotateAuth" ) var ErrInvalidRedisSentinelOpsRequestType = fmt.Errorf("not a valid RedisSentinelOpsRequestType, try [%s]", strings.Join(_RedisSentinelOpsRequestTypeNames, ", ")) @@ -35,6 +37,7 @@ var _RedisSentinelOpsRequestTypeNames = []string{ string(RedisSentinelOpsRequestTypeRestart), string(RedisSentinelOpsRequestTypeReconfigure), string(RedisSentinelOpsRequestTypeReconfigureTLS), + string(RedisSentinelOpsRequestTypeRotateAuth), } // RedisSentinelOpsRequestTypeNames returns a list of possible string values of RedisSentinelOpsRequestType. @@ -53,6 +56,7 @@ func RedisSentinelOpsRequestTypeValues() []RedisSentinelOpsRequestType { RedisSentinelOpsRequestTypeRestart, RedisSentinelOpsRequestTypeReconfigure, RedisSentinelOpsRequestTypeReconfigureTLS, + RedisSentinelOpsRequestTypeRotateAuth, } } @@ -75,6 +79,7 @@ var _RedisSentinelOpsRequestTypeValue = map[string]RedisSentinelOpsRequestType{ "Restart": RedisSentinelOpsRequestTypeRestart, "Reconfigure": RedisSentinelOpsRequestTypeReconfigure, "ReconfigureTLS": RedisSentinelOpsRequestTypeReconfigureTLS, + "RotateAuth": RedisSentinelOpsRequestTypeRotateAuth, } // ParseRedisSentinelOpsRequestType attempts to convert a string to a RedisSentinelOpsRequestType. 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 133624af1..618805999 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 @@ -69,6 +69,8 @@ type SinglestoreOpsRequestSpec struct { Configuration *SinglestoreCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,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. @@ -76,8 +78,8 @@ type SinglestoreOpsRequestSpec struct { Apply ApplyOption `json:"apply,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Configuration;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Configuration, ReconfigureTLS) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type SinglestoreOpsRequestType string // SinglestoreUpdateVersionSpec contains the update version information of a kafka cluster 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 110ec9e9e..466d7894f 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 @@ -22,10 +22,12 @@ const ( SinglestoreOpsRequestTypeVolumeExpansion SinglestoreOpsRequestType = "VolumeExpansion" // SinglestoreOpsRequestTypeRestart is a SinglestoreOpsRequestType of type Restart. SinglestoreOpsRequestTypeRestart SinglestoreOpsRequestType = "Restart" - // SinglestoreOpsRequestTypeConfiguration is a SinglestoreOpsRequestType of type Configuration. - SinglestoreOpsRequestTypeConfiguration SinglestoreOpsRequestType = "Configuration" + // SinglestoreOpsRequestTypeReconfigure is a SinglestoreOpsRequestType of type Reconfigure. + SinglestoreOpsRequestTypeReconfigure SinglestoreOpsRequestType = "Reconfigure" // SinglestoreOpsRequestTypeReconfigureTLS is a SinglestoreOpsRequestType of type ReconfigureTLS. SinglestoreOpsRequestTypeReconfigureTLS SinglestoreOpsRequestType = "ReconfigureTLS" + // SinglestoreOpsRequestTypeRotateAuth is a SinglestoreOpsRequestType of type RotateAuth. + SinglestoreOpsRequestTypeRotateAuth SinglestoreOpsRequestType = "RotateAuth" ) var ErrInvalidSinglestoreOpsRequestType = fmt.Errorf("not a valid SinglestoreOpsRequestType, try [%s]", strings.Join(_SinglestoreOpsRequestTypeNames, ", ")) @@ -36,8 +38,9 @@ var _SinglestoreOpsRequestTypeNames = []string{ string(SinglestoreOpsRequestTypeVerticalScaling), string(SinglestoreOpsRequestTypeVolumeExpansion), string(SinglestoreOpsRequestTypeRestart), - string(SinglestoreOpsRequestTypeConfiguration), + string(SinglestoreOpsRequestTypeReconfigure), string(SinglestoreOpsRequestTypeReconfigureTLS), + string(SinglestoreOpsRequestTypeRotateAuth), } // SinglestoreOpsRequestTypeNames returns a list of possible string values of SinglestoreOpsRequestType. @@ -55,8 +58,9 @@ func SinglestoreOpsRequestTypeValues() []SinglestoreOpsRequestType { SinglestoreOpsRequestTypeVerticalScaling, SinglestoreOpsRequestTypeVolumeExpansion, SinglestoreOpsRequestTypeRestart, - SinglestoreOpsRequestTypeConfiguration, + SinglestoreOpsRequestTypeReconfigure, SinglestoreOpsRequestTypeReconfigureTLS, + SinglestoreOpsRequestTypeRotateAuth, } } @@ -78,8 +82,9 @@ var _SinglestoreOpsRequestTypeValue = map[string]SinglestoreOpsRequestType{ "VerticalScaling": SinglestoreOpsRequestTypeVerticalScaling, "VolumeExpansion": SinglestoreOpsRequestTypeVolumeExpansion, "Restart": SinglestoreOpsRequestTypeRestart, - "Configuration": SinglestoreOpsRequestTypeConfiguration, + "Reconfigure": SinglestoreOpsRequestTypeReconfigure, "ReconfigureTLS": SinglestoreOpsRequestTypeReconfigureTLS, + "RotateAuth": SinglestoreOpsRequestTypeRotateAuth, } // 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 7323d1d38..63254642b 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 @@ -49,8 +49,8 @@ type SolrOpsRequest struct { Status OpsRequestStatus `json:"status,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Reconfigure;Restart;ReconfigureTLS -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Reconfigure, Restart, ReconfigureTLS) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Reconfigure;Restart;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Reconfigure, Restart, ReconfigureTLS, RotateAuth) type SolrOpsRequestType string // SolrOpsRequestSpec is the spec for SolrOpsRequest @@ -73,6 +73,8 @@ type SolrOpsRequestSpec struct { Configuration *SolrCustomConfigurationSpec `json:"configuration,omitempty"` // Specifies information necessary for configuring TLS TLS *TLSSpec `json:"tls,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,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. diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/solr_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/solr_ops_types_enum.go index c66e37b44..ce362e34d 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/solr_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/solr_ops_types_enum.go @@ -26,6 +26,8 @@ const ( SolrOpsRequestTypeRestart SolrOpsRequestType = "Restart" // SolrOpsRequestTypeReconfigureTLS is a SolrOpsRequestType of type ReconfigureTLS. SolrOpsRequestTypeReconfigureTLS SolrOpsRequestType = "ReconfigureTLS" + // SolrOpsRequestTypeRotateAuth is a SolrOpsRequestType of type RotateAuth. + SolrOpsRequestTypeRotateAuth SolrOpsRequestType = "RotateAuth" ) var ErrInvalidSolrOpsRequestType = fmt.Errorf("not a valid SolrOpsRequestType, try [%s]", strings.Join(_SolrOpsRequestTypeNames, ", ")) @@ -38,6 +40,7 @@ var _SolrOpsRequestTypeNames = []string{ string(SolrOpsRequestTypeReconfigure), string(SolrOpsRequestTypeRestart), string(SolrOpsRequestTypeReconfigureTLS), + string(SolrOpsRequestTypeRotateAuth), } // SolrOpsRequestTypeNames returns a list of possible string values of SolrOpsRequestType. @@ -57,6 +60,7 @@ func SolrOpsRequestTypeValues() []SolrOpsRequestType { SolrOpsRequestTypeReconfigure, SolrOpsRequestTypeRestart, SolrOpsRequestTypeReconfigureTLS, + SolrOpsRequestTypeRotateAuth, } } @@ -80,6 +84,7 @@ var _SolrOpsRequestTypeValue = map[string]SolrOpsRequestType{ "Reconfigure": SolrOpsRequestTypeReconfigure, "Restart": SolrOpsRequestTypeRestart, "ReconfigureTLS": SolrOpsRequestTypeReconfigureTLS, + "RotateAuth": SolrOpsRequestTypeRotateAuth, } // ParseSolrOpsRequestType attempts to convert a string to a SolrOpsRequestType. diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go index 36e1aaf72..2e7a51dd4 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go @@ -92,6 +92,12 @@ type TLSSpec struct { Remove bool `json:"remove,omitempty"` } +type AuthSpec struct { + // SecretRef holds the new authSecret + // If it is given, ops-manager will use this. Otherwise, will generate random password + SecretRef *core.LocalObjectReference `json:"secretRef,omitempty"` +} + // +kubebuilder:validation:Enum=IfReady;Always type ApplyOption string 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 index 06c3c8ee0..b262e7783 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zookeeper_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/zookeeper_ops_types.go @@ -49,8 +49,8 @@ type ZooKeeperOpsRequest struct { Status OpsRequestStatus `json:"status,omitempty"` } -// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure -// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure) +// +kubebuilder:validation:Enum=UpdateVersion;HorizontalScaling;VerticalScaling;VolumeExpansion;Restart;Reconfigure;ReconfigureTLS;RotateAuth +// ENUM(UpdateVersion, HorizontalScaling, VerticalScaling, VolumeExpansion, Restart, Reconfigure, ReconfigureTLS, RotateAuth) type ZooKeeperOpsRequestType string // ZooKeeperOpsRequestSpec is the spec for ZooKeeperOpsRequest @@ -69,6 +69,10 @@ type ZooKeeperOpsRequestSpec struct { VolumeExpansion *ZooKeeperVolumeExpansionSpec `json:"volumeExpansion,omitempty"` // Specifies information necessary for custom configuration of zookeeper Configuration *ZooKeeperCustomConfigurationSpec `json:"configuration,omitempty"` + // Specifies information necessary for configuring authSecret of the database + Authentication *AuthSpec `json:"authentication,omitempty"` + // Specifies information necessary for configuring TLS + TLS *TLSSpec `json:"tls,omitempty"` // 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. 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 index 52a742705..3a9cde10e 100644 --- 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 @@ -24,6 +24,10 @@ const ( ZooKeeperOpsRequestTypeRestart ZooKeeperOpsRequestType = "Restart" // ZooKeeperOpsRequestTypeReconfigure is a ZooKeeperOpsRequestType of type Reconfigure. ZooKeeperOpsRequestTypeReconfigure ZooKeeperOpsRequestType = "Reconfigure" + // ZooKeeperOpsRequestTypeReconfigureTLS is a ZooKeeperOpsRequestType of type ReconfigureTLS. + ZooKeeperOpsRequestTypeReconfigureTLS ZooKeeperOpsRequestType = "ReconfigureTLS" + // ZooKeeperOpsRequestTypeRotateAuth is a ZooKeeperOpsRequestType of type RotateAuth. + ZooKeeperOpsRequestTypeRotateAuth ZooKeeperOpsRequestType = "RotateAuth" ) var ErrInvalidZooKeeperOpsRequestType = fmt.Errorf("not a valid ZooKeeperOpsRequestType, try [%s]", strings.Join(_ZooKeeperOpsRequestTypeNames, ", ")) @@ -35,6 +39,8 @@ var _ZooKeeperOpsRequestTypeNames = []string{ string(ZooKeeperOpsRequestTypeVolumeExpansion), string(ZooKeeperOpsRequestTypeRestart), string(ZooKeeperOpsRequestTypeReconfigure), + string(ZooKeeperOpsRequestTypeReconfigureTLS), + string(ZooKeeperOpsRequestTypeRotateAuth), } // ZooKeeperOpsRequestTypeNames returns a list of possible string values of ZooKeeperOpsRequestType. @@ -53,6 +59,8 @@ func ZooKeeperOpsRequestTypeValues() []ZooKeeperOpsRequestType { ZooKeeperOpsRequestTypeVolumeExpansion, ZooKeeperOpsRequestTypeRestart, ZooKeeperOpsRequestTypeReconfigure, + ZooKeeperOpsRequestTypeReconfigureTLS, + ZooKeeperOpsRequestTypeRotateAuth, } } @@ -75,6 +83,8 @@ var _ZooKeeperOpsRequestTypeValue = map[string]ZooKeeperOpsRequestType{ "VolumeExpansion": ZooKeeperOpsRequestTypeVolumeExpansion, "Restart": ZooKeeperOpsRequestTypeRestart, "Reconfigure": ZooKeeperOpsRequestTypeReconfigure, + "ReconfigureTLS": ZooKeeperOpsRequestTypeReconfigureTLS, + "RotateAuth": ZooKeeperOpsRequestTypeRotateAuth, } // ParseZooKeeperOpsRequestType attempts to convert a string to a ZooKeeperOpsRequestType. 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 d6a5fa76b..a823bad1d 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 @@ -24,8 +24,8 @@ package v1alpha1 import ( v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - corev1 "k8s.io/api/core/v1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + v1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" apiv1 "kmodules.xyz/client-go/api/v1" ) @@ -47,6 +47,27 @@ 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 *AuthSpec) DeepCopyInto(out *AuthSpec) { + *out = *in + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(v1.LocalObjectReference) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthSpec. +func (in *AuthSpec) DeepCopy() *AuthSpec { + if in == nil { + return nil + } + out := new(AuthSpec) + in.DeepCopyInto(out) + 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 @@ -112,6 +133,11 @@ func (in *ClickHouseOpsRequestList) DeepCopyObject() runtime.Object { func (in *ClickHouseOpsRequestSpec) DeepCopyInto(out *ClickHouseOpsRequestSpec) { *out = *in out.DatabaseRef = in.DatabaseRef + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -119,7 +145,7 @@ func (in *ClickHouseOpsRequestSpec) DeepCopyInto(out *ClickHouseOpsRequestSpec) } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -168,6 +194,101 @@ func (in *ContainerResources) DeepCopy() *ContainerResources { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DruidCustomConfigurationSpec) DeepCopyInto(out *DruidCustomConfigurationSpec) { + *out = *in + if in.ConfigSecret != nil { + in, out := &in.ConfigSecret, &out.ConfigSecret + *out = new(v1.LocalObjectReference) + **out = **in + } + if in.ApplyConfig != nil { + in, out := &in.ApplyConfig, &out.ApplyConfig + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidCustomConfigurationSpec. +func (in *DruidCustomConfigurationSpec) DeepCopy() *DruidCustomConfigurationSpec { + if in == nil { + return nil + } + out := new(DruidCustomConfigurationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DruidHorizontalScalingSpec) DeepCopyInto(out *DruidHorizontalScalingSpec) { + *out = *in + if in.Topology != nil { + in, out := &in.Topology, &out.Topology + *out = new(DruidHorizontalScalingTopologySpec) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidHorizontalScalingSpec. +func (in *DruidHorizontalScalingSpec) DeepCopy() *DruidHorizontalScalingSpec { + if in == nil { + return nil + } + out := new(DruidHorizontalScalingSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DruidHorizontalScalingTopologySpec) DeepCopyInto(out *DruidHorizontalScalingTopologySpec) { + *out = *in + if in.Coordinators != nil { + in, out := &in.Coordinators, &out.Coordinators + *out = new(int32) + **out = **in + } + if in.Overlords != nil { + in, out := &in.Overlords, &out.Overlords + *out = new(int32) + **out = **in + } + if in.MiddleManagers != nil { + in, out := &in.MiddleManagers, &out.MiddleManagers + *out = new(int32) + **out = **in + } + if in.Historicals != nil { + in, out := &in.Historicals, &out.Historicals + *out = new(int32) + **out = **in + } + if in.Brokers != nil { + in, out := &in.Brokers, &out.Brokers + *out = new(int32) + **out = **in + } + if in.Routers != nil { + in, out := &in.Routers, &out.Routers + *out = new(int32) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidHorizontalScalingTopologySpec. +func (in *DruidHorizontalScalingTopologySpec) DeepCopy() *DruidHorizontalScalingTopologySpec { + if in == nil { + return nil + } + out := new(DruidHorizontalScalingTopologySpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DruidOpsRequest) DeepCopyInto(out *DruidOpsRequest) { *out = *in @@ -233,6 +354,11 @@ func (in *DruidOpsRequestList) DeepCopyObject() runtime.Object { func (in *DruidOpsRequestSpec) DeepCopyInto(out *DruidOpsRequestSpec) { *out = *in out.DatabaseRef = in.DatabaseRef + if in.HorizontalScaling != nil { + in, out := &in.HorizontalScaling, &out.HorizontalScaling + *out = new(DruidHorizontalScalingSpec) + (*in).DeepCopyInto(*out) + } if in.VerticalScaling != nil { in, out := &in.VerticalScaling, &out.VerticalScaling *out = new(DruidVerticalScalingSpec) @@ -243,14 +369,34 @@ func (in *DruidOpsRequestSpec) DeepCopyInto(out *DruidOpsRequestSpec) { *out = new(DruidVolumeExpansionSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) **out = **in } + if in.UpdateVersion != nil { + in, out := &in.UpdateVersion, &out.UpdateVersion + *out = new(DruidUpdateVersionSpec) + **out = **in + } + if in.Configuration != nil { + in, out := &in.Configuration, &out.Configuration + *out = new(DruidCustomConfigurationSpec) + (*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) + *out = new(metav1.Duration) **out = **in } return @@ -266,6 +412,22 @@ func (in *DruidOpsRequestSpec) DeepCopy() *DruidOpsRequestSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DruidUpdateVersionSpec) DeepCopyInto(out *DruidUpdateVersionSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidUpdateVersionSpec. +func (in *DruidUpdateVersionSpec) DeepCopy() *DruidUpdateVersionSpec { + if in == nil { + return nil + } + out := new(DruidUpdateVersionSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DruidVerticalScalingSpec) DeepCopyInto(out *DruidVerticalScalingSpec) { *out = *in @@ -343,7 +505,7 @@ func (in *ElasticsearchCustomConfiguration) DeepCopyInto(out *ElasticsearchCusto *out = *in if in.ConfigMap != nil { in, out := &in.ConfigMap, &out.ConfigMap - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.Data != nil { @@ -371,12 +533,12 @@ func (in *ElasticsearchCustomConfigurationSpec) DeepCopyInto(out *ElasticsearchC *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.SecureConfigSecret != nil { in, out := &in.SecureConfigSecret, &out.SecureConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -591,6 +753,11 @@ func (in *ElasticsearchOpsRequestSpec) DeepCopyInto(out *ElasticsearchOpsRequest *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -598,7 +765,7 @@ func (in *ElasticsearchOpsRequestSpec) DeepCopyInto(out *ElasticsearchOpsRequest } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -808,7 +975,7 @@ func (in *EtcdCustomConfiguration) DeepCopyInto(out *EtcdCustomConfiguration) { *out = *in if in.ConfigMap != nil { in, out := &in.ConfigMap, &out.ConfigMap - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.Data != nil { @@ -958,6 +1125,11 @@ func (in *EtcdOpsRequestSpec) DeepCopyInto(out *EtcdOpsRequestSpec) { *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -1156,6 +1328,11 @@ func (in *FerretDBOpsRequestSpec) DeepCopyInto(out *FerretDBOpsRequestSpec) { *out = new(FerretDBTLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -1163,7 +1340,7 @@ func (in *FerretDBOpsRequestSpec) DeepCopyInto(out *FerretDBOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -1254,7 +1431,7 @@ func (in *KafkaCustomConfigurationSpec) DeepCopyInto(out *KafkaCustomConfigurati *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -1424,6 +1601,11 @@ func (in *KafkaOpsRequestSpec) DeepCopyInto(out *KafkaOpsRequestSpec) { *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -1431,7 +1613,7 @@ func (in *KafkaOpsRequestSpec) DeepCopyInto(out *KafkaOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -1546,7 +1728,7 @@ func (in *MSSQLServerCustomConfigurationSpec) DeepCopyInto(out *MSSQLServerCusto *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -1685,6 +1867,11 @@ func (in *MSSQLServerOpsRequestSpec) DeepCopyInto(out *MSSQLServerOpsRequestSpec *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -1692,7 +1879,7 @@ func (in *MSSQLServerOpsRequestSpec) DeepCopyInto(out *MSSQLServerOpsRequestSpec } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -1797,7 +1984,7 @@ func (in *MariaDBCustomConfiguration) DeepCopyInto(out *MariaDBCustomConfigurati *out = *in if in.ConfigMap != nil { in, out := &in.ConfigMap, &out.ConfigMap - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.Data != nil { @@ -1825,7 +2012,7 @@ func (in *MariaDBCustomConfigurationSpec) DeepCopyInto(out *MariaDBCustomConfigu *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -1964,6 +2151,11 @@ func (in *MariaDBOpsRequestSpec) DeepCopyInto(out *MariaDBOpsRequestSpec) { *out = new(MariaDBTLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -1971,7 +2163,7 @@ func (in *MariaDBOpsRequestSpec) DeepCopyInto(out *MariaDBOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -2098,7 +2290,7 @@ func (in *MemcachedCustomConfiguration) DeepCopyInto(out *MemcachedCustomConfigu *out = *in if in.ConfigMap != nil { in, out := &in.ConfigMap, &out.ConfigMap - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.Data != nil { @@ -2126,7 +2318,7 @@ func (in *MemcachedCustomConfigurationSpec) DeepCopyInto(out *MemcachedCustomCon *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -2265,6 +2457,11 @@ func (in *MemcachedOpsRequestSpec) DeepCopyInto(out *MemcachedOpsRequestSpec) { *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -2272,7 +2469,7 @@ func (in *MemcachedOpsRequestSpec) DeepCopyInto(out *MemcachedOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -2377,7 +2574,7 @@ func (in *MongoDBCustomConfiguration) DeepCopyInto(out *MongoDBCustomConfigurati *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -2587,6 +2784,11 @@ func (in *MongoDBOpsRequestSpec) DeepCopyInto(out *MongoDBOpsRequestSpec) { *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -2609,7 +2811,7 @@ func (in *MongoDBOpsRequestSpec) DeepCopyInto(out *MongoDBOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -2796,7 +2998,7 @@ func (in *MySQLCustomConfigurationSpec) DeepCopyInto(out *MySQLCustomConfigurati *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -2935,6 +3137,11 @@ func (in *MySQLOpsRequestSpec) DeepCopyInto(out *MySQLOpsRequestSpec) { *out = new(MySQLTLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -2942,7 +3149,7 @@ func (in *MySQLOpsRequestSpec) DeepCopyInto(out *MySQLOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -3152,7 +3359,7 @@ func (in *PerconaXtraDBCustomConfigurationSpec) DeepCopyInto(out *PerconaXtraDBC *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -3291,6 +3498,11 @@ func (in *PerconaXtraDBOpsRequestSpec) DeepCopyInto(out *PerconaXtraDBOpsRequest *out = new(PerconaXtraDBTLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -3298,7 +3510,7 @@ func (in *PerconaXtraDBOpsRequestSpec) DeepCopyInto(out *PerconaXtraDBOpsRequest } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -3425,7 +3637,7 @@ func (in *PgBouncerCustomConfiguration) DeepCopyInto(out *PgBouncerCustomConfigu *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -3554,7 +3766,7 @@ func (in *PgBouncerOpsRequestList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PgBouncerOpsRequestSpec) DeepCopyInto(out *PgBouncerOpsRequestSpec) { *out = *in - out.ServerRef = in.ServerRef + out.DatabaseRef = in.DatabaseRef if in.UpdateVersion != nil { in, out := &in.UpdateVersion, &out.UpdateVersion *out = new(PgBouncerUpdateVersionSpec) @@ -3580,6 +3792,11 @@ func (in *PgBouncerOpsRequestSpec) DeepCopyInto(out *PgBouncerOpsRequestSpec) { *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -3587,7 +3804,7 @@ func (in *PgBouncerOpsRequestSpec) DeepCopyInto(out *PgBouncerOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -3650,7 +3867,7 @@ func (in *PgpoolCustomConfigurationSpec) DeepCopyInto(out *PgpoolCustomConfigura *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -3784,6 +4001,11 @@ func (in *PgpoolOpsRequestSpec) DeepCopyInto(out *PgpoolOpsRequestSpec) { *out = new(PgpoolTLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -3791,7 +4013,7 @@ func (in *PgpoolOpsRequestSpec) DeepCopyInto(out *PgpoolOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -3888,7 +4110,7 @@ func (in *PostgresCustomConfiguration) DeepCopyInto(out *PostgresCustomConfigura *out = *in if in.ConfigMap != nil { in, out := &in.ConfigMap, &out.ConfigMap - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.Data != nil { @@ -3916,7 +4138,7 @@ func (in *PostgresCustomConfigurationSpec) DeepCopyInto(out *PostgresCustomConfi *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -4065,6 +4287,11 @@ func (in *PostgresOpsRequestSpec) DeepCopyInto(out *PostgresOpsRequestSpec) { *out = new(PostgresTLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -4072,7 +4299,7 @@ func (in *PostgresOpsRequestSpec) DeepCopyInto(out *PostgresOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -4188,7 +4415,7 @@ func (in *ProxySQLCustomConfiguration) DeepCopyInto(out *ProxySQLCustomConfigura *out = *in if in.ConfigMap != nil { in, out := &in.ConfigMap, &out.ConfigMap - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.Data != nil { @@ -4358,6 +4585,11 @@ func (in *ProxySQLOpsRequestSpec) DeepCopyInto(out *ProxySQLOpsRequestSpec) { *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -4365,7 +4597,7 @@ func (in *ProxySQLOpsRequestSpec) DeepCopyInto(out *ProxySQLOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -4444,7 +4676,7 @@ func (in *RabbitMQCustomConfigurationSpec) DeepCopyInto(out *RabbitMQCustomConfi *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -4583,6 +4815,11 @@ func (in *RabbitMQOpsRequestSpec) DeepCopyInto(out *RabbitMQOpsRequestSpec) { *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -4590,7 +4827,7 @@ func (in *RabbitMQOpsRequestSpec) DeepCopyInto(out *RabbitMQOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -4685,7 +4922,7 @@ func (in *RedisCustomConfigurationSpec) DeepCopyInto(out *RedisCustomConfigurati *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -4829,6 +5066,11 @@ func (in *RedisOpsRequestSpec) DeepCopyInto(out *RedisOpsRequestSpec) { *out = new(RedisTLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -4841,7 +5083,7 @@ func (in *RedisOpsRequestSpec) DeepCopyInto(out *RedisOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -4878,7 +5120,7 @@ func (in *RedisSentinelCustomConfigurationSpec) DeepCopyInto(out *RedisSentinelC *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -5012,6 +5254,11 @@ func (in *RedisSentinelOpsRequestSpec) DeepCopyInto(out *RedisSentinelOpsRequest *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -5019,7 +5266,7 @@ func (in *RedisSentinelOpsRequestSpec) DeepCopyInto(out *RedisSentinelOpsRequest } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -5297,7 +5544,7 @@ func (in *SinglestoreCustomConfiguration) DeepCopyInto(out *SinglestoreCustomCon *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -5477,9 +5724,14 @@ func (in *SinglestoreOpsRequestSpec) DeepCopyInto(out *SinglestoreOpsRequestSpec *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -5583,7 +5835,7 @@ func (in *SolrCustomConfigurationSpec) DeepCopyInto(out *SolrCustomConfiguration *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -5742,9 +5994,14 @@ func (in *SolrOpsRequestSpec) DeepCopyInto(out *SolrOpsRequestSpec) { *out = new(TLSSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -5886,7 +6143,7 @@ func (in *ZooKeeperCustomConfigurationSpec) DeepCopyInto(out *ZooKeeperCustomCon *out = *in if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret - *out = new(corev1.LocalObjectReference) + *out = new(v1.LocalObjectReference) **out = **in } if in.ApplyConfig != nil { @@ -6020,6 +6277,16 @@ func (in *ZooKeeperOpsRequestSpec) DeepCopyInto(out *ZooKeeperOpsRequestSpec) { *out = new(ZooKeeperCustomConfigurationSpec) (*in).DeepCopyInto(*out) } + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = new(AuthSpec) + (*in).DeepCopyInto(*out) + } + if in.TLS != nil { + in, out := &in.TLS, &out.TLS + *out = new(TLSSpec) + (*in).DeepCopyInto(*out) + } if in.Restart != nil { in, out := &in.Restart, &out.Restart *out = new(RestartSpec) @@ -6027,7 +6294,7 @@ func (in *ZooKeeperOpsRequestSpec) DeepCopyInto(out *ZooKeeperOpsRequestSpec) { } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return diff --git a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go index 7982d61c7..4c41188c6 100644 --- a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go @@ -21086,7 +21086,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21202,8 +21202,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21270,6 +21269,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, @@ -25588,7 +25599,7 @@ func schema_apimachinery_apis_postgres_v1alpha1_PublisherSpec(ref common.Referen Format: "", }, }, - "serverRef": { + "databaseRef": { SchemaProps: spec.SchemaProps{ Description: "ServerRef specifies the database appbinding reference in any namespace.", Default: map[string]interface{}{}, @@ -25652,7 +25663,7 @@ func schema_apimachinery_apis_postgres_v1alpha1_PublisherSpec(ref common.Referen }, }, }, - Required: []string{"name", "serverRef", "databaseName"}, + Required: []string{"name", "databaseRef", "databaseName"}, }, }, Dependencies: []string{ @@ -25922,7 +25933,7 @@ func schema_apimachinery_apis_postgres_v1alpha1_SubscriberSpec(ref common.Refere Format: "", }, }, - "serverRef": { + "databaseRef": { SchemaProps: spec.SchemaProps{ Description: "ServerRef specifies the database appbinding reference in any namespace.", Default: map[string]interface{}{}, @@ -25963,7 +25974,7 @@ func schema_apimachinery_apis_postgres_v1alpha1_SubscriberSpec(ref common.Refere }, }, }, - Required: []string{"name", "serverRef", "databaseName", "publisher"}, + Required: []string{"name", "databaseRef", "databaseName", "publisher"}, }, }, Dependencies: []string{ 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 ea8101cc6..25520e64b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/publisher_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/publisher_types.go @@ -33,7 +33,7 @@ type PublisherSpec struct { // Name of the publisher Name string `json:"name"` // ServerRef specifies the database appbinding reference in any namespace. - ServerRef core.LocalObjectReference `json:"serverRef"` + DatabaseRef core.LocalObjectReference `json:"databaseRef"` // DatabaseName is the name of the target database inside a Postgres instance. DatabaseName string `json:"databaseName"` // PublishAllTables is the option to publish all tables in the database 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 870925e21..bfa07cd26 100644 --- a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/subscriber_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/subscriber_types.go @@ -33,7 +33,7 @@ type SubscriberSpec struct { // Name of the publisher Name string `json:"name"` // ServerRef specifies the database appbinding reference in any namespace. - ServerRef core.LocalObjectReference `json:"serverRef"` + DatabaseRef core.LocalObjectReference `json:"databaseRef"` // DatabaseName is the name of the target database inside a Postgres instance. DatabaseName string `json:"databaseName"` // Parameters to set while creating subscriber diff --git a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/zz_generated.deepcopy.go index 4bdae2665..0049d1f28 100644 --- a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/zz_generated.deepcopy.go @@ -213,7 +213,7 @@ func (in *PublisherParameters) DeepCopy() *PublisherParameters { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PublisherSpec) DeepCopyInto(out *PublisherSpec) { *out = *in - out.ServerRef = in.ServerRef + out.DatabaseRef = in.DatabaseRef if in.Tables != nil { in, out := &in.Tables, &out.Tables *out = make([]string, len(*in)) @@ -416,7 +416,7 @@ func (in *SubscriberParameters) DeepCopy() *SubscriberParameters { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SubscriberSpec) DeepCopyInto(out *SubscriberSpec) { *out = *in - out.ServerRef = in.ServerRef + out.DatabaseRef = in.DatabaseRef if in.Parameters != nil { in, out := &in.Parameters, &out.Parameters *out = new(SubscriberParameters) diff --git a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go index 1df4a333e..d26df7db3 100644 --- a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go @@ -21097,7 +21097,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21213,8 +21213,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21281,6 +21280,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, diff --git a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/database_connection_types.go b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/database_connection_types.go index 07d2baf3d..551ca2445 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/database_connection_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/database_connection_types.go @@ -43,11 +43,8 @@ type DatabaseConnection struct { // DatabaseConnectionSpec defines the desired state of DatabaseConnection type DatabaseConnectionSpec struct { - // Public Connections are exposed via Gateway - Public []PublicConnection `json:"public,omitempty"` - - // Private Connections are in-cluster. Accessible from another pod in the same cluster. - Private []PrivateConnection `json:"private,omitempty"` + Gateway []GatewayConnection `json:"gateway,omitempty"` + InCluster InClusterConnection `json:"inCluster,omitempty"` // Parameters: `username = \n // password = \n @@ -61,6 +58,7 @@ type DatabaseConnectionSpec struct { // // And some language specific template strings. Like: Java, C#, Go, Python, Javascript, Ruby etc. ConnectOptions map[string]string `json:"connectOptions,omitempty"` + CACert []byte `json:"caCert,omitempty"` } //type ConnectOption struct { @@ -80,14 +78,17 @@ type DatabaseConnectionSpec struct { // Flags string `json:"flags,omitempty"` //} -type PublicConnection struct { +type GatewayConnection struct { *ofst.Gateway `json:",inline"` SecretRef *kmapi.ObjectReference `json:"secretRef,omitempty"` } -type PrivateConnection struct { - Host string `json:"host,omitempty"` - Port int32 `json:"port,omitempty"` +type InClusterConnection struct { + Host string `json:"host,omitempty"` + Port int32 `json:"port,omitempty"` + // Command for exec-ing into the db pod + // Example: kubectl exec -it -n default service/mongo-test1 -c mongodb -- bash -c '' + Exec string `json:"exec,omitempty"` SecretRef *kmapi.ObjectReference `json:"secretRef,omitempty"` } diff --git a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go index b84a18fd3..fd3d1084c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go @@ -507,8 +507,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/ui/v1alpha1.ElasticsearchSchemaOverview": schema_apimachinery_apis_ui_v1alpha1_ElasticsearchSchemaOverview(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.ElasticsearchSchemaOverviewList": schema_apimachinery_apis_ui_v1alpha1_ElasticsearchSchemaOverviewList(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.ElasticsearchSchemaOverviewSpec": schema_apimachinery_apis_ui_v1alpha1_ElasticsearchSchemaOverviewSpec(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.GatewayConnection": schema_apimachinery_apis_ui_v1alpha1_GatewayConnection(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.GenericDatabaseSpec": schema_apimachinery_apis_ui_v1alpha1_GenericDatabaseSpec(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.GenericSchemaOverviewSpec": schema_apimachinery_apis_ui_v1alpha1_GenericSchemaOverviewSpec(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.InClusterConnection": schema_apimachinery_apis_ui_v1alpha1_InClusterConnection(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.MariaDBInsight": schema_apimachinery_apis_ui_v1alpha1_MariaDBInsight(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.MariaDBInsightList": schema_apimachinery_apis_ui_v1alpha1_MariaDBInsightList(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.MariaDBInsightSpec": schema_apimachinery_apis_ui_v1alpha1_MariaDBInsightSpec(ref), @@ -599,7 +601,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/ui/v1alpha1.PostgresSettingsList": schema_apimachinery_apis_ui_v1alpha1_PostgresSettingsList(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.PostgresSettingsSpec": schema_apimachinery_apis_ui_v1alpha1_PostgresSettingsSpec(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.PostgresVacuumInfo": schema_apimachinery_apis_ui_v1alpha1_PostgresVacuumInfo(ref), - "kubedb.dev/apimachinery/apis/ui/v1alpha1.PrivateConnection": schema_apimachinery_apis_ui_v1alpha1_PrivateConnection(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.ProxySQLInsight": schema_apimachinery_apis_ui_v1alpha1_ProxySQLInsight(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.ProxySQLInsightList": schema_apimachinery_apis_ui_v1alpha1_ProxySQLInsightList(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.ProxySQLInsightSpec": schema_apimachinery_apis_ui_v1alpha1_ProxySQLInsightSpec(ref), @@ -611,7 +612,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/ui/v1alpha1.ProxySQLSettingsList": schema_apimachinery_apis_ui_v1alpha1_ProxySQLSettingsList(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.ProxySQLSettingsSpec": schema_apimachinery_apis_ui_v1alpha1_ProxySQLSettingsSpec(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.ProxySQLSlowQuerySpec": schema_apimachinery_apis_ui_v1alpha1_ProxySQLSlowQuerySpec(ref), - "kubedb.dev/apimachinery/apis/ui/v1alpha1.PublicConnection": schema_apimachinery_apis_ui_v1alpha1_PublicConnection(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.RedisDatabaseSpec": schema_apimachinery_apis_ui_v1alpha1_RedisDatabaseSpec(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.RedisInsight": schema_apimachinery_apis_ui_v1alpha1_RedisInsight(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.RedisInsightList": schema_apimachinery_apis_ui_v1alpha1_RedisInsightList(ref), @@ -21204,7 +21204,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -21320,8 +21320,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -21388,6 +21387,18 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "managerID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hubClusterID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"uid"}, }, @@ -25532,32 +25543,23 @@ func schema_apimachinery_apis_ui_v1alpha1_DatabaseConnectionSpec(ref common.Refe Description: "DatabaseConnectionSpec defines the desired state of DatabaseConnection", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "public": { + "gateway": { SchemaProps: spec.SchemaProps{ - Description: "Public Connections are exposed via Gateway", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PublicConnection"), + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.GatewayConnection"), }, }, }, }, }, - "private": { + "inCluster": { SchemaProps: spec.SchemaProps{ - Description: "Private Connections are in-cluster. Accessible from another pod in the same cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PrivateConnection"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.InClusterConnection"), }, }, "connectOptions": { @@ -25576,11 +25578,17 @@ func schema_apimachinery_apis_ui_v1alpha1_DatabaseConnectionSpec(ref common.Refe }, }, }, + "caCert": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, }, }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/ui/v1alpha1.PrivateConnection", "kubedb.dev/apimachinery/apis/ui/v1alpha1.PublicConnection"}, + "kubedb.dev/apimachinery/apis/ui/v1alpha1.GatewayConnection", "kubedb.dev/apimachinery/apis/ui/v1alpha1.InClusterConnection"}, } } @@ -26254,6 +26262,80 @@ func schema_apimachinery_apis_ui_v1alpha1_ElasticsearchSchemaOverviewSpec(ref co } } +func schema_apimachinery_apis_ui_v1alpha1_GatewayConnection(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "ip": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "hostname": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "services": { + SchemaProps: spec.SchemaProps{ + Description: "Services is an optional configuration for services used to expose database", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/offshoot-api/api/v1.NamedServiceStatus"), + }, + }, + }, + }, + }, + "ui": { + SchemaProps: spec.SchemaProps{ + Description: "UI is an optional list of database web uis", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/offshoot-api/api/v1.NamedURL"), + }, + }, + }, + }, + }, + "secretRef": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), + }, + }, + }, + Required: []string{"name", "namespace"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/client-go/api/v1.ObjectReference", "kmodules.xyz/offshoot-api/api/v1.NamedServiceStatus", "kmodules.xyz/offshoot-api/api/v1.NamedURL"}, + } +} + func schema_apimachinery_apis_ui_v1alpha1_GenericDatabaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -26312,6 +26394,44 @@ func schema_apimachinery_apis_ui_v1alpha1_GenericSchemaOverviewSpec(ref common.R } } +func schema_apimachinery_apis_ui_v1alpha1_InClusterConnection(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "host": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "port": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "exec": { + SchemaProps: spec.SchemaProps{ + Description: "Command for exec-ing into the db pod Example: kubectl exec -it -n default service/mongo-test1 -c mongodb -- bash -c ''", + Type: []string{"string"}, + Format: "", + }, + }, + "secretRef": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "kmodules.xyz/client-go/api/v1.ObjectReference"}, + } +} + func schema_apimachinery_apis_ui_v1alpha1_MariaDBInsight(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -31107,37 +31227,6 @@ func schema_apimachinery_apis_ui_v1alpha1_PostgresVacuumInfo(ref common.Referenc } } -func schema_apimachinery_apis_ui_v1alpha1_PrivateConnection(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "host": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "port": { - SchemaProps: spec.SchemaProps{ - Type: []string{"integer"}, - Format: "int32", - }, - }, - "secretRef": { - SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.ObjectReference"}, - } -} - func schema_apimachinery_apis_ui_v1alpha1_ProxySQLInsight(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -31684,80 +31773,6 @@ func schema_apimachinery_apis_ui_v1alpha1_ProxySQLSlowQuerySpec(ref common.Refer } } -func schema_apimachinery_apis_ui_v1alpha1_PublicConnection(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "ip": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "hostname": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "services": { - SchemaProps: spec.SchemaProps{ - Description: "Services is an optional configuration for services used to expose database", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/offshoot-api/api/v1.NamedServiceStatus"), - }, - }, - }, - }, - }, - "ui": { - SchemaProps: spec.SchemaProps{ - Description: "UI is an optional list of database web uis", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/offshoot-api/api/v1.NamedURL"), - }, - }, - }, - }, - }, - "secretRef": { - SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), - }, - }, - }, - Required: []string{"name", "namespace"}, - }, - }, - Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.ObjectReference", "kmodules.xyz/offshoot-api/api/v1.NamedServiceStatus", "kmodules.xyz/offshoot-api/api/v1.NamedURL"}, - } -} - func schema_apimachinery_apis_ui_v1alpha1_RedisDatabaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/zz_generated.deepcopy.go index b2ca82ff0..c60d37d3b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/zz_generated.deepcopy.go @@ -22,10 +22,10 @@ limitations under the License. package v1alpha1 import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" apiv1 "kmodules.xyz/client-go/api/v1" - offshootapiapiv1 "kmodules.xyz/offshoot-api/api/v1" + v1 "kmodules.xyz/offshoot-api/api/v1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -92,20 +92,14 @@ func (in *DatabaseConnectionList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DatabaseConnectionSpec) DeepCopyInto(out *DatabaseConnectionSpec) { *out = *in - if in.Public != nil { - in, out := &in.Public, &out.Public - *out = make([]PublicConnection, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Private != nil { - in, out := &in.Private, &out.Private - *out = make([]PrivateConnection, len(*in)) + if in.Gateway != nil { + in, out := &in.Gateway, &out.Gateway + *out = make([]GatewayConnection, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } + in.InCluster.DeepCopyInto(&out.InCluster) if in.ConnectOptions != nil { in, out := &in.ConnectOptions, &out.ConnectOptions *out = make(map[string]string, len(*in)) @@ -113,6 +107,11 @@ func (in *DatabaseConnectionSpec) DeepCopyInto(out *DatabaseConnectionSpec) { (*out)[key] = val } } + if in.CACert != nil { + in, out := &in.CACert, &out.CACert + *out = make([]byte, len(*in)) + copy(*out, *in) + } return } @@ -529,6 +528,32 @@ func (in *ElasticsearchSchemaOverviewSpec) DeepCopy() *ElasticsearchSchemaOvervi return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GatewayConnection) DeepCopyInto(out *GatewayConnection) { + *out = *in + if in.Gateway != nil { + in, out := &in.Gateway, &out.Gateway + *out = new(v1.Gateway) + (*in).DeepCopyInto(*out) + } + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(apiv1.ObjectReference) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayConnection. +func (in *GatewayConnection) DeepCopy() *GatewayConnection { + if in == nil { + return nil + } + out := new(GatewayConnection) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GenericDatabaseSpec) DeepCopyInto(out *GenericDatabaseSpec) { *out = *in @@ -583,6 +608,27 @@ func (in *GenericSchemaOverviewSpec) DeepCopy() *GenericSchemaOverviewSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *InClusterConnection) DeepCopyInto(out *InClusterConnection) { + *out = *in + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(apiv1.ObjectReference) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InClusterConnection. +func (in *InClusterConnection) DeepCopy() *InClusterConnection { + if in == nil { + return nil + } + out := new(InClusterConnection) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MariaDBInsight) DeepCopyInto(out *MariaDBInsight) { *out = *in @@ -2474,7 +2520,7 @@ func (in *PgBouncerPool) DeepCopyInto(out *PgBouncerPool) { } if in.MaxWaitMS != nil { in, out := &in.MaxWaitMS, &out.MaxWaitMS - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } return @@ -3338,27 +3384,6 @@ func (in *PostgresVacuumInfo) DeepCopy() *PostgresVacuumInfo { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PrivateConnection) DeepCopyInto(out *PrivateConnection) { - *out = *in - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(apiv1.ObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateConnection. -func (in *PrivateConnection) DeepCopy() *PrivateConnection { - if in == nil { - return nil - } - out := new(PrivateConnection) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProxySQLInsight) DeepCopyInto(out *ProxySQLInsight) { *out = *in @@ -3430,7 +3455,7 @@ func (in *ProxySQLInsightSpec) DeepCopyInto(out *ProxySQLInsightSpec) { } if in.LongQueryTimeThreshold != nil { in, out := &in.LongQueryTimeThreshold, &out.LongQueryTimeThreshold - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } if in.PodInsights != nil { @@ -3701,22 +3726,22 @@ func (in *ProxySQLSlowQuerySpec) DeepCopyInto(out *ProxySQLSlowQuerySpec) { } if in.SumTime != nil { in, out := &in.SumTime, &out.SumTime - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } if in.MinTime != nil { in, out := &in.MinTime, &out.MinTime - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } if in.MaxTime != nil { in, out := &in.MaxTime, &out.MaxTime - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } if in.AverageTime != nil { in, out := &in.AverageTime, &out.AverageTime - *out = new(v1.Duration) + *out = new(metav1.Duration) **out = **in } if in.RowsAffected != nil { @@ -3742,32 +3767,6 @@ func (in *ProxySQLSlowQuerySpec) DeepCopy() *ProxySQLSlowQuerySpec { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PublicConnection) DeepCopyInto(out *PublicConnection) { - *out = *in - if in.Gateway != nil { - in, out := &in.Gateway, &out.Gateway - *out = new(offshootapiapiv1.Gateway) - (*in).DeepCopyInto(*out) - } - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(apiv1.ObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublicConnection. -func (in *PublicConnection) DeepCopy() *PublicConnection { - if in == nil { - return nil - } - out := new(PublicConnection) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RedisDatabaseSpec) DeepCopyInto(out *RedisDatabaseSpec) { *out = *in 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 3d90d677b..839b853be 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mssqlserverautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_mssqlserverautoscalers.yaml @@ -107,8 +107,6 @@ spec: - IfReady - Always type: string - readinessCriteria: - type: object timeout: type: string type: object 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 c6483647b..c34b6d9da 100644 --- a/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_solrautoscalers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/autoscaling.kubedb.com_solrautoscalers.yaml @@ -34,6 +34,138 @@ spec: properties: compute: properties: + coordinator: + properties: + containerControlledValues: + enum: + - RequestsAndLimits + - RequestsOnly + type: string + controlledResources: + items: + type: string + type: array + inMemoryStorage: + properties: + scalingFactorPercentage: + format: int32 + type: integer + usageThresholdPercentage: + format: int32 + type: integer + type: object + maxAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + minAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + podLifeTimeThreshold: + type: string + resourceDiffPercentage: + format: int32 + type: integer + trigger: + type: string + type: object + data: + properties: + containerControlledValues: + enum: + - RequestsAndLimits + - RequestsOnly + type: string + controlledResources: + items: + type: string + type: array + inMemoryStorage: + properties: + scalingFactorPercentage: + format: int32 + type: integer + usageThresholdPercentage: + format: int32 + type: integer + type: object + maxAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + minAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + podLifeTimeThreshold: + type: string + resourceDiffPercentage: + format: int32 + type: integer + trigger: + type: string + type: object + node: + properties: + containerControlledValues: + enum: + - RequestsAndLimits + - RequestsOnly + type: string + controlledResources: + items: + type: string + type: array + inMemoryStorage: + properties: + scalingFactorPercentage: + format: int32 + type: integer + usageThresholdPercentage: + format: int32 + type: integer + type: object + maxAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + minAllowed: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + podLifeTimeThreshold: + type: string + resourceDiffPercentage: + format: int32 + type: integer + trigger: + type: string + type: object nodeTopology: properties: name: @@ -47,7 +179,7 @@ spec: format: int32 type: integer type: object - solr: + overseer: properties: containerControlledValues: enum: @@ -112,7 +244,128 @@ spec: type: object storage: properties: - solr: + coordinator: + properties: + expansionMode: + enum: + - Offline + - Online + type: string + scalingRules: + items: + properties: + appliesUpto: + type: string + threshold: + type: string + required: + - appliesUpto + - threshold + type: object + type: array + scalingThreshold: + format: int32 + type: integer + trigger: + type: string + upperBound: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + usageThreshold: + format: int32 + type: integer + required: + - expansionMode + type: object + data: + properties: + expansionMode: + enum: + - Offline + - Online + type: string + scalingRules: + items: + properties: + appliesUpto: + type: string + threshold: + type: string + required: + - appliesUpto + - threshold + type: object + type: array + scalingThreshold: + format: int32 + type: integer + trigger: + type: string + upperBound: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + usageThreshold: + format: int32 + type: integer + required: + - expansionMode + type: object + node: + properties: + expansionMode: + enum: + - Offline + - Online + type: string + scalingRules: + items: + properties: + appliesUpto: + type: string + threshold: + type: string + required: + - appliesUpto + - threshold + type: object + type: array + scalingThreshold: + format: int32 + type: integer + trigger: + type: string + upperBound: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + usageThreshold: + format: int32 + type: integer + required: + - expansionMode + type: object + nodeTopology: + properties: + name: + type: string + scaleDownDiffPercentage: + default: 25 + format: int32 + type: integer + scaleUpDiffPercentage: + default: 15 + format: int32 + type: integer + type: object + overseer: properties: expansionMode: enum: diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_cassandraversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_cassandraversions.yaml index 59bdb6b24..31fbd9d6f 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_cassandraversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_cassandraversions.yaml @@ -52,6 +52,13 @@ spec: required: - image type: object + exporter: + properties: + image: + type: string + required: + - image + type: object initContainer: properties: image: @@ -84,6 +91,7 @@ spec: type: string required: - db + - exporter - initContainer - version type: object 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 43d6b1497..a5c1b76f6 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mariadbversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mariadbversions.yaml @@ -16,7 +16,7 @@ spec: listKind: MariaDBVersionList plural: mariadbversions shortNames: - - mariaversion + - mdversion singular: mariadbversion scope: Cluster versions: 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 3fc42065b..b9801546d 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_proxysqlversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_proxysqlversions.yaml @@ -15,6 +15,8 @@ spec: kind: ProxySQLVersion listKind: ProxySQLVersionList plural: proxysqlversions + shortNames: + - prxversion singular: proxysqlversion scope: Cluster versions: 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 16bc33b5f..0149f6075 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_solrversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_solrversions.yaml @@ -67,6 +67,17 @@ spec: format: int64 type: integer type: object + updateConstraints: + properties: + allowlist: + items: + type: string + type: array + denylist: + items: + type: string + type: array + type: object version: type: string required: 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 f466abe10..37b0e47a7 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_connectclusters.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kafka.kubedb.com_connectclusters.yaml @@ -47,11 +47,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic configSecret: @@ -108,11 +113,16 @@ spec: type: object keystoreCredSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic monitor: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_cassandras.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_cassandras.yaml index 1aa309c95..297e4fbcf 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_cassandras.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_cassandras.yaml @@ -48,11 +48,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic configSecret: @@ -92,6 +97,207 @@ spec: format: int32 type: integer type: object + monitor: + properties: + agent: + enum: + - prometheus.io/operator + - prometheus.io + - prometheus.io/builtin + type: string + prometheus: + properties: + exporter: + properties: + args: + items: + type: string + type: array + env: + items: + properties: + name: + type: string + value: + type: string + valueFrom: + properties: + configMapKeyRef: + properties: + key: + type: string + name: + default: "" + type: string + optional: + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + fieldRef: + properties: + apiVersion: + type: string + fieldPath: + type: string + required: + - fieldPath + type: object + x-kubernetes-map-type: atomic + resourceFieldRef: + properties: + containerName: + type: string + divisor: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + type: string + required: + - resource + type: object + x-kubernetes-map-type: atomic + secretKeyRef: + properties: + key: + type: string + name: + default: "" + type: string + optional: + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + required: + - name + type: object + type: array + port: + default: 56790 + format: int32 + type: integer + resources: + properties: + claims: + items: + properties: + name: + type: string + required: + - name + type: object + type: array + x-kubernetes-list-map-keys: + - name + x-kubernetes-list-type: map + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + type: object + securityContext: + properties: + allowPrivilegeEscalation: + type: boolean + appArmorProfile: + properties: + localhostProfile: + type: string + type: + type: string + required: + - type + type: object + capabilities: + properties: + add: + items: + type: string + type: array + x-kubernetes-list-type: atomic + drop: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + privileged: + type: boolean + procMount: + type: string + readOnlyRootFilesystem: + type: boolean + runAsGroup: + format: int64 + type: integer + runAsNonRoot: + type: boolean + runAsUser: + format: int64 + type: integer + seLinuxOptions: + properties: + level: + type: string + role: + type: string + type: + type: string + user: + type: string + type: object + seccompProfile: + properties: + localhostProfile: + type: string + type: + type: string + required: + - type + type: object + windowsOptions: + properties: + gmsaCredentialSpec: + type: string + gmsaCredentialSpecName: + type: string + hostProcess: + type: boolean + runAsUserName: + type: string + type: object + type: object + type: object + serviceMonitor: + properties: + interval: + type: string + labels: + additionalProperties: + type: string + type: object + type: object + type: object + type: object podTemplate: properties: controller: @@ -3168,6 +3374,7 @@ spec: - standby - stats - dashboard + - secondary type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_clickhouses.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_clickhouses.yaml index d18a05e72..b1c10a853 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_clickhouses.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_clickhouses.yaml @@ -48,11 +48,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic clusterTopology: @@ -9720,6 +9725,7 @@ spec: - standby - stats - dashboard + - secondary 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 e665f7321..ae2e6e6e7 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_druids.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_druids.yaml @@ -48,9 +48,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string + externallyManaged: + type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic configSecret: @@ -88,6 +95,8 @@ spec: type: string disableSecurity: type: boolean + enableSSL: + type: boolean halted: type: boolean healthChecker: @@ -145,6 +154,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -1117,6 +1133,20 @@ spec: waitForInitialRestore: type: boolean type: object + keystoreCredSecret: + properties: + activeFrom: + format: date-time + type: string + externallyManaged: + type: boolean + name: + default: "" + type: string + rotateAfter: + type: string + type: object + x-kubernetes-map-type: atomic metadataStorage: properties: createTables: @@ -1349,6 +1379,7 @@ spec: - standby - stats - dashboard + - secondary type: string metadata: properties: @@ -1411,6 +1442,107 @@ spec: - alias type: object type: array + 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 + type: object topology: properties: brokers: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_elasticsearches.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_elasticsearches.yaml index 3cc06a820..813f73f2b 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_elasticsearches.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_elasticsearches.yaml @@ -50,11 +50,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -141,6 +146,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -39677,11 +39689,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -39761,6 +39778,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -43675,6 +43699,7 @@ spec: - standby - stats - dashboard + - secondary 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 a4a449436..83bb72c7c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_etcds.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_etcds.yaml @@ -50,11 +50,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic deletionPolicy: @@ -100,6 +105,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -3917,6 +3929,7 @@ spec: - standby - stats - dashboard + - secondary 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 67a34ccfa..f50434c0c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_ferretdbs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_ferretdbs.yaml @@ -48,11 +48,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic backend: @@ -3382,6 +3387,7 @@ spec: - standby - stats - dashboard + - secondary 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 db418404a..e57b8634c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_kafkas.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_kafkas.yaml @@ -48,11 +48,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic configSecret: @@ -73,11 +78,16 @@ spec: type: object configSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic podTemplate: @@ -3217,11 +3227,16 @@ spec: type: object keystoreCredSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic monitor: @@ -13157,11 +13172,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic configSecret: @@ -13182,11 +13202,16 @@ spec: type: object configSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic podTemplate: @@ -16326,11 +16351,16 @@ spec: type: object keystoreCredSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic monitor: @@ -19610,6 +19640,7 @@ spec: - standby - stats - dashboard + - secondary 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 8b1028f32..d0a57fb3f 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mariadbs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mariadbs.yaml @@ -136,11 +136,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -219,6 +224,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -4898,11 +4910,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -5080,6 +5097,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -8899,6 +8923,7 @@ spec: - standby - stats - dashboard + - secondary 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 37a924c46..48bded886 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_memcacheds.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_memcacheds.yaml @@ -48,6 +48,20 @@ spec: type: object spec: properties: + authSecret: + properties: + activeFrom: + format: date-time + type: string + externallyManaged: + type: boolean + name: + default: "" + type: string + rotateAfter: + type: string + type: object + x-kubernetes-map-type: atomic configSecret: properties: name: @@ -839,6 +853,8 @@ spec: - WipeOut - DoNotTerminate type: string + disableAuth: + type: boolean halted: type: boolean healthChecker: @@ -8026,6 +8042,7 @@ spec: - standby - stats - dashboard + - secondary 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 027fc74ae..8994a5994 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mongodbs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mongodbs.yaml @@ -3211,11 +3211,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -6481,6 +6486,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -23270,11 +23282,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -26207,6 +26224,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -30038,6 +30062,7 @@ spec: - standby - stats - dashboard + - secondary 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 01b8a9208..e29a08f8f 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mssqlservers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mssqlservers.yaml @@ -61,11 +61,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic configSecret: @@ -245,6 +250,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -4621,6 +4633,7 @@ spec: - standby - stats - dashboard + - secondary 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 97279dc2a..d6c74e1f0 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mysqls.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_mysqls.yaml @@ -206,11 +206,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -289,6 +294,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -8181,11 +8193,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -8363,6 +8380,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -12182,6 +12206,7 @@ spec: - standby - stats - dashboard + - secondary 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 5854c5b92..da5c471af 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_perconaxtradbs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_perconaxtradbs.yaml @@ -120,11 +120,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -203,6 +208,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -4612,20 +4624,30 @@ spec: properties: monitorUserSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic replicationUserSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic type: object @@ -4881,11 +4903,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -5063,6 +5090,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -8882,6 +8916,7 @@ spec: - standby - stats - dashboard + - secondary type: string metadata: properties: @@ -9041,20 +9076,30 @@ spec: properties: monitorUserSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic replicationUserSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic type: object diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgbouncers.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgbouncers.yaml index a88d7fac4..e9e8a9617 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgbouncers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgbouncers.yaml @@ -50,11 +50,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -3687,11 +3692,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -6650,6 +6660,7 @@ spec: - standby - stats - dashboard + - secondary type: string metadata: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgpools.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgpools.yaml index 92a975ccf..5c5a05727 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgpools.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_pgpools.yaml @@ -48,11 +48,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic clientAuthMode: @@ -3389,6 +3394,7 @@ spec: - standby - stats - dashboard + - secondary 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 16fe0db8d..ccae41078 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml @@ -191,11 +191,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -282,6 +287,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -5101,11 +5113,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -5291,6 +5308,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -9182,6 +9206,7 @@ spec: - standby - stats - dashboard + - secondary 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 c5941a6f6..ddb72dc44 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_proxysqls.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_proxysqls.yaml @@ -50,11 +50,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -3677,11 +3682,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -6620,6 +6630,7 @@ spec: - standby - stats - dashboard + - secondary 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 120ae96fc..3071bd071 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_rabbitmqs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_rabbitmqs.yaml @@ -48,11 +48,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic configSecret: @@ -3384,6 +3389,7 @@ spec: - standby - stats - dashboard + - secondary 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 29920709c..e0c8bf42d 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redises.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redises.yaml @@ -120,11 +120,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -214,6 +219,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -4882,11 +4894,16 @@ spec: type: object authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -5075,6 +5092,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -8905,6 +8929,7 @@ spec: - standby - stats - dashboard + - secondary 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 6c1139e82..12268f8f9 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redissentinels.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_redissentinels.yaml @@ -16,6 +16,8 @@ spec: kind: RedisSentinel listKind: RedisSentinelList plural: redissentinels + shortNames: + - rds singular: redissentinel scope: Namespaced versions: @@ -43,11 +45,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -3700,11 +3707,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic autoOps: @@ -6582,6 +6594,7 @@ spec: - standby - stats - dashboard + - secondary 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 4b1b0d833..8febae831 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_singlestores.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_singlestores.yaml @@ -48,11 +48,16 @@ spec: properties: authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic configSecret: @@ -126,6 +131,13 @@ spec: recoveryTimestamp: format: date-time type: string + replicationStrategy: + enum: + - fscopy + - clone + - sync + - none + type: string required: - recoveryTimestamp type: object @@ -1100,11 +1112,16 @@ spec: type: object licenseSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic monitor: @@ -4381,6 +4398,7 @@ spec: - standby - stats - dashboard + - secondary 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 ecd6f8b67..0fe577141 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_solrs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_solrs.yaml @@ -3385,6 +3385,7 @@ spec: - standby - stats - dashboard + - secondary 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 b8de8e77f..cbc190ab4 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_zookeepers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_zookeepers.yaml @@ -52,13 +52,22 @@ spec: type: integer authSecret: properties: + activeFrom: + format: date-time + type: string externallyManaged: type: boolean name: default: "" type: string + rotateAfter: + type: string type: object x-kubernetes-map-type: atomic + clientSecurePort: + default: 2182 + format: int32 + type: integer configSecret: properties: name: @@ -75,6 +84,8 @@ spec: type: string disableAuth: type: boolean + enableSSL: + type: boolean halted: type: boolean healthChecker: @@ -98,6 +109,20 @@ spec: format: int32 type: integer type: object + keystoreCredSecret: + properties: + activeFrom: + format: date-time + type: string + externallyManaged: + type: boolean + name: + default: "" + type: string + rotateAfter: + type: string + type: object + x-kubernetes-map-type: atomic monitor: properties: agent: @@ -3375,6 +3400,7 @@ spec: - standby - stats - dashboard + - secondary type: string metadata: properties: @@ -3525,6 +3551,107 @@ spec: volumeName: type: string type: object + 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 + type: object version: type: string required: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_clickhouseopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_clickhouseopsrequests.yaml index e56b50ac4..85e93944d 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_clickhouseopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_clickhouseopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object databaseRef: properties: name: @@ -62,6 +72,7 @@ spec: type: enum: - Restart + - RotateAuth type: string required: - databaseRef 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 e76cea9f6..341f20478 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_druidopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_druidopsrequests.yaml @@ -48,6 +48,32 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object + configuration: + properties: + applyConfig: + additionalProperties: + type: string + type: object + configSecret: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + removeCustomConfig: + type: boolean + type: object databaseRef: properties: name: @@ -55,16 +81,155 @@ spec: type: string type: object x-kubernetes-map-type: atomic + horizontalScaling: + properties: + topology: + properties: + brokers: + format: int32 + type: integer + coordinators: + format: int32 + type: integer + historicals: + format: int32 + type: integer + middleManagers: + format: int32 + type: integer + overlords: + format: int32 + type: integer + routers: + format: int32 + type: integer + type: object + 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 + - Reconfigure + - ReconfigureTLS + - RotateAuth type: string + updateVersion: + properties: + targetVersion: + type: string + type: object verticalScaling: properties: brokers: 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 3362d5ad9..397f39c0c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -241,6 +251,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 bc3674330..f4570dfde 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_etcdopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_etcdopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: type: object databaseRef: @@ -175,6 +185,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 9700da76f..cdf4b979d 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_ferretdbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_ferretdbopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object databaseRef: properties: name: @@ -191,6 +201,7 @@ spec: - Restart - HorizontalScaling - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 7e87bf6bd..0ce498abe 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_kafkaopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_kafkaopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -204,6 +214,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 1e5fe988d..52f5c4974 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -201,6 +211,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 05d12550a..7c1d7dff9 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -196,6 +206,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 7ea91bca3..750ec73c2 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mongodbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mongodbopsrequests.yaml @@ -68,6 +68,16 @@ spec: - operation - ref type: object + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: arbiter: @@ -357,6 +367,7 @@ spec: - Reconfigure - ReconfigureTLS - Reprovision + - RotateAuth type: string updateVersion: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mssqlserveropsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mssqlserveropsrequests.yaml index ab6b49290..00a0fa2f0 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mssqlserveropsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mssqlserveropsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -195,6 +205,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 7c60d23ce..e9a7207ca 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -198,6 +208,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 d2d78cec7..287931f46 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -201,6 +211,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 bca99d06e..cbe5dca2c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: pgbouncer: @@ -69,6 +79,13 @@ spec: required: - pgbouncer type: object + databaseRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic horizontalScaling: properties: replicas: @@ -77,13 +94,6 @@ spec: type: object restart: type: object - serverRef: - properties: - name: - default: "" - type: string - type: object - x-kubernetes-map-type: atomic timeout: type: string tls: @@ -197,6 +207,7 @@ spec: - VerticalScaling - UpdateVersion - Reconfigure + - RotateAuth type: string updateVersion: properties: @@ -287,7 +298,7 @@ spec: type: object type: object required: - - serverRef + - databaseRef - type type: object status: 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 66995b94b..300962f1c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgpoolopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgpoolopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -209,6 +219,7 @@ spec: - Restart - HorizontalScaling - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 6530c7814..b9a1ee909 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -223,6 +233,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 ad2d959bd..f59399bef 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: adminVariables: @@ -243,6 +253,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 041c5c0ef..fbaddc082 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_rabbitmqopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_rabbitmqopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -195,6 +205,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 4e9f853e9..cc12d0fc8 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -227,6 +237,7 @@ spec: - Reconfigure - ReconfigureTLS - ReplaceSentinel + - RotateAuth type: string updateVersion: properties: 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 982a0aace..5a66ab075 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -194,6 +204,7 @@ spec: - Restart - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 224eff87e..0274edaf6 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_singlestoreopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_singlestoreopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: aggregator: @@ -231,8 +241,9 @@ spec: - VerticalScaling - VolumeExpansion - Restart - - Configuration + - Reconfigure - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 605bb7ae8..932e048d2 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_solropsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_solropsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -204,6 +214,7 @@ spec: - Reconfigure - Restart - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_zookeeperopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_zookeeperopsrequests.yaml index c433492c0..8d8a6652c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_zookeeperopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_zookeeperopsrequests.yaml @@ -48,6 +48,16 @@ spec: - IfReady - Always type: string + authentication: + properties: + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: object configuration: properties: applyConfig: @@ -81,6 +91,111 @@ spec: 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 @@ -89,6 +204,8 @@ spec: - VolumeExpansion - Restart - Reconfigure + - ReconfigureTLS + - RotateAuth type: string updateVersion: properties: 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 772c36114..8fe95cf81 100644 --- a/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_publishers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_publishers.yaml @@ -111,6 +111,13 @@ spec: type: object databaseName: type: string + databaseRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic deletionPolicy: default: Delete enum: @@ -137,21 +144,14 @@ spec: type: object publishAllTables: type: boolean - serverRef: - properties: - name: - default: "" - type: string - type: object - x-kubernetes-map-type: atomic tables: items: type: string type: array required: - databaseName + - databaseRef - name - - serverRef type: object status: properties: 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 9f6295d27..6f750520e 100644 --- a/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_subscribers.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/postgres.kubedb.com_subscribers.yaml @@ -41,6 +41,13 @@ spec: properties: databaseName: type: string + databaseRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic deletionPolicy: default: Delete enum: @@ -113,18 +120,11 @@ spec: - refs type: object type: object - serverRef: - properties: - name: - default: "" - type: string - type: object - x-kubernetes-map-type: atomic required: - databaseName + - databaseRef - name - publisher - - serverRef type: object status: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_databaseconnections.yaml b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_databaseconnections.yaml index 132299cb2..29091f546 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_databaseconnections.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_databaseconnections.yaml @@ -26,30 +26,14 @@ spec: type: object spec: properties: + caCert: + format: byte + type: string connectOptions: additionalProperties: type: string type: object - private: - items: - properties: - host: - type: string - port: - format: int32 - type: integer - secretRef: - properties: - name: - type: string - namespace: - type: string - required: - - name - type: object - type: object - type: array - public: + gateway: items: properties: hostname: @@ -138,6 +122,25 @@ spec: - namespace type: object type: array + inCluster: + properties: + exec: + type: string + host: + type: string + port: + format: int32 + type: integer + secretRef: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + type: object type: object status: properties: diff --git a/vendor/modules.txt b/vendor/modules.txt index eb779f2a0..ada404b3e 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -18,7 +18,7 @@ github.com/beorn7/perks/quantile # github.com/blang/semver/v4 v4.0.0 ## explicit; go 1.14 github.com/blang/semver/v4 -# github.com/cert-manager/cert-manager v1.15.1 +# github.com/cert-manager/cert-manager v1.15.2 ## explicit; go 1.22.0 github.com/cert-manager/cert-manager/pkg/apis/acme github.com/cert-manager/cert-manager/pkg/apis/acme/v1 @@ -1464,7 +1464,7 @@ kmodules.xyz/apiversion # kmodules.xyz/cert-manager-util v0.29.0 ## explicit; go 1.21.5 kmodules.xyz/cert-manager-util/certmanager/v1 -# kmodules.xyz/client-go v0.30.17 +# kmodules.xyz/client-go v0.30.32 ## explicit; go 1.22.0 kmodules.xyz/client-go kmodules.xyz/client-go/api/v1 @@ -1491,7 +1491,7 @@ kmodules.xyz/custom-resources/client/clientset/versioned/scheme kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1 kmodules.xyz/custom-resources/client/clientset/versioned/typed/metrics/v1alpha1 kmodules.xyz/custom-resources/crds -# kmodules.xyz/monitoring-agent-api v0.30.1 +# kmodules.xyz/monitoring-agent-api v0.30.2 ## explicit; go 1.22.0 kmodules.xyz/monitoring-agent-api/api/v1 # kmodules.xyz/objectstore-api v0.29.1 @@ -1506,12 +1506,12 @@ kmodules.xyz/offshoot-api/util # kmodules.xyz/prober v0.29.0 ## explicit; go 1.21.5 kmodules.xyz/prober/api/v1 -# kmodules.xyz/resource-metadata v0.18.15 +# kmodules.xyz/resource-metadata v0.20.0 ## explicit; go 1.22.1 kmodules.xyz/resource-metadata/apis/node kmodules.xyz/resource-metadata/apis/node/v1alpha1 kmodules.xyz/resource-metadata/crds -# kubedb.dev/apimachinery v0.48.0 +# kubedb.dev/apimachinery v0.49.0-rc.0 ## explicit; go 1.22.1 kubedb.dev/apimachinery/apis kubedb.dev/apimachinery/apis/archiver/v1alpha1 @@ -1555,7 +1555,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.3.0 +# kubedb.dev/db-client-go v0.4.0-rc.0 ## explicit; go 1.22.1 kubedb.dev/db-client-go/elasticsearch kubedb.dev/db-client-go/redis