From 994062986dc7fdbabbc4a8a157b0a185508cefbf Mon Sep 17 00:00:00 2001 From: 1gtm <1gtm@appscode.com> Date: Sat, 11 Jul 2026 10:41:01 +0000 Subject: [PATCH] Prepare for release v0.66.0 ProductLine: KubeDB Release: v2026.7.10 Release-tracker: https://github.com/kubedb/CHANGELOG/pull/140 Signed-off-by: 1gtm <1gtm@appscode.com> --- go.mod | 12 +- go.sum | 34 +- vendor/github.com/onsi/gomega/CHANGELOG.md | 73 +- .../github.com/onsi/gomega/format/format.go | 34 +- vendor/github.com/onsi/gomega/gomega_dsl.go | 26 +- .../onsi/gomega/internal/assertion.go | 32 +- .../onsi/gomega/internal/async_assertion.go | 46 +- .../onsi/gomega/internal/duration_bundle.go | 2 +- .../github.com/onsi/gomega/internal/gomega.go | 20 +- .../gomega/internal/polling_signal_error.go | 2 +- .../onsi/gomega/internal/vetoptdesc.go | 2 +- vendor/github.com/onsi/gomega/matchers.go | 94 +- vendor/github.com/onsi/gomega/matchers/and.go | 8 +- .../matchers/assignable_to_type_of_matcher.go | 8 +- .../onsi/gomega/matchers/be_a_directory.go | 8 +- .../onsi/gomega/matchers/be_a_regular_file.go | 8 +- .../gomega/matchers/be_an_existing_file.go | 8 +- .../onsi/gomega/matchers/be_closed_matcher.go | 6 +- .../matchers/be_comparable_to_matcher.go | 11 +- .../gomega/matchers/be_element_of_matcher.go | 8 +- .../onsi/gomega/matchers/be_empty_matcher.go | 6 +- .../matchers/be_equivalent_to_matcher.go | 8 +- .../onsi/gomega/matchers/be_false_matcher.go | 6 +- .../onsi/gomega/matchers/be_identical_to.go | 8 +- .../onsi/gomega/matchers/be_key_of_matcher.go | 8 +- .../onsi/gomega/matchers/be_nil_matcher.go | 6 +- .../gomega/matchers/be_numerically_matcher.go | 10 +- .../onsi/gomega/matchers/be_sent_matcher.go | 10 +- .../gomega/matchers/be_temporally_matcher.go | 8 +- .../onsi/gomega/matchers/be_true_matcher.go | 6 +- .../onsi/gomega/matchers/be_zero_matcher.go | 6 +- .../onsi/gomega/matchers/consist_of.go | 34 +- .../matchers/contain_element_matcher.go | 18 +- .../matchers/contain_elements_matcher.go | 10 +- .../matchers/contain_substring_matcher.go | 8 +- .../onsi/gomega/matchers/equal_matcher.go | 8 +- .../onsi/gomega/matchers/have_cap_matcher.go | 6 +- .../onsi/gomega/matchers/have_each_matcher.go | 14 +- .../gomega/matchers/have_exact_elements.go | 8 +- .../matchers/have_existing_field_matcher.go | 6 +- .../onsi/gomega/matchers/have_field.go | 10 +- .../gomega/matchers/have_http_body_matcher.go | 12 +- .../have_http_header_with_value_matcher.go | 10 +- .../matchers/have_http_status_matcher.go | 10 +- .../onsi/gomega/matchers/have_key_matcher.go | 10 +- .../matchers/have_key_with_value_matcher.go | 14 +- .../onsi/gomega/matchers/have_len_matcher.go | 6 +- .../gomega/matchers/have_occurred_matcher.go | 6 +- .../gomega/matchers/have_prefix_matcher.go | 8 +- .../gomega/matchers/have_suffix_matcher.go | 8 +- .../onsi/gomega/matchers/have_value.go | 8 +- .../gomega/matchers/match_error_matcher.go | 4 +- .../matchers/match_error_strictly_matcher.go | 39 + .../gomega/matchers/match_json_matcher.go | 16 +- .../gomega/matchers/match_regexp_matcher.go | 8 +- .../onsi/gomega/matchers/match_xml_matcher.go | 10 +- .../gomega/matchers/match_yaml_matcher.go | 22 +- vendor/github.com/onsi/gomega/matchers/not.go | 8 +- vendor/github.com/onsi/gomega/matchers/or.go | 8 +- .../onsi/gomega/matchers/panic_matcher.go | 10 +- .../onsi/gomega/matchers/receive_matcher.go | 16 +- .../onsi/gomega/matchers/satisfy_matcher.go | 10 +- .../matchers/semi_structured_data_support.go | 32 +- .../onsi/gomega/matchers/succeed_matcher.go | 6 +- .../goraph/bipartitegraph/bipartitegraph.go | 4 +- .../matchers/support/goraph/edge/edge.go | 13 +- .../matchers/support/goraph/node/node.go | 2 +- .../onsi/gomega/matchers/type_support.go | 40 +- .../onsi/gomega/matchers/with_transform.go | 14 +- vendor/github.com/onsi/gomega/types/types.go | 49 +- .../v1alpha1/mariadbarchiver_helpers.go | 2 +- .../v1alpha1/mongodbarchiver_helpers.go | 2 +- .../v1alpha1/mssqlserverarchiver_helpers.go | 2 +- .../v1alpha1/mysqlarchiver_helpers.go | 2 +- .../v1alpha1/postgresarchiver_helpers.go | 2 +- .../apis/autoscaling/v1alpha1/register.go | 6 +- .../catalog/v1alpha1/mariadb_version_types.go | 6 +- .../catalog/v1alpha1/mongodb_version_types.go | 7 +- .../v1alpha1/mssqlserver_version_types.go | 5 + .../catalog/v1alpha1/mysql_version_types.go | 6 +- .../catalog/v1alpha1/openapi_generated.go | 41 +- .../v1alpha1/postgres_version_types.go | 6 +- .../apis/catalog/v1alpha1/register.go | 6 +- .../catalog/v1alpha1/zz_generated.deepcopy.go | 9 +- .../apis/config/v1alpha1/register.go | 6 +- .../apis/{migrator => courier}/register.go | 4 +- .../apis/courier/v1alpha1/branch_types.go | 291 ++ .../apis/courier/v1alpha1/branchwork_types.go | 150 + .../v1alpha1/conditions.go | 22 +- .../v1alpha1/constants.go | 22 + .../{migrator => courier}/v1alpha1/doc.go | 6 +- .../apis/courier/v1alpha1/helpers.go | 101 + .../v1alpha1/mariadbmigration_types.go | 103 + .../courier/v1alpha1/migration_conversion.go | 97 + .../v1alpha1/migration_types.go} | 69 +- .../v1alpha1/mongodbmigration_types.go} | 79 +- .../v1alpha1/mssqlservermigration_types.go | 171 + .../v1alpha1/mysqlmigration_types.go} | 74 +- .../v1alpha1/openapi_generated.go | 2231 +++++++++++-- .../v1alpha1/postgresmigration_types.go} | 73 + .../{migrator => courier}/v1alpha1/types.go | 44 +- .../courier/v1alpha1/zz_generated.deepcopy.go | 1943 +++++++++++ .../apis/elasticsearch/v1alpha1/constants.go | 2 +- .../kubedb.dev/apimachinery/apis/helpers.go | 16 + .../apis/kafka/v1alpha1/register.go | 6 +- .../apimachinery/apis/kubedb/constants.go | 40 +- .../apis/kubedb/v1/elasticsearch_helpers.go | 11 + .../apis/kubedb/v1/kafka_helpers.go | 2 + .../apis/kubedb/v1/mariadb_helpers.go | 2 + .../apis/kubedb/v1/memcached_helpers.go | 1 + .../apis/kubedb/v1/mongodb_helpers.go | 2 + .../apis/kubedb/v1/mysql_helpers.go | 4 + .../apis/kubedb/v1/openapi_generated.go | 70 +- .../apis/kubedb/v1/perconaxtradb_helpers.go | 2 + .../apis/kubedb/v1/pgbouncer_helpers.go | 1 + .../apis/kubedb/v1/postgres_helpers.go | 16 + .../apis/kubedb/v1/postgres_types.go | 140 + .../apis/kubedb/v1/proxysql_helpers.go | 2 + .../apis/kubedb/v1/redis_helpers.go | 10 + .../apis/kubedb/v1/redis_sentinel_helpers.go | 2 + .../apimachinery/apis/kubedb/v1/register.go | 6 +- .../apis/kubedb/v1/zz_generated.deepcopy.go | 46 + .../apis/kubedb/v1alpha1/register.go | 6 +- .../apis/kubedb/v1alpha2/aerospike_helpers.go | 1 + .../apis/kubedb/v1alpha2/cassandra_helpers.go | 2 + .../kubedb/v1alpha2/clickhouse_helpers.go | 3 + .../apis/kubedb/v1alpha2/db2_helpers.go | 1 + .../kubedb/v1alpha2/documentdb_helpers.go | 7 +- .../apis/kubedb/v1alpha2/druid_helpers.go | 2 + .../apis/kubedb/v1alpha2/hanadb_helpers.go | 2 + .../apis/kubedb/v1alpha2/hanadb_types.go | 7 + .../apis/kubedb/v1alpha2/hazelcast_helpers.go | 1 + .../apis/kubedb/v1alpha2/ignite_helpers.go | 2 + .../apis/kubedb/v1alpha2/kafka_helpers.go | 2 + .../apis/kubedb/v1alpha2/milvus_helpers.go | 26 +- .../kubedb/v1alpha2/mssqlserver_helpers.go | 2 + .../apis/kubedb/v1alpha2/neo4j_helpers.go | 7 + .../apis/kubedb/v1alpha2/neo4j_types.go | 2 + .../apis/kubedb/v1alpha2/openapi_generated.go | 104 +- .../apis/kubedb/v1alpha2/oracle_helpers.go | 2 + .../apis/kubedb/v1alpha2/pgbouncer_helpers.go | 2 +- .../apis/kubedb/v1alpha2/pgpool_helpers.go | 1 + .../apis/kubedb/v1alpha2/qdrant_helpers.go | 27 +- .../apis/kubedb/v1alpha2/rabbitmq_helpers.go | 2 + .../apis/kubedb/v1alpha2/register.go | 6 +- .../kubedb/v1alpha2/singlestore_helpers.go | 2 + .../apis/kubedb/v1alpha2/solr_helpers.go | 4 +- .../apis/kubedb/v1alpha2/weaviate_helpers.go | 87 +- .../apis/kubedb/v1alpha2/weaviate_types.go | 5 + .../apis/kubedb/v1alpha2/zookeeper_helpers.go | 2 + .../v1alpha2/zz_generated.conversion.go | 1 + .../kubedb/v1alpha2/zz_generated.deepcopy.go | 73 + .../apis/migrator/v1alpha1/helpers.go | 60 - .../apis/migrator/v1alpha1/mariadb.go | 30 - .../v1alpha1/zz_generated.deepcopy.go | 878 ----- .../apis/ops/v1alpha1/aerospike_ops_types.go | 4 + .../apis/ops/v1alpha1/cassandra_ops-types.go | 4 + .../apis/ops/v1alpha1/clickhouse_ops-types.go | 7 + .../apis/ops/v1alpha1/constant.go | 22 +- .../apis/ops/v1alpha1/db2_ops_types.go | 4 + .../apis/ops/v1alpha1/documentdb_ops_types.go | 4 + .../apis/ops/v1alpha1/druid_ops_types.go | 4 + .../ops/v1alpha1/elasticsearch_ops_types.go | 4 + .../apis/ops/v1alpha1/hanadb_ops_types.go | 4 + .../apis/ops/v1alpha1/hazelcast_ops_types.go | 4 + .../apis/ops/v1alpha1/ignite_ops_types.go | 4 + .../apis/ops/v1alpha1/kafka_ops_types.go | 4 + .../apis/ops/v1alpha1/mariadb_ops_types.go | 4 + .../apis/ops/v1alpha1/memcached_ops_types.go | 4 + .../apis/ops/v1alpha1/milvus_ops_types.go | 4 + .../apis/ops/v1alpha1/mongodb_ops_types.go | 4 + .../ops/v1alpha1/mssqlserver_ops_types.go | 4 + .../apis/ops/v1alpha1/mysql_ops_types.go | 4 + .../apis/ops/v1alpha1/neo4j_ops_types.go | 4 + .../apis/ops/v1alpha1/openapi_generated.go | 251 +- .../apis/ops/v1alpha1/oracle_ops_types.go | 11 +- .../ops/v1alpha1/oracle_ops_types_enum.go | 5 + .../ops/v1alpha1/perconaxtradb_ops_types.go | 4 + .../apis/ops/v1alpha1/pgbouncer_ops_types.go | 4 + .../apis/ops/v1alpha1/pgpool_ops_types.go | 8 +- .../apis/ops/v1alpha1/postgres_ops_types.go | 9 + .../apis/ops/v1alpha1/proxysql_ops_types.go | 4 + .../apis/ops/v1alpha1/qdrant_ops_types.go | 4 + .../apis/ops/v1alpha1/rabbitmq_ops_types.go | 4 + .../apis/ops/v1alpha1/redis_ops_types.go | 4 + .../ops/v1alpha1/redis_sentinel_ops_types.go | 4 + .../apis/ops/v1alpha1/register.go | 6 +- .../ops/v1alpha1/singlestore_ops_types.go | 4 + .../apis/ops/v1alpha1/solr_ops_types.go | 4 + .../apimachinery/apis/ops/v1alpha1/type.go | 12 + .../apis/ops/v1alpha1/weaviate_ops_types.go | 4 + .../apis/ops/v1alpha1/zookeeper_ops_types.go | 4 + .../ops/v1alpha1/zz_generated.deepcopy.go | 16 +- .../apis/postgres/v1alpha1/register.go | 6 +- .../apimachinery/apis/ui/v1alpha1/register.go | 6 +- .../client/clientset/versioned/clientset.go | 26 +- .../clientset/versioned/scheme/register.go | 4 +- .../v1alpha1/branch.go} | 108 +- .../typed/courier/v1alpha1/branchwork.go | 196 ++ .../typed/courier/v1alpha1/courier_client.go | 138 + .../{migrator => courier}/v1alpha1/doc.go | 0 .../v1alpha1/generated_expansion.go | 14 +- .../courier/v1alpha1/mariadbmigration.go | 196 ++ .../courier/v1alpha1/mongodbmigration.go | 196 ++ .../courier/v1alpha1/mssqlservermigration.go | 196 ++ .../typed/courier/v1alpha1/mysqlmigration.go | 196 ++ .../courier/v1alpha1/postgresmigration.go | 196 ++ .../migrator/v1alpha1/migrator_client.go | 108 - .../catalog.kubedb.com_mariadbversions.yaml | 34 +- .../catalog.kubedb.com_mongodbversions.yaml | 34 +- ...atalog.kubedb.com_mssqlserverversions.yaml | 17 + .../catalog.kubedb.com_mysqlversions.yaml | 34 +- .../catalog.kubedb.com_postgresversions.yaml | 34 +- .../crds/courier.kubedb.com_branches.yaml | 262 ++ .../crds/courier.kubedb.com_branchworks.yaml | 247 ++ .../courier.kubedb.com_mariadbmigrations.yaml | 2965 +++++++++++++++++ .../courier.kubedb.com_mongodbmigrations.yaml | 2957 ++++++++++++++++ ...rier.kubedb.com_mssqlservermigrations.yaml | 2964 ++++++++++++++++ .../courier.kubedb.com_mysqlmigrations.yaml | 2965 +++++++++++++++++ ...ourier.kubedb.com_postgresmigrations.yaml} | 537 +-- .../crds/gitops.kubedb.com_hanadbs.yaml | 2 + .../crds/gitops.kubedb.com_neo4js.yaml | 9 + .../crds/gitops.kubedb.com_postgreses.yaml | 26 + .../crds/gitops.kubedb.com_weaviates.yaml | 327 ++ .../apimachinery/crds/kubedb.com_hanadbs.yaml | 2 + .../apimachinery/crds/kubedb.com_neo4js.yaml | 9 + .../crds/kubedb.com_postgreses.yaml | 26 + .../crds/kubedb.com_weaviates.yaml | 327 ++ .../ops.kubedb.com_aerospikeopsrequests.yaml | 6 + .../ops.kubedb.com_cassandraopsrequests.yaml | 6 + .../ops.kubedb.com_clickhouseopsrequests.yaml | 9 + .../crds/ops.kubedb.com_db2opsrequests.yaml | 6 + .../ops.kubedb.com_documentdbopsrequests.yaml | 6 + .../crds/ops.kubedb.com_druidopsrequests.yaml | 6 + ...s.kubedb.com_elasticsearchopsrequests.yaml | 6 + .../ops.kubedb.com_hanadbopsrequests.yaml | 6 + .../ops.kubedb.com_hazelcastopsrequests.yaml | 6 + .../ops.kubedb.com_igniteopsrequests.yaml | 6 + .../crds/ops.kubedb.com_kafkaopsrequests.yaml | 6 + .../ops.kubedb.com_mariadbopsrequests.yaml | 6 + .../ops.kubedb.com_memcachedopsrequests.yaml | 6 + .../ops.kubedb.com_milvusopsrequests.yaml | 6 + .../ops.kubedb.com_mongodbopsrequests.yaml | 6 + ...ops.kubedb.com_mssqlserveropsrequests.yaml | 6 + .../crds/ops.kubedb.com_mysqlopsrequests.yaml | 6 + .../crds/ops.kubedb.com_neo4jopsrequests.yaml | 15 + .../ops.kubedb.com_oracleopsrequests.yaml | 112 + ...s.kubedb.com_perconaxtradbopsrequests.yaml | 6 + .../ops.kubedb.com_pgbounceropsrequests.yaml | 6 + .../ops.kubedb.com_pgpoolopsrequests.yaml | 6 + .../ops.kubedb.com_postgresopsrequests.yaml | 8 + .../ops.kubedb.com_proxysqlopsrequests.yaml | 6 + .../ops.kubedb.com_qdrantopsrequests.yaml | 6 + .../ops.kubedb.com_rabbitmqopsrequests.yaml | 6 + .../crds/ops.kubedb.com_redisopsrequests.yaml | 6 + ...s.kubedb.com_redissentinelopsrequests.yaml | 6 + ...ops.kubedb.com_singlestoreopsrequests.yaml | 6 + .../crds/ops.kubedb.com_solropsrequests.yaml | 6 + .../ops.kubedb.com_weaviateopsrequests.yaml | 6 + .../ops.kubedb.com_zookeeperopsrequests.yaml | 6 + .../elasticsearch/es_client_v5.go | 3 +- .../elasticsearch/es_client_v6.go | 3 +- .../petset/apis/apps/v1/constants.go | 5 + .../apis/apps/v1/placementpolicy_helpers.go | 84 + .../apis/apps/v1/placementpolicy_types.go | 74 + .../apis/apps/v1/zz_generated.deepcopy.go | 38 + .../listers/apps/v1/petset_expansion.go | 9 + ...ps.k8s.appscode.com_placementpolicies.yaml | 48 + .../apis/apps/v1alpha1/sidekick_types.go | 5 +- .../crds/apps.k8s.appscode.com_sidekicks.yaml | 1 + .../core/v1alpha1/zz_generated.deepcopy.go | 5 +- .../storage/v1alpha1/backupstorage_helpers.go | 11 + .../apis/storage/v1alpha1/snapshot_types.go | 6 +- .../storage/v1alpha1/zz_generated.deepcopy.go | 42 +- .../apis/zz_generated.deepcopy.go | 2 +- vendor/modules.txt | 20 +- 276 files changed, 22278 insertions(+), 2590 deletions(-) create mode 100644 vendor/github.com/onsi/gomega/matchers/match_error_strictly_matcher.go rename vendor/kubedb.dev/apimachinery/apis/{migrator => courier}/register.go (94%) create mode 100644 vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/branch_types.go create mode 100644 vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/branchwork_types.go rename vendor/kubedb.dev/apimachinery/apis/{migrator => courier}/v1alpha1/conditions.go (84%) rename vendor/kubedb.dev/apimachinery/apis/{migrator => courier}/v1alpha1/constants.go (83%) rename vendor/kubedb.dev/apimachinery/apis/{migrator => courier}/v1alpha1/doc.go (90%) create mode 100644 vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/helpers.go create mode 100644 vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mariadbmigration_types.go create mode 100644 vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/migration_conversion.go rename vendor/kubedb.dev/apimachinery/apis/{migrator/v1alpha1/migrator_types.go => courier/v1alpha1/migration_types.go} (61%) rename vendor/kubedb.dev/apimachinery/apis/{migrator/v1alpha1/mongodb.go => courier/v1alpha1/mongodbmigration_types.go} (59%) create mode 100644 vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mssqlservermigration_types.go rename vendor/kubedb.dev/apimachinery/apis/{migrator/v1alpha1/mysql.go => courier/v1alpha1/mysqlmigration_types.go} (53%) rename vendor/kubedb.dev/apimachinery/apis/{migrator => courier}/v1alpha1/openapi_generated.go (95%) rename vendor/kubedb.dev/apimachinery/apis/{migrator/v1alpha1/postgres.go => courier/v1alpha1/postgresmigration_types.go} (62%) rename vendor/kubedb.dev/apimachinery/apis/{migrator => courier}/v1alpha1/types.go (68%) create mode 100644 vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/zz_generated.deepcopy.go delete mode 100644 vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/helpers.go delete mode 100644 vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/mariadb.go delete mode 100644 vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/zz_generated.deepcopy.go rename vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/{migrator/v1alpha1/migrator.go => courier/v1alpha1/branch.go} (50%) create mode 100644 vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/branchwork.go create mode 100644 vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/courier_client.go rename vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/{migrator => courier}/v1alpha1/doc.go (100%) rename vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/{migrator => courier}/v1alpha1/generated_expansion.go (68%) create mode 100644 vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mariadbmigration.go create mode 100644 vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mongodbmigration.go create mode 100644 vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mssqlservermigration.go create mode 100644 vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mysqlmigration.go create mode 100644 vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/postgresmigration.go delete mode 100644 vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/migrator_client.go create mode 100644 vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_branches.yaml create mode 100644 vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_branchworks.yaml create mode 100644 vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mariadbmigrations.yaml create mode 100644 vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mongodbmigrations.yaml create mode 100644 vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mssqlservermigrations.yaml create mode 100644 vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mysqlmigrations.yaml rename vendor/kubedb.dev/apimachinery/crds/{migrator.kubedb.com_migrators.yaml => courier.kubedb.com_postgresmigrations.yaml} (88%) create mode 100644 vendor/kubeops.dev/petset/apis/apps/v1/placementpolicy_helpers.go diff --git a/go.mod b/go.mod index bd0696fce..17ad784ce 100644 --- a/go.mod +++ b/go.mod @@ -27,9 +27,9 @@ require ( kmodules.xyz/client-go v0.34.3 kmodules.xyz/custom-resources v0.34.0 kmodules.xyz/monitoring-agent-api v0.34.1 - kubedb.dev/apimachinery v0.65.0 - kubedb.dev/db-client-go v0.20.0 - kubeops.dev/petset v0.0.17-0.20260418091244-7f666912d240 + kubedb.dev/apimachinery v0.66.0 + kubedb.dev/db-client-go v0.21.0 + kubeops.dev/petset v0.1.1-0.20260709161836-19b3570c41ab sigs.k8s.io/controller-runtime v0.22.4 sigs.k8s.io/yaml v1.6.0 stash.appscode.dev/apimachinery v0.42.1 @@ -123,7 +123,7 @@ require ( github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect - github.com/onsi/gomega v1.36.2 // indirect + github.com/onsi/gomega v1.39.0 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.1 // indirect github.com/opensearch-project/opensearch-go v1.1.0 // indirect @@ -188,8 +188,8 @@ require ( kmodules.xyz/resource-metrics v0.34.0 // indirect kubeops.dev/csi-driver-cacerts v0.5.1-0.20260418091014-4f539f46235c // indirect kubeops.dev/operator-shard-manager v0.0.6-0.20260418091213-65daf7da824d // indirect - kubeops.dev/sidekick v0.0.15-0.20260418091208-a1cb9f4a3553 // indirect - kubestash.dev/apimachinery v0.28.0 // indirect + kubeops.dev/sidekick v0.0.16-0.20260711064558-9f0ad344e447 // indirect + kubestash.dev/apimachinery v0.29.0 // indirect open-cluster-management.io/api v1.2.0 // indirect sigs.k8s.io/cli-utils v0.37.2 // indirect sigs.k8s.io/gateway-api v1.4.0 // indirect diff --git a/go.sum b/go.sum index ebe0b1092..cd1eca3b2 100644 --- a/go.sum +++ b/go.sum @@ -220,8 +220,8 @@ github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/ github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad h1:a6HEuzUHeKH6hwfN/ZoQgRgVIWFJljSWa/zetS2WTvg= -github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= +github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 h1:BHT72Gu3keYf3ZEu2J0b1vyeLSOYI8bm5wbJM/8yDe8= +github.com/google/pprof v0.0.0-20250403155104-27863c87afa6/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -353,10 +353,10 @@ github.com/nxadm/tail v1.4.11/go.mod h1:OTaG3NK980DZzxbRq6lEuzgU+mug70nY11sMd4JX github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.23.1 h1:Ox0cOPv/t8RzKJUfDo9ZKtRvBOJY369sFJnl00CjqwY= -github.com/onsi/ginkgo/v2 v2.23.1/go.mod h1:zXTP6xIp3U8aVuXN8ENK9IXRaTjFnpVB9mGmaSRvxnM= -github.com/onsi/gomega v1.36.2 h1:koNYke6TVk6ZmnyHrCXba/T/MoLBXFjeC1PtvYgw0A8= -github.com/onsi/gomega v1.36.2/go.mod h1:DdwyADRjrc825LhMEkD76cHR5+pUnjhUN8GlHlRPHzY= +github.com/onsi/ginkgo/v2 v2.25.3 h1:Ty8+Yi/ayDAGtk4XxmmfUy4GabvM+MegeB4cDLRi6nw= +github.com/onsi/ginkgo/v2 v2.25.3/go.mod h1:43uiyQC4Ed2tkOzLsEYm7hnrb7UJTWHYNsuy3bG/snE= +github.com/onsi/gomega v1.39.0 h1:y2ROC3hKFmQZJNFeGAMeHZKkjBL65mIZcvrLQBF9k6Q= +github.com/onsi/gomega v1.39.0/go.mod h1:ZCU1pkQcXDO5Sl9/VVEGlDyp+zm0m1cmeG5TOzLgdh4= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040= @@ -492,6 +492,8 @@ go.opentelemetry.io/otel/sdk v1.43.0/go.mod h1:P+IkVU3iWukmiit/Yf9AWvpyRDlUeBaRg go.opentelemetry.io/otel/trace v1.43.0 h1:BkNrHpup+4k4w+ZZ86CZoHHEkohws8AY+WTX09nk+3A= go.opentelemetry.io/otel/trace v1.43.0/go.mod h1:/QJhyVBUUswCphDVxq+8mld+AvhXZLhe+8WVFxiFff0= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= +go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= @@ -793,20 +795,20 @@ kmodules.xyz/resource-metadata v0.46.1 h1:mm4sWZvQMFJJiLdKlPGxD9Cj6f44SCdHB7Csbk kmodules.xyz/resource-metadata v0.46.1/go.mod h1:ejz7IVjhqmj6VH8CVfprocJK/IM++OeunrfUp51ZrIw= kmodules.xyz/resource-metrics v0.34.0 h1:cqscgTx3PONxHj6PIySK3sTlKKv8iKTGzRd+S6YSwXg= kmodules.xyz/resource-metrics v0.34.0/go.mod h1:R34IKtp5+NqcQz7AQJheBJK6Iem0LqrCbm/55Mn+ECQ= -kubedb.dev/apimachinery v0.65.0 h1:fAgu/jR+QImZhpSe1sTc6jISQ1LYETzrX8q85DuZ9GA= -kubedb.dev/apimachinery v0.65.0/go.mod h1:TWiZCxq/9q0TN8+OjMS5pvhsLYPvtvb2aASZUPwETzA= -kubedb.dev/db-client-go v0.20.0 h1:HmDLWUBOZwt1m40bls4yL8DuwegEhzHp4NG2k9IpPDk= -kubedb.dev/db-client-go v0.20.0/go.mod h1:QTWcre0Q5OVa53t+HT1uTNeRRRIYlzCFKi6nUXjArjk= +kubedb.dev/apimachinery v0.66.0 h1:YjRkcw+RXwlSUVE/u83OSL6Tkl6gsUGrZTzCP7drAaQ= +kubedb.dev/apimachinery v0.66.0/go.mod h1:leFxs0RvZIHSXIvD6vc63yuO0LVPB7HxuL1xCEHE7FY= +kubedb.dev/db-client-go v0.21.0 h1:0Y6ew/B9NE4N1+9Sg59tJtisieIeX8mIx+PkmG3AkoM= +kubedb.dev/db-client-go v0.21.0/go.mod h1:2LnFYPZ4AyDrweZZTaPsm+7b1SK759xYICW/zXsdURc= kubeops.dev/csi-driver-cacerts v0.5.1-0.20260418091014-4f539f46235c h1:ZKmBV3fFfCWQ3jDeWBbUi2J4WjJ2ff88n+cTqJ8ZXT8= kubeops.dev/csi-driver-cacerts v0.5.1-0.20260418091014-4f539f46235c/go.mod h1:VNbwC3gTWfmdQCVxd8mkVx+n1+0F1lOA5X3usyZN1rk= kubeops.dev/operator-shard-manager v0.0.6-0.20260418091213-65daf7da824d h1:/nZYflp2w1x+wQmxDtHR0Sbzl39fcuaJ66oqgVXBBwQ= kubeops.dev/operator-shard-manager v0.0.6-0.20260418091213-65daf7da824d/go.mod h1:NE6GzlhwLRiwiUUpqi4Uf+J7e/gniITM0uJnE5r1mzY= -kubeops.dev/petset v0.0.17-0.20260418091244-7f666912d240 h1:6FyI0dCC/1aaJqdCqEtyRjownOCH2PP2KWpU1i0mgv4= -kubeops.dev/petset v0.0.17-0.20260418091244-7f666912d240/go.mod h1:zb++ZwjAon+cueexxhRSSxzJnNX1J/scqvDrGgeRHcQ= -kubeops.dev/sidekick v0.0.15-0.20260418091208-a1cb9f4a3553 h1:metVCjSnZJmPcON1wUuedyve0lV8IPNXxuGt6FgDMi4= -kubeops.dev/sidekick v0.0.15-0.20260418091208-a1cb9f4a3553/go.mod h1:JelNzrL+K2S3BvkxDi2bE9lxaP5Y+HeDQooXIlKBorM= -kubestash.dev/apimachinery v0.28.0 h1:0JwpV9AA4VcfxyoUTfrvJDcXAWBUg/CXCcdAGMx6IYI= -kubestash.dev/apimachinery v0.28.0/go.mod h1:zzvfyJ0ACaxAzk1to1cERIrIacHACASWcPbDkel9lyE= +kubeops.dev/petset v0.1.1-0.20260709161836-19b3570c41ab h1:0aouI9IIIoHDwIOmLjgr0YXMab9f833ei8neEBPuG48= +kubeops.dev/petset v0.1.1-0.20260709161836-19b3570c41ab/go.mod h1:zb++ZwjAon+cueexxhRSSxzJnNX1J/scqvDrGgeRHcQ= +kubeops.dev/sidekick v0.0.16-0.20260711064558-9f0ad344e447 h1:Oz4yTzNyx5vFgoC11QWc5zMaxR8EK/kxxxNnH75PxPc= +kubeops.dev/sidekick v0.0.16-0.20260711064558-9f0ad344e447/go.mod h1:tTu9iMs4awf/cuHRA8XcDxyEz+AfTGcc3IOAg9kclmE= +kubestash.dev/apimachinery v0.29.0 h1:yNurTDPthRm6Z5f+DboT5jdjfm9VkE0oMuTemLF0s24= +kubestash.dev/apimachinery v0.29.0/go.mod h1:Gp3D0Ah1meSf+KAB+Nwh3sKTOO5lhswqk9KDNhBM0Eg= open-cluster-management.io/api v1.2.0 h1:+yeQgJiErrur5S4s205UM37EcZ2XbC9pFSm0xgV5/hU= open-cluster-management.io/api v1.2.0/go.mod h1:YcmA6SpGEekIMxdoeVIIyOaBhMA6ImWRLXP4g8n8T+4= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= diff --git a/vendor/github.com/onsi/gomega/CHANGELOG.md b/vendor/github.com/onsi/gomega/CHANGELOG.md index a20d997cd..cf020605c 100644 --- a/vendor/github.com/onsi/gomega/CHANGELOG.md +++ b/vendor/github.com/onsi/gomega/CHANGELOG.md @@ -1,3 +1,64 @@ +## 1.39.0 + +### Features + +Add `MatchErrorStrictly` which only passes if `errors.Is(actual, expected)` returns true. `MatchError`, by contrast, will fallback to string comparison. + +## 1.38.3 + +### Fixes +make string formatitng more consistent for users who use format.Object directly + +## 1.38.2 + +- roll back to go 1.23.0 [c404969] + +## 1.38.1 + +### Fixes + +Numerous minor fixes and dependency bumps + +## 1.38.0 + +### Features +- gstruct handles extra unexported fields [4ee7ed0] + +### Fixes +- support [] in IgnoringTopFunction function signatures (#851) [36bbf72] + +### Maintenance +- Bump golang.org/x/net from 0.40.0 to 0.41.0 (#846) [529d408] +- Fix typo [acd1f55] +- Bump google.golang.org/protobuf from 1.36.5 to 1.36.6 (#835) [bae65a0] +- Bump nokogiri from 1.18.4 to 1.18.8 in /docs (#842) [8dda91f] +- Bump golang.org/x/net from 0.39.0 to 0.40.0 (#843) [212d812] +- Bump github.com/onsi/ginkgo/v2 from 2.23.3 to 2.23.4 (#839) [59bd7f9] +- Bump nokogiri from 1.18.1 to 1.18.4 in /docs (#834) [328c729] +- Bump uri from 1.0.2 to 1.0.3 in /docs (#826) [9a798a1] +- Bump golang.org/x/net from 0.37.0 to 0.39.0 (#841) [04a72c6] + +## 1.37.0 + +### Features +- add To/ToNot/NotTo aliases for AsyncAssertion [5666f98] + +## 1.36.3 + +### Maintenance + +- bump all the things [adb8b49] +- chore: replace `interface{}` with `any` [7613216] +- Bump google.golang.org/protobuf from 1.36.1 to 1.36.5 (#822) [9fe5259] +- remove spurious "toolchain" from go.mod (#819) [a0e85b9] +- Bump golang.org/x/net from 0.33.0 to 0.35.0 (#823) [604a8b1] +- Bump activesupport from 6.0.6.1 to 6.1.7.5 in /docs (#772) [36fbc84] +- Bump github-pages from 231 to 232 in /docs (#778) [ced70d7] +- Bump rexml from 3.2.6 to 3.3.9 in /docs (#788) [c8b4a07] +- Bump github.com/onsi/ginkgo/v2 from 2.22.1 to 2.22.2 (#812) [06431b9] +- Bump webrick from 1.8.1 to 1.9.1 in /docs (#800) [b55a92d] +- Fix typos (#813) [a1d518b] + ## 1.36.2 ### Maintenance @@ -322,7 +383,7 @@ Require Go 1.22+ ### Features -Introducting [gcustom](https://onsi.github.io/gomega/#gcustom-a-convenient-mechanism-for-buildling-custom-matchers) - a convenient mechanism for building custom matchers. +Introducing [gcustom](https://onsi.github.io/gomega/#gcustom-a-convenient-mechanism-for-buildling-custom-matchers) - a convenient mechanism for building custom matchers. This is an RC release for `gcustom`. The external API may be tweaked in response to feedback however it is expected to remain mostly stable. @@ -461,7 +522,7 @@ These improvements are all documented in [Gomega's docs](https://onsi.github.io/ - Fix max number of samples in experiments on non-64-bit systems. (#528) [1c84497] - Remove dependency on ginkgo v1.16.4 (#530) [4dea8d5] - Fix for Go 1.18 (#532) [56d2a29] -- Document precendence of timeouts (#533) [b607941] +- Document precedence of timeouts (#533) [b607941] ## 1.18.1 @@ -478,7 +539,7 @@ These improvements are all documented in [Gomega's docs](https://onsi.github.io/ ## Fixes - Gomega now uses ioutil for Go 1.15 and lower (#492) - official support is only for the most recent two major versions of Go but this will unblock users who need to stay on older unsupported versions of Go. [c29c1c0] -## Maintenace +## Maintenance - Remove Travis workflow (#491) [72e6040] - Upgrade to Ginkgo 2.0.0 GA [f383637] - chore: fix description of HaveField matcher (#487) [2b4b2c0] @@ -726,7 +787,7 @@ Improvements: - Added `BeSent` which attempts to send a value down a channel and fails if the attempt blocks. Can be paired with `Eventually` to safely send a value down a channel with a timeout. - `Ω`, `Expect`, `Eventually`, and `Consistently` now immediately `panic` if there is no registered fail handler. This is always a mistake that can hide failing tests. -- `Receive()` no longer errors when passed a closed channel, it's perfectly fine to attempt to read from a closed channel so Ω(c).Should(Receive()) always fails and Ω(c).ShoudlNot(Receive()) always passes with a closed channel. +- `Receive()` no longer errors when passed a closed channel, it's perfectly fine to attempt to read from a closed channel so Ω(c).Should(Receive()) always fails and Ω(c).ShouldNot(Receive()) always passes with a closed channel. - Added `HavePrefix` and `HaveSuffix` matchers. - `ghttp` can now handle concurrent requests. - Added `Succeed` which allows one to write `Ω(MyFunction()).Should(Succeed())`. @@ -736,7 +797,7 @@ Improvements: - `ghttp` servers can take an `io.Writer`. `ghttp` will write a line to the writer when each request arrives. - Added `WithTransform` matcher to allow munging input data before feeding into the relevant matcher - Added boolean `And`, `Or`, and `Not` matchers to allow creating composite matchers -- Added `gbytes.TimeoutCloser`, `gbytes.TimeoutReader`, and `gbytes.TimeoutWriter` - these are convenience wrappers that timeout if the underlying Closer/Reader/Writer does not return within the alloted time. +- Added `gbytes.TimeoutCloser`, `gbytes.TimeoutReader`, and `gbytes.TimeoutWriter` - these are convenience wrappers that timeout if the underlying Closer/Reader/Writer does not return within the allotted time. - Added `gbytes.BufferReader` - this constructs a `gbytes.Buffer` that asynchronously reads the passed-in `io.Reader` into its buffer. Bug Fixes: @@ -781,7 +842,7 @@ New Matchers: Updated Matchers: -- `Receive` matcher can take a matcher as an argument and passes only if the channel under test receives an objet that satisfies the passed-in matcher. +- `Receive` matcher can take a matcher as an argument and passes only if the channel under test receives an object that satisfies the passed-in matcher. - Matchers that implement `MatchMayChangeInTheFuture(actual interface{}) bool` can inform `Eventually` and/or `Consistently` when a match has no chance of changing status in the future. For example, `Receive` returns `false` when a channel is closed. Misc: diff --git a/vendor/github.com/onsi/gomega/format/format.go b/vendor/github.com/onsi/gomega/format/format.go index 6c1680638..6c23ba338 100644 --- a/vendor/github.com/onsi/gomega/format/format.go +++ b/vendor/github.com/onsi/gomega/format/format.go @@ -57,7 +57,7 @@ var Indent = " " var longFormThreshold = 20 -// GomegaStringer allows for custom formating of objects for gomega. +// GomegaStringer allows for custom formatting of objects for gomega. type GomegaStringer interface { // GomegaString will be used to custom format an object. // It does not follow UseStringerRepresentation value and will always be called regardless. @@ -73,7 +73,7 @@ If the CustomFormatter does not want to handle the object it should return ("", Strings returned by CustomFormatters are not truncated */ -type CustomFormatter func(value interface{}) (string, bool) +type CustomFormatter func(value any) (string, bool) type CustomFormatterKey uint var customFormatterKey CustomFormatterKey = 1 @@ -125,7 +125,7 @@ If expected is omitted, then the message looks like: */ -func Message(actual interface{}, message string, expected ...interface{}) string { +func Message(actual any, message string, expected ...any) string { if len(expected) == 0 { return fmt.Sprintf("Expected\n%s\n%s", Object(actual, 1), message) } @@ -255,14 +255,14 @@ recursing into the object. Set PrintContextObjects to true to print the content of objects implementing context.Context */ -func Object(object interface{}, indentation uint) string { +func Object(object any, indentation uint) string { indent := strings.Repeat(Indent, int(indentation)) value := reflect.ValueOf(object) commonRepresentation := "" if err, ok := object.(error); ok && !isNilValue(value) { // isNilValue check needed here to avoid nil deref due to boxed nil commonRepresentation += "\n" + IndentString(err.Error(), indentation) + "\n" + indent } - return fmt.Sprintf("%s<%s>: %s%s", indent, formatType(value), commonRepresentation, formatValue(value, indentation)) + return fmt.Sprintf("%s<%s>: %s%s", indent, formatType(value), commonRepresentation, formatValue(value, indentation, true)) } /* @@ -306,7 +306,7 @@ func formatType(v reflect.Value) string { } } -func formatValue(value reflect.Value, indentation uint) string { +func formatValue(value reflect.Value, indentation uint, isTopLevel bool) string { if indentation > MaxDepth { return "..." } @@ -367,11 +367,11 @@ func formatValue(value reflect.Value, indentation uint) string { case reflect.Func: return fmt.Sprintf("0x%x", value.Pointer()) case reflect.Ptr: - return formatValue(value.Elem(), indentation) + return formatValue(value.Elem(), indentation, isTopLevel) case reflect.Slice: return truncateLongStrings(formatSlice(value, indentation)) case reflect.String: - return truncateLongStrings(formatString(value.String(), indentation)) + return truncateLongStrings(formatString(value.String(), indentation, isTopLevel)) case reflect.Array: return truncateLongStrings(formatSlice(value, indentation)) case reflect.Map: @@ -392,8 +392,8 @@ func formatValue(value reflect.Value, indentation uint) string { } } -func formatString(object interface{}, indentation uint) string { - if indentation == 1 { +func formatString(object any, indentation uint, isTopLevel bool) string { + if isTopLevel { s := fmt.Sprintf("%s", object) components := strings.Split(s, "\n") result := "" @@ -416,14 +416,14 @@ func formatString(object interface{}, indentation uint) string { func formatSlice(v reflect.Value, indentation uint) string { if v.Kind() == reflect.Slice && v.Type().Elem().Kind() == reflect.Uint8 && isPrintableString(string(v.Bytes())) { - return formatString(v.Bytes(), indentation) + return formatString(v.Bytes(), indentation, false) } l := v.Len() result := make([]string, l) longest := 0 - for i := 0; i < l; i++ { - result[i] = formatValue(v.Index(i), indentation+1) + for i := range l { + result[i] = formatValue(v.Index(i), indentation+1, false) if len(result[i]) > longest { longest = len(result[i]) } @@ -443,7 +443,7 @@ func formatMap(v reflect.Value, indentation uint) string { longest := 0 for i, key := range v.MapKeys() { value := v.MapIndex(key) - result[i] = fmt.Sprintf("%s: %s", formatValue(key, indentation+1), formatValue(value, indentation+1)) + result[i] = fmt.Sprintf("%s: %s", formatValue(key, indentation+1, false), formatValue(value, indentation+1, false)) if len(result[i]) > longest { longest = len(result[i]) } @@ -462,10 +462,10 @@ func formatStruct(v reflect.Value, indentation uint) string { l := v.NumField() result := []string{} longest := 0 - for i := 0; i < l; i++ { + for i := range l { structField := t.Field(i) fieldEntry := v.Field(i) - representation := fmt.Sprintf("%s: %s", structField.Name, formatValue(fieldEntry, indentation+1)) + representation := fmt.Sprintf("%s: %s", structField.Name, formatValue(fieldEntry, indentation+1, false)) result = append(result, representation) if len(representation) > longest { longest = len(representation) @@ -479,7 +479,7 @@ func formatStruct(v reflect.Value, indentation uint) string { } func formatInterface(v reflect.Value, indentation uint) string { - return fmt.Sprintf("<%s>%s", formatType(v.Elem()), formatValue(v.Elem(), indentation)) + return fmt.Sprintf("<%s>%s", formatType(v.Elem()), formatValue(v.Elem(), indentation, false)) } func isNilValue(a reflect.Value) bool { diff --git a/vendor/github.com/onsi/gomega/gomega_dsl.go b/vendor/github.com/onsi/gomega/gomega_dsl.go index 9a028f3f3..cd6ce450f 100644 --- a/vendor/github.com/onsi/gomega/gomega_dsl.go +++ b/vendor/github.com/onsi/gomega/gomega_dsl.go @@ -22,7 +22,7 @@ import ( "github.com/onsi/gomega/types" ) -const GOMEGA_VERSION = "1.36.2" +const GOMEGA_VERSION = "1.39.0" const nilGomegaPanic = `You are trying to make an assertion, but haven't registered Gomega's fail handler. If you're using Ginkgo then you probably forgot to put your assertion in an It(). @@ -178,7 +178,7 @@ func ensureDefaultGomegaIsConfigured() { // All subsequent arguments will be required to be nil/zero. // // This is convenient if you want to make an assertion on a method/function that returns -// a value and an error - a common patter in Go. +// a value and an error - a common pattern in Go. // // For example, given a function with signature: // @@ -191,7 +191,7 @@ func ensureDefaultGomegaIsConfigured() { // Will succeed only if `MyAmazingThing()` returns `(3, nil)` // // Ω and Expect are identical -func Ω(actual interface{}, extra ...interface{}) Assertion { +func Ω(actual any, extra ...any) Assertion { ensureDefaultGomegaIsConfigured() return Default.Ω(actual, extra...) } @@ -217,7 +217,7 @@ func Ω(actual interface{}, extra ...interface{}) Assertion { // Will succeed only if `MyAmazingThing()` returns `(3, nil)` // // Expect and Ω are identical -func Expect(actual interface{}, extra ...interface{}) Assertion { +func Expect(actual any, extra ...any) Assertion { ensureDefaultGomegaIsConfigured() return Default.Expect(actual, extra...) } @@ -233,7 +233,7 @@ func Expect(actual interface{}, extra ...interface{}) Assertion { // This is most useful in helper functions that make assertions. If you want Gomega's // error message to refer to the calling line in the test (as opposed to the line in the helper function) // set the first argument of `ExpectWithOffset` appropriately. -func ExpectWithOffset(offset int, actual interface{}, extra ...interface{}) Assertion { +func ExpectWithOffset(offset int, actual any, extra ...any) Assertion { ensureDefaultGomegaIsConfigured() return Default.ExpectWithOffset(offset, actual, extra...) } @@ -319,19 +319,19 @@ you an also use Eventually().WithContext(ctx) to pass in the context. Passed-in Eventually(client.FetchCount).WithContext(ctx).WithArguments("/users").Should(BeNumerically(">=", 17)) }, SpecTimeout(time.Second)) -Either way the context pasesd to Eventually is also passed to the underlying function. Now, when Ginkgo cancels the context both the FetchCount client and Gomega will be informed and can exit. +Either way the context passed to Eventually is also passed to the underlying function. Now, when Ginkgo cancels the context both the FetchCount client and Gomega will be informed and can exit. By default, when a context is passed to Eventually *without* an explicit timeout, Gomega will rely solely on the context's cancellation to determine when to stop polling. If you want to specify a timeout in addition to the context you can do so using the .WithTimeout() method. For example: Eventually(client.FetchCount).WithContext(ctx).WithTimeout(10*time.Second).Should(BeNumerically(">=", 17)) -now either the context cacnellation or the timeout will cause Eventually to stop polling. +now either the context cancellation or the timeout will cause Eventually to stop polling. If, instead, you would like to opt out of this behavior and have Gomega's default timeouts govern Eventuallys that take a context you can call: EnforceDefaultTimeoutsWhenUsingContexts() -in the DSL (or on a Gomega instance). Now all calls to Eventually that take a context will fail if eitehr the context is cancelled or the default timeout elapses. +in the DSL (or on a Gomega instance). Now all calls to Eventually that take a context will fail if either the context is cancelled or the default timeout elapses. **Category 3: Making assertions _in_ the function passed into Eventually** @@ -390,7 +390,7 @@ is equivalent to Eventually(...).WithTimeout(10*time.Second).WithPolling(2*time.Second).WithContext(ctx).Should(...) */ -func Eventually(actualOrCtx interface{}, args ...interface{}) AsyncAssertion { +func Eventually(actualOrCtx any, args ...any) AsyncAssertion { ensureDefaultGomegaIsConfigured() return Default.Eventually(actualOrCtx, args...) } @@ -404,7 +404,7 @@ func Eventually(actualOrCtx interface{}, args ...interface{}) AsyncAssertion { // `EventuallyWithOffset` specifying a timeout interval (and an optional polling interval) are // the same as `Eventually(...).WithOffset(...).WithTimeout` or // `Eventually(...).WithOffset(...).WithTimeout(...).WithPolling`. -func EventuallyWithOffset(offset int, actualOrCtx interface{}, args ...interface{}) AsyncAssertion { +func EventuallyWithOffset(offset int, actualOrCtx any, args ...any) AsyncAssertion { ensureDefaultGomegaIsConfigured() return Default.EventuallyWithOffset(offset, actualOrCtx, args...) } @@ -424,7 +424,7 @@ Consistently is useful in cases where you want to assert that something *does no This will block for 200 milliseconds and repeatedly check the channel and ensure nothing has been received. */ -func Consistently(actualOrCtx interface{}, args ...interface{}) AsyncAssertion { +func Consistently(actualOrCtx any, args ...any) AsyncAssertion { ensureDefaultGomegaIsConfigured() return Default.Consistently(actualOrCtx, args...) } @@ -435,13 +435,13 @@ func Consistently(actualOrCtx interface{}, args ...interface{}) AsyncAssertion { // // `ConsistentlyWithOffset` is the same as `Consistently(...).WithOffset` and // optional `WithTimeout` and `WithPolling`. -func ConsistentlyWithOffset(offset int, actualOrCtx interface{}, args ...interface{}) AsyncAssertion { +func ConsistentlyWithOffset(offset int, actualOrCtx any, args ...any) AsyncAssertion { ensureDefaultGomegaIsConfigured() return Default.ConsistentlyWithOffset(offset, actualOrCtx, args...) } /* -StopTrying can be used to signal to Eventually and Consistentlythat they should abort and stop trying. This always results in a failure of the assertion - and the failure message is the content of the StopTrying signal. +StopTrying can be used to signal to Eventually and Consistently that they should abort and stop trying. This always results in a failure of the assertion - and the failure message is the content of the StopTrying signal. You can send the StopTrying signal by either returning StopTrying("message") as an error from your passed-in function _or_ by calling StopTrying("message").Now() to trigger a panic and end execution. diff --git a/vendor/github.com/onsi/gomega/internal/assertion.go b/vendor/github.com/onsi/gomega/internal/assertion.go index 08356a610..cc846e7ce 100644 --- a/vendor/github.com/onsi/gomega/internal/assertion.go +++ b/vendor/github.com/onsi/gomega/internal/assertion.go @@ -9,19 +9,19 @@ import ( ) type Assertion struct { - actuals []interface{} // actual value plus all extra values - actualIndex int // value to pass to the matcher - vet vetinari // the vet to call before calling Gomega matcher + actuals []any // actual value plus all extra values + actualIndex int // value to pass to the matcher + vet vetinari // the vet to call before calling Gomega matcher offset int g *Gomega } // ...obligatory discworld reference, as "vetineer" doesn't sound ... quite right. -type vetinari func(assertion *Assertion, optionalDescription ...interface{}) bool +type vetinari func(assertion *Assertion, optionalDescription ...any) bool -func NewAssertion(actualInput interface{}, g *Gomega, offset int, extra ...interface{}) *Assertion { +func NewAssertion(actualInput any, g *Gomega, offset int, extra ...any) *Assertion { return &Assertion{ - actuals: append([]interface{}{actualInput}, extra...), + actuals: append([]any{actualInput}, extra...), actualIndex: 0, vet: (*Assertion).vetActuals, offset: offset, @@ -44,37 +44,37 @@ func (assertion *Assertion) Error() types.Assertion { } } -func (assertion *Assertion) Should(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool { +func (assertion *Assertion) Should(matcher types.GomegaMatcher, optionalDescription ...any) bool { assertion.g.THelper() vetOptionalDescription("Assertion", optionalDescription...) return assertion.vet(assertion, optionalDescription...) && assertion.match(matcher, true, optionalDescription...) } -func (assertion *Assertion) ShouldNot(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool { +func (assertion *Assertion) ShouldNot(matcher types.GomegaMatcher, optionalDescription ...any) bool { assertion.g.THelper() vetOptionalDescription("Assertion", optionalDescription...) return assertion.vet(assertion, optionalDescription...) && assertion.match(matcher, false, optionalDescription...) } -func (assertion *Assertion) To(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool { +func (assertion *Assertion) To(matcher types.GomegaMatcher, optionalDescription ...any) bool { assertion.g.THelper() vetOptionalDescription("Assertion", optionalDescription...) return assertion.vet(assertion, optionalDescription...) && assertion.match(matcher, true, optionalDescription...) } -func (assertion *Assertion) ToNot(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool { +func (assertion *Assertion) ToNot(matcher types.GomegaMatcher, optionalDescription ...any) bool { assertion.g.THelper() vetOptionalDescription("Assertion", optionalDescription...) return assertion.vet(assertion, optionalDescription...) && assertion.match(matcher, false, optionalDescription...) } -func (assertion *Assertion) NotTo(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool { +func (assertion *Assertion) NotTo(matcher types.GomegaMatcher, optionalDescription ...any) bool { assertion.g.THelper() vetOptionalDescription("Assertion", optionalDescription...) return assertion.vet(assertion, optionalDescription...) && assertion.match(matcher, false, optionalDescription...) } -func (assertion *Assertion) buildDescription(optionalDescription ...interface{}) string { +func (assertion *Assertion) buildDescription(optionalDescription ...any) string { switch len(optionalDescription) { case 0: return "" @@ -86,7 +86,7 @@ func (assertion *Assertion) buildDescription(optionalDescription ...interface{}) return fmt.Sprintf(optionalDescription[0].(string), optionalDescription[1:]...) + "\n" } -func (assertion *Assertion) match(matcher types.GomegaMatcher, desiredMatch bool, optionalDescription ...interface{}) bool { +func (assertion *Assertion) match(matcher types.GomegaMatcher, desiredMatch bool, optionalDescription ...any) bool { actualInput := assertion.actuals[assertion.actualIndex] matches, err := matcher.Match(actualInput) assertion.g.THelper() @@ -113,7 +113,7 @@ func (assertion *Assertion) match(matcher types.GomegaMatcher, desiredMatch bool // vetActuals vets the actual values, with the (optional) exception of a // specific value, such as the first value in case non-error assertions, or the // last value in case of Error()-based assertions. -func (assertion *Assertion) vetActuals(optionalDescription ...interface{}) bool { +func (assertion *Assertion) vetActuals(optionalDescription ...any) bool { success, message := vetActuals(assertion.actuals, assertion.actualIndex) if success { return true @@ -129,7 +129,7 @@ func (assertion *Assertion) vetActuals(optionalDescription ...interface{}) bool // the final error value is non-zero. Otherwise, it doesn't vet the actual // values, as these are allowed to take on any values unless there is a non-zero // error value. -func (assertion *Assertion) vetError(optionalDescription ...interface{}) bool { +func (assertion *Assertion) vetError(optionalDescription ...any) bool { if err := assertion.actuals[assertion.actualIndex]; err != nil { // Go error result idiom: all other actual values must be zero values. return assertion.vetActuals(optionalDescription...) @@ -139,7 +139,7 @@ func (assertion *Assertion) vetError(optionalDescription ...interface{}) bool { // vetActuals vets a slice of actual values, optionally skipping a particular // value slice element, such as the first or last value slice element. -func vetActuals(actuals []interface{}, skipIndex int) (bool, string) { +func vetActuals(actuals []any, skipIndex int) (bool, string) { for i, actual := range actuals { if i == skipIndex { continue diff --git a/vendor/github.com/onsi/gomega/internal/async_assertion.go b/vendor/github.com/onsi/gomega/internal/async_assertion.go index 8b4cd1f5b..4121505b6 100644 --- a/vendor/github.com/onsi/gomega/internal/async_assertion.go +++ b/vendor/github.com/onsi/gomega/internal/async_assertion.go @@ -69,8 +69,8 @@ type AsyncAssertion struct { asyncType AsyncAssertionType actualIsFunc bool - actual interface{} - argsToForward []interface{} + actual any + argsToForward []any timeoutInterval time.Duration pollingInterval time.Duration @@ -80,7 +80,7 @@ type AsyncAssertion struct { g *Gomega } -func NewAsyncAssertion(asyncType AsyncAssertionType, actualInput interface{}, g *Gomega, timeoutInterval time.Duration, pollingInterval time.Duration, mustPassRepeatedly int, ctx context.Context, offset int) *AsyncAssertion { +func NewAsyncAssertion(asyncType AsyncAssertionType, actualInput any, g *Gomega, timeoutInterval time.Duration, pollingInterval time.Duration, mustPassRepeatedly int, ctx context.Context, offset int) *AsyncAssertion { out := &AsyncAssertion{ asyncType: asyncType, timeoutInterval: timeoutInterval, @@ -129,7 +129,7 @@ func (assertion *AsyncAssertion) WithContext(ctx context.Context) types.AsyncAss return assertion } -func (assertion *AsyncAssertion) WithArguments(argsToForward ...interface{}) types.AsyncAssertion { +func (assertion *AsyncAssertion) WithArguments(argsToForward ...any) types.AsyncAssertion { assertion.argsToForward = argsToForward return assertion } @@ -139,19 +139,31 @@ func (assertion *AsyncAssertion) MustPassRepeatedly(count int) types.AsyncAssert return assertion } -func (assertion *AsyncAssertion) Should(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool { +func (assertion *AsyncAssertion) Should(matcher types.GomegaMatcher, optionalDescription ...any) bool { assertion.g.THelper() vetOptionalDescription("Asynchronous assertion", optionalDescription...) return assertion.match(matcher, true, optionalDescription...) } -func (assertion *AsyncAssertion) ShouldNot(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool { +func (assertion *AsyncAssertion) To(matcher types.GomegaMatcher, optionalDescription ...any) bool { + return assertion.Should(matcher, optionalDescription...) +} + +func (assertion *AsyncAssertion) ShouldNot(matcher types.GomegaMatcher, optionalDescription ...any) bool { assertion.g.THelper() vetOptionalDescription("Asynchronous assertion", optionalDescription...) return assertion.match(matcher, false, optionalDescription...) } -func (assertion *AsyncAssertion) buildDescription(optionalDescription ...interface{}) string { +func (assertion *AsyncAssertion) ToNot(matcher types.GomegaMatcher, optionalDescription ...any) bool { + return assertion.ShouldNot(matcher, optionalDescription...) +} + +func (assertion *AsyncAssertion) NotTo(matcher types.GomegaMatcher, optionalDescription ...any) bool { + return assertion.ShouldNot(matcher, optionalDescription...) +} + +func (assertion *AsyncAssertion) buildDescription(optionalDescription ...any) string { switch len(optionalDescription) { case 0: return "" @@ -163,7 +175,7 @@ func (assertion *AsyncAssertion) buildDescription(optionalDescription ...interfa return fmt.Sprintf(optionalDescription[0].(string), optionalDescription[1:]...) + "\n" } -func (assertion *AsyncAssertion) processReturnValues(values []reflect.Value) (interface{}, error) { +func (assertion *AsyncAssertion) processReturnValues(values []reflect.Value) (any, error) { if len(values) == 0 { return nil, &asyncPolledActualError{ message: fmt.Sprintf("The function passed to %s did not return any values", assertion.asyncType), @@ -224,7 +236,7 @@ func (assertion *AsyncAssertion) argumentMismatchError(t reflect.Type, numProvid if numProvided == 1 { have = "has" } - return fmt.Errorf(`The function passed to %s has signature %s takes %d arguments but %d %s been provided. Please use %s().WithArguments() to pass the corect set of arguments. + return fmt.Errorf(`The function passed to %s has signature %s takes %d arguments but %d %s been provided. Please use %s().WithArguments() to pass the correct set of arguments. You can learn more at https://onsi.github.io/gomega/#eventually `, assertion.asyncType, t, t.NumIn(), numProvided, have, assertion.asyncType) @@ -237,9 +249,9 @@ You can learn more at https://onsi.github.io/gomega/#eventually `, assertion.asyncType, reason) } -func (assertion *AsyncAssertion) buildActualPoller() (func() (interface{}, error), error) { +func (assertion *AsyncAssertion) buildActualPoller() (func() (any, error), error) { if !assertion.actualIsFunc { - return func() (interface{}, error) { return assertion.actual, nil }, nil + return func() (any, error) { return assertion.actual, nil }, nil } actualValue := reflect.ValueOf(assertion.actual) actualType := reflect.TypeOf(assertion.actual) @@ -301,7 +313,7 @@ func (assertion *AsyncAssertion) buildActualPoller() (func() (interface{}, error return nil, assertion.invalidMustPassRepeatedlyError("parameter can't be < 1") } - return func() (actual interface{}, err error) { + return func() (actual any, err error) { var values []reflect.Value assertionFailure = nil defer func() { @@ -354,14 +366,14 @@ func (assertion *AsyncAssertion) afterPolling() <-chan time.Time { } } -func (assertion *AsyncAssertion) matcherSaysStopTrying(matcher types.GomegaMatcher, value interface{}) bool { +func (assertion *AsyncAssertion) matcherSaysStopTrying(matcher types.GomegaMatcher, value any) bool { if assertion.actualIsFunc || types.MatchMayChangeInTheFuture(matcher, value) { return false } return true } -func (assertion *AsyncAssertion) pollMatcher(matcher types.GomegaMatcher, value interface{}) (matches bool, err error) { +func (assertion *AsyncAssertion) pollMatcher(matcher types.GomegaMatcher, value any) (matches bool, err error) { defer func() { if e := recover(); e != nil { if _, isAsyncError := AsPollingSignalError(e); isAsyncError { @@ -377,13 +389,13 @@ func (assertion *AsyncAssertion) pollMatcher(matcher types.GomegaMatcher, value return } -func (assertion *AsyncAssertion) match(matcher types.GomegaMatcher, desiredMatch bool, optionalDescription ...interface{}) bool { +func (assertion *AsyncAssertion) match(matcher types.GomegaMatcher, desiredMatch bool, optionalDescription ...any) bool { timer := time.Now() timeout := assertion.afterTimeout() lock := sync.Mutex{} var matches, hasLastValidActual bool - var actual, lastValidActual interface{} + var actual, lastValidActual any var actualErr, matcherErr error var oracleMatcherSaysStop bool @@ -440,7 +452,7 @@ func (assertion *AsyncAssertion) match(matcher types.GomegaMatcher, desiredMatch } } else { var fgErr formattedGomegaError - if errors.As(actualErr, &fgErr) { + if errors.As(matcherErr, &fgErr) { message += fgErr.FormattedGomegaError() + "\n" } else { message += renderError(fmt.Sprintf("The matcher passed to %s returned the following error:", assertion.asyncType), matcherErr) diff --git a/vendor/github.com/onsi/gomega/internal/duration_bundle.go b/vendor/github.com/onsi/gomega/internal/duration_bundle.go index 2e026c336..1019deb88 100644 --- a/vendor/github.com/onsi/gomega/internal/duration_bundle.go +++ b/vendor/github.com/onsi/gomega/internal/duration_bundle.go @@ -49,7 +49,7 @@ func durationFromEnv(key string, defaultDuration time.Duration) time.Duration { return duration } -func toDuration(input interface{}) (time.Duration, error) { +func toDuration(input any) (time.Duration, error) { duration, ok := input.(time.Duration) if ok { return duration, nil diff --git a/vendor/github.com/onsi/gomega/internal/gomega.go b/vendor/github.com/onsi/gomega/internal/gomega.go index c6e2fcc0e..66dfe7d04 100644 --- a/vendor/github.com/onsi/gomega/internal/gomega.go +++ b/vendor/github.com/onsi/gomega/internal/gomega.go @@ -40,45 +40,45 @@ func (g *Gomega) ConfigureWithT(t types.GomegaTestingT) *Gomega { return g } -func (g *Gomega) Ω(actual interface{}, extra ...interface{}) types.Assertion { +func (g *Gomega) Ω(actual any, extra ...any) types.Assertion { return g.ExpectWithOffset(0, actual, extra...) } -func (g *Gomega) Expect(actual interface{}, extra ...interface{}) types.Assertion { +func (g *Gomega) Expect(actual any, extra ...any) types.Assertion { return g.ExpectWithOffset(0, actual, extra...) } -func (g *Gomega) ExpectWithOffset(offset int, actual interface{}, extra ...interface{}) types.Assertion { +func (g *Gomega) ExpectWithOffset(offset int, actual any, extra ...any) types.Assertion { return NewAssertion(actual, g, offset, extra...) } -func (g *Gomega) Eventually(actualOrCtx interface{}, args ...interface{}) types.AsyncAssertion { +func (g *Gomega) Eventually(actualOrCtx any, args ...any) types.AsyncAssertion { return g.makeAsyncAssertion(AsyncAssertionTypeEventually, 0, actualOrCtx, args...) } -func (g *Gomega) EventuallyWithOffset(offset int, actualOrCtx interface{}, args ...interface{}) types.AsyncAssertion { +func (g *Gomega) EventuallyWithOffset(offset int, actualOrCtx any, args ...any) types.AsyncAssertion { return g.makeAsyncAssertion(AsyncAssertionTypeEventually, offset, actualOrCtx, args...) } -func (g *Gomega) Consistently(actualOrCtx interface{}, args ...interface{}) types.AsyncAssertion { +func (g *Gomega) Consistently(actualOrCtx any, args ...any) types.AsyncAssertion { return g.makeAsyncAssertion(AsyncAssertionTypeConsistently, 0, actualOrCtx, args...) } -func (g *Gomega) ConsistentlyWithOffset(offset int, actualOrCtx interface{}, args ...interface{}) types.AsyncAssertion { +func (g *Gomega) ConsistentlyWithOffset(offset int, actualOrCtx any, args ...any) types.AsyncAssertion { return g.makeAsyncAssertion(AsyncAssertionTypeConsistently, offset, actualOrCtx, args...) } -func (g *Gomega) makeAsyncAssertion(asyncAssertionType AsyncAssertionType, offset int, actualOrCtx interface{}, args ...interface{}) types.AsyncAssertion { +func (g *Gomega) makeAsyncAssertion(asyncAssertionType AsyncAssertionType, offset int, actualOrCtx any, args ...any) types.AsyncAssertion { baseOffset := 3 timeoutInterval := -time.Duration(1) pollingInterval := -time.Duration(1) - intervals := []interface{}{} + intervals := []any{} var ctx context.Context actual := actualOrCtx startingIndex := 0 if _, isCtx := actualOrCtx.(context.Context); isCtx && len(args) > 0 { - // the first argument is a context, we should accept it as the context _only if_ it is **not** the only argumnent **and** the second argument is not a parseable duration + // the first argument is a context, we should accept it as the context _only if_ it is **not** the only argument **and** the second argument is not a parseable duration // this is due to an unfortunate ambiguity in early version of Gomega in which multi-type durations are allowed after the actual if _, err := toDuration(args[0]); err != nil { ctx = actualOrCtx.(context.Context) diff --git a/vendor/github.com/onsi/gomega/internal/polling_signal_error.go b/vendor/github.com/onsi/gomega/internal/polling_signal_error.go index 3a4f7ddd9..450c40333 100644 --- a/vendor/github.com/onsi/gomega/internal/polling_signal_error.go +++ b/vendor/github.com/onsi/gomega/internal/polling_signal_error.go @@ -100,7 +100,7 @@ func (s *PollingSignalErrorImpl) TryAgainDuration() time.Duration { return s.duration } -func AsPollingSignalError(actual interface{}) (*PollingSignalErrorImpl, bool) { +func AsPollingSignalError(actual any) (*PollingSignalErrorImpl, bool) { if actual == nil { return nil, false } diff --git a/vendor/github.com/onsi/gomega/internal/vetoptdesc.go b/vendor/github.com/onsi/gomega/internal/vetoptdesc.go index f29587641..b748de41f 100644 --- a/vendor/github.com/onsi/gomega/internal/vetoptdesc.go +++ b/vendor/github.com/onsi/gomega/internal/vetoptdesc.go @@ -10,7 +10,7 @@ import ( // Gomega matcher at the beginning it panics. This allows for rendering Gomega // matchers as part of an optional Description, as long as they're not in the // first slot. -func vetOptionalDescription(assertion string, optionalDescription ...interface{}) { +func vetOptionalDescription(assertion string, optionalDescription ...any) { if len(optionalDescription) == 0 { return } diff --git a/vendor/github.com/onsi/gomega/matchers.go b/vendor/github.com/onsi/gomega/matchers.go index 7ef27dc9c..16ca8f46d 100644 --- a/vendor/github.com/onsi/gomega/matchers.go +++ b/vendor/github.com/onsi/gomega/matchers.go @@ -12,7 +12,7 @@ import ( // Equal uses reflect.DeepEqual to compare actual with expected. Equal is strict about // types when performing comparisons. // It is an error for both actual and expected to be nil. Use BeNil() instead. -func Equal(expected interface{}) types.GomegaMatcher { +func Equal(expected any) types.GomegaMatcher { return &matchers.EqualMatcher{ Expected: expected, } @@ -22,7 +22,7 @@ func Equal(expected interface{}) types.GomegaMatcher { // This is done by converting actual to have the type of expected before // attempting equality with reflect.DeepEqual. // It is an error for actual and expected to be nil. Use BeNil() instead. -func BeEquivalentTo(expected interface{}) types.GomegaMatcher { +func BeEquivalentTo(expected any) types.GomegaMatcher { return &matchers.BeEquivalentToMatcher{ Expected: expected, } @@ -31,7 +31,7 @@ func BeEquivalentTo(expected interface{}) types.GomegaMatcher { // BeComparableTo uses gocmp.Equal from github.com/google/go-cmp (instead of reflect.DeepEqual) to perform a deep comparison. // You can pass cmp.Option as options. // It is an error for actual and expected to be nil. Use BeNil() instead. -func BeComparableTo(expected interface{}, opts ...cmp.Option) types.GomegaMatcher { +func BeComparableTo(expected any, opts ...cmp.Option) types.GomegaMatcher { return &matchers.BeComparableToMatcher{ Expected: expected, Options: opts, @@ -41,7 +41,7 @@ func BeComparableTo(expected interface{}, opts ...cmp.Option) types.GomegaMatche // BeIdenticalTo uses the == operator to compare actual with expected. // BeIdenticalTo is strict about types when performing comparisons. // It is an error for both actual and expected to be nil. Use BeNil() instead. -func BeIdenticalTo(expected interface{}) types.GomegaMatcher { +func BeIdenticalTo(expected any) types.GomegaMatcher { return &matchers.BeIdenticalToMatcher{ Expected: expected, } @@ -139,13 +139,31 @@ func Succeed() types.GomegaMatcher { // Error interface // // The optional second argument is a description of the error function, if used. This is required when passing a function but is ignored in all other cases. -func MatchError(expected interface{}, functionErrorDescription ...any) types.GomegaMatcher { +func MatchError(expected any, functionErrorDescription ...any) types.GomegaMatcher { return &matchers.MatchErrorMatcher{ Expected: expected, FuncErrDescription: functionErrorDescription, } } +// MatchErrorStrictly succeeds iff actual is a non-nil error that matches the passed in +// expected error according to errors.Is(actual, expected). +// +// This behavior differs from MatchError where +// +// Expect(errors.New("some error")).To(MatchError(errors.New("some error"))) +// +// succeeds, but errors.Is would return false so: +// +// Expect(errors.New("some error")).To(MatchErrorStrictly(errors.New("some error"))) +// +// fails. +func MatchErrorStrictly(expected error) types.GomegaMatcher { + return &matchers.MatchErrorStrictlyMatcher{ + Expected: expected, + } +} + // BeClosed succeeds if actual is a closed channel. // It is an error to pass a non-channel to BeClosed, it is also an error to pass nil // @@ -202,11 +220,11 @@ func BeClosed() types.GomegaMatcher { // Expect(myThing.IsValid()).Should(BeTrue()) // // Finally, if you want to match the received object as well as get the actual received value into a variable, so you can reason further about the value received, -// you can pass a pointer to a variable of the approriate type first, and second a matcher: +// you can pass a pointer to a variable of the appropriate type first, and second a matcher: // // var myThing thing // Eventually(thingChan).Should(Receive(&myThing, ContainSubstring("bar"))) -func Receive(args ...interface{}) types.GomegaMatcher { +func Receive(args ...any) types.GomegaMatcher { return &matchers.ReceiveMatcher{ Args: args, } @@ -224,7 +242,7 @@ func Receive(args ...interface{}) types.GomegaMatcher { // // Of course, the value is actually sent to the channel. The point of `BeSent` is less to make an assertion about the availability of the channel (which is typically an implementation detail that your test should not be concerned with). // Rather, the point of `BeSent` is to make it possible to easily and expressively write tests that can timeout on blocked channel sends. -func BeSent(arg interface{}) types.GomegaMatcher { +func BeSent(arg any) types.GomegaMatcher { return &matchers.BeSentMatcher{ Arg: arg, } @@ -233,7 +251,7 @@ func BeSent(arg interface{}) types.GomegaMatcher { // MatchRegexp succeeds if actual is a string or stringer that matches the // passed-in regexp. Optional arguments can be provided to construct a regexp // via fmt.Sprintf(). -func MatchRegexp(regexp string, args ...interface{}) types.GomegaMatcher { +func MatchRegexp(regexp string, args ...any) types.GomegaMatcher { return &matchers.MatchRegexpMatcher{ Regexp: regexp, Args: args, @@ -243,7 +261,7 @@ func MatchRegexp(regexp string, args ...interface{}) types.GomegaMatcher { // ContainSubstring succeeds if actual is a string or stringer that contains the // passed-in substring. Optional arguments can be provided to construct the substring // via fmt.Sprintf(). -func ContainSubstring(substr string, args ...interface{}) types.GomegaMatcher { +func ContainSubstring(substr string, args ...any) types.GomegaMatcher { return &matchers.ContainSubstringMatcher{ Substr: substr, Args: args, @@ -253,7 +271,7 @@ func ContainSubstring(substr string, args ...interface{}) types.GomegaMatcher { // HavePrefix succeeds if actual is a string or stringer that contains the // passed-in string as a prefix. Optional arguments can be provided to construct // via fmt.Sprintf(). -func HavePrefix(prefix string, args ...interface{}) types.GomegaMatcher { +func HavePrefix(prefix string, args ...any) types.GomegaMatcher { return &matchers.HavePrefixMatcher{ Prefix: prefix, Args: args, @@ -263,7 +281,7 @@ func HavePrefix(prefix string, args ...interface{}) types.GomegaMatcher { // HaveSuffix succeeds if actual is a string or stringer that contains the // passed-in string as a suffix. Optional arguments can be provided to construct // via fmt.Sprintf(). -func HaveSuffix(suffix string, args ...interface{}) types.GomegaMatcher { +func HaveSuffix(suffix string, args ...any) types.GomegaMatcher { return &matchers.HaveSuffixMatcher{ Suffix: suffix, Args: args, @@ -273,7 +291,7 @@ func HaveSuffix(suffix string, args ...interface{}) types.GomegaMatcher { // MatchJSON succeeds if actual is a string or stringer of JSON that matches // the expected JSON. The JSONs are decoded and the resulting objects are compared via // reflect.DeepEqual so things like key-ordering and whitespace shouldn't matter. -func MatchJSON(json interface{}) types.GomegaMatcher { +func MatchJSON(json any) types.GomegaMatcher { return &matchers.MatchJSONMatcher{ JSONToMatch: json, } @@ -282,7 +300,7 @@ func MatchJSON(json interface{}) types.GomegaMatcher { // MatchXML succeeds if actual is a string or stringer of XML that matches // the expected XML. The XMLs are decoded and the resulting objects are compared via // reflect.DeepEqual so things like whitespaces shouldn't matter. -func MatchXML(xml interface{}) types.GomegaMatcher { +func MatchXML(xml any) types.GomegaMatcher { return &matchers.MatchXMLMatcher{ XMLToMatch: xml, } @@ -291,7 +309,7 @@ func MatchXML(xml interface{}) types.GomegaMatcher { // MatchYAML succeeds if actual is a string or stringer of YAML that matches // the expected YAML. The YAML's are decoded and the resulting objects are compared via // reflect.DeepEqual so things like key-ordering and whitespace shouldn't matter. -func MatchYAML(yaml interface{}) types.GomegaMatcher { +func MatchYAML(yaml any) types.GomegaMatcher { return &matchers.MatchYAMLMatcher{ YAMLToMatch: yaml, } @@ -338,7 +356,7 @@ func BeZero() types.GomegaMatcher { // // var findings []string // Expect([]string{"Foo", "FooBar"}).Should(ContainElement(ContainSubString("Bar", &findings))) -func ContainElement(element interface{}, result ...interface{}) types.GomegaMatcher { +func ContainElement(element any, result ...any) types.GomegaMatcher { return &matchers.ContainElementMatcher{ Element: element, Result: result, @@ -358,7 +376,7 @@ func ContainElement(element interface{}, result ...interface{}) types.GomegaMatc // Expect(2).Should(BeElementOf(1, 2)) // // Actual must be typed. -func BeElementOf(elements ...interface{}) types.GomegaMatcher { +func BeElementOf(elements ...any) types.GomegaMatcher { return &matchers.BeElementOfMatcher{ Elements: elements, } @@ -368,7 +386,7 @@ func BeElementOf(elements ...interface{}) types.GomegaMatcher { // BeKeyOf() always uses Equal() to perform the match between actual and the map keys. // // Expect("foo").Should(BeKeyOf(map[string]bool{"foo": true, "bar": false})) -func BeKeyOf(element interface{}) types.GomegaMatcher { +func BeKeyOf(element any) types.GomegaMatcher { return &matchers.BeKeyOfMatcher{ Map: element, } @@ -388,14 +406,14 @@ func BeKeyOf(element interface{}) types.GomegaMatcher { // // Expect([]string{"Foo", "FooBar"}).Should(ConsistOf([]string{"FooBar", "Foo"})) // -// Note that Go's type system does not allow you to write this as ConsistOf([]string{"FooBar", "Foo"}...) as []string and []interface{} are different types - hence the need for this special rule. -func ConsistOf(elements ...interface{}) types.GomegaMatcher { +// Note that Go's type system does not allow you to write this as ConsistOf([]string{"FooBar", "Foo"}...) as []string and []any are different types - hence the need for this special rule. +func ConsistOf(elements ...any) types.GomegaMatcher { return &matchers.ConsistOfMatcher{ Elements: elements, } } -// HaveExactElements succeeds if actual contains elements that precisely match the elemets passed into the matcher. The ordering of the elements does matter. +// HaveExactElements succeeds if actual contains elements that precisely match the elements passed into the matcher. The ordering of the elements does matter. // By default HaveExactElements() uses Equal() to match the elements, however custom matchers can be passed in instead. Here are some examples: // // Expect([]string{"Foo", "FooBar"}).Should(HaveExactElements("Foo", "FooBar")) @@ -403,7 +421,7 @@ func ConsistOf(elements ...interface{}) types.GomegaMatcher { // Expect([]string{"Foo", "FooBar"}).Should(HaveExactElements(ContainSubstring("Foo"), ContainSubstring("Foo"))) // // Actual must be an array or slice. -func HaveExactElements(elements ...interface{}) types.GomegaMatcher { +func HaveExactElements(elements ...any) types.GomegaMatcher { return &matchers.HaveExactElementsMatcher{ Elements: elements, } @@ -417,7 +435,7 @@ func HaveExactElements(elements ...interface{}) types.GomegaMatcher { // // Actual must be an array, slice or map. // For maps, ContainElements searches through the map's values. -func ContainElements(elements ...interface{}) types.GomegaMatcher { +func ContainElements(elements ...any) types.GomegaMatcher { return &matchers.ContainElementsMatcher{ Elements: elements, } @@ -432,7 +450,7 @@ func ContainElements(elements ...interface{}) types.GomegaMatcher { // // Actual must be an array, slice or map. // For maps, HaveEach searches through the map's values. -func HaveEach(element interface{}) types.GomegaMatcher { +func HaveEach(element any) types.GomegaMatcher { return &matchers.HaveEachMatcher{ Element: element, } @@ -443,7 +461,7 @@ func HaveEach(element interface{}) types.GomegaMatcher { // matcher can be passed in instead: // // Expect(map[string]string{"Foo": "Bar", "BazFoo": "Duck"}).Should(HaveKey(MatchRegexp(`.+Foo$`))) -func HaveKey(key interface{}) types.GomegaMatcher { +func HaveKey(key any) types.GomegaMatcher { return &matchers.HaveKeyMatcher{ Key: key, } @@ -455,7 +473,7 @@ func HaveKey(key interface{}) types.GomegaMatcher { // // Expect(map[string]string{"Foo": "Bar", "BazFoo": "Duck"}).Should(HaveKeyWithValue("Foo", "Bar")) // Expect(map[string]string{"Foo": "Bar", "BazFoo": "Duck"}).Should(HaveKeyWithValue(MatchRegexp(`.+Foo$`), "Bar")) -func HaveKeyWithValue(key interface{}, value interface{}) types.GomegaMatcher { +func HaveKeyWithValue(key any, value any) types.GomegaMatcher { return &matchers.HaveKeyWithValueMatcher{ Key: key, Value: value, @@ -483,7 +501,7 @@ func HaveKeyWithValue(key interface{}, value interface{}) types.GomegaMatcher { // Expect(book).To(HaveField("Title", ContainSubstring("Les")) // Expect(book).To(HaveField("Author.FirstName", Equal("Victor")) // Expect(book).To(HaveField("Author.DOB.Year()", BeNumerically("<", 1900)) -func HaveField(field string, expected interface{}) types.GomegaMatcher { +func HaveField(field string, expected any) types.GomegaMatcher { return &matchers.HaveFieldMatcher{ Field: field, Expected: expected, @@ -515,8 +533,8 @@ func HaveExistingField(field string) types.GomegaMatcher { // and even interface values. // // actual := 42 -// Expect(actual).To(HaveValue(42)) -// Expect(&actual).To(HaveValue(42)) +// Expect(actual).To(HaveValue(Equal(42))) +// Expect(&actual).To(HaveValue(Equal(42))) func HaveValue(matcher types.GomegaMatcher) types.GomegaMatcher { return &matchers.HaveValueMatcher{ Matcher: matcher, @@ -535,7 +553,7 @@ func HaveValue(matcher types.GomegaMatcher) types.GomegaMatcher { // Expect(1.0).Should(BeNumerically(">=", 1.0)) // Expect(1.0).Should(BeNumerically("<", 3)) // Expect(1.0).Should(BeNumerically("<=", 1.0)) -func BeNumerically(comparator string, compareTo ...interface{}) types.GomegaMatcher { +func BeNumerically(comparator string, compareTo ...any) types.GomegaMatcher { return &matchers.BeNumericallyMatcher{ Comparator: comparator, CompareTo: compareTo, @@ -562,7 +580,7 @@ func BeTemporally(comparator string, compareTo time.Time, threshold ...time.Dura // Expect(5).Should(BeAssignableToTypeOf(-1)) // different values same type // Expect("foo").Should(BeAssignableToTypeOf("bar")) // different values same type // Expect(struct{ Foo string }{}).Should(BeAssignableToTypeOf(struct{ Foo string }{})) -func BeAssignableToTypeOf(expected interface{}) types.GomegaMatcher { +func BeAssignableToTypeOf(expected any) types.GomegaMatcher { return &matchers.AssignableToTypeOfMatcher{ Expected: expected, } @@ -581,7 +599,7 @@ func Panic() types.GomegaMatcher { // matcher can be passed in instead: // // Expect(fn).Should(PanicWith(MatchRegexp(`.+Foo$`))) -func PanicWith(expected interface{}) types.GomegaMatcher { +func PanicWith(expected any) types.GomegaMatcher { return &matchers.PanicMatcher{Expected: expected} } @@ -610,7 +628,7 @@ func BeADirectory() types.GomegaMatcher { // Expect(resp).Should(HaveHTTPStatus(http.StatusOK)) // asserts that resp.StatusCode == 200 // Expect(resp).Should(HaveHTTPStatus("404 Not Found")) // asserts that resp.Status == "404 Not Found" // Expect(resp).Should(HaveHTTPStatus(http.StatusOK, http.StatusNoContent)) // asserts that resp.StatusCode == 200 || resp.StatusCode == 204 -func HaveHTTPStatus(expected ...interface{}) types.GomegaMatcher { +func HaveHTTPStatus(expected ...any) types.GomegaMatcher { return &matchers.HaveHTTPStatusMatcher{Expected: expected} } @@ -618,7 +636,7 @@ func HaveHTTPStatus(expected ...interface{}) types.GomegaMatcher { // Actual must be either a *http.Response or *httptest.ResponseRecorder. // Expected must be a string header name, followed by a header value which // can be a string, or another matcher. -func HaveHTTPHeaderWithValue(header string, value interface{}) types.GomegaMatcher { +func HaveHTTPHeaderWithValue(header string, value any) types.GomegaMatcher { return &matchers.HaveHTTPHeaderWithValueMatcher{ Header: header, Value: value, @@ -628,7 +646,7 @@ func HaveHTTPHeaderWithValue(header string, value interface{}) types.GomegaMatch // HaveHTTPBody matches if the body matches. // Actual must be either a *http.Response or *httptest.ResponseRecorder. // Expected must be either a string, []byte, or other matcher -func HaveHTTPBody(expected interface{}) types.GomegaMatcher { +func HaveHTTPBody(expected any) types.GomegaMatcher { return &matchers.HaveHTTPBodyMatcher{Expected: expected} } @@ -687,15 +705,15 @@ func Not(matcher types.GomegaMatcher) types.GomegaMatcher { // Expect(1).To(WithTransform(failingplus1, Equal(2))) // // And(), Or(), Not() and WithTransform() allow matchers to be composed into complex expressions. -func WithTransform(transform interface{}, matcher types.GomegaMatcher) types.GomegaMatcher { +func WithTransform(transform any, matcher types.GomegaMatcher) types.GomegaMatcher { return matchers.NewWithTransformMatcher(transform, matcher) } // Satisfy matches the actual value against the `predicate` function. -// The given predicate must be a function of one paramter that returns bool. +// The given predicate must be a function of one parameter that returns bool. // // var isEven = func(i int) bool { return i%2 == 0 } // Expect(2).To(Satisfy(isEven)) -func Satisfy(predicate interface{}) types.GomegaMatcher { +func Satisfy(predicate any) types.GomegaMatcher { return matchers.NewSatisfyMatcher(predicate) } diff --git a/vendor/github.com/onsi/gomega/matchers/and.go b/vendor/github.com/onsi/gomega/matchers/and.go index 6bd826adc..db48e90b3 100644 --- a/vendor/github.com/onsi/gomega/matchers/and.go +++ b/vendor/github.com/onsi/gomega/matchers/and.go @@ -14,7 +14,7 @@ type AndMatcher struct { firstFailedMatcher types.GomegaMatcher } -func (m *AndMatcher) Match(actual interface{}) (success bool, err error) { +func (m *AndMatcher) Match(actual any) (success bool, err error) { m.firstFailedMatcher = nil for _, matcher := range m.Matchers { success, err := matcher.Match(actual) @@ -26,16 +26,16 @@ func (m *AndMatcher) Match(actual interface{}) (success bool, err error) { return true, nil } -func (m *AndMatcher) FailureMessage(actual interface{}) (message string) { +func (m *AndMatcher) FailureMessage(actual any) (message string) { return m.firstFailedMatcher.FailureMessage(actual) } -func (m *AndMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (m *AndMatcher) NegatedFailureMessage(actual any) (message string) { // not the most beautiful list of matchers, but not bad either... return format.Message(actual, fmt.Sprintf("To not satisfy all of these matchers: %s", m.Matchers)) } -func (m *AndMatcher) MatchMayChangeInTheFuture(actual interface{}) bool { +func (m *AndMatcher) MatchMayChangeInTheFuture(actual any) bool { /* Example with 3 matchers: A, B, C diff --git a/vendor/github.com/onsi/gomega/matchers/assignable_to_type_of_matcher.go b/vendor/github.com/onsi/gomega/matchers/assignable_to_type_of_matcher.go index be4839520..a100e5c07 100644 --- a/vendor/github.com/onsi/gomega/matchers/assignable_to_type_of_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/assignable_to_type_of_matcher.go @@ -10,10 +10,10 @@ import ( ) type AssignableToTypeOfMatcher struct { - Expected interface{} + Expected any } -func (matcher *AssignableToTypeOfMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *AssignableToTypeOfMatcher) Match(actual any) (success bool, err error) { if actual == nil && matcher.Expected == nil { return false, fmt.Errorf("Refusing to compare to .\nBe explicit and use BeNil() instead. This is to avoid mistakes where both sides of an assertion are erroneously uninitialized.") } else if matcher.Expected == nil { @@ -28,10 +28,10 @@ func (matcher *AssignableToTypeOfMatcher) Match(actual interface{}) (success boo return actualType.AssignableTo(expectedType), nil } -func (matcher *AssignableToTypeOfMatcher) FailureMessage(actual interface{}) string { +func (matcher *AssignableToTypeOfMatcher) FailureMessage(actual any) string { return format.Message(actual, fmt.Sprintf("to be assignable to the type: %T", matcher.Expected)) } -func (matcher *AssignableToTypeOfMatcher) NegatedFailureMessage(actual interface{}) string { +func (matcher *AssignableToTypeOfMatcher) NegatedFailureMessage(actual any) string { return format.Message(actual, fmt.Sprintf("not to be assignable to the type: %T", matcher.Expected)) } diff --git a/vendor/github.com/onsi/gomega/matchers/be_a_directory.go b/vendor/github.com/onsi/gomega/matchers/be_a_directory.go index 93d4497c7..1d8236048 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_a_directory.go +++ b/vendor/github.com/onsi/gomega/matchers/be_a_directory.go @@ -24,11 +24,11 @@ func (t notADirectoryError) Error() string { } type BeADirectoryMatcher struct { - expected interface{} + expected any err error } -func (matcher *BeADirectoryMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeADirectoryMatcher) Match(actual any) (success bool, err error) { actualFilename, ok := actual.(string) if !ok { return false, fmt.Errorf("BeADirectoryMatcher matcher expects a file path") @@ -47,10 +47,10 @@ func (matcher *BeADirectoryMatcher) Match(actual interface{}) (success bool, err return true, nil } -func (matcher *BeADirectoryMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeADirectoryMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, fmt.Sprintf("to be a directory: %s", matcher.err)) } -func (matcher *BeADirectoryMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeADirectoryMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not be a directory") } diff --git a/vendor/github.com/onsi/gomega/matchers/be_a_regular_file.go b/vendor/github.com/onsi/gomega/matchers/be_a_regular_file.go index 8fefc4deb..3e53d6285 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_a_regular_file.go +++ b/vendor/github.com/onsi/gomega/matchers/be_a_regular_file.go @@ -24,11 +24,11 @@ func (t notARegularFileError) Error() string { } type BeARegularFileMatcher struct { - expected interface{} + expected any err error } -func (matcher *BeARegularFileMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeARegularFileMatcher) Match(actual any) (success bool, err error) { actualFilename, ok := actual.(string) if !ok { return false, fmt.Errorf("BeARegularFileMatcher matcher expects a file path") @@ -47,10 +47,10 @@ func (matcher *BeARegularFileMatcher) Match(actual interface{}) (success bool, e return true, nil } -func (matcher *BeARegularFileMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeARegularFileMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, fmt.Sprintf("to be a regular file: %s", matcher.err)) } -func (matcher *BeARegularFileMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeARegularFileMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not be a regular file") } diff --git a/vendor/github.com/onsi/gomega/matchers/be_an_existing_file.go b/vendor/github.com/onsi/gomega/matchers/be_an_existing_file.go index e2bdd2811..04f156db3 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_an_existing_file.go +++ b/vendor/github.com/onsi/gomega/matchers/be_an_existing_file.go @@ -10,10 +10,10 @@ import ( ) type BeAnExistingFileMatcher struct { - expected interface{} + expected any } -func (matcher *BeAnExistingFileMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeAnExistingFileMatcher) Match(actual any) (success bool, err error) { actualFilename, ok := actual.(string) if !ok { return false, fmt.Errorf("BeAnExistingFileMatcher matcher expects a file path") @@ -31,10 +31,10 @@ func (matcher *BeAnExistingFileMatcher) Match(actual interface{}) (success bool, return true, nil } -func (matcher *BeAnExistingFileMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeAnExistingFileMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to exist") } -func (matcher *BeAnExistingFileMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeAnExistingFileMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to exist") } diff --git a/vendor/github.com/onsi/gomega/matchers/be_closed_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_closed_matcher.go index f13c24490..4319dde45 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_closed_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_closed_matcher.go @@ -12,7 +12,7 @@ import ( type BeClosedMatcher struct { } -func (matcher *BeClosedMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeClosedMatcher) Match(actual any) (success bool, err error) { if !isChan(actual) { return false, fmt.Errorf("BeClosed matcher expects a channel. Got:\n%s", format.Object(actual, 1)) } @@ -39,10 +39,10 @@ func (matcher *BeClosedMatcher) Match(actual interface{}) (success bool, err err return closed, nil } -func (matcher *BeClosedMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeClosedMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to be closed") } -func (matcher *BeClosedMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeClosedMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "to be open") } diff --git a/vendor/github.com/onsi/gomega/matchers/be_comparable_to_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_comparable_to_matcher.go index 4e3897858..ce74eee4c 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_comparable_to_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_comparable_to_matcher.go @@ -2,6 +2,7 @@ package matchers import ( "bytes" + "errors" "fmt" "github.com/google/go-cmp/cmp" @@ -9,11 +10,11 @@ import ( ) type BeComparableToMatcher struct { - Expected interface{} + Expected any Options cmp.Options } -func (matcher *BeComparableToMatcher) Match(actual interface{}) (success bool, matchErr error) { +func (matcher *BeComparableToMatcher) Match(actual any) (success bool, matchErr error) { if actual == nil && matcher.Expected == nil { return false, fmt.Errorf("Refusing to compare to .\nBe explicit and use BeNil() instead. This is to avoid mistakes where both sides of an assertion are erroneously uninitialized.") } @@ -32,7 +33,7 @@ func (matcher *BeComparableToMatcher) Match(actual interface{}) (success bool, m if err, ok := r.(error); ok { matchErr = err } else if errMsg, ok := r.(string); ok { - matchErr = fmt.Errorf(errMsg) + matchErr = errors.New(errMsg) } } }() @@ -40,10 +41,10 @@ func (matcher *BeComparableToMatcher) Match(actual interface{}) (success bool, m return cmp.Equal(actual, matcher.Expected, matcher.Options...), nil } -func (matcher *BeComparableToMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeComparableToMatcher) FailureMessage(actual any) (message string) { return fmt.Sprint("Expected object to be comparable, diff: ", cmp.Diff(actual, matcher.Expected, matcher.Options...)) } -func (matcher *BeComparableToMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeComparableToMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to be comparable to", matcher.Expected) } diff --git a/vendor/github.com/onsi/gomega/matchers/be_element_of_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_element_of_matcher.go index 9ee75a5d5..406fe5484 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_element_of_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_element_of_matcher.go @@ -10,10 +10,10 @@ import ( ) type BeElementOfMatcher struct { - Elements []interface{} + Elements []any } -func (matcher *BeElementOfMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeElementOfMatcher) Match(actual any) (success bool, err error) { if reflect.TypeOf(actual) == nil { return false, fmt.Errorf("BeElement matcher expects actual to be typed") } @@ -34,10 +34,10 @@ func (matcher *BeElementOfMatcher) Match(actual interface{}) (success bool, err return false, lastError } -func (matcher *BeElementOfMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeElementOfMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to be an element of", presentable(matcher.Elements)) } -func (matcher *BeElementOfMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeElementOfMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to be an element of", presentable(matcher.Elements)) } diff --git a/vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go index bd7f0b96e..e9e0644f3 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go @@ -13,7 +13,7 @@ import ( type BeEmptyMatcher struct { } -func (matcher *BeEmptyMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeEmptyMatcher) Match(actual any) (success bool, err error) { // short-circuit the iterator case, as we only need to see the first // element, if any. if miter.IsIter(actual) { @@ -34,10 +34,10 @@ func (matcher *BeEmptyMatcher) Match(actual interface{}) (success bool, err erro return length == 0, nil } -func (matcher *BeEmptyMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeEmptyMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to be empty") } -func (matcher *BeEmptyMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeEmptyMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to be empty") } diff --git a/vendor/github.com/onsi/gomega/matchers/be_equivalent_to_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_equivalent_to_matcher.go index 263627f40..37b3080ba 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_equivalent_to_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_equivalent_to_matcher.go @@ -10,10 +10,10 @@ import ( ) type BeEquivalentToMatcher struct { - Expected interface{} + Expected any } -func (matcher *BeEquivalentToMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeEquivalentToMatcher) Match(actual any) (success bool, err error) { if actual == nil && matcher.Expected == nil { return false, fmt.Errorf("Both actual and expected must not be nil.") } @@ -27,10 +27,10 @@ func (matcher *BeEquivalentToMatcher) Match(actual interface{}) (success bool, e return reflect.DeepEqual(convertedActual, matcher.Expected), nil } -func (matcher *BeEquivalentToMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeEquivalentToMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to be equivalent to", matcher.Expected) } -func (matcher *BeEquivalentToMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeEquivalentToMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to be equivalent to", matcher.Expected) } diff --git a/vendor/github.com/onsi/gomega/matchers/be_false_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_false_matcher.go index 8ee2b1c51..55e869515 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_false_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_false_matcher.go @@ -12,7 +12,7 @@ type BeFalseMatcher struct { Reason string } -func (matcher *BeFalseMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeFalseMatcher) Match(actual any) (success bool, err error) { if !isBool(actual) { return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) } @@ -20,7 +20,7 @@ func (matcher *BeFalseMatcher) Match(actual interface{}) (success bool, err erro return actual == false, nil } -func (matcher *BeFalseMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeFalseMatcher) FailureMessage(actual any) (message string) { if matcher.Reason == "" { return format.Message(actual, "to be false") } else { @@ -28,7 +28,7 @@ func (matcher *BeFalseMatcher) FailureMessage(actual interface{}) (message strin } } -func (matcher *BeFalseMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeFalseMatcher) NegatedFailureMessage(actual any) (message string) { if matcher.Reason == "" { return format.Message(actual, "not to be false") } else { diff --git a/vendor/github.com/onsi/gomega/matchers/be_identical_to.go b/vendor/github.com/onsi/gomega/matchers/be_identical_to.go index 631ce11e3..579aa41b3 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_identical_to.go +++ b/vendor/github.com/onsi/gomega/matchers/be_identical_to.go @@ -10,10 +10,10 @@ import ( ) type BeIdenticalToMatcher struct { - Expected interface{} + Expected any } -func (matcher *BeIdenticalToMatcher) Match(actual interface{}) (success bool, matchErr error) { +func (matcher *BeIdenticalToMatcher) Match(actual any) (success bool, matchErr error) { if actual == nil && matcher.Expected == nil { return false, fmt.Errorf("Refusing to compare to .\nBe explicit and use BeNil() instead. This is to avoid mistakes where both sides of an assertion are erroneously uninitialized.") } @@ -30,10 +30,10 @@ func (matcher *BeIdenticalToMatcher) Match(actual interface{}) (success bool, ma return actual == matcher.Expected, nil } -func (matcher *BeIdenticalToMatcher) FailureMessage(actual interface{}) string { +func (matcher *BeIdenticalToMatcher) FailureMessage(actual any) string { return format.Message(actual, "to be identical to", matcher.Expected) } -func (matcher *BeIdenticalToMatcher) NegatedFailureMessage(actual interface{}) string { +func (matcher *BeIdenticalToMatcher) NegatedFailureMessage(actual any) string { return format.Message(actual, "not to be identical to", matcher.Expected) } diff --git a/vendor/github.com/onsi/gomega/matchers/be_key_of_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_key_of_matcher.go index 449a291ef..3fff3df78 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_key_of_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_key_of_matcher.go @@ -8,10 +8,10 @@ import ( ) type BeKeyOfMatcher struct { - Map interface{} + Map any } -func (matcher *BeKeyOfMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeKeyOfMatcher) Match(actual any) (success bool, err error) { if !isMap(matcher.Map) { return false, fmt.Errorf("BeKeyOf matcher needs expected to be a map type") } @@ -36,10 +36,10 @@ func (matcher *BeKeyOfMatcher) Match(actual interface{}) (success bool, err erro return false, lastError } -func (matcher *BeKeyOfMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeKeyOfMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to be a key of", presentable(valuesOf(matcher.Map))) } -func (matcher *BeKeyOfMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeKeyOfMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to be a key of", presentable(valuesOf(matcher.Map))) } diff --git a/vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go index 551d99d74..cab37f4f9 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go @@ -7,14 +7,14 @@ import "github.com/onsi/gomega/format" type BeNilMatcher struct { } -func (matcher *BeNilMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeNilMatcher) Match(actual any) (success bool, err error) { return isNil(actual), nil } -func (matcher *BeNilMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeNilMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to be nil") } -func (matcher *BeNilMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeNilMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to be nil") } diff --git a/vendor/github.com/onsi/gomega/matchers/be_numerically_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_numerically_matcher.go index 100735de3..7e6ce154e 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_numerically_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_numerically_matcher.go @@ -11,18 +11,18 @@ import ( type BeNumericallyMatcher struct { Comparator string - CompareTo []interface{} + CompareTo []any } -func (matcher *BeNumericallyMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeNumericallyMatcher) FailureMessage(actual any) (message string) { return matcher.FormatFailureMessage(actual, false) } -func (matcher *BeNumericallyMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeNumericallyMatcher) NegatedFailureMessage(actual any) (message string) { return matcher.FormatFailureMessage(actual, true) } -func (matcher *BeNumericallyMatcher) FormatFailureMessage(actual interface{}, negated bool) (message string) { +func (matcher *BeNumericallyMatcher) FormatFailureMessage(actual any, negated bool) (message string) { if len(matcher.CompareTo) == 1 { message = fmt.Sprintf("to be %s", matcher.Comparator) } else { @@ -34,7 +34,7 @@ func (matcher *BeNumericallyMatcher) FormatFailureMessage(actual interface{}, ne return format.Message(actual, message, matcher.CompareTo[0]) } -func (matcher *BeNumericallyMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeNumericallyMatcher) Match(actual any) (success bool, err error) { if len(matcher.CompareTo) == 0 || len(matcher.CompareTo) > 2 { return false, fmt.Errorf("BeNumerically requires 1 or 2 CompareTo arguments. Got:\n%s", format.Object(matcher.CompareTo, 1)) } diff --git a/vendor/github.com/onsi/gomega/matchers/be_sent_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_sent_matcher.go index cf582a3fc..14ffbf6c4 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_sent_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_sent_matcher.go @@ -10,11 +10,11 @@ import ( ) type BeSentMatcher struct { - Arg interface{} + Arg any channelClosed bool } -func (matcher *BeSentMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeSentMatcher) Match(actual any) (success bool, err error) { if !isChan(actual) { return false, fmt.Errorf("BeSent expects a channel. Got:\n%s", format.Object(actual, 1)) } @@ -56,15 +56,15 @@ func (matcher *BeSentMatcher) Match(actual interface{}) (success bool, err error return didSend, nil } -func (matcher *BeSentMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeSentMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to send:", matcher.Arg) } -func (matcher *BeSentMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeSentMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to send:", matcher.Arg) } -func (matcher *BeSentMatcher) MatchMayChangeInTheFuture(actual interface{}) bool { +func (matcher *BeSentMatcher) MatchMayChangeInTheFuture(actual any) bool { if !isChan(actual) { return false } diff --git a/vendor/github.com/onsi/gomega/matchers/be_temporally_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_temporally_matcher.go index dec4db024..edb647c6f 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_temporally_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_temporally_matcher.go @@ -15,17 +15,17 @@ type BeTemporallyMatcher struct { Threshold []time.Duration } -func (matcher *BeTemporallyMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeTemporallyMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, fmt.Sprintf("to be %s", matcher.Comparator), matcher.CompareTo) } -func (matcher *BeTemporallyMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeTemporallyMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, fmt.Sprintf("not to be %s", matcher.Comparator), matcher.CompareTo) } -func (matcher *BeTemporallyMatcher) Match(actual interface{}) (bool, error) { +func (matcher *BeTemporallyMatcher) Match(actual any) (bool, error) { // predicate to test for time.Time type - isTime := func(t interface{}) bool { + isTime := func(t any) bool { _, ok := t.(time.Time) return ok } diff --git a/vendor/github.com/onsi/gomega/matchers/be_true_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_true_matcher.go index 3576aac88..a010bec5a 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_true_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_true_matcher.go @@ -12,7 +12,7 @@ type BeTrueMatcher struct { Reason string } -func (matcher *BeTrueMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeTrueMatcher) Match(actual any) (success bool, err error) { if !isBool(actual) { return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) } @@ -20,7 +20,7 @@ func (matcher *BeTrueMatcher) Match(actual interface{}) (success bool, err error return actual.(bool), nil } -func (matcher *BeTrueMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeTrueMatcher) FailureMessage(actual any) (message string) { if matcher.Reason == "" { return format.Message(actual, "to be true") } else { @@ -28,7 +28,7 @@ func (matcher *BeTrueMatcher) FailureMessage(actual interface{}) (message string } } -func (matcher *BeTrueMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeTrueMatcher) NegatedFailureMessage(actual any) (message string) { if matcher.Reason == "" { return format.Message(actual, "not to be true") } else { diff --git a/vendor/github.com/onsi/gomega/matchers/be_zero_matcher.go b/vendor/github.com/onsi/gomega/matchers/be_zero_matcher.go index 26196f168..f5f5d7f7d 100644 --- a/vendor/github.com/onsi/gomega/matchers/be_zero_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/be_zero_matcher.go @@ -9,7 +9,7 @@ import ( type BeZeroMatcher struct { } -func (matcher *BeZeroMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *BeZeroMatcher) Match(actual any) (success bool, err error) { if actual == nil { return true, nil } @@ -19,10 +19,10 @@ func (matcher *BeZeroMatcher) Match(actual interface{}) (success bool, err error } -func (matcher *BeZeroMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *BeZeroMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to be zero-valued") } -func (matcher *BeZeroMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *BeZeroMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to be zero-valued") } diff --git a/vendor/github.com/onsi/gomega/matchers/consist_of.go b/vendor/github.com/onsi/gomega/matchers/consist_of.go index a11188182..05c751b66 100644 --- a/vendor/github.com/onsi/gomega/matchers/consist_of.go +++ b/vendor/github.com/onsi/gomega/matchers/consist_of.go @@ -12,12 +12,12 @@ import ( ) type ConsistOfMatcher struct { - Elements []interface{} - missingElements []interface{} - extraElements []interface{} + Elements []any + missingElements []any + extraElements []any } -func (matcher *ConsistOfMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *ConsistOfMatcher) Match(actual any) (success bool, err error) { if !isArrayOrSlice(actual) && !isMap(actual) && !miter.IsIter(actual) { return false, fmt.Errorf("ConsistOf matcher expects an array/slice/map/iter.Seq/iter.Seq2. Got:\n%s", format.Object(actual, 1)) } @@ -35,19 +35,19 @@ func (matcher *ConsistOfMatcher) Match(actual interface{}) (success bool, err er return true, nil } - var missingMatchers []interface{} + var missingMatchers []any matcher.extraElements, missingMatchers = bipartiteGraph.FreeLeftRight(edges) matcher.missingElements = equalMatchersToElements(missingMatchers) return false, nil } -func neighbours(value, matcher interface{}) (bool, error) { +func neighbours(value, matcher any) (bool, error) { match, err := matcher.(omegaMatcher).Match(value) return match && err == nil, nil } -func equalMatchersToElements(matchers []interface{}) (elements []interface{}) { +func equalMatchersToElements(matchers []any) (elements []any) { for _, matcher := range matchers { if equalMatcher, ok := matcher.(*EqualMatcher); ok { elements = append(elements, equalMatcher.Expected) @@ -60,7 +60,7 @@ func equalMatchersToElements(matchers []interface{}) (elements []interface{}) { return } -func flatten(elems []interface{}) []interface{} { +func flatten(elems []any) []any { if len(elems) != 1 || !(isArrayOrSlice(elems[0]) || (miter.IsIter(elems[0]) && !miter.IsSeq2(elems[0]))) { @@ -77,14 +77,14 @@ func flatten(elems []interface{}) []interface{} { } value := reflect.ValueOf(elems[0]) - flattened := make([]interface{}, value.Len()) + flattened := make([]any, value.Len()) for i := 0; i < value.Len(); i++ { flattened[i] = value.Index(i).Interface() } return flattened } -func matchers(expectedElems []interface{}) (matchers []interface{}) { +func matchers(expectedElems []any) (matchers []any) { for _, e := range flatten(expectedElems) { if e == nil { matchers = append(matchers, &BeNilMatcher{}) @@ -97,11 +97,11 @@ func matchers(expectedElems []interface{}) (matchers []interface{}) { return } -func presentable(elems []interface{}) interface{} { +func presentable(elems []any) any { elems = flatten(elems) if len(elems) == 0 { - return []interface{}{} + return []any{} } sv := reflect.ValueOf(elems) @@ -125,9 +125,9 @@ func presentable(elems []interface{}) interface{} { return ss.Interface() } -func valuesOf(actual interface{}) []interface{} { +func valuesOf(actual any) []any { value := reflect.ValueOf(actual) - values := []interface{}{} + values := []any{} if miter.IsIter(actual) { if miter.IsSeq2(actual) { miter.IterateKV(actual, func(k, v reflect.Value) bool { @@ -154,7 +154,7 @@ func valuesOf(actual interface{}) []interface{} { return values } -func (matcher *ConsistOfMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *ConsistOfMatcher) FailureMessage(actual any) (message string) { message = format.Message(actual, "to consist of", presentable(matcher.Elements)) message = appendMissingElements(message, matcher.missingElements) if len(matcher.extraElements) > 0 { @@ -164,7 +164,7 @@ func (matcher *ConsistOfMatcher) FailureMessage(actual interface{}) (message str return } -func appendMissingElements(message string, missingElements []interface{}) string { +func appendMissingElements(message string, missingElements []any) string { if len(missingElements) == 0 { return message } @@ -172,6 +172,6 @@ func appendMissingElements(message string, missingElements []interface{}) string format.Object(presentable(missingElements), 1)) } -func (matcher *ConsistOfMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *ConsistOfMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to consist of", presentable(matcher.Elements)) } diff --git a/vendor/github.com/onsi/gomega/matchers/contain_element_matcher.go b/vendor/github.com/onsi/gomega/matchers/contain_element_matcher.go index 830239c7b..8337a5261 100644 --- a/vendor/github.com/onsi/gomega/matchers/contain_element_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/contain_element_matcher.go @@ -12,11 +12,11 @@ import ( ) type ContainElementMatcher struct { - Element interface{} - Result []interface{} + Element any + Result []any } -func (matcher *ContainElementMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *ContainElementMatcher) Match(actual any) (success bool, err error) { if !isArrayOrSlice(actual) && !isMap(actual) && !miter.IsIter(actual) { return false, fmt.Errorf("ContainElement matcher expects an array/slice/map/iterator. Got:\n%s", format.Object(actual, 1)) } @@ -132,14 +132,14 @@ func (matcher *ContainElementMatcher) Match(actual interface{}) (success bool, e var lastError error if !miter.IsIter(actual) { - var valueAt func(int) interface{} + var valueAt func(int) any var foundAt func(int) // We're dealing with an array/slice/map, so in all cases we can iterate // over the elements in actual using indices (that can be considered // keys in case of maps). if isMap(actual) { keys := value.MapKeys() - valueAt = func(i int) interface{} { + valueAt = func(i int) any { return value.MapIndex(keys[i]).Interface() } if result.Kind() != reflect.Invalid { @@ -150,7 +150,7 @@ func (matcher *ContainElementMatcher) Match(actual interface{}) (success bool, e } } } else { - valueAt = func(i int) interface{} { + valueAt = func(i int) any { return value.Index(i).Interface() } if result.Kind() != reflect.Invalid { @@ -251,7 +251,7 @@ func (matcher *ContainElementMatcher) Match(actual interface{}) (success bool, e } // pick up any findings the test is interested in as it specified a non-nil - // result reference. However, the expection always is that there are at + // result reference. However, the expectation always is that there are at // least one or multiple findings. So, if a result is expected, but we had // no findings, then this is an error. findings := getFindings() @@ -284,10 +284,10 @@ func (matcher *ContainElementMatcher) Match(actual interface{}) (success bool, e return true, nil } -func (matcher *ContainElementMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *ContainElementMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to contain element matching", matcher.Element) } -func (matcher *ContainElementMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *ContainElementMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to contain element matching", matcher.Element) } diff --git a/vendor/github.com/onsi/gomega/matchers/contain_elements_matcher.go b/vendor/github.com/onsi/gomega/matchers/contain_elements_matcher.go index d9fcb8b80..ce3041892 100644 --- a/vendor/github.com/onsi/gomega/matchers/contain_elements_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/contain_elements_matcher.go @@ -9,11 +9,11 @@ import ( ) type ContainElementsMatcher struct { - Elements []interface{} - missingElements []interface{} + Elements []any + missingElements []any } -func (matcher *ContainElementsMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *ContainElementsMatcher) Match(actual any) (success bool, err error) { if !isArrayOrSlice(actual) && !isMap(actual) && !miter.IsIter(actual) { return false, fmt.Errorf("ContainElements matcher expects an array/slice/map/iter.Seq/iter.Seq2. Got:\n%s", format.Object(actual, 1)) } @@ -35,11 +35,11 @@ func (matcher *ContainElementsMatcher) Match(actual interface{}) (success bool, return false, nil } -func (matcher *ContainElementsMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *ContainElementsMatcher) FailureMessage(actual any) (message string) { message = format.Message(actual, "to contain elements", presentable(matcher.Elements)) return appendMissingElements(message, matcher.missingElements) } -func (matcher *ContainElementsMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *ContainElementsMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to contain elements", presentable(matcher.Elements)) } diff --git a/vendor/github.com/onsi/gomega/matchers/contain_substring_matcher.go b/vendor/github.com/onsi/gomega/matchers/contain_substring_matcher.go index e725f8c27..d9980ee26 100644 --- a/vendor/github.com/onsi/gomega/matchers/contain_substring_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/contain_substring_matcher.go @@ -11,10 +11,10 @@ import ( type ContainSubstringMatcher struct { Substr string - Args []interface{} + Args []any } -func (matcher *ContainSubstringMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *ContainSubstringMatcher) Match(actual any) (success bool, err error) { actualString, ok := toString(actual) if !ok { return false, fmt.Errorf("ContainSubstring matcher requires a string or stringer. Got:\n%s", format.Object(actual, 1)) @@ -31,10 +31,10 @@ func (matcher *ContainSubstringMatcher) stringToMatch() string { return stringToMatch } -func (matcher *ContainSubstringMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *ContainSubstringMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to contain substring", matcher.stringToMatch()) } -func (matcher *ContainSubstringMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *ContainSubstringMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to contain substring", matcher.stringToMatch()) } diff --git a/vendor/github.com/onsi/gomega/matchers/equal_matcher.go b/vendor/github.com/onsi/gomega/matchers/equal_matcher.go index befb7bdfd..4ad166157 100644 --- a/vendor/github.com/onsi/gomega/matchers/equal_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/equal_matcher.go @@ -9,10 +9,10 @@ import ( ) type EqualMatcher struct { - Expected interface{} + Expected any } -func (matcher *EqualMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *EqualMatcher) Match(actual any) (success bool, err error) { if actual == nil && matcher.Expected == nil { return false, fmt.Errorf("Refusing to compare to .\nBe explicit and use BeNil() instead. This is to avoid mistakes where both sides of an assertion are erroneously uninitialized.") } @@ -27,7 +27,7 @@ func (matcher *EqualMatcher) Match(actual interface{}) (success bool, err error) return reflect.DeepEqual(actual, matcher.Expected), nil } -func (matcher *EqualMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *EqualMatcher) FailureMessage(actual any) (message string) { actualString, actualOK := actual.(string) expectedString, expectedOK := matcher.Expected.(string) if actualOK && expectedOK { @@ -37,6 +37,6 @@ func (matcher *EqualMatcher) FailureMessage(actual interface{}) (message string) return format.Message(actual, "to equal", matcher.Expected) } -func (matcher *EqualMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *EqualMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to equal", matcher.Expected) } diff --git a/vendor/github.com/onsi/gomega/matchers/have_cap_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_cap_matcher.go index 9856752f1..a4fcfc425 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_cap_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_cap_matcher.go @@ -12,7 +12,7 @@ type HaveCapMatcher struct { Count int } -func (matcher *HaveCapMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveCapMatcher) Match(actual any) (success bool, err error) { length, ok := capOf(actual) if !ok { return false, fmt.Errorf("HaveCap matcher expects a array/channel/slice. Got:\n%s", format.Object(actual, 1)) @@ -21,10 +21,10 @@ func (matcher *HaveCapMatcher) Match(actual interface{}) (success bool, err erro return length == matcher.Count, nil } -func (matcher *HaveCapMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveCapMatcher) FailureMessage(actual any) (message string) { return fmt.Sprintf("Expected\n%s\nto have capacity %d", format.Object(actual, 1), matcher.Count) } -func (matcher *HaveCapMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveCapMatcher) NegatedFailureMessage(actual any) (message string) { return fmt.Sprintf("Expected\n%s\nnot to have capacity %d", format.Object(actual, 1), matcher.Count) } diff --git a/vendor/github.com/onsi/gomega/matchers/have_each_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_each_matcher.go index 4111f2b86..4c45063bd 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_each_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_each_matcher.go @@ -9,10 +9,10 @@ import ( ) type HaveEachMatcher struct { - Element interface{} + Element any } -func (matcher *HaveEachMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveEachMatcher) Match(actual any) (success bool, err error) { if !isArrayOrSlice(actual) && !isMap(actual) && !miter.IsIter(actual) { return false, fmt.Errorf("HaveEach matcher expects an array/slice/map/iter.Seq/iter.Seq2. Got:\n%s", format.Object(actual, 1)) @@ -61,14 +61,14 @@ func (matcher *HaveEachMatcher) Match(actual interface{}) (success bool, err err format.Object(actual, 1)) } - var valueAt func(int) interface{} + var valueAt func(int) any if isMap(actual) { keys := value.MapKeys() - valueAt = func(i int) interface{} { + valueAt = func(i int) any { return value.MapIndex(keys[i]).Interface() } } else { - valueAt = func(i int) interface{} { + valueAt = func(i int) any { return value.Index(i).Interface() } } @@ -89,11 +89,11 @@ func (matcher *HaveEachMatcher) Match(actual interface{}) (success bool, err err } // FailureMessage returns a suitable failure message. -func (matcher *HaveEachMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveEachMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to contain element matching", matcher.Element) } // NegatedFailureMessage returns a suitable negated failure message. -func (matcher *HaveEachMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveEachMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to contain element matching", matcher.Element) } diff --git a/vendor/github.com/onsi/gomega/matchers/have_exact_elements.go b/vendor/github.com/onsi/gomega/matchers/have_exact_elements.go index 23799f1c6..8b2d297c5 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_exact_elements.go +++ b/vendor/github.com/onsi/gomega/matchers/have_exact_elements.go @@ -14,13 +14,13 @@ type mismatchFailure struct { } type HaveExactElementsMatcher struct { - Elements []interface{} + Elements []any mismatchFailures []mismatchFailure missingIndex int extraIndex int } -func (matcher *HaveExactElementsMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveExactElementsMatcher) Match(actual any) (success bool, err error) { matcher.resetState() if isMap(actual) || miter.IsSeq2(actual) { @@ -108,7 +108,7 @@ func (matcher *HaveExactElementsMatcher) Match(actual interface{}) (success bool return success, nil } -func (matcher *HaveExactElementsMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveExactElementsMatcher) FailureMessage(actual any) (message string) { message = format.Message(actual, "to have exact elements with", presentable(matcher.Elements)) if matcher.missingIndex > 0 { message = fmt.Sprintf("%s\nthe missing elements start from index %d", message, matcher.missingIndex) @@ -125,7 +125,7 @@ func (matcher *HaveExactElementsMatcher) FailureMessage(actual interface{}) (mes return } -func (matcher *HaveExactElementsMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveExactElementsMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to contain elements", presentable(matcher.Elements)) } diff --git a/vendor/github.com/onsi/gomega/matchers/have_existing_field_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_existing_field_matcher.go index b57018745..a5a028e9a 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_existing_field_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_existing_field_matcher.go @@ -11,7 +11,7 @@ type HaveExistingFieldMatcher struct { Field string } -func (matcher *HaveExistingFieldMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveExistingFieldMatcher) Match(actual any) (success bool, err error) { // we don't care about the field's actual value, just about any error in // trying to find the field (or method). _, err = extractField(actual, matcher.Field, "HaveExistingField") @@ -27,10 +27,10 @@ func (matcher *HaveExistingFieldMatcher) Match(actual interface{}) (success bool return false, err } -func (matcher *HaveExistingFieldMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveExistingFieldMatcher) FailureMessage(actual any) (message string) { return fmt.Sprintf("Expected\n%s\nto have field '%s'", format.Object(actual, 1), matcher.Field) } -func (matcher *HaveExistingFieldMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveExistingFieldMatcher) NegatedFailureMessage(actual any) (message string) { return fmt.Sprintf("Expected\n%s\nnot to have field '%s'", format.Object(actual, 1), matcher.Field) } diff --git a/vendor/github.com/onsi/gomega/matchers/have_field.go b/vendor/github.com/onsi/gomega/matchers/have_field.go index 293457e85..d9fbeaf75 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_field.go +++ b/vendor/github.com/onsi/gomega/matchers/have_field.go @@ -17,7 +17,7 @@ func (e missingFieldError) Error() string { return string(e) } -func extractField(actual interface{}, field string, matchername string) (any, error) { +func extractField(actual any, field string, matchername string) (any, error) { fields := strings.SplitN(field, ".", 2) actualValue := reflect.ValueOf(actual) @@ -68,7 +68,7 @@ func extractField(actual interface{}, field string, matchername string) (any, er type HaveFieldMatcher struct { Field string - Expected interface{} + Expected any } func (matcher *HaveFieldMatcher) expectedMatcher() omegaMatcher { @@ -80,7 +80,7 @@ func (matcher *HaveFieldMatcher) expectedMatcher() omegaMatcher { return expectedMatcher } -func (matcher *HaveFieldMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveFieldMatcher) Match(actual any) (success bool, err error) { extractedField, err := extractField(actual, matcher.Field, "HaveField") if err != nil { return false, err @@ -89,7 +89,7 @@ func (matcher *HaveFieldMatcher) Match(actual interface{}) (success bool, err er return matcher.expectedMatcher().Match(extractedField) } -func (matcher *HaveFieldMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveFieldMatcher) FailureMessage(actual any) (message string) { extractedField, err := extractField(actual, matcher.Field, "HaveField") if err != nil { // this really shouldn't happen @@ -101,7 +101,7 @@ func (matcher *HaveFieldMatcher) FailureMessage(actual interface{}) (message str return message } -func (matcher *HaveFieldMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveFieldMatcher) NegatedFailureMessage(actual any) (message string) { extractedField, err := extractField(actual, matcher.Field, "HaveField") if err != nil { // this really shouldn't happen diff --git a/vendor/github.com/onsi/gomega/matchers/have_http_body_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_http_body_matcher.go index d14d9e5fc..2d561b9a2 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_http_body_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_http_body_matcher.go @@ -11,12 +11,12 @@ import ( ) type HaveHTTPBodyMatcher struct { - Expected interface{} - cachedResponse interface{} + Expected any + cachedResponse any cachedBody []byte } -func (matcher *HaveHTTPBodyMatcher) Match(actual interface{}) (bool, error) { +func (matcher *HaveHTTPBodyMatcher) Match(actual any) (bool, error) { body, err := matcher.body(actual) if err != nil { return false, err @@ -34,7 +34,7 @@ func (matcher *HaveHTTPBodyMatcher) Match(actual interface{}) (bool, error) { } } -func (matcher *HaveHTTPBodyMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveHTTPBodyMatcher) FailureMessage(actual any) (message string) { body, err := matcher.body(actual) if err != nil { return fmt.Sprintf("failed to read body: %s", err) @@ -52,7 +52,7 @@ func (matcher *HaveHTTPBodyMatcher) FailureMessage(actual interface{}) (message } } -func (matcher *HaveHTTPBodyMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveHTTPBodyMatcher) NegatedFailureMessage(actual any) (message string) { body, err := matcher.body(actual) if err != nil { return fmt.Sprintf("failed to read body: %s", err) @@ -73,7 +73,7 @@ func (matcher *HaveHTTPBodyMatcher) NegatedFailureMessage(actual interface{}) (m // body returns the body. It is cached because once we read it in Match() // the Reader is closed and it is not readable again in FailureMessage() // or NegatedFailureMessage() -func (matcher *HaveHTTPBodyMatcher) body(actual interface{}) ([]byte, error) { +func (matcher *HaveHTTPBodyMatcher) body(actual any) ([]byte, error) { if matcher.cachedResponse == actual && matcher.cachedBody != nil { return matcher.cachedBody, nil } diff --git a/vendor/github.com/onsi/gomega/matchers/have_http_header_with_value_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_http_header_with_value_matcher.go index c256f452e..756722659 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_http_header_with_value_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_http_header_with_value_matcher.go @@ -11,10 +11,10 @@ import ( type HaveHTTPHeaderWithValueMatcher struct { Header string - Value interface{} + Value any } -func (matcher *HaveHTTPHeaderWithValueMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveHTTPHeaderWithValueMatcher) Match(actual any) (success bool, err error) { headerValue, err := matcher.extractHeader(actual) if err != nil { return false, err @@ -28,7 +28,7 @@ func (matcher *HaveHTTPHeaderWithValueMatcher) Match(actual interface{}) (succes return headerMatcher.Match(headerValue) } -func (matcher *HaveHTTPHeaderWithValueMatcher) FailureMessage(actual interface{}) string { +func (matcher *HaveHTTPHeaderWithValueMatcher) FailureMessage(actual any) string { headerValue, err := matcher.extractHeader(actual) if err != nil { panic(err) // protected by Match() @@ -43,7 +43,7 @@ func (matcher *HaveHTTPHeaderWithValueMatcher) FailureMessage(actual interface{} return fmt.Sprintf("HTTP header %q:\n%s", matcher.Header, diff) } -func (matcher *HaveHTTPHeaderWithValueMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveHTTPHeaderWithValueMatcher) NegatedFailureMessage(actual any) (message string) { headerValue, err := matcher.extractHeader(actual) if err != nil { panic(err) // protected by Match() @@ -69,7 +69,7 @@ func (matcher *HaveHTTPHeaderWithValueMatcher) getSubMatcher() (types.GomegaMatc } } -func (matcher *HaveHTTPHeaderWithValueMatcher) extractHeader(actual interface{}) (string, error) { +func (matcher *HaveHTTPHeaderWithValueMatcher) extractHeader(actual any) (string, error) { switch r := actual.(type) { case *http.Response: return r.Header.Get(matcher.Header), nil diff --git a/vendor/github.com/onsi/gomega/matchers/have_http_status_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_http_status_matcher.go index 0f66e46ec..8b25b3a9f 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_http_status_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_http_status_matcher.go @@ -12,10 +12,10 @@ import ( ) type HaveHTTPStatusMatcher struct { - Expected []interface{} + Expected []any } -func (matcher *HaveHTTPStatusMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveHTTPStatusMatcher) Match(actual any) (success bool, err error) { var resp *http.Response switch a := actual.(type) { case *http.Response: @@ -48,11 +48,11 @@ func (matcher *HaveHTTPStatusMatcher) Match(actual interface{}) (success bool, e return false, nil } -func (matcher *HaveHTTPStatusMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveHTTPStatusMatcher) FailureMessage(actual any) (message string) { return fmt.Sprintf("Expected\n%s\n%s\n%s", formatHttpResponse(actual), "to have HTTP status", matcher.expectedString()) } -func (matcher *HaveHTTPStatusMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveHTTPStatusMatcher) NegatedFailureMessage(actual any) (message string) { return fmt.Sprintf("Expected\n%s\n%s\n%s", formatHttpResponse(actual), "not to have HTTP status", matcher.expectedString()) } @@ -64,7 +64,7 @@ func (matcher *HaveHTTPStatusMatcher) expectedString() string { return strings.Join(lines, "\n") } -func formatHttpResponse(input interface{}) string { +func formatHttpResponse(input any) string { var resp *http.Response switch r := input.(type) { case *http.Response: diff --git a/vendor/github.com/onsi/gomega/matchers/have_key_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_key_matcher.go index b62ee93cb..16630c18e 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_key_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_key_matcher.go @@ -11,10 +11,10 @@ import ( ) type HaveKeyMatcher struct { - Key interface{} + Key any } -func (matcher *HaveKeyMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveKeyMatcher) Match(actual any) (success bool, err error) { if !isMap(actual) && !miter.IsSeq2(actual) { return false, fmt.Errorf("HaveKey matcher expects a map/iter.Seq2. Got:%s", format.Object(actual, 1)) } @@ -39,7 +39,7 @@ func (matcher *HaveKeyMatcher) Match(actual interface{}) (success bool, err erro } keys := reflect.ValueOf(actual).MapKeys() - for i := 0; i < len(keys); i++ { + for i := range keys { success, err := keyMatcher.Match(keys[i].Interface()) if err != nil { return false, fmt.Errorf("HaveKey's key matcher failed with:\n%s%s", format.Indent, err.Error()) @@ -52,7 +52,7 @@ func (matcher *HaveKeyMatcher) Match(actual interface{}) (success bool, err erro return false, nil } -func (matcher *HaveKeyMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveKeyMatcher) FailureMessage(actual any) (message string) { switch matcher.Key.(type) { case omegaMatcher: return format.Message(actual, "to have key matching", matcher.Key) @@ -61,7 +61,7 @@ func (matcher *HaveKeyMatcher) FailureMessage(actual interface{}) (message strin } } -func (matcher *HaveKeyMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveKeyMatcher) NegatedFailureMessage(actual any) (message string) { switch matcher.Key.(type) { case omegaMatcher: return format.Message(actual, "not to have key matching", matcher.Key) diff --git a/vendor/github.com/onsi/gomega/matchers/have_key_with_value_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_key_with_value_matcher.go index 3d608f63e..0cd708153 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_key_with_value_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_key_with_value_matcher.go @@ -11,11 +11,11 @@ import ( ) type HaveKeyWithValueMatcher struct { - Key interface{} - Value interface{} + Key any + Value any } -func (matcher *HaveKeyWithValueMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveKeyWithValueMatcher) Match(actual any) (success bool, err error) { if !isMap(actual) && !miter.IsSeq2(actual) { return false, fmt.Errorf("HaveKeyWithValue matcher expects a map/iter.Seq2. Got:%s", format.Object(actual, 1)) } @@ -52,7 +52,7 @@ func (matcher *HaveKeyWithValueMatcher) Match(actual interface{}) (success bool, } keys := reflect.ValueOf(actual).MapKeys() - for i := 0; i < len(keys); i++ { + for i := range keys { success, err := keyMatcher.Match(keys[i].Interface()) if err != nil { return false, fmt.Errorf("HaveKeyWithValue's key matcher failed with:\n%s%s", format.Indent, err.Error()) @@ -70,7 +70,7 @@ func (matcher *HaveKeyWithValueMatcher) Match(actual interface{}) (success bool, return false, nil } -func (matcher *HaveKeyWithValueMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveKeyWithValueMatcher) FailureMessage(actual any) (message string) { str := "to have {key: value}" if _, ok := matcher.Key.(omegaMatcher); ok { str += " matching" @@ -78,12 +78,12 @@ func (matcher *HaveKeyWithValueMatcher) FailureMessage(actual interface{}) (mess str += " matching" } - expect := make(map[interface{}]interface{}, 1) + expect := make(map[any]any, 1) expect[matcher.Key] = matcher.Value return format.Message(actual, str, expect) } -func (matcher *HaveKeyWithValueMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveKeyWithValueMatcher) NegatedFailureMessage(actual any) (message string) { kStr := "not to have key" if _, ok := matcher.Key.(omegaMatcher); ok { kStr = "not to have key matching" diff --git a/vendor/github.com/onsi/gomega/matchers/have_len_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_len_matcher.go index ca25713fe..c334d4c0a 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_len_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_len_matcher.go @@ -10,7 +10,7 @@ type HaveLenMatcher struct { Count int } -func (matcher *HaveLenMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveLenMatcher) Match(actual any) (success bool, err error) { length, ok := lengthOf(actual) if !ok { return false, fmt.Errorf("HaveLen matcher expects a string/array/map/channel/slice/iterator. Got:\n%s", format.Object(actual, 1)) @@ -19,10 +19,10 @@ func (matcher *HaveLenMatcher) Match(actual interface{}) (success bool, err erro return length == matcher.Count, nil } -func (matcher *HaveLenMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveLenMatcher) FailureMessage(actual any) (message string) { return fmt.Sprintf("Expected\n%s\nto have length %d", format.Object(actual, 1), matcher.Count) } -func (matcher *HaveLenMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveLenMatcher) NegatedFailureMessage(actual any) (message string) { return fmt.Sprintf("Expected\n%s\nnot to have length %d", format.Object(actual, 1), matcher.Count) } diff --git a/vendor/github.com/onsi/gomega/matchers/have_occurred_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_occurred_matcher.go index 22a1b6730..a240f1a1c 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_occurred_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_occurred_matcher.go @@ -11,7 +11,7 @@ import ( type HaveOccurredMatcher struct { } -func (matcher *HaveOccurredMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveOccurredMatcher) Match(actual any) (success bool, err error) { // is purely nil? if actual == nil { return false, nil @@ -26,10 +26,10 @@ func (matcher *HaveOccurredMatcher) Match(actual interface{}) (success bool, err return !isNil(actual), nil } -func (matcher *HaveOccurredMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveOccurredMatcher) FailureMessage(actual any) (message string) { return fmt.Sprintf("Expected an error to have occurred. Got:\n%s", format.Object(actual, 1)) } -func (matcher *HaveOccurredMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveOccurredMatcher) NegatedFailureMessage(actual any) (message string) { return fmt.Sprintf("Unexpected error:\n%s\n%s", format.Object(actual, 1), "occurred") } diff --git a/vendor/github.com/onsi/gomega/matchers/have_prefix_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_prefix_matcher.go index 1d8e80270..7987d41f7 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_prefix_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_prefix_matcher.go @@ -8,10 +8,10 @@ import ( type HavePrefixMatcher struct { Prefix string - Args []interface{} + Args []any } -func (matcher *HavePrefixMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HavePrefixMatcher) Match(actual any) (success bool, err error) { actualString, ok := toString(actual) if !ok { return false, fmt.Errorf("HavePrefix matcher requires a string or stringer. Got:\n%s", format.Object(actual, 1)) @@ -27,10 +27,10 @@ func (matcher *HavePrefixMatcher) prefix() string { return matcher.Prefix } -func (matcher *HavePrefixMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HavePrefixMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to have prefix", matcher.prefix()) } -func (matcher *HavePrefixMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HavePrefixMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to have prefix", matcher.prefix()) } diff --git a/vendor/github.com/onsi/gomega/matchers/have_suffix_matcher.go b/vendor/github.com/onsi/gomega/matchers/have_suffix_matcher.go index 40a3526eb..2aa4ceacb 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_suffix_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/have_suffix_matcher.go @@ -8,10 +8,10 @@ import ( type HaveSuffixMatcher struct { Suffix string - Args []interface{} + Args []any } -func (matcher *HaveSuffixMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *HaveSuffixMatcher) Match(actual any) (success bool, err error) { actualString, ok := toString(actual) if !ok { return false, fmt.Errorf("HaveSuffix matcher requires a string or stringer. Got:\n%s", format.Object(actual, 1)) @@ -27,10 +27,10 @@ func (matcher *HaveSuffixMatcher) suffix() string { return matcher.Suffix } -func (matcher *HaveSuffixMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *HaveSuffixMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to have suffix", matcher.suffix()) } -func (matcher *HaveSuffixMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *HaveSuffixMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to have suffix", matcher.suffix()) } diff --git a/vendor/github.com/onsi/gomega/matchers/have_value.go b/vendor/github.com/onsi/gomega/matchers/have_value.go index f67252835..4c39e0db0 100644 --- a/vendor/github.com/onsi/gomega/matchers/have_value.go +++ b/vendor/github.com/onsi/gomega/matchers/have_value.go @@ -12,10 +12,10 @@ const maxIndirections = 31 type HaveValueMatcher struct { Matcher types.GomegaMatcher // the matcher to apply to the "resolved" actual value. - resolvedActual interface{} // the ("resolved") value. + resolvedActual any // the ("resolved") value. } -func (m *HaveValueMatcher) Match(actual interface{}) (bool, error) { +func (m *HaveValueMatcher) Match(actual any) (bool, error) { val := reflect.ValueOf(actual) for allowedIndirs := maxIndirections; allowedIndirs > 0; allowedIndirs-- { // return an error if value isn't valid. Please note that we cannot @@ -45,10 +45,10 @@ func (m *HaveValueMatcher) Match(actual interface{}) (bool, error) { return false, errors.New(format.Message(actual, "too many indirections")) } -func (m *HaveValueMatcher) FailureMessage(_ interface{}) (message string) { +func (m *HaveValueMatcher) FailureMessage(_ any) (message string) { return m.Matcher.FailureMessage(m.resolvedActual) } -func (m *HaveValueMatcher) NegatedFailureMessage(_ interface{}) (message string) { +func (m *HaveValueMatcher) NegatedFailureMessage(_ any) (message string) { return m.Matcher.NegatedFailureMessage(m.resolvedActual) } diff --git a/vendor/github.com/onsi/gomega/matchers/match_error_matcher.go b/vendor/github.com/onsi/gomega/matchers/match_error_matcher.go index c539dd389..f9d313772 100644 --- a/vendor/github.com/onsi/gomega/matchers/match_error_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/match_error_matcher.go @@ -71,14 +71,14 @@ func (matcher *MatchErrorMatcher) Match(actual any) (success bool, err error) { format.Object(expected, 1)) } -func (matcher *MatchErrorMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *MatchErrorMatcher) FailureMessage(actual any) (message string) { if matcher.isFunc { return format.Message(actual, fmt.Sprintf("to match error function %s", matcher.FuncErrDescription[0])) } return format.Message(actual, "to match error", matcher.Expected) } -func (matcher *MatchErrorMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *MatchErrorMatcher) NegatedFailureMessage(actual any) (message string) { if matcher.isFunc { return format.Message(actual, fmt.Sprintf("not to match error function %s", matcher.FuncErrDescription[0])) } diff --git a/vendor/github.com/onsi/gomega/matchers/match_error_strictly_matcher.go b/vendor/github.com/onsi/gomega/matchers/match_error_strictly_matcher.go new file mode 100644 index 000000000..63969b266 --- /dev/null +++ b/vendor/github.com/onsi/gomega/matchers/match_error_strictly_matcher.go @@ -0,0 +1,39 @@ +package matchers + +import ( + "errors" + "fmt" + + "github.com/onsi/gomega/format" +) + +type MatchErrorStrictlyMatcher struct { + Expected error +} + +func (matcher *MatchErrorStrictlyMatcher) Match(actual any) (success bool, err error) { + + if isNil(matcher.Expected) { + return false, fmt.Errorf("Expected error is nil, use \"ToNot(HaveOccurred())\" to explicitly check for nil errors") + } + + if isNil(actual) { + return false, fmt.Errorf("Expected an error, got nil") + } + + if !isError(actual) { + return false, fmt.Errorf("Expected an error. Got:\n%s", format.Object(actual, 1)) + } + + actualErr := actual.(error) + + return errors.Is(actualErr, matcher.Expected), nil +} + +func (matcher *MatchErrorStrictlyMatcher) FailureMessage(actual any) (message string) { + return format.Message(actual, "to match error", matcher.Expected) +} + +func (matcher *MatchErrorStrictlyMatcher) NegatedFailureMessage(actual any) (message string) { + return format.Message(actual, "not to match error", matcher.Expected) +} diff --git a/vendor/github.com/onsi/gomega/matchers/match_json_matcher.go b/vendor/github.com/onsi/gomega/matchers/match_json_matcher.go index f962f139f..331f289ab 100644 --- a/vendor/github.com/onsi/gomega/matchers/match_json_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/match_json_matcher.go @@ -9,18 +9,18 @@ import ( ) type MatchJSONMatcher struct { - JSONToMatch interface{} - firstFailurePath []interface{} + JSONToMatch any + firstFailurePath []any } -func (matcher *MatchJSONMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *MatchJSONMatcher) Match(actual any) (success bool, err error) { actualString, expectedString, err := matcher.prettyPrint(actual) if err != nil { return false, err } - var aval interface{} - var eval interface{} + var aval any + var eval any // this is guarded by prettyPrint json.Unmarshal([]byte(actualString), &aval) @@ -30,17 +30,17 @@ func (matcher *MatchJSONMatcher) Match(actual interface{}) (success bool, err er return equal, nil } -func (matcher *MatchJSONMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *MatchJSONMatcher) FailureMessage(actual any) (message string) { actualString, expectedString, _ := matcher.prettyPrint(actual) return formattedMessage(format.Message(actualString, "to match JSON of", expectedString), matcher.firstFailurePath) } -func (matcher *MatchJSONMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *MatchJSONMatcher) NegatedFailureMessage(actual any) (message string) { actualString, expectedString, _ := matcher.prettyPrint(actual) return formattedMessage(format.Message(actualString, "not to match JSON of", expectedString), matcher.firstFailurePath) } -func (matcher *MatchJSONMatcher) prettyPrint(actual interface{}) (actualFormatted, expectedFormatted string, err error) { +func (matcher *MatchJSONMatcher) prettyPrint(actual any) (actualFormatted, expectedFormatted string, err error) { actualString, ok := toString(actual) if !ok { return "", "", fmt.Errorf("MatchJSONMatcher matcher requires a string, stringer, or []byte. Got actual:\n%s", format.Object(actual, 1)) diff --git a/vendor/github.com/onsi/gomega/matchers/match_regexp_matcher.go b/vendor/github.com/onsi/gomega/matchers/match_regexp_matcher.go index adac5db6b..779be683e 100644 --- a/vendor/github.com/onsi/gomega/matchers/match_regexp_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/match_regexp_matcher.go @@ -9,10 +9,10 @@ import ( type MatchRegexpMatcher struct { Regexp string - Args []interface{} + Args []any } -func (matcher *MatchRegexpMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *MatchRegexpMatcher) Match(actual any) (success bool, err error) { actualString, ok := toString(actual) if !ok { return false, fmt.Errorf("RegExp matcher requires a string or stringer.\nGot:%s", format.Object(actual, 1)) @@ -26,11 +26,11 @@ func (matcher *MatchRegexpMatcher) Match(actual interface{}) (success bool, err return match, nil } -func (matcher *MatchRegexpMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *MatchRegexpMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to match regular expression", matcher.regexp()) } -func (matcher *MatchRegexpMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *MatchRegexpMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "not to match regular expression", matcher.regexp()) } diff --git a/vendor/github.com/onsi/gomega/matchers/match_xml_matcher.go b/vendor/github.com/onsi/gomega/matchers/match_xml_matcher.go index 5c815f5af..f7dcaf6fd 100644 --- a/vendor/github.com/onsi/gomega/matchers/match_xml_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/match_xml_matcher.go @@ -15,10 +15,10 @@ import ( ) type MatchXMLMatcher struct { - XMLToMatch interface{} + XMLToMatch any } -func (matcher *MatchXMLMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *MatchXMLMatcher) Match(actual any) (success bool, err error) { actualString, expectedString, err := matcher.formattedPrint(actual) if err != nil { return false, err @@ -37,17 +37,17 @@ func (matcher *MatchXMLMatcher) Match(actual interface{}) (success bool, err err return reflect.DeepEqual(aval, eval), nil } -func (matcher *MatchXMLMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *MatchXMLMatcher) FailureMessage(actual any) (message string) { actualString, expectedString, _ := matcher.formattedPrint(actual) return fmt.Sprintf("Expected\n%s\nto match XML of\n%s", actualString, expectedString) } -func (matcher *MatchXMLMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *MatchXMLMatcher) NegatedFailureMessage(actual any) (message string) { actualString, expectedString, _ := matcher.formattedPrint(actual) return fmt.Sprintf("Expected\n%s\nnot to match XML of\n%s", actualString, expectedString) } -func (matcher *MatchXMLMatcher) formattedPrint(actual interface{}) (actualString, expectedString string, err error) { +func (matcher *MatchXMLMatcher) formattedPrint(actual any) (actualString, expectedString string, err error) { var ok bool actualString, ok = toString(actual) if !ok { diff --git a/vendor/github.com/onsi/gomega/matchers/match_yaml_matcher.go b/vendor/github.com/onsi/gomega/matchers/match_yaml_matcher.go index 2cb6b47db..c3da9bd48 100644 --- a/vendor/github.com/onsi/gomega/matchers/match_yaml_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/match_yaml_matcher.go @@ -5,22 +5,22 @@ import ( "strings" "github.com/onsi/gomega/format" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) type MatchYAMLMatcher struct { - YAMLToMatch interface{} - firstFailurePath []interface{} + YAMLToMatch any + firstFailurePath []any } -func (matcher *MatchYAMLMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *MatchYAMLMatcher) Match(actual any) (success bool, err error) { actualString, expectedString, err := matcher.toStrings(actual) if err != nil { return false, err } - var aval interface{} - var eval interface{} + var aval any + var eval any if err := yaml.Unmarshal([]byte(actualString), &aval); err != nil { return false, fmt.Errorf("Actual '%s' should be valid YAML, but it is not.\nUnderlying error:%s", actualString, err) @@ -34,23 +34,23 @@ func (matcher *MatchYAMLMatcher) Match(actual interface{}) (success bool, err er return equal, nil } -func (matcher *MatchYAMLMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *MatchYAMLMatcher) FailureMessage(actual any) (message string) { actualString, expectedString, _ := matcher.toNormalisedStrings(actual) return formattedMessage(format.Message(actualString, "to match YAML of", expectedString), matcher.firstFailurePath) } -func (matcher *MatchYAMLMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *MatchYAMLMatcher) NegatedFailureMessage(actual any) (message string) { actualString, expectedString, _ := matcher.toNormalisedStrings(actual) return formattedMessage(format.Message(actualString, "not to match YAML of", expectedString), matcher.firstFailurePath) } -func (matcher *MatchYAMLMatcher) toNormalisedStrings(actual interface{}) (actualFormatted, expectedFormatted string, err error) { +func (matcher *MatchYAMLMatcher) toNormalisedStrings(actual any) (actualFormatted, expectedFormatted string, err error) { actualString, expectedString, err := matcher.toStrings(actual) return normalise(actualString), normalise(expectedString), err } func normalise(input string) string { - var val interface{} + var val any err := yaml.Unmarshal([]byte(input), &val) if err != nil { panic(err) // unreachable since Match already calls Unmarshal @@ -62,7 +62,7 @@ func normalise(input string) string { return strings.TrimSpace(string(output)) } -func (matcher *MatchYAMLMatcher) toStrings(actual interface{}) (actualFormatted, expectedFormatted string, err error) { +func (matcher *MatchYAMLMatcher) toStrings(actual any) (actualFormatted, expectedFormatted string, err error) { actualString, ok := toString(actual) if !ok { return "", "", fmt.Errorf("MatchYAMLMatcher matcher requires a string, stringer, or []byte. Got actual:\n%s", format.Object(actual, 1)) diff --git a/vendor/github.com/onsi/gomega/matchers/not.go b/vendor/github.com/onsi/gomega/matchers/not.go index 78b71910d..c598b7899 100644 --- a/vendor/github.com/onsi/gomega/matchers/not.go +++ b/vendor/github.com/onsi/gomega/matchers/not.go @@ -8,7 +8,7 @@ type NotMatcher struct { Matcher types.GomegaMatcher } -func (m *NotMatcher) Match(actual interface{}) (bool, error) { +func (m *NotMatcher) Match(actual any) (bool, error) { success, err := m.Matcher.Match(actual) if err != nil { return false, err @@ -16,14 +16,14 @@ func (m *NotMatcher) Match(actual interface{}) (bool, error) { return !success, nil } -func (m *NotMatcher) FailureMessage(actual interface{}) (message string) { +func (m *NotMatcher) FailureMessage(actual any) (message string) { return m.Matcher.NegatedFailureMessage(actual) // works beautifully } -func (m *NotMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (m *NotMatcher) NegatedFailureMessage(actual any) (message string) { return m.Matcher.FailureMessage(actual) // works beautifully } -func (m *NotMatcher) MatchMayChangeInTheFuture(actual interface{}) bool { +func (m *NotMatcher) MatchMayChangeInTheFuture(actual any) bool { return types.MatchMayChangeInTheFuture(m.Matcher, actual) // just return m.Matcher's value } diff --git a/vendor/github.com/onsi/gomega/matchers/or.go b/vendor/github.com/onsi/gomega/matchers/or.go index 841ae26ab..6578404b0 100644 --- a/vendor/github.com/onsi/gomega/matchers/or.go +++ b/vendor/github.com/onsi/gomega/matchers/or.go @@ -14,7 +14,7 @@ type OrMatcher struct { firstSuccessfulMatcher types.GomegaMatcher } -func (m *OrMatcher) Match(actual interface{}) (success bool, err error) { +func (m *OrMatcher) Match(actual any) (success bool, err error) { m.firstSuccessfulMatcher = nil for _, matcher := range m.Matchers { success, err := matcher.Match(actual) @@ -29,16 +29,16 @@ func (m *OrMatcher) Match(actual interface{}) (success bool, err error) { return false, nil } -func (m *OrMatcher) FailureMessage(actual interface{}) (message string) { +func (m *OrMatcher) FailureMessage(actual any) (message string) { // not the most beautiful list of matchers, but not bad either... return format.Message(actual, fmt.Sprintf("To satisfy at least one of these matchers: %s", m.Matchers)) } -func (m *OrMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (m *OrMatcher) NegatedFailureMessage(actual any) (message string) { return m.firstSuccessfulMatcher.NegatedFailureMessage(actual) } -func (m *OrMatcher) MatchMayChangeInTheFuture(actual interface{}) bool { +func (m *OrMatcher) MatchMayChangeInTheFuture(actual any) bool { /* Example with 3 matchers: A, B, C diff --git a/vendor/github.com/onsi/gomega/matchers/panic_matcher.go b/vendor/github.com/onsi/gomega/matchers/panic_matcher.go index adc8cee63..8be5a7ccf 100644 --- a/vendor/github.com/onsi/gomega/matchers/panic_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/panic_matcher.go @@ -8,11 +8,11 @@ import ( ) type PanicMatcher struct { - Expected interface{} - object interface{} + Expected any + object any } -func (matcher *PanicMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *PanicMatcher) Match(actual any) (success bool, err error) { if actual == nil { return false, fmt.Errorf("PanicMatcher expects a non-nil actual.") } @@ -52,7 +52,7 @@ func (matcher *PanicMatcher) Match(actual interface{}) (success bool, err error) return } -func (matcher *PanicMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *PanicMatcher) FailureMessage(actual any) (message string) { if matcher.Expected == nil { // We wanted any panic to occur, but none did. return format.Message(actual, "to panic") @@ -91,7 +91,7 @@ func (matcher *PanicMatcher) FailureMessage(actual interface{}) (message string) } } -func (matcher *PanicMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *PanicMatcher) NegatedFailureMessage(actual any) (message string) { if matcher.Expected == nil { // We didn't want any panic to occur, but one did. return format.Message(actual, fmt.Sprintf("not to panic, but panicked with\n%s", format.Object(matcher.object, 1))) diff --git a/vendor/github.com/onsi/gomega/matchers/receive_matcher.go b/vendor/github.com/onsi/gomega/matchers/receive_matcher.go index 948164eaf..1d9f61d63 100644 --- a/vendor/github.com/onsi/gomega/matchers/receive_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/receive_matcher.go @@ -11,12 +11,12 @@ import ( ) type ReceiveMatcher struct { - Args []interface{} + Args []any receivedValue reflect.Value channelClosed bool } -func (matcher *ReceiveMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *ReceiveMatcher) Match(actual any) (success bool, err error) { if !isChan(actual) { return false, fmt.Errorf("ReceiveMatcher expects a channel. Got:\n%s", format.Object(actual, 1)) } @@ -30,7 +30,7 @@ func (matcher *ReceiveMatcher) Match(actual interface{}) (success bool, err erro var subMatcher omegaMatcher var hasSubMatcher bool - var resultReference interface{} + var resultReference any // Valid arg formats are as follows, always with optional POINTER before // optional MATCHER: @@ -115,8 +115,8 @@ func (matcher *ReceiveMatcher) Match(actual interface{}) (success bool, err erro return false, nil } -func (matcher *ReceiveMatcher) FailureMessage(actual interface{}) (message string) { - var matcherArg interface{} +func (matcher *ReceiveMatcher) FailureMessage(actual any) (message string) { + var matcherArg any if len(matcher.Args) > 0 { matcherArg = matcher.Args[len(matcher.Args)-1] } @@ -136,8 +136,8 @@ func (matcher *ReceiveMatcher) FailureMessage(actual interface{}) (message strin return format.Message(actual, "to receive something."+closedAddendum) } -func (matcher *ReceiveMatcher) NegatedFailureMessage(actual interface{}) (message string) { - var matcherArg interface{} +func (matcher *ReceiveMatcher) NegatedFailureMessage(actual any) (message string) { + var matcherArg any if len(matcher.Args) > 0 { matcherArg = matcher.Args[len(matcher.Args)-1] } @@ -157,7 +157,7 @@ func (matcher *ReceiveMatcher) NegatedFailureMessage(actual interface{}) (messag return format.Message(actual, "not to receive anything."+closedAddendum) } -func (matcher *ReceiveMatcher) MatchMayChangeInTheFuture(actual interface{}) bool { +func (matcher *ReceiveMatcher) MatchMayChangeInTheFuture(actual any) bool { if !isChan(actual) { return false } diff --git a/vendor/github.com/onsi/gomega/matchers/satisfy_matcher.go b/vendor/github.com/onsi/gomega/matchers/satisfy_matcher.go index ec68fe8b6..2adc4825a 100644 --- a/vendor/github.com/onsi/gomega/matchers/satisfy_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/satisfy_matcher.go @@ -8,13 +8,13 @@ import ( ) type SatisfyMatcher struct { - Predicate interface{} + Predicate any // cached type predicateArgType reflect.Type } -func NewSatisfyMatcher(predicate interface{}) *SatisfyMatcher { +func NewSatisfyMatcher(predicate any) *SatisfyMatcher { if predicate == nil { panic("predicate cannot be nil") } @@ -35,7 +35,7 @@ func NewSatisfyMatcher(predicate interface{}) *SatisfyMatcher { } } -func (m *SatisfyMatcher) Match(actual interface{}) (success bool, err error) { +func (m *SatisfyMatcher) Match(actual any) (success bool, err error) { // prepare a parameter to pass to the predicate var param reflect.Value if actual != nil && reflect.TypeOf(actual).AssignableTo(m.predicateArgType) { @@ -57,10 +57,10 @@ func (m *SatisfyMatcher) Match(actual interface{}) (success bool, err error) { return result[0].Bool(), nil } -func (m *SatisfyMatcher) FailureMessage(actual interface{}) (message string) { +func (m *SatisfyMatcher) FailureMessage(actual any) (message string) { return format.Message(actual, "to satisfy predicate", m.Predicate) } -func (m *SatisfyMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (m *SatisfyMatcher) NegatedFailureMessage(actual any) (message string) { return format.Message(actual, "to not satisfy predicate", m.Predicate) } diff --git a/vendor/github.com/onsi/gomega/matchers/semi_structured_data_support.go b/vendor/github.com/onsi/gomega/matchers/semi_structured_data_support.go index 1369c1e87..30dd58f4a 100644 --- a/vendor/github.com/onsi/gomega/matchers/semi_structured_data_support.go +++ b/vendor/github.com/onsi/gomega/matchers/semi_structured_data_support.go @@ -8,7 +8,7 @@ import ( "strings" ) -func formattedMessage(comparisonMessage string, failurePath []interface{}) string { +func formattedMessage(comparisonMessage string, failurePath []any) string { var diffMessage string if len(failurePath) == 0 { diffMessage = "" @@ -18,7 +18,7 @@ func formattedMessage(comparisonMessage string, failurePath []interface{}) strin return fmt.Sprintf("%s%s", comparisonMessage, diffMessage) } -func formattedFailurePath(failurePath []interface{}) string { +func formattedFailurePath(failurePath []any) string { formattedPaths := []string{} for i := len(failurePath) - 1; i >= 0; i-- { switch p := failurePath[i].(type) { @@ -34,33 +34,33 @@ func formattedFailurePath(failurePath []interface{}) string { return strings.Join(formattedPaths, "") } -func deepEqual(a interface{}, b interface{}) (bool, []interface{}) { - var errorPath []interface{} +func deepEqual(a any, b any) (bool, []any) { + var errorPath []any if reflect.TypeOf(a) != reflect.TypeOf(b) { return false, errorPath } switch a.(type) { - case []interface{}: - if len(a.([]interface{})) != len(b.([]interface{})) { + case []any: + if len(a.([]any)) != len(b.([]any)) { return false, errorPath } - for i, v := range a.([]interface{}) { - elementEqual, keyPath := deepEqual(v, b.([]interface{})[i]) + for i, v := range a.([]any) { + elementEqual, keyPath := deepEqual(v, b.([]any)[i]) if !elementEqual { return false, append(keyPath, i) } } return true, errorPath - case map[interface{}]interface{}: - if len(a.(map[interface{}]interface{})) != len(b.(map[interface{}]interface{})) { + case map[any]any: + if len(a.(map[any]any)) != len(b.(map[any]any)) { return false, errorPath } - for k, v1 := range a.(map[interface{}]interface{}) { - v2, ok := b.(map[interface{}]interface{})[k] + for k, v1 := range a.(map[any]any) { + v2, ok := b.(map[any]any)[k] if !ok { return false, errorPath } @@ -71,13 +71,13 @@ func deepEqual(a interface{}, b interface{}) (bool, []interface{}) { } return true, errorPath - case map[string]interface{}: - if len(a.(map[string]interface{})) != len(b.(map[string]interface{})) { + case map[string]any: + if len(a.(map[string]any)) != len(b.(map[string]any)) { return false, errorPath } - for k, v1 := range a.(map[string]interface{}) { - v2, ok := b.(map[string]interface{})[k] + for k, v1 := range a.(map[string]any) { + v2, ok := b.(map[string]any)[k] if !ok { return false, errorPath } diff --git a/vendor/github.com/onsi/gomega/matchers/succeed_matcher.go b/vendor/github.com/onsi/gomega/matchers/succeed_matcher.go index 327350f7b..f0b2c4aa6 100644 --- a/vendor/github.com/onsi/gomega/matchers/succeed_matcher.go +++ b/vendor/github.com/onsi/gomega/matchers/succeed_matcher.go @@ -14,7 +14,7 @@ type formattedGomegaError interface { type SucceedMatcher struct { } -func (matcher *SucceedMatcher) Match(actual interface{}) (success bool, err error) { +func (matcher *SucceedMatcher) Match(actual any) (success bool, err error) { // is purely nil? if actual == nil { return true, nil @@ -29,7 +29,7 @@ func (matcher *SucceedMatcher) Match(actual interface{}) (success bool, err erro return isNil(actual), nil } -func (matcher *SucceedMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher *SucceedMatcher) FailureMessage(actual any) (message string) { var fgErr formattedGomegaError if errors.As(actual.(error), &fgErr) { return fgErr.FormattedGomegaError() @@ -37,6 +37,6 @@ func (matcher *SucceedMatcher) FailureMessage(actual interface{}) (message strin return fmt.Sprintf("Expected success, but got an error:\n%s", format.Object(actual, 1)) } -func (matcher *SucceedMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher *SucceedMatcher) NegatedFailureMessage(actual any) (message string) { return "Expected failure, but got no error." } diff --git a/vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph/bipartitegraph.go b/vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph/bipartitegraph.go index 830e30827..0d78779d4 100644 --- a/vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph/bipartitegraph.go +++ b/vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph/bipartitegraph.go @@ -11,7 +11,7 @@ type BipartiteGraph struct { Edges EdgeSet } -func NewBipartiteGraph(leftValues, rightValues []interface{}, neighbours func(interface{}, interface{}) (bool, error)) (*BipartiteGraph, error) { +func NewBipartiteGraph(leftValues, rightValues []any, neighbours func(any, any) (bool, error)) (*BipartiteGraph, error) { left := NodeOrderedSet{} for i, v := range leftValues { left = append(left, Node{ID: i, Value: v}) @@ -41,7 +41,7 @@ func NewBipartiteGraph(leftValues, rightValues []interface{}, neighbours func(in // FreeLeftRight returns left node values and right node values // of the BipartiteGraph's nodes which are not part of the given edges. -func (bg *BipartiteGraph) FreeLeftRight(edges EdgeSet) (leftValues, rightValues []interface{}) { +func (bg *BipartiteGraph) FreeLeftRight(edges EdgeSet) (leftValues, rightValues []any) { for _, node := range bg.Left { if edges.Free(node) { leftValues = append(leftValues, node.Value) diff --git a/vendor/github.com/onsi/gomega/matchers/support/goraph/edge/edge.go b/vendor/github.com/onsi/gomega/matchers/support/goraph/edge/edge.go index 8c38411b2..72edba20f 100644 --- a/vendor/github.com/onsi/gomega/matchers/support/goraph/edge/edge.go +++ b/vendor/github.com/onsi/gomega/matchers/support/goraph/edge/edge.go @@ -1,6 +1,9 @@ package edge -import . "github.com/onsi/gomega/matchers/support/goraph/node" +import ( + . "github.com/onsi/gomega/matchers/support/goraph/node" + "slices" +) type Edge struct { Node1 int @@ -20,13 +23,7 @@ func (ec EdgeSet) Free(node Node) bool { } func (ec EdgeSet) Contains(edge Edge) bool { - for _, e := range ec { - if e == edge { - return true - } - } - - return false + return slices.Contains(ec, edge) } func (ec EdgeSet) FindByNodes(node1, node2 Node) (Edge, bool) { diff --git a/vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go b/vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go index cd597a2f2..66d3578d5 100644 --- a/vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go +++ b/vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go @@ -2,7 +2,7 @@ package node type Node struct { ID int - Value interface{} + Value any } type NodeOrderedSet []Node diff --git a/vendor/github.com/onsi/gomega/matchers/type_support.go b/vendor/github.com/onsi/gomega/matchers/type_support.go index b9440ac7a..d020dedc3 100644 --- a/vendor/github.com/onsi/gomega/matchers/type_support.go +++ b/vendor/github.com/onsi/gomega/matchers/type_support.go @@ -20,16 +20,16 @@ import ( ) type omegaMatcher interface { - Match(actual interface{}) (success bool, err error) - FailureMessage(actual interface{}) (message string) - NegatedFailureMessage(actual interface{}) (message string) + Match(actual any) (success bool, err error) + FailureMessage(actual any) (message string) + NegatedFailureMessage(actual any) (message string) } -func isBool(a interface{}) bool { +func isBool(a any) bool { return reflect.TypeOf(a).Kind() == reflect.Bool } -func isNumber(a interface{}) bool { +func isNumber(a any) bool { if a == nil { return false } @@ -37,22 +37,22 @@ func isNumber(a interface{}) bool { return reflect.Int <= kind && kind <= reflect.Float64 } -func isInteger(a interface{}) bool { +func isInteger(a any) bool { kind := reflect.TypeOf(a).Kind() return reflect.Int <= kind && kind <= reflect.Int64 } -func isUnsignedInteger(a interface{}) bool { +func isUnsignedInteger(a any) bool { kind := reflect.TypeOf(a).Kind() return reflect.Uint <= kind && kind <= reflect.Uint64 } -func isFloat(a interface{}) bool { +func isFloat(a any) bool { kind := reflect.TypeOf(a).Kind() return reflect.Float32 <= kind && kind <= reflect.Float64 } -func toInteger(a interface{}) int64 { +func toInteger(a any) int64 { if isInteger(a) { return reflect.ValueOf(a).Int() } else if isUnsignedInteger(a) { @@ -63,7 +63,7 @@ func toInteger(a interface{}) int64 { panic(fmt.Sprintf("Expected a number! Got <%T> %#v", a, a)) } -func toUnsignedInteger(a interface{}) uint64 { +func toUnsignedInteger(a any) uint64 { if isInteger(a) { return uint64(reflect.ValueOf(a).Int()) } else if isUnsignedInteger(a) { @@ -74,7 +74,7 @@ func toUnsignedInteger(a interface{}) uint64 { panic(fmt.Sprintf("Expected a number! Got <%T> %#v", a, a)) } -func toFloat(a interface{}) float64 { +func toFloat(a any) float64 { if isInteger(a) { return float64(reflect.ValueOf(a).Int()) } else if isUnsignedInteger(a) { @@ -85,26 +85,26 @@ func toFloat(a interface{}) float64 { panic(fmt.Sprintf("Expected a number! Got <%T> %#v", a, a)) } -func isError(a interface{}) bool { +func isError(a any) bool { _, ok := a.(error) return ok } -func isChan(a interface{}) bool { +func isChan(a any) bool { if isNil(a) { return false } return reflect.TypeOf(a).Kind() == reflect.Chan } -func isMap(a interface{}) bool { +func isMap(a any) bool { if a == nil { return false } return reflect.TypeOf(a).Kind() == reflect.Map } -func isArrayOrSlice(a interface{}) bool { +func isArrayOrSlice(a any) bool { if a == nil { return false } @@ -116,14 +116,14 @@ func isArrayOrSlice(a interface{}) bool { } } -func isString(a interface{}) bool { +func isString(a any) bool { if a == nil { return false } return reflect.TypeOf(a).Kind() == reflect.String } -func toString(a interface{}) (string, bool) { +func toString(a any) (string, bool) { aString, isString := a.(string) if isString { return aString, true @@ -147,7 +147,7 @@ func toString(a interface{}) (string, bool) { return "", false } -func lengthOf(a interface{}) (int, bool) { +func lengthOf(a any) (int, bool) { if a == nil { return 0, false } @@ -169,7 +169,7 @@ func lengthOf(a interface{}) (int, bool) { return 0, false } } -func capOf(a interface{}) (int, bool) { +func capOf(a any) (int, bool) { if a == nil { return 0, false } @@ -181,7 +181,7 @@ func capOf(a interface{}) (int, bool) { } } -func isNil(a interface{}) bool { +func isNil(a any) bool { if a == nil { return true } diff --git a/vendor/github.com/onsi/gomega/matchers/with_transform.go b/vendor/github.com/onsi/gomega/matchers/with_transform.go index 6f743b1b3..6231c3b47 100644 --- a/vendor/github.com/onsi/gomega/matchers/with_transform.go +++ b/vendor/github.com/onsi/gomega/matchers/with_transform.go @@ -9,20 +9,20 @@ import ( type WithTransformMatcher struct { // input - Transform interface{} // must be a function of one parameter that returns one value and an optional error + Transform any // must be a function of one parameter that returns one value and an optional error Matcher types.GomegaMatcher // cached value transformArgType reflect.Type // state - transformedValue interface{} + transformedValue any } // reflect.Type for error var errorT = reflect.TypeOf((*error)(nil)).Elem() -func NewWithTransformMatcher(transform interface{}, matcher types.GomegaMatcher) *WithTransformMatcher { +func NewWithTransformMatcher(transform any, matcher types.GomegaMatcher) *WithTransformMatcher { if transform == nil { panic("transform function cannot be nil") } @@ -43,7 +43,7 @@ func NewWithTransformMatcher(transform interface{}, matcher types.GomegaMatcher) } } -func (m *WithTransformMatcher) Match(actual interface{}) (bool, error) { +func (m *WithTransformMatcher) Match(actual any) (bool, error) { // prepare a parameter to pass to the Transform function var param reflect.Value if actual != nil && reflect.TypeOf(actual).AssignableTo(m.transformArgType) { @@ -72,15 +72,15 @@ func (m *WithTransformMatcher) Match(actual interface{}) (bool, error) { return m.Matcher.Match(m.transformedValue) } -func (m *WithTransformMatcher) FailureMessage(_ interface{}) (message string) { +func (m *WithTransformMatcher) FailureMessage(_ any) (message string) { return m.Matcher.FailureMessage(m.transformedValue) } -func (m *WithTransformMatcher) NegatedFailureMessage(_ interface{}) (message string) { +func (m *WithTransformMatcher) NegatedFailureMessage(_ any) (message string) { return m.Matcher.NegatedFailureMessage(m.transformedValue) } -func (m *WithTransformMatcher) MatchMayChangeInTheFuture(_ interface{}) bool { +func (m *WithTransformMatcher) MatchMayChangeInTheFuture(_ any) bool { // TODO: Maybe this should always just return true? (Only an issue for non-deterministic transformers.) // // Querying the next matcher is fine if the transformer always will return the same value. diff --git a/vendor/github.com/onsi/gomega/types/types.go b/vendor/github.com/onsi/gomega/types/types.go index 30f2beed3..685a46f37 100644 --- a/vendor/github.com/onsi/gomega/types/types.go +++ b/vendor/github.com/onsi/gomega/types/types.go @@ -10,20 +10,20 @@ type GomegaFailHandler func(message string, callerSkip ...int) // A simple *testing.T interface wrapper type GomegaTestingT interface { Helper() - Fatalf(format string, args ...interface{}) + Fatalf(format string, args ...any) } -// Gomega represents an object that can perform synchronous and assynchronous assertions with Gomega matchers +// Gomega represents an object that can perform synchronous and asynchronous assertions with Gomega matchers type Gomega interface { - Ω(actual interface{}, extra ...interface{}) Assertion - Expect(actual interface{}, extra ...interface{}) Assertion - ExpectWithOffset(offset int, actual interface{}, extra ...interface{}) Assertion + Ω(actual any, extra ...any) Assertion + Expect(actual any, extra ...any) Assertion + ExpectWithOffset(offset int, actual any, extra ...any) Assertion - Eventually(actualOrCtx interface{}, args ...interface{}) AsyncAssertion - EventuallyWithOffset(offset int, actualOrCtx interface{}, args ...interface{}) AsyncAssertion + Eventually(actualOrCtx any, args ...any) AsyncAssertion + EventuallyWithOffset(offset int, actualOrCtx any, args ...any) AsyncAssertion - Consistently(actualOrCtx interface{}, args ...interface{}) AsyncAssertion - ConsistentlyWithOffset(offset int, actualOrCtx interface{}, args ...interface{}) AsyncAssertion + Consistently(actualOrCtx any, args ...any) AsyncAssertion + ConsistentlyWithOffset(offset int, actualOrCtx any, args ...any) AsyncAssertion SetDefaultEventuallyTimeout(time.Duration) SetDefaultEventuallyPollingInterval(time.Duration) @@ -37,9 +37,9 @@ type Gomega interface { // // For details on writing custom matchers, check out: http://onsi.github.io/gomega/#adding-your-own-matchers type GomegaMatcher interface { - Match(actual interface{}) (success bool, err error) - FailureMessage(actual interface{}) (message string) - NegatedFailureMessage(actual interface{}) (message string) + Match(actual any) (success bool, err error) + FailureMessage(actual any) (message string) + NegatedFailureMessage(actual any) (message string) } /* @@ -52,10 +52,10 @@ For example, a process' exit code can never change. So, gexec's Exit matcher re for `MatchMayChangeInTheFuture` until the process exits, at which point it returns `false` forevermore. */ type OracleMatcher interface { - MatchMayChangeInTheFuture(actual interface{}) bool + MatchMayChangeInTheFuture(actual any) bool } -func MatchMayChangeInTheFuture(matcher GomegaMatcher, value interface{}) bool { +func MatchMayChangeInTheFuture(matcher GomegaMatcher, value any) bool { oracleMatcher, ok := matcher.(OracleMatcher) if !ok { return true @@ -67,8 +67,13 @@ func MatchMayChangeInTheFuture(matcher GomegaMatcher, value interface{}) bool { // AsyncAssertions are returned by Eventually and Consistently and enable matchers to be polled repeatedly to ensure // they are eventually satisfied type AsyncAssertion interface { - Should(matcher GomegaMatcher, optionalDescription ...interface{}) bool - ShouldNot(matcher GomegaMatcher, optionalDescription ...interface{}) bool + Should(matcher GomegaMatcher, optionalDescription ...any) bool + ShouldNot(matcher GomegaMatcher, optionalDescription ...any) bool + + // equivalent to above + To(matcher GomegaMatcher, optionalDescription ...any) bool + ToNot(matcher GomegaMatcher, optionalDescription ...any) bool + NotTo(matcher GomegaMatcher, optionalDescription ...any) bool WithOffset(offset int) AsyncAssertion WithTimeout(interval time.Duration) AsyncAssertion @@ -76,18 +81,18 @@ type AsyncAssertion interface { Within(timeout time.Duration) AsyncAssertion ProbeEvery(interval time.Duration) AsyncAssertion WithContext(ctx context.Context) AsyncAssertion - WithArguments(argsToForward ...interface{}) AsyncAssertion + WithArguments(argsToForward ...any) AsyncAssertion MustPassRepeatedly(count int) AsyncAssertion } // Assertions are returned by Ω and Expect and enable assertions against Gomega matchers type Assertion interface { - Should(matcher GomegaMatcher, optionalDescription ...interface{}) bool - ShouldNot(matcher GomegaMatcher, optionalDescription ...interface{}) bool + Should(matcher GomegaMatcher, optionalDescription ...any) bool + ShouldNot(matcher GomegaMatcher, optionalDescription ...any) bool - To(matcher GomegaMatcher, optionalDescription ...interface{}) bool - ToNot(matcher GomegaMatcher, optionalDescription ...interface{}) bool - NotTo(matcher GomegaMatcher, optionalDescription ...interface{}) bool + To(matcher GomegaMatcher, optionalDescription ...any) bool + ToNot(matcher GomegaMatcher, optionalDescription ...any) bool + NotTo(matcher GomegaMatcher, optionalDescription ...any) bool WithOffset(offset int) Assertion diff --git a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mariadbarchiver_helpers.go b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mariadbarchiver_helpers.go index ddb4418ed..e725795a3 100644 --- a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mariadbarchiver_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mariadbarchiver_helpers.go @@ -35,7 +35,7 @@ func (m *MariaDBArchiver) GetConsumers() *api.AllowedConsumers { var _ ListAccessor = &MariaDBArchiverList{} func (l *MariaDBArchiverList) GetItems() []Accessor { - var accessors []Accessor + accessors := make([]Accessor, 0, len(l.Items)) for _, item := range l.Items { accessors = append(accessors, &item) } diff --git a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mongodbarchiver_helpers.go b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mongodbarchiver_helpers.go index 7b2eeaa51..f308df651 100644 --- a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mongodbarchiver_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mongodbarchiver_helpers.go @@ -35,7 +35,7 @@ func (m *MongoDBArchiver) GetConsumers() *api.AllowedConsumers { var _ ListAccessor = MongoDBArchiverList{} func (l MongoDBArchiverList) GetItems() []Accessor { - var accessors []Accessor + accessors := make([]Accessor, 0, len(l.Items)) for _, item := range l.Items { accessors = append(accessors, &item) } diff --git a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mssqlserverarchiver_helpers.go b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mssqlserverarchiver_helpers.go index 98d6cd0af..13b466383 100644 --- a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mssqlserverarchiver_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mssqlserverarchiver_helpers.go @@ -35,7 +35,7 @@ func (m *MSSQLServerArchiver) GetConsumers() *api.AllowedConsumers { var _ ListAccessor = MSSQLServerArchiverList{} func (l MSSQLServerArchiverList) GetItems() []Accessor { - var accessors []Accessor + accessors := make([]Accessor, 0, len(l.Items)) for _, item := range l.Items { accessors = append(accessors, &item) } diff --git a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mysqlarchiver_helpers.go b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mysqlarchiver_helpers.go index 6e6794b68..7901e0177 100644 --- a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mysqlarchiver_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/mysqlarchiver_helpers.go @@ -35,7 +35,7 @@ func (m *MySQLArchiver) GetConsumers() *api.AllowedConsumers { var _ ListAccessor = MySQLArchiverList{} func (l MySQLArchiverList) GetItems() []Accessor { - var accessors []Accessor + accessors := make([]Accessor, 0, len(l.Items)) for _, item := range l.Items { accessors = append(accessors, &item) } diff --git a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/postgresarchiver_helpers.go b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/postgresarchiver_helpers.go index cd22f901e..47c6f6476 100644 --- a/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/postgresarchiver_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/archiver/v1alpha1/postgresarchiver_helpers.go @@ -35,7 +35,7 @@ func (m *PostgresArchiver) GetConsumers() *api.AllowedConsumers { var _ ListAccessor = PostgresArchiverList{} func (l PostgresArchiverList) GetItems() []Accessor { - var accessors []Accessor + accessors := make([]Accessor, 0, len(l.Items)) for _, item := range l.Items { accessors = append(accessors, &item) } diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/register.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/register.go index f6eca1276..f2f767d5b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/register.go @@ -53,7 +53,8 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &AerospikeAutoscaler{}, &AerospikeAutoscalerList{}, &CassandraAutoscaler{}, @@ -120,7 +121,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ZooKeeperAutoscalerList{}, ) - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &metav1.Status{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) 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 d6a13401a..fb7fb3e40 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 @@ -17,7 +17,7 @@ limitations under the License. package v1alpha1 import ( - "kubedb.dev/apimachinery/apis/migrator/v1alpha1" + "kubedb.dev/apimachinery/apis/courier/v1alpha1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" appcat "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" @@ -90,9 +90,9 @@ type MariaDBVersionSpec struct { Archiver ArchiverSpec `json:"archiver,omitempty"` // +optional UI []ChartInfo `json:"ui,omitempty"` - // Migrator defines the migration related CLI/Tools images for this MariaDB version + // Courier defines the courier related CLI/Tools images for this MariaDB version // +optional - Migrator v1alpha1.DBMigratorImages `json:"migrator,omitempty"` + Courier v1alpha1.DBCourierImages `json:"courier,omitempty"` } // MariaDBVersionDatabase is the mariadb image diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mongodb_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mongodb_version_types.go index ef9d44a3e..afefcca74 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mongodb_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mongodb_version_types.go @@ -17,7 +17,7 @@ limitations under the License. package v1alpha1 import ( - "kubedb.dev/apimachinery/apis/migrator/v1alpha1" + "kubedb.dev/apimachinery/apis/courier/v1alpha1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" appcat "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" @@ -89,9 +89,9 @@ type MongoDBVersionSpec struct { Archiver ArchiverSpec `json:"archiver,omitempty"` // +optional UI []ChartInfo `json:"ui,omitempty"` - // Migrator defines the migration related CLI/Tools images for this MongoDB version + // Courier defines the courier related CLI/Tools images for this MongoDB version // +optional - Migrator v1alpha1.DBMigratorImages `json:"migrator,omitempty"` + Courier v1alpha1.DBCourierImages `json:"courier,omitempty"` } // MongoDBVersionDatabase is the MongoDB Database image @@ -140,4 +140,5 @@ const ( MongoDBDistroOfficaial MongoDBDistro = "Official" MongoDBDistroPercona MongoDBDistro = "Percona" MongoDBDistroKubeDB MongoDBDistro = "KubeDB" + MongoDBDistroMongoDB MongoDBDistro = "MongoDB" ) diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssqlserver_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssqlserver_version_types.go index 873b957bf..a04455a09 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssqlserver_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mssqlserver_version_types.go @@ -17,6 +17,8 @@ limitations under the License. package v1alpha1 import ( + "kubedb.dev/apimachinery/apis/courier/v1alpha1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -85,6 +87,9 @@ type MSSQLServerVersionSpec struct { // +optional GitSyncer GitSyncer `json:"gitSyncer,omitempty"` + // Courier defines the courier related CLI/Tools images for this MySQL version + // +optional + Courier v1alpha1.DBCourierImages `json:"courier,omitempty"` } // MSSQLServerDatabase is the MSSQLServer Database image diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mysql_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mysql_version_types.go index a1667ddef..f69515e35 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mysql_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/mysql_version_types.go @@ -17,7 +17,7 @@ limitations under the License. package v1alpha1 import ( - "kubedb.dev/apimachinery/apis/migrator/v1alpha1" + "kubedb.dev/apimachinery/apis/courier/v1alpha1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" appcat "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" @@ -97,9 +97,9 @@ type MySQLVersionSpec struct { Archiver ArchiverSpec `json:"archiver,omitempty"` // +optional UI []ChartInfo `json:"ui,omitempty"` - // Migrator defines the migration related CLI/Tools images for this MySQL version + // Courier defines the courier related CLI/Tools images for this MySQL version // +optional - Migrator v1alpha1.DBMigratorImages `json:"migrator,omitempty"` + Courier v1alpha1.DBCourierImages `json:"courier,omitempty"` } // MySQLVersionDatabase is the MySQL Database image 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 8539ca81b..49a8e7766 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go @@ -37088,12 +37088,19 @@ func schema_apimachinery_apis_catalog_v1alpha1_MSSQLServerVersionSpec(ref common Ref: ref("kubedb.dev/apimachinery/apis/catalog/v1alpha1.GitSyncer"), }, }, + "courier": { + SchemaProps: spec.SchemaProps{ + Description: "Courier defines the courier related CLI/Tools images for this MySQL version", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierImages"), + }, + }, }, Required: []string{"version", "db", "coordinator", "exporter", "initContainer"}, }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ArchiverSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.GitSyncer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MSSQLServerCoordinator", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MSSQLServerDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MSSQLServerInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MSSQLServerVersionExporter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.UpdateConstraints"}, + "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ArchiverSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.GitSyncer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MSSQLServerCoordinator", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MSSQLServerDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MSSQLServerInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MSSQLServerVersionExporter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.UpdateConstraints", "kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierImages"}, } } @@ -37480,11 +37487,11 @@ func schema_apimachinery_apis_catalog_v1alpha1_MariaDBVersionSpec(ref common.Ref }, }, }, - "migrator": { + "courier": { SchemaProps: spec.SchemaProps{ - Description: "Migrator defines the migration related CLI/Tools images for this MariaDB version", + Description: "Courier defines the courier related CLI/Tools images for this MariaDB version", Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorImages"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierImages"), }, }, }, @@ -37492,7 +37499,7 @@ func schema_apimachinery_apis_catalog_v1alpha1_MariaDBVersionSpec(ref common.Ref }, }, Dependencies: []string{ - "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.StashAddonSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ArchiverSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.GitSyncer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionCoordinator", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionExporter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionMaxscale", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionPodSecurityPolicy", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.UpdateConstraints", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorImages"}, + "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.StashAddonSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ArchiverSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.GitSyncer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionCoordinator", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionExporter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionMaxscale", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MariaDBVersionPodSecurityPolicy", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.UpdateConstraints", "kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierImages"}, } } @@ -38242,11 +38249,11 @@ func schema_apimachinery_apis_catalog_v1alpha1_MongoDBVersionSpec(ref common.Ref }, }, }, - "migrator": { + "courier": { SchemaProps: spec.SchemaProps{ - Description: "Migrator defines the migration related CLI/Tools images for this MongoDB version", + Description: "Courier defines the courier related CLI/Tools images for this MongoDB version", Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorImages"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierImages"), }, }, }, @@ -38254,7 +38261,7 @@ func schema_apimachinery_apis_catalog_v1alpha1_MongoDBVersionSpec(ref common.Ref }, }, Dependencies: []string{ - "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.StashAddonSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ArchiverSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.GitSyncer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MongoDBSecurityContext", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MongoDBVersionDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MongoDBVersionExporter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MongoDBVersionInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MongoDBVersionPodSecurityPolicy", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ReplicationModeDetector", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.UpdateConstraints", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorImages"}, + "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.StashAddonSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ArchiverSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.GitSyncer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MongoDBSecurityContext", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MongoDBVersionDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MongoDBVersionExporter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MongoDBVersionInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MongoDBVersionPodSecurityPolicy", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ReplicationModeDetector", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.UpdateConstraints", "kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierImages"}, } } @@ -38745,11 +38752,11 @@ func schema_apimachinery_apis_catalog_v1alpha1_MySQLVersionSpec(ref common.Refer }, }, }, - "migrator": { + "courier": { SchemaProps: spec.SchemaProps{ - Description: "Migrator defines the migration related CLI/Tools images for this MySQL version", + Description: "Courier defines the courier related CLI/Tools images for this MySQL version", Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorImages"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierImages"), }, }, }, @@ -38757,7 +38764,7 @@ func schema_apimachinery_apis_catalog_v1alpha1_MySQLVersionSpec(ref common.Refer }, }, Dependencies: []string{ - "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.StashAddonSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ArchiverSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.GitSyncer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLUpdateConstraints", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionCoordinator", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionExporter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionPodSecurityPolicy", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionRouter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionRouterInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ReplicationModeDetector", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorImages"}, + "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.StashAddonSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ArchiverSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.GitSyncer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLUpdateConstraints", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionCoordinator", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionExporter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionPodSecurityPolicy", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionRouter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.MySQLVersionRouterInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ReplicationModeDetector", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.SecurityContext", "kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierImages"}, } } @@ -40500,11 +40507,11 @@ func schema_apimachinery_apis_catalog_v1alpha1_PostgresVersionSpec(ref common.Re }, }, }, - "migrator": { + "courier": { SchemaProps: spec.SchemaProps{ - Description: "Migrator defines the migration related CLI/Tools images for this Postgres version", + Description: "Courier defines the courier related CLI/Tools images for this Postgres version", Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorImages"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierImages"), }, }, }, @@ -40512,7 +40519,7 @@ func schema_apimachinery_apis_catalog_v1alpha1_PostgresVersionSpec(ref common.Re }, }, Dependencies: []string{ - "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.StashAddonSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ArchiverSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.GitSyncer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresSecurityContext", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionCoordinator", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionExporter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionPodSecurityPolicy", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionTLSSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.UpdateConstraints", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorImages"}, + "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1.StashAddonSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ArchiverSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.ChartInfo", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.GitSyncer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresSecurityContext", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionCoordinator", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionDatabase", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionExporter", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionInitContainer", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionPodSecurityPolicy", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.PostgresVersionTLSSpec", "kubedb.dev/apimachinery/apis/catalog/v1alpha1.UpdateConstraints", "kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierImages"}, } } diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/postgres_version_types.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/postgres_version_types.go index fd4a22eea..dc77092d6 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/postgres_version_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/postgres_version_types.go @@ -17,7 +17,7 @@ limitations under the License. package v1alpha1 import ( - "kubedb.dev/apimachinery/apis/migrator/v1alpha1" + "kubedb.dev/apimachinery/apis/courier/v1alpha1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" appcat "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" @@ -93,9 +93,9 @@ type PostgresVersionSpec struct { Archiver ArchiverSpec `json:"archiver,omitempty"` // +optional UI []ChartInfo `json:"ui,omitempty"` - // Migrator defines the migration related CLI/Tools images for this Postgres version + // Courier defines the courier related CLI/Tools images for this Postgres version // +optional - Migrator v1alpha1.DBMigratorImages `json:"migrator,omitempty"` + Courier v1alpha1.DBCourierImages `json:"courier,omitempty"` } // PostgresVersionInitContainer is the Postgres init container image diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/register.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/register.go index 4d1a9a7f2..70bf9bceb 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/register.go @@ -53,7 +53,8 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &AerospikeVersion{}, &AerospikeVersionList{}, &CassandraVersion{}, @@ -122,7 +123,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ZooKeeperVersionList{}, ) - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &metav1.Status{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) 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 28aa37ef7..85f369424 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 @@ -2079,6 +2079,7 @@ func (in *MSSQLServerVersionSpec) DeepCopyInto(out *MSSQLServerVersionSpec) { } } out.GitSyncer = in.GitSyncer + out.Courier = in.Courier return } @@ -2302,7 +2303,7 @@ func (in *MariaDBVersionSpec) DeepCopyInto(out *MariaDBVersionSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - out.Migrator = in.Migrator + out.Courier = in.Courier return } @@ -2724,7 +2725,7 @@ func (in *MongoDBVersionSpec) DeepCopyInto(out *MongoDBVersionSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - out.Migrator = in.Migrator + out.Courier = in.Courier return } @@ -3003,7 +3004,7 @@ func (in *MySQLVersionSpec) DeepCopyInto(out *MySQLVersionSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - out.Migrator = in.Migrator + out.Courier = in.Courier return } @@ -4002,7 +4003,7 @@ func (in *PostgresVersionSpec) DeepCopyInto(out *PostgresVersionSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - out.Migrator = in.Migrator + out.Courier = in.Courier return } diff --git a/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/register.go b/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/register.go index deeba4ccb..83a0b0533 100644 --- a/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/register.go @@ -53,13 +53,15 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &GaleraArbitratorConfiguration{}, &MongoDBConfiguration{}, &SinglestoreConfiguration{}, ) - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &metav1.Status{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/register.go b/vendor/kubedb.dev/apimachinery/apis/courier/register.go similarity index 94% rename from vendor/kubedb.dev/apimachinery/apis/migrator/register.go rename to vendor/kubedb.dev/apimachinery/apis/courier/register.go index cb9d6e2b1..457a77586 100644 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/courier/register.go @@ -14,11 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. */ -package migrator +package courier const ( // GroupName is the group name use in this package - GroupName = "migrator.kubedb.com" + GroupName = "courier.kubedb.com" // MutatorGroupName is the group name used to implement mutating webhooks for types in this package MutatorGroupName = "mutators." + GroupName // ValidatorGroupName is the group name used to implement validating webhooks for types in this package diff --git a/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/branch_types.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/branch_types.go new file mode 100644 index 000000000..c75b7c9d0 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/branch_types.go @@ -0,0 +1,291 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + kmapi "kmodules.xyz/client-go/api/v1" +) + +const ( + ResourceKindBranch = "Branch" + ResourceSingularBranch = "branch" + ResourcePluralBranches = "branches" + + // BranchCleanupFinalizer is set on a Branch when the operator adopts it and cleared only + // after ordered teardown finishes. + BranchCleanupFinalizer = "courier.kubedb.com/branch-cleanup" +) + +// +genclient +// +k8s:openapi-gen=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=branches,singular=branch,shortName=br,categories={kubedb,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Namespaced +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Mode",type="string",JSONPath=".status.mode" +// +kubebuilder:printcolumn:name="Target",type="string",JSONPath=".status.targetRef.name" +// +kubebuilder:printcolumn:name="Freshness",type="string",JSONPath=".status.freshness" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +type Branch struct { + metav1.TypeMeta `json:",inline"` + + // metadata is a standard object metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitzero"` + + // spec defines the desired state of Branch + // +required + Spec BranchSpec `json:"spec"` + + // status defines the observed state of Branch + // +optional + Status BranchStatus `json:"status,omitzero"` +} + +// BranchSpec defines the desired state of Branch. One Branch CR is one branch, and it doubles as the +// session object. +type BranchSpec struct { + // Source is the KubeDB Database whose storage is cloned. Branch has no external source. + Source BranchSource `json:"source"` + + // Target describes only what differs from the source: the target cluster, namespace, name, + // StorageClass, and cpu/memory. Everything else is copied from the source Database. + Target BranchTarget `json:"target"` + + // ResetRootPassword resets the branch's root password after provisioning, so the source's + // password does not unlock the branch. + // +optional + ResetRootPassword bool `json:"resetRootPassword,omitempty"` + + // DataMassageImage is an optional user-provided container run as the LAST step to massage or + // anonymize the branch data. + // +optional + DataMassageImage string `json:"dataMassageImage,omitempty"` + + // Schedule optionally refreshes the branch on a cron cadence. Omit for a one-shot branch. + // +optional + Schedule *BranchSchedule `json:"schedule,omitempty"` + + // HistoryLimit bounds status.history (default: last 3 successful, last 2 failed). + // +optional + HistoryLimit *BranchHistoryLimit `json:"historyLimit,omitempty"` + + // VolumeSnapshotClassName is the VolumeSnapshotClass used wherever courier creates a + // VolumeSnapshot — snapshotting the source PVCs and, for cross-namespace/cross-cluster + // branches, the importing snapshot in the target. It must match the CSI driver backing the + // volumes. When empty, courier auto-resolves the default class for the driver. + // +optional + VolumeSnapshotClassName string `json:"volumeSnapshotClassName,omitempty"` + + // DeletionPolicy decides the target's fate on Branch deletion. + // +kubebuilder:default=Delete + // +optional + DeletionPolicy BranchDeletionPolicy `json:"deletionPolicy,omitempty"` +} + +// BranchSource points at a KubeDB Database. +type BranchSource struct { + // DatabaseRef refers to the source KubeDB Database (kind and name). + DatabaseRef corev1.TypedLocalObjectReference `json:"databaseRef"` + + // Namespace of the source Database. Defaults to the Branch's namespace when empty. + // +optional + Namespace string `json:"namespace,omitempty"` +} + +// BranchTarget describes the target Database. spec.target.cluster equal to the source's cluster is a +// same-cluster branch; a different cluster is a cross-cluster branch. Omit cluster for a same-cluster +// (Local) branch. +type BranchTarget struct { + // ClusterName is the target cluster name. Empty (or equal to the source's own cluster) means a + // same-cluster (Local) branch; a different ClusterName selects cross-cluster (OCM). + // +optional + ClusterName string `json:"clusterName,omitempty"` + + // Namespace of the target Database. + Namespace string `json:"namespace"` + + // Name of the target Database. + Name string `json:"name"` + + // StorageClassName is the StorageClass in the TARGET cluster. + // +optional + StorageClassName string `json:"storageClassName,omitempty"` + + // Resources are the cpu/memory requests and limits in the TARGET cluster. + // +optional + Resources corev1.ResourceRequirements `json:"resources,omitempty"` + + // IssuerRef references a cert-manager Issuer or ClusterIssuer in the TARGET cluster. TLS secrets are + // namespace and cluster scoped, so a branch cannot reuse the source's; when the source Database has + // TLS enabled the operator points the branch's TLS at this issuer and KubeDB mints fresh + // certificates for the branch. Required for a TLS-enabled source, ignored otherwise. + // +optional + IssuerRef *corev1.TypedLocalObjectReference `json:"issuerRef,omitempty"` +} + +// BranchSchedule holds the refresh cadence. +type BranchSchedule struct { + // Cron is the refresh schedule in standard cron syntax. + Cron string `json:"cron"` +} + +// BranchHistoryLimit bounds status.history. +type BranchHistoryLimit struct { + // Success is the number of successful runs to retain (default 3). + // +kubebuilder:default=3 + // +optional + Success *int32 `json:"success,omitempty"` + + // Failed is the number of failed runs to retain (default 2). + // +kubebuilder:default=2 + // +optional + Failed *int32 `json:"failed,omitempty"` +} + +// BranchDeletionPolicy decides the target Database's fate on Branch deletion. +// +kubebuilder:validation:Enum=Delete;Orphan +type BranchDeletionPolicy string + +const ( + // BranchDeletionPolicyDelete tears the branch down (default). + BranchDeletionPolicyDelete BranchDeletionPolicy = "Delete" + // BranchDeletionPolicyOrphan keeps the target as a standalone KubeDB Database. + BranchDeletionPolicyOrphan BranchDeletionPolicy = "Orphan" +) + +// BranchStatus defines the observed state of Branch. +type BranchStatus struct { + // Phase is the current phase of the branch. + // +optional + Phase BranchPhase `json:"phase,omitempty"` + + // Mode is how this operator is participating in the branch. + // +optional + Mode BranchMode `json:"mode,omitempty"` + + // TargetRef references the branched Database. + // +optional + TargetRef *corev1.ObjectReference `json:"targetRef,omitempty"` + + // Snapshot references the source snapshot the current branch was cloned from. + // +optional + Snapshot *BranchSnapshotRef `json:"snapshot,omitempty"` + + // LastRefreshAt is the time of the last successful refresh. + // +optional + LastRefreshAt *metav1.Time `json:"lastRefreshAt,omitempty"` + + // Freshness is the human-readable age of the branch data since the last refresh (e.g. "3m", "1h2m"). + // +optional + Freshness metav1.Duration `json:"freshness,omitempty"` + + // History is the bounded refresh history (bounded by spec.historyLimit). + // +optional + History []BranchRun `json:"history,omitempty"` + + // The status of each condition is one of True, False, or Unknown. + // +listType=map + // +listMapKey=type + // +optional + Conditions []kmapi.Condition `json:"conditions,omitempty"` +} + +// BranchPhase is the lifecycle phase of a Branch. +// +kubebuilder:validation:Enum=Pending;Snapshotting;Cloning;Provisioning;Massaging;Ready;Refreshing;Deleting;Failed +type BranchPhase string + +const ( + BranchPhasePending BranchPhase = "Pending" + BranchPhaseSnapshotting BranchPhase = "Snapshotting" + BranchPhaseCloning BranchPhase = "Cloning" + BranchPhaseProvisioning BranchPhase = "Provisioning" + BranchPhaseMassaging BranchPhase = "Massaging" + BranchPhaseReady BranchPhase = "Ready" + BranchPhaseRefreshing BranchPhase = "Refreshing" + BranchPhaseDeleting BranchPhase = "Deleting" + BranchPhaseFailed BranchPhase = "Failed" +) + +// BranchMode is how the branch operator participates in a branch. +// +kubebuilder:validation:Enum=Local;Initiator;Creator +type BranchMode string + +const ( + // BranchModeLocal is a same-cluster branch (the operator runs the whole flow). + BranchModeLocal BranchMode = "Local" + // BranchModeInitiator is the source cluster of a cross-cluster branch. + BranchModeInitiator BranchMode = "Initiator" + // BranchModeCreator is the target cluster of a cross-cluster branch. + BranchModeCreator BranchMode = "Creator" +) + +// BranchSnapshotType is the kind of snapshot backing a branch. +// +kubebuilder:validation:Enum=VolumeGroupSnapshot;VolumeSnapshot +type BranchSnapshotType string + +const ( + BranchSnapshotTypeVolumeGroupSnapshot BranchSnapshotType = "VolumeGroupSnapshot" + BranchSnapshotTypeVolumeSnapshot BranchSnapshotType = "VolumeSnapshot" +) + +// BranchSnapshotRef references the source snapshot. +type BranchSnapshotRef struct { + // Type is the snapshot kind (VolumeGroupSnapshot preferred, VolumeSnapshot fallback). + Type BranchSnapshotType `json:"type,omitempty"` + // Ref is the name of the snapshot object. + Ref string `json:"ref,omitempty"` +} + +// BranchRunResult is the outcome of a refresh run. +// +kubebuilder:validation:Enum=Succeeded;Failed +type BranchRunResult string + +const ( + BranchRunSucceeded BranchRunResult = "Succeeded" + BranchRunFailed BranchRunResult = "Failed" +) + +// BranchRun is one entry in the refresh history. +type BranchRun struct { + // At is when the run finished. + At metav1.Time `json:"at,omitempty"` + // Result is the outcome of the run. + Result BranchRunResult `json:"result,omitempty"` + // Message is an optional human-readable detail (for a failed run). + // +optional + Message string `json:"message,omitempty"` +} + +// BranchList contains a list of Branch + +// +kubebuilder:object:root=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type BranchList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitzero"` + Items []Branch `json:"items"` +} + +func init() { + SchemeBuilder.Register(&Branch{}, &BranchList{}) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/branchwork_types.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/branchwork_types.go new file mode 100644 index 000000000..6d21b47fb --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/branchwork_types.go @@ -0,0 +1,150 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + kmapi "kmodules.xyz/client-go/api/v1" +) + +const ( + ResourceKindBranchWork = "BranchWork" + ResourceSingularBranchWork = "branchwork" + ResourcePluralBranchWorks = "branchworks" +) + +// +genclient +// +k8s:openapi-gen=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=branchworks,singular=branchwork,shortName=bw,categories={kubedb,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Namespaced +// +kubebuilder:printcolumn:name="TargetCluster",type="string",JSONPath=".spec.targetCluster" +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.branch.phase" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +// +// BranchWork is a hub-only cross-cluster delivery object, similar to OCM ManifestWork. A source-cluster +// Branch operator creates it in its own hub namespace to drive a branch into a different cluster; the +// addon manager translates it into a ManifestWork in the target cluster's namespace and syncs status +// back. Same-cluster branches never use it. +type BranchWork struct { + metav1.TypeMeta `json:",inline"` + + // metadata is a standard object metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitzero"` + + // spec defines the desired state of BranchWork + // +required + Spec BranchWorkSpec `json:"spec"` + + // status defines the observed state of BranchWork + // +optional + Status BranchWorkStatus `json:"status,omitzero"` +} + +// BranchWorkSpec carries the target cluster and the manifests to create there. +type BranchWorkSpec struct { + // TargetCluster is the cluster the manifests are delivered to. + TargetCluster string `json:"targetCluster"` + + // Manifests are the resources to create in the target cluster (the Branch CR, the target Database, + // the auth and config secrets, the VolumeSnapshot(s), and anything else the target needs). + // +optional + Manifests []runtime.RawExtension `json:"manifests,omitempty"` + + // RefreshGeneration is bumped by the source each time it re-ships a fresh snapshot; the creator + // keys its swap off a change here. + // +optional + RefreshGeneration int64 `json:"refreshGeneration,omitempty"` + + // DeleteOption mirrors ManifestWork deletion semantics for the delivered resources. + // +optional + DeleteOption BranchDeletionPolicy `json:"deleteOption,omitempty"` +} + +// BranchWorkStatus mirrors the delivered Branch status plus per-manifest apply/feedback conditions, +// modeled on OCM ManifestWork. +type BranchWorkStatus struct { + // ObservedRefreshGeneration is the spec.refreshGeneration the target has acted on. + // +optional + ObservedRefreshGeneration int64 `json:"observedRefreshGeneration,omitempty"` + + // Branch mirrors the target-side Branch status so the source can copy it into its own Branch. + // +optional + Branch *BranchStatus `json:"branch,omitempty"` + + // Manifests carries the per-manifest apply/feedback conditions from the target (ManifestWork-style). + // +optional + Manifests []BranchWorkManifestCondition `json:"manifests,omitempty"` + + // The status of each condition is one of True, False, or Unknown. + // +listType=map + // +listMapKey=type + // +optional + Conditions []kmapi.Condition `json:"conditions,omitempty"` +} + +// BranchWorkManifestCondition reports the apply/feedback status of a single delivered manifest, +// modeled on OCM ManifestWork's ManifestCondition. +type BranchWorkManifestCondition struct { + // Ordinal is the index of the manifest in spec.manifests. + Ordinal int32 `json:"ordinal"` + + // ResourceMeta identifies the delivered resource. + // +optional + ResourceMeta BranchWorkResourceMeta `json:"resourceMeta,omitempty"` + + // The status of each condition is one of True, False, or Unknown. + // +listType=map + // +listMapKey=type + // +optional + Conditions []kmapi.Condition `json:"conditions,omitempty"` +} + +// BranchWorkResourceMeta identifies a delivered resource. +type BranchWorkResourceMeta struct { + // +optional + Group string `json:"group,omitempty"` + // +optional + Version string `json:"version,omitempty"` + // +optional + Kind string `json:"kind,omitempty"` + // +optional + Resource string `json:"resource,omitempty"` + // +optional + Namespace string `json:"namespace,omitempty"` + // +optional + Name string `json:"name,omitempty"` +} + +// BranchWorkList contains a list of BranchWork + +// +kubebuilder:object:root=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type BranchWorkList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitzero"` + Items []BranchWork `json:"items"` +} + +func init() { + SchemeBuilder.Register(&BranchWork{}, &BranchWorkList{}) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/conditions.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/conditions.go similarity index 84% rename from vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/conditions.go rename to vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/conditions.go index feba08999..149f9544f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/conditions.go +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/conditions.go @@ -22,16 +22,16 @@ import ( cutil "kmodules.xyz/client-go/conditions" ) -func SetMigratorJobTriggeredConditionToTrue(migrator *Migrator) { +func SetMigratorJobTriggeredConditionToTrue(migrator *Migration) { newCond := kmapi.Condition{ Type: MigratorJobTriggered, Status: metav1.ConditionTrue, - Message: "Migrator job has been triggered.", + Message: "Migration job has been triggered.", } migrator.Status.Conditions = cutil.SetCondition(migrator.Status.Conditions, newCond) } -func SetMigratorJobTriggeredConditionToFalse(migrator *Migrator, err error) { +func SetMigratorJobTriggeredConditionToFalse(migrator *Migration, err error) { newCond := kmapi.Condition{ Type: MigratorJobTriggered, Status: metav1.ConditionFalse, @@ -40,21 +40,21 @@ func SetMigratorJobTriggeredConditionToFalse(migrator *Migrator, err error) { migrator.Status.Conditions = cutil.SetCondition(migrator.Status.Conditions, newCond) } -func (m *Migrator) CalculatePhase() MigratorPhase { +func (m *Migration) CalculatePhase() MigrationPhase { if cutil.IsConditionTrue(m.Status.Conditions, MigrationSucceeded) { - return MigratorPhaseSucceeded + return MigrationPhaseSucceeded } if cutil.IsConditionTrue(m.Status.Conditions, MigrationFailed) { - return MigratorPhaseFailed + return MigrationPhaseFailed } if cutil.IsConditionTrue(m.Status.Conditions, MigrationRunning) { - return MigratorPhaseRunning + return MigrationPhaseRunning } - return MigratorPhasePending + return MigrationPhasePending } // SetMigrationRunningCondition sets the condition indicating migration is in progress -func SetMigrationRunningCondition(migrator *Migrator) { +func SetMigrationRunningCondition(migrator *Migration) { newCond := kmapi.Condition{ Type: MigrationRunning, Status: metav1.ConditionTrue, @@ -65,7 +65,7 @@ func SetMigrationRunningCondition(migrator *Migrator) { } // SetMigrationSucceededCondition sets the condition indicating migration completed successfully -func SetMigrationSucceededCondition(migrator *Migrator) { +func SetMigrationSucceededCondition(migrator *Migration) { newCond := kmapi.Condition{ Type: MigrationSucceeded, Status: metav1.ConditionTrue, @@ -85,7 +85,7 @@ func SetMigrationSucceededCondition(migrator *Migrator) { } // SetMigrationFailedCondition sets the condition indicating migration failed -func SetMigrationFailedCondition(migrator *Migrator, err error) { +func SetMigrationFailedCondition(migrator *Migration, err error) { newCond := kmapi.Condition{ Type: MigrationFailed, Status: metav1.ConditionTrue, diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/constants.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/constants.go similarity index 83% rename from vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/constants.go rename to vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/constants.go index 79c933b0e..68a74f3fa 100644 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/constants.go +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/constants.go @@ -65,6 +65,28 @@ const ( MySQLCli = "mysql" MariaDBCli = "mariadb" MariaDBDump = "mariadb-dump" + + // SqlPackage is the Microsoft SqlPackage CLI used for MSSQL schema + // extract/publish via .dacpac. + SqlPackage = "SqlPackage" +) + +// ============ MSSQL Server Constants ================== +const ( + // MSSQLDefaultStreamingPollInterval is the default poll interval used by + // the MSSQL CDC streaming phase when none is set in the user config. + MSSQLDefaultStreamingPollInterval = "5s" + // MSSQLDefaultSchema is the default SQL Server schema name (typically "dbo"). + MSSQLDefaultSchema = "dbo" + + // CDC operation codes returned by cdc.fn_cdc_get_all_changes_. + MSSQLCDCOpDelete = 1 + MSSQLCDCOpInsert = 2 + MSSQLCDCOpUpdateBefore = 3 + MSSQLCDCOpUpdateAfter = 4 + + // PositionMethodLSN identifies CDC LSN-based streaming checkpoints. + PositionMethodLSN = "lsn" ) // ============ Snapshot Pipeline Constant ================== diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/doc.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/doc.go similarity index 90% rename from vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/doc.go rename to vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/doc.go index 89d038b7b..4cadd7c45 100644 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/doc.go +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/doc.go @@ -18,11 +18,11 @@ limitations under the License. // +k8s:openapi-gen=true // +k8s:defaulter-gen=TypeMeta // +kubebuilder:object:generate=true -// +groupName=migrator.kubedb.com +// +groupName=courier.kubedb.com package v1alpha1 import ( - "kubedb.dev/apimachinery/apis/migrator" + "kubedb.dev/apimachinery/apis/courier" "k8s.io/apimachinery/pkg/runtime/schema" "sigs.k8s.io/controller-runtime/pkg/scheme" @@ -30,7 +30,7 @@ import ( var ( // SchemeGroupVersion is group version used to register these objects - SchemeGroupVersion = schema.GroupVersion{Group: migrator.GroupName, Version: "v1alpha1"} + SchemeGroupVersion = schema.GroupVersion{Group: courier.GroupName, Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} diff --git a/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/helpers.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/helpers.go new file mode 100644 index 000000000..1c295358e --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/helpers.go @@ -0,0 +1,101 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + "kubedb.dev/apimachinery/crds" + + "kmodules.xyz/client-go/apiextensions" +) + +func GetFinalizer() string { + return SchemeGroupVersion.Group +} + +// Migration is the duck type projected from the per-engine {DB}Migration +// underlying types; it is not served as its own CRD, so it has no +// CustomResourceDefinition helper. The concrete resources users create are the +// per-engine kinds below. + +func (PostgresMigration) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralPostgresMigrations)) +} + +func (MySQLMigration) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralMySQLMigrations)) +} + +func (MariaDBMigration) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralMariaDBMigrations)) +} + +func (MongoDBMigration) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralMongoDBMigrations)) +} + +func (MSSQLServerMigration) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralMSSQLServerMigrations)) +} + +func (Branch) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralBranches)) +} + +func (BranchWork) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralBranchWorks)) +} + +func (m Migration) GetDBKindAndCommand() (string, string) { + switch { + case m.Spec.Source.PostgresSource != nil && m.Spec.Target.PostgresTarget != nil: + return "Postgres", "postgres" + case m.Spec.Source.MongoDBSource != nil && m.Spec.Target.MongoDBTarget != nil: + return "MongoDB", "mongodb" + case m.Spec.Source.MySQLSource != nil && m.Spec.Target.MySQLTarget != nil: + return "MySQL", "mysql" + case m.Spec.Source.MariaDBSource != nil && m.Spec.Target.MariaDBTarget != nil: + return "MariaDB", "mariadb" + case m.Spec.Source.MSSQLServerSource != nil && m.Spec.Target.MSSQLServerTarget != nil: + return "MSSQLServer", "mssqlserver" + } + + return "", "" +} + +func (m Migration) GetConnectionInfos() (*ConnectionInfo, *ConnectionInfo) { + switch { + case m.Spec.Source.PostgresSource != nil && m.Spec.Target.PostgresTarget != nil: + return &m.Spec.Source.PostgresSource.ConnectionInfo, &m.Spec.Target.PostgresTarget.ConnectionInfo + case m.Spec.Source.MongoDBSource != nil && m.Spec.Target.MongoDBTarget != nil: + return &m.Spec.Source.MongoDBSource.ConnectionInfo, &m.Spec.Target.MongoDBTarget.ConnectionInfo + case m.Spec.Source.MySQLSource != nil && m.Spec.Target.MySQLTarget != nil: + return m.Spec.Source.MySQLSource.ConnectionInfo, m.Spec.Target.MySQLTarget.ConnectionInfo + case m.Spec.Source.MariaDBSource != nil && m.Spec.Target.MariaDBTarget != nil: + return m.Spec.Source.MariaDBSource.ConnectionInfo, m.Spec.Target.MariaDBTarget.ConnectionInfo + case m.Spec.Source.MSSQLServerSource != nil && m.Spec.Target.MSSQLServerTarget != nil: + src := &ConnectionInfo{ + AppBinding: m.Spec.Source.MSSQLServerSource.ConnectionInfo.AppBinding, + DBName: m.Spec.Source.MSSQLServerSource.ConnectionInfo.Database, + } + tgt := &ConnectionInfo{ + AppBinding: m.Spec.Target.MSSQLServerTarget.ConnectionInfo.AppBinding, + DBName: m.Spec.Target.MSSQLServerTarget.ConnectionInfo.Database, + } + return src, tgt + } + return nil, nil +} diff --git a/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mariadbmigration_types.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mariadbmigration_types.go new file mode 100644 index 000000000..52cfac05a --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mariadbmigration_types.go @@ -0,0 +1,103 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + ofst "kmodules.xyz/offshoot-api/api/v1" +) + +const ( + ResourceKindMariaDBMigration = "MariaDBMigration" + ResourceSingularMariaDBMigration = "mariadbmigration" + ResourcePluralMariaDBMigrations = "mariadbmigrations" +) + +// +genclient +// +k8s:openapi-gen=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=mariadbmigrations,singular=mariadbmigration,shortName=mrmig,categories={kubedb,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Namespaced +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Stage",type="string",JSONPath=".status.progress.info.Stage" +// +kubebuilder:printcolumn:name="Lag",type="string",JSONPath=".status.progress.info.Lag" +// +kubebuilder:printcolumn:name="Progress",type="string",JSONPath=".status.progress.info.Progress" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +type MariaDBMigration struct { + metav1.TypeMeta `json:",inline"` + + // metadata is a standard object metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitzero"` + + // spec defines the desired state of MariaDBMigration + // +required + Spec MariaDBMigrationSpec `json:"spec"` + + // status defines the observed state of MariaDBMigration. + // It reuses the shared MigrationStatus so that the Migration duck type can + // project it and the operator's status patches replay onto it unchanged. + // +optional + Status MigrationStatus `json:"status,omitzero"` +} + +// MariaDBMigrationSpec defines the desired state of MariaDBMigration +type MariaDBMigrationSpec struct { + // Source defines the source MariaDB database configuration + Source MariaDBSource `json:"source"` + + // Target defines the target MariaDB database configuration + Target MariaDBTarget `json:"target"` + + // JobDefaults specifies default settings for migration jobs + // +optional + JobDefaults *JobDefaults `json:"jobDefaults,omitempty"` + + // JobTemplate specifies runtime configurations for the migration Job + // +optional + JobTemplate *ofst.PodTemplateSpec `json:"jobTemplate,omitempty"` +} + +// MariaDBMigrationList contains a list of MariaDBMigration + +// +kubebuilder:object:root=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type MariaDBMigrationList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitzero"` + Items []MariaDBMigration `json:"items"` +} + +type MariaDBSource struct { + // ConnectionInfo refers to the source MariaDB database connection information. + ConnectionInfo *ConnectionInfo `yaml:"connectionInfo" json:"connectionInfo"` + Schema *MySQLSchema `yaml:"schema" json:"schema,omitempty"` + Snapshot *MySQLSnapshot `yaml:"snapshot" json:"snapshot,omitempty"` + Streaming *MySQLStreaming `yaml:"streaming" json:"streaming,omitempty"` +} + +type MariaDBTarget struct { + // ConnectionInfo refers to the target MariaDB database connection information. + ConnectionInfo *ConnectionInfo `yaml:"connectionInfo" json:"connectionInfo"` +} + +func init() { + SchemeBuilder.Register(&MariaDBMigration{}, &MariaDBMigrationList{}) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/migration_conversion.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/migration_conversion.go new file mode 100644 index 000000000..aa5fb0aeb --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/migration_conversion.go @@ -0,0 +1,97 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + "fmt" + + "k8s.io/apimachinery/pkg/runtime" +) + +// Duckify projects one of the per-engine {DB}Migration underlying types into +// the Migration duck shape. It implements the duck.Object contract from +// kmodules.xyz/client-go/client/duck so the operator can reconcile every +// engine-specific CRD through a single, engine-agnostic Migration view. +// +// Only Get/List (raw -> duck projection) and Patch/Status().Patch (patch bytes +// computed against the duck, replayed onto the raw) are used by the duck +// client; there is intentionally no reverse (duck -> raw) conversion. Because +// ObjectMeta and Status are copied through unchanged, status and finalizer +// patches land on identical JSON paths in the underlying object. +func (m *Migration) Duckify(srcRaw runtime.Object) error { + // APIVersion is shared by all underlying kinds; Kind is set per case below so + // the projected Migration retains the provenance of the concrete CRD it was + // duckified from. + m.APIVersion = SchemeGroupVersion.String() + + switch t := srcRaw.(type) { + case *PostgresMigration: + m.Kind = ResourceKindPostgresMigration + m.ObjectMeta = t.ObjectMeta + m.Status = t.Status + m.Spec = MigrationSpec{ + Source: &Source{PostgresSource: &t.Spec.Source}, + Target: &Target{PostgresTarget: &t.Spec.Target}, + JobDefaults: t.Spec.JobDefaults, + JobTemplate: t.Spec.JobTemplate, + } + case *MySQLMigration: + m.Kind = ResourceKindMySQLMigration + m.ObjectMeta = t.ObjectMeta + m.Status = t.Status + m.Spec = MigrationSpec{ + Source: &Source{MySQLSource: &t.Spec.Source}, + Target: &Target{MySQLTarget: &t.Spec.Target}, + JobDefaults: t.Spec.JobDefaults, + JobTemplate: t.Spec.JobTemplate, + } + case *MariaDBMigration: + m.Kind = ResourceKindMariaDBMigration + m.ObjectMeta = t.ObjectMeta + m.Status = t.Status + m.Spec = MigrationSpec{ + Source: &Source{MariaDBSource: &t.Spec.Source}, + Target: &Target{MariaDBTarget: &t.Spec.Target}, + JobDefaults: t.Spec.JobDefaults, + JobTemplate: t.Spec.JobTemplate, + } + case *MongoDBMigration: + m.Kind = ResourceKindMongoDBMigration + m.ObjectMeta = t.ObjectMeta + m.Status = t.Status + m.Spec = MigrationSpec{ + Source: &Source{MongoDBSource: &t.Spec.Source}, + Target: &Target{MongoDBTarget: &t.Spec.Target}, + JobDefaults: t.Spec.JobDefaults, + JobTemplate: t.Spec.JobTemplate, + } + case *MSSQLServerMigration: + m.Kind = ResourceKindMSSQLServerMigration + m.ObjectMeta = t.ObjectMeta + m.Status = t.Status + m.Spec = MigrationSpec{ + Source: &Source{MSSQLServerSource: &t.Spec.Source}, + Target: &Target{MSSQLServerTarget: &t.Spec.Target}, + JobDefaults: t.Spec.JobDefaults, + JobTemplate: t.Spec.JobTemplate, + } + default: + return fmt.Errorf("courier: cannot Duckify %T", srcRaw) + } + + return nil +} diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/migrator_types.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/migration_types.go similarity index 61% rename from vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/migrator_types.go rename to vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/migration_types.go index 33ccb23a0..ca5c4f95f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/migrator_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/migration_types.go @@ -23,44 +23,26 @@ import ( ofst "kmodules.xyz/offshoot-api/api/v1" ) -const ( - ResourceKindMigrator = "Migrator" - ResourceSingularMigrator = "migrator" - ResourcePluralMigrator = "migrators" -) - -// +genclient -// +k8s:openapi-gen=true +// +k8s:openapi-gen=false // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// +kubebuilder:object:root=true -// +kubebuilder:resource:path=migrators,singular=migrator,shortName=mgtr,categories={kubedb,appscode,all} -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Namespaced -// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" -// +kubebuilder:printcolumn:name="DBType",type="string",JSONPath=".status.progress.dbType" -// +kubebuilder:printcolumn:name="Stage",type="string",JSONPath=".status.progress.info.Stage" -// +kubebuilder:printcolumn:name="Lag",type="string",JSONPath=".status.progress.info.Lag" -// +kubebuilder:printcolumn:name="Progress",type="string",JSONPath=".status.progress.info.Progress" -// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" -type Migrator struct { +type Migration struct { metav1.TypeMeta `json:",inline"` // metadata is a standard object metadata // +optional metav1.ObjectMeta `json:"metadata,omitzero"` - // spec defines the desired state of Migrator + // spec defines the desired state of Migration // +required - Spec MigratorSpec `json:"spec"` + Spec MigrationSpec `json:"spec"` - // status defines the observed state of Migrator + // status defines the observed state of Migration // +optional - Status MigratorStatus `json:"status,omitzero"` + Status MigrationStatus `json:"status,omitzero"` } -// MigratorSpec defines the desired state of Migrator -type MigratorSpec struct { +// MigrationSpec defines the desired state of Migration +type MigrationSpec struct { // Source defines the source database configuration Source *Source `json:"source" protobuf:"bytes,1,opt,name=source"` @@ -97,12 +79,12 @@ type JobDefaults struct { ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` } -// MigratorStatus defines the observed state of Migrator. -type MigratorStatus struct { +// MigrationStatus defines the observed state of Migration. +type MigrationStatus struct { // Phase represents the current phase of migration // +optional // +kubebuilder:default:=Pending - Phase MigratorPhase `json:"phase,omitempty"` + Phase MigrationPhase `json:"phase,omitempty"` // Progress contains the current progress of migration // +optional @@ -115,18 +97,18 @@ type MigratorStatus struct { Conditions []kmapi.Condition `json:"conditions,omitempty"` } -// MigratorPhase represents the current phase of migration -type MigratorPhase string +// MigrationPhase represents the current phase of migration +type MigrationPhase string const ( - // MigratorPhasePending indicates the migration is pending - MigratorPhasePending MigratorPhase = "Pending" - // MigratorPhaseRunning indicates the migration is in progress - MigratorPhaseRunning MigratorPhase = "Running" - // MigratorPhaseSucceeded indicates the migration completed successfully - MigratorPhaseSucceeded MigratorPhase = "Succeeded" - // MigratorPhaseFailed indicates the migration failed - MigratorPhaseFailed MigratorPhase = "Failed" + // MigrationPhasePending indicates the migration is pending + MigrationPhasePending MigrationPhase = "Pending" + // MigrationPhaseRunning indicates the migration is in progress + MigrationPhaseRunning MigrationPhase = "Running" + // MigrationPhaseSucceeded indicates the migration completed successfully + MigrationPhaseSucceeded MigrationPhase = "Succeeded" + // MigrationPhaseFailed indicates the migration failed + MigrationPhaseFailed MigrationPhase = "Failed" ) // Progress contains the current progress of migration @@ -140,16 +122,15 @@ type Progress struct { Info map[string]string `json:"info,omitempty"` } -// MigratorList contains a list of Migrator +// MigrationList contains a list of Migration -// +kubebuilder:object:root=true // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type MigratorList struct { +type MigrationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitzero"` - Items []Migrator `json:"items"` + Items []Migration `json:"items"` } func init() { - SchemeBuilder.Register(&Migrator{}, &MigratorList{}) + SchemeBuilder.Register(&Migration{}, &MigrationList{}) } diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/mongodb.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mongodbmigration_types.go similarity index 59% rename from vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/mongodb.go rename to vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mongodbmigration_types.go index c64548401..44de400ac 100644 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/mongodb.go +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mongodbmigration_types.go @@ -16,13 +16,84 @@ limitations under the License. package v1alpha1 -type MongoSource struct { +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + ofst "kmodules.xyz/offshoot-api/api/v1" +) + +const ( + ResourceKindMongoDBMigration = "MongoDBMigration" + ResourceSingularMongoDBMigration = "mongodbmigration" + ResourcePluralMongoDBMigrations = "mongodbmigrations" +) + +// +genclient +// +k8s:openapi-gen=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=mongodbmigrations,singular=mongodbmigration,shortName=momig,categories={kubedb,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Namespaced +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Stage",type="string",JSONPath=".status.progress.info.Stage" +// +kubebuilder:printcolumn:name="Lag",type="string",JSONPath=".status.progress.info.Lag" +// +kubebuilder:printcolumn:name="Progress",type="string",JSONPath=".status.progress.info.Progress" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +type MongoDBMigration struct { + metav1.TypeMeta `json:",inline"` + + // metadata is a standard object metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitzero"` + + // spec defines the desired state of MongoDBMigration + // +required + Spec MongoDBMigrationSpec `json:"spec"` + + // status defines the observed state of MongoDBMigration. + // It reuses the shared MigrationStatus so that the Migration duck type can + // project it and the operator's status patches replay onto it unchanged. + // +optional + Status MigrationStatus `json:"status,omitzero"` +} + +// MongoDBMigrationSpec defines the desired state of MongoDBMigration +type MongoDBMigrationSpec struct { + // Source defines the source MongoDB database configuration + Source MongoDBSource `json:"source"` + + // Target defines the target MongoDB database configuration + Target MongoDBTarget `json:"target"` + + // JobDefaults specifies default settings for migration jobs + // +optional + JobDefaults *JobDefaults `json:"jobDefaults,omitempty"` + + // JobTemplate specifies runtime configurations for the migration Job + // +optional + JobTemplate *ofst.PodTemplateSpec `json:"jobTemplate,omitempty"` +} + +// MongoDBMigrationList contains a list of MongoDBMigration + +// +kubebuilder:object:root=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type MongoDBMigrationList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitzero"` + Items []MongoDBMigration `json:"items"` +} + +type MongoDBSource struct { ConnectionInfo ConnectionInfo `yaml:"connectionInfo" json:"connectionInfo"` Mongoshake *Mongoshake `yaml:"mongoshake" json:"mongoshake,omitempty"` } -type MongoTarget struct { + +type MongoDBTarget struct { ConnectionInfo ConnectionInfo `yaml:"connectionInfo" json:"connectionInfo"` } + type Mongoshake struct { // SyncMode controls synchronization mode. // Supported values: all, full, incr @@ -81,3 +152,7 @@ type Mongoshake struct { // +optional ExtraConfiguration map[string]string `yaml:"extraConfiguration" json:"extraConfiguration,omitempty"` } + +func init() { + SchemeBuilder.Register(&MongoDBMigration{}, &MongoDBMigrationList{}) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mssqlservermigration_types.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mssqlservermigration_types.go new file mode 100644 index 000000000..c448440d3 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mssqlservermigration_types.go @@ -0,0 +1,171 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + "time" + + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + kmapi "kmodules.xyz/client-go/api/v1" + ofst "kmodules.xyz/offshoot-api/api/v1" +) + +const ( + ResourceKindMSSQLServerMigration = "MSSQLServerMigration" + ResourceSingularMSSQLServerMigration = "mssqlservermigration" + ResourcePluralMSSQLServerMigrations = "mssqlservermigrations" +) + +// +genclient +// +k8s:openapi-gen=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=mssqlservermigrations,singular=mssqlservermigration,shortName=msmig,categories={kubedb,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Namespaced +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Stage",type="string",JSONPath=".status.progress.info.Stage" +// +kubebuilder:printcolumn:name="Lag",type="string",JSONPath=".status.progress.info.Lag" +// +kubebuilder:printcolumn:name="Progress",type="string",JSONPath=".status.progress.info.Progress" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +type MSSQLServerMigration struct { + metav1.TypeMeta `json:",inline"` + + // metadata is a standard object metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitzero"` + + // spec defines the desired state of MSSQLServerMigration + // +required + Spec MSSQLServerMigrationSpec `json:"spec"` + + // status defines the observed state of MSSQLServerMigration. + // It reuses the shared MigrationStatus so that the Migration duck type can + // project it and the operator's status patches replay onto it unchanged. + // +optional + Status MigrationStatus `json:"status,omitzero"` +} + +// MSSQLServerMigrationSpec defines the desired state of MSSQLServerMigration +type MSSQLServerMigrationSpec struct { + // Source defines the source MSSQL Server database configuration + Source MSSQLServerSource `json:"source"` + + // Target defines the target MSSQL Server database configuration + Target MSSQLServerTarget `json:"target"` + + // JobDefaults specifies default settings for migration jobs + // +optional + JobDefaults *JobDefaults `json:"jobDefaults,omitempty"` + + // JobTemplate specifies runtime configurations for the migration Job + // +optional + JobTemplate *ofst.PodTemplateSpec `json:"jobTemplate,omitempty"` +} + +// MSSQLServerMigrationList contains a list of MSSQLServerMigration + +// +kubebuilder:object:root=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type MSSQLServerMigrationList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitzero"` + Items []MSSQLServerMigration `json:"items"` +} + +type MSSQLServerSource struct { + // ConnectionInfo refers to the source MSSQL Server database connection information. + ConnectionInfo *MSSQLServerConnectionInfo `yaml:"connectionInfo" json:"connectionInfo"` + Schema *MSSQLServerSchema `yaml:"schema" json:"schema,omitempty"` + Snapshot *MSSQLServerSnapshot `yaml:"snapshot" json:"snapshot,omitempty"` + Streaming *MSSQLServerStreaming `yaml:"streaming" json:"streaming,omitempty"` +} + +type MSSQLServerTarget struct { + // ConnectionInfo refers to the target MSSQL Server database connection information. + ConnectionInfo *MSSQLServerConnectionInfo `yaml:"connectionInfo" json:"connectionInfo"` +} + +type MSSQLServerSchema struct { + // Enabled controls whether the Schema Phase should be executed. + Enabled bool `yaml:"enabled" json:"enabled"` + // Database is the list of databases to migrate. + // +optional + Database []string `yaml:"database" json:"database,omitempty"` + // Schema is the list of SQL Server schemas (e.g. "dbo") to include. + // +optional + Schema []string `yaml:"schema" json:"schema,omitempty"` + // ExcludeSchema is the list of SQL Server schemas to exclude. + // +optional + ExcludeSchema []string `yaml:"excludeSchema" json:"excludeSchema,omitempty"` + // Table is the list of schema-qualified tables (e.g. "dbo.Users") to include. + // +optional + Table []string `yaml:"table" json:"table,omitempty"` + // ExcludeTable is the list of schema-qualified tables to exclude. + // +optional + ExcludeTable []string `yaml:"excludeTable" json:"excludeTable,omitempty"` +} + +type MSSQLServerSnapshot struct { + // Enabled controls whether the Snapshot Phase should be executed. + // +optional + Enabled bool `yaml:"enabled" json:"enabled"` + Pipeline *MSSQLServerSnapshotPipeline `yaml:"pipeline" json:"pipeline,omitempty"` +} + +type MSSQLServerStreaming struct { + // Enabled controls whether the CDC Streaming Phase should be executed. + // +optional + Enabled bool `yaml:"enabled" json:"enabled"` + // PollInterval controls how often CDC changes are polled from the source. + // +optional + PollInterval time.Duration `yaml:"pollInterval" json:"pollInterval,omitempty"` + // AutoEnableCDC enables Change Data Capture on the source database/tables + // automatically when set to true. If false, CDC must be pre-enabled. + // +optional + AutoEnableCDC bool `yaml:"autoEnableCDC" json:"autoEnableCDC,omitempty"` + // BatchSize is the maximum number of CDC changes to apply in a single + // target transaction. Larger batches improve throughput but extend the + // window of lost work if the migration is cancelled mid-batch. + // +optional + BatchSize *int `yaml:"batchSize" json:"batchSize,omitempty"` +} + +type MSSQLServerConnectionInfo struct { + AppBinding *kmapi.ObjectReference `json:"appBinding,omitempty"` + Database string `json:"database"` + MaxConnections int `json:"maxConnections,omitempty"` + Encrypt bool `json:"encrypt,omitempty"` + TrustServerCertificate bool `json:"trustServerCertificate,omitempty"` + + Address string `json:"-"` + User string `json:"-"` + Password string `json:"-"` +} + +type MSSQLServerSnapshotPipeline struct { + Workers *int `yaml:"workers" json:"workers"` + Sinkers *int `yaml:"sinkers" json:"sinkers"` + Buffer *int `yaml:"buffer" json:"buffer"` + ReadBatchSize *int `yaml:"readBatchSize" json:"read_batch_size"` + WriteBatchSize *int `yaml:"writeBatchSize" json:"write_batch_size"` +} + +func init() { + SchemeBuilder.Register(&MSSQLServerMigration{}, &MSSQLServerMigrationList{}) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/mysql.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mysqlmigration_types.go similarity index 53% rename from vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/mysql.go rename to vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mysqlmigration_types.go index 319ba1a7a..940b4197e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/mysql.go +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/mysqlmigration_types.go @@ -16,7 +16,75 @@ limitations under the License. package v1alpha1 -import kmapi "kmodules.xyz/client-go/api/v1" +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + kmapi "kmodules.xyz/client-go/api/v1" + ofst "kmodules.xyz/offshoot-api/api/v1" +) + +const ( + ResourceKindMySQLMigration = "MySQLMigration" + ResourceSingularMySQLMigration = "mysqlmigration" + ResourcePluralMySQLMigrations = "mysqlmigrations" +) + +// +genclient +// +k8s:openapi-gen=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=mysqlmigrations,singular=mysqlmigration,shortName=mymig,categories={kubedb,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Namespaced +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Stage",type="string",JSONPath=".status.progress.info.Stage" +// +kubebuilder:printcolumn:name="Lag",type="string",JSONPath=".status.progress.info.Lag" +// +kubebuilder:printcolumn:name="Progress",type="string",JSONPath=".status.progress.info.Progress" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +type MySQLMigration struct { + metav1.TypeMeta `json:",inline"` + + // metadata is a standard object metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitzero"` + + // spec defines the desired state of MySQLMigration + // +required + Spec MySQLMigrationSpec `json:"spec"` + + // status defines the observed state of MySQLMigration. + // It reuses the shared MigrationStatus so that the Migration duck type can + // project it and the operator's status patches replay onto it unchanged. + // +optional + Status MigrationStatus `json:"status,omitzero"` +} + +// MySQLMigrationSpec defines the desired state of MySQLMigration +type MySQLMigrationSpec struct { + // Source defines the source MySQL database configuration + Source MySQLSource `json:"source"` + + // Target defines the target MySQL database configuration + Target MySQLTarget `json:"target"` + + // JobDefaults specifies default settings for migration jobs + // +optional + JobDefaults *JobDefaults `json:"jobDefaults,omitempty"` + + // JobTemplate specifies runtime configurations for the migration Job + // +optional + JobTemplate *ofst.PodTemplateSpec `json:"jobTemplate,omitempty"` +} + +// MySQLMigrationList contains a list of MySQLMigration + +// +kubebuilder:object:root=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type MySQLMigrationList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitzero"` + Items []MySQLMigration `json:"items"` +} type MySQLSource struct { // ConnectionInfo refers to the source MySQL database connection information. @@ -73,3 +141,7 @@ type MySQLSnapshotPipeline struct { ReadBatchSize *int `yaml:"readBatchSize" json:"read_batch_size"` WriteBatchSize *int `yaml:"writeBatchSize" json:"write_batch_size"` } + +func init() { + SchemeBuilder.Register(&MySQLMigration{}, &MySQLMigrationList{}) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/openapi_generated.go similarity index 95% rename from vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/openapi_generated.go rename to vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/openapi_generated.go index 810ea3ac8..53a0d4858 100644 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/openapi_generated.go @@ -576,38 +576,73 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/offshoot-api/api/v1.ServiceTemplateSpec": schema_kmodulesxyz_offshoot_api_api_v1_ServiceTemplateSpec(ref), "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/migrator/v1alpha1.ConnectionInfo": schema_apimachinery_apis_migrator_v1alpha1_ConnectionInfo(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorCLI": schema_apimachinery_apis_migrator_v1alpha1_DBMigratorCLI(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorImages": schema_apimachinery_apis_migrator_v1alpha1_DBMigratorImages(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorStatusReporter": schema_apimachinery_apis_migrator_v1alpha1_DBMigratorStatusReporter(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.JobDefaults": schema_apimachinery_apis_migrator_v1alpha1_JobDefaults(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.LogicalReplication": schema_apimachinery_apis_migrator_v1alpha1_LogicalReplication(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MariaDBSource": schema_apimachinery_apis_migrator_v1alpha1_MariaDBSource(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MariaDBTarget": schema_apimachinery_apis_migrator_v1alpha1_MariaDBTarget(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MigrationConfig": schema_apimachinery_apis_migrator_v1alpha1_MigrationConfig(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Migrator": schema_apimachinery_apis_migrator_v1alpha1_Migrator(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MigratorList": schema_apimachinery_apis_migrator_v1alpha1_MigratorList(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MigratorSpec": schema_apimachinery_apis_migrator_v1alpha1_MigratorSpec(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MigratorStatus": schema_apimachinery_apis_migrator_v1alpha1_MigratorStatus(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MongoSource": schema_apimachinery_apis_migrator_v1alpha1_MongoSource(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MongoTarget": schema_apimachinery_apis_migrator_v1alpha1_MongoTarget(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Mongoshake": schema_apimachinery_apis_migrator_v1alpha1_Mongoshake(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLConnectionInfo": schema_apimachinery_apis_migrator_v1alpha1_MySQLConnectionInfo(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSchema": schema_apimachinery_apis_migrator_v1alpha1_MySQLSchema(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSnapshot": schema_apimachinery_apis_migrator_v1alpha1_MySQLSnapshot(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSnapshotPipeline": schema_apimachinery_apis_migrator_v1alpha1_MySQLSnapshotPipeline(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSource": schema_apimachinery_apis_migrator_v1alpha1_MySQLSource(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLStreaming": schema_apimachinery_apis_migrator_v1alpha1_MySQLStreaming(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLTarget": schema_apimachinery_apis_migrator_v1alpha1_MySQLTarget(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.PgDump": schema_apimachinery_apis_migrator_v1alpha1_PgDump(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.PostgresSource": schema_apimachinery_apis_migrator_v1alpha1_PostgresSource(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.PostgresTarget": schema_apimachinery_apis_migrator_v1alpha1_PostgresTarget(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Progress": schema_apimachinery_apis_migrator_v1alpha1_Progress(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Publication": schema_apimachinery_apis_migrator_v1alpha1_Publication(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Source": schema_apimachinery_apis_migrator_v1alpha1_Source(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Subscription": schema_apimachinery_apis_migrator_v1alpha1_Subscription(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.TLSConfig": schema_apimachinery_apis_migrator_v1alpha1_TLSConfig(ref), - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Target": schema_apimachinery_apis_migrator_v1alpha1_Target(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.Branch": schema_apimachinery_apis_courier_v1alpha1_Branch(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchHistoryLimit": schema_apimachinery_apis_courier_v1alpha1_BranchHistoryLimit(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchList": schema_apimachinery_apis_courier_v1alpha1_BranchList(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchRun": schema_apimachinery_apis_courier_v1alpha1_BranchRun(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSchedule": schema_apimachinery_apis_courier_v1alpha1_BranchSchedule(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSnapshotRef": schema_apimachinery_apis_courier_v1alpha1_BranchSnapshotRef(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSource": schema_apimachinery_apis_courier_v1alpha1_BranchSource(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSpec": schema_apimachinery_apis_courier_v1alpha1_BranchSpec(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchStatus": schema_apimachinery_apis_courier_v1alpha1_BranchStatus(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchTarget": schema_apimachinery_apis_courier_v1alpha1_BranchTarget(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWork": schema_apimachinery_apis_courier_v1alpha1_BranchWork(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkList": schema_apimachinery_apis_courier_v1alpha1_BranchWorkList(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkManifestCondition": schema_apimachinery_apis_courier_v1alpha1_BranchWorkManifestCondition(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkResourceMeta": schema_apimachinery_apis_courier_v1alpha1_BranchWorkResourceMeta(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkSpec": schema_apimachinery_apis_courier_v1alpha1_BranchWorkSpec(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkStatus": schema_apimachinery_apis_courier_v1alpha1_BranchWorkStatus(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo": schema_apimachinery_apis_courier_v1alpha1_ConnectionInfo(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierCLI": schema_apimachinery_apis_courier_v1alpha1_DBCourierCLI(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierImages": schema_apimachinery_apis_courier_v1alpha1_DBCourierImages(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierStatusReporter": schema_apimachinery_apis_courier_v1alpha1_DBCourierStatusReporter(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults": schema_apimachinery_apis_courier_v1alpha1_JobDefaults(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.LogicalReplication": schema_apimachinery_apis_courier_v1alpha1_LogicalReplication(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerConnectionInfo": schema_apimachinery_apis_courier_v1alpha1_MSSQLServerConnectionInfo(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerMigration": schema_apimachinery_apis_courier_v1alpha1_MSSQLServerMigration(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerMigrationList": schema_apimachinery_apis_courier_v1alpha1_MSSQLServerMigrationList(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerMigrationSpec": schema_apimachinery_apis_courier_v1alpha1_MSSQLServerMigrationSpec(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSchema": schema_apimachinery_apis_courier_v1alpha1_MSSQLServerSchema(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSnapshot": schema_apimachinery_apis_courier_v1alpha1_MSSQLServerSnapshot(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSnapshotPipeline": schema_apimachinery_apis_courier_v1alpha1_MSSQLServerSnapshotPipeline(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSource": schema_apimachinery_apis_courier_v1alpha1_MSSQLServerSource(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerStreaming": schema_apimachinery_apis_courier_v1alpha1_MSSQLServerStreaming(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerTarget": schema_apimachinery_apis_courier_v1alpha1_MSSQLServerTarget(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBMigration": schema_apimachinery_apis_courier_v1alpha1_MariaDBMigration(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBMigrationList": schema_apimachinery_apis_courier_v1alpha1_MariaDBMigrationList(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBMigrationSpec": schema_apimachinery_apis_courier_v1alpha1_MariaDBMigrationSpec(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBSource": schema_apimachinery_apis_courier_v1alpha1_MariaDBSource(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBTarget": schema_apimachinery_apis_courier_v1alpha1_MariaDBTarget(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationConfig": schema_apimachinery_apis_courier_v1alpha1_MigrationConfig(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationList": schema_apimachinery_apis_courier_v1alpha1_MigrationList(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationSpec": schema_apimachinery_apis_courier_v1alpha1_MigrationSpec(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationStatus": schema_apimachinery_apis_courier_v1alpha1_MigrationStatus(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBMigration": schema_apimachinery_apis_courier_v1alpha1_MongoDBMigration(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBMigrationList": schema_apimachinery_apis_courier_v1alpha1_MongoDBMigrationList(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBMigrationSpec": schema_apimachinery_apis_courier_v1alpha1_MongoDBMigrationSpec(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBSource": schema_apimachinery_apis_courier_v1alpha1_MongoDBSource(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBTarget": schema_apimachinery_apis_courier_v1alpha1_MongoDBTarget(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.Mongoshake": schema_apimachinery_apis_courier_v1alpha1_Mongoshake(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLConnectionInfo": schema_apimachinery_apis_courier_v1alpha1_MySQLConnectionInfo(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLMigration": schema_apimachinery_apis_courier_v1alpha1_MySQLMigration(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLMigrationList": schema_apimachinery_apis_courier_v1alpha1_MySQLMigrationList(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLMigrationSpec": schema_apimachinery_apis_courier_v1alpha1_MySQLMigrationSpec(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSchema": schema_apimachinery_apis_courier_v1alpha1_MySQLSchema(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSnapshot": schema_apimachinery_apis_courier_v1alpha1_MySQLSnapshot(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSnapshotPipeline": schema_apimachinery_apis_courier_v1alpha1_MySQLSnapshotPipeline(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSource": schema_apimachinery_apis_courier_v1alpha1_MySQLSource(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLStreaming": schema_apimachinery_apis_courier_v1alpha1_MySQLStreaming(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLTarget": schema_apimachinery_apis_courier_v1alpha1_MySQLTarget(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.PgDump": schema_apimachinery_apis_courier_v1alpha1_PgDump(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresMigration": schema_apimachinery_apis_courier_v1alpha1_PostgresMigration(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresMigrationList": schema_apimachinery_apis_courier_v1alpha1_PostgresMigrationList(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresMigrationSpec": schema_apimachinery_apis_courier_v1alpha1_PostgresMigrationSpec(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresSource": schema_apimachinery_apis_courier_v1alpha1_PostgresSource(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresTarget": schema_apimachinery_apis_courier_v1alpha1_PostgresTarget(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.Progress": schema_apimachinery_apis_courier_v1alpha1_Progress(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.Publication": schema_apimachinery_apis_courier_v1alpha1_Publication(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.Subscription": schema_apimachinery_apis_courier_v1alpha1_Subscription(ref), + "kubedb.dev/apimachinery/apis/courier/v1alpha1.TLSConfig": schema_apimachinery_apis_courier_v1alpha1_TLSConfig(ref), } } @@ -33322,7 +33357,780 @@ func schema_kmodulesxyz_offshoot_api_api_v1_VolumeSource(ref common.ReferenceCal } } -func schema_apimachinery_apis_migrator_v1alpha1_ConnectionInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_Branch(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "metadata is a standard object metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec defines the desired state of Branch", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "status defines the observed state of Branch", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSpec", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchStatus"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchHistoryLimit(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchHistoryLimit bounds status.history.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "success": { + SchemaProps: spec.SchemaProps{ + Description: "Success is the number of successful runs to retain (default 3).", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "failed": { + SchemaProps: spec.SchemaProps{ + Description: "Failed is the number of failed runs to retain (default 2).", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + }, + }, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.Branch"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.Branch"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchRun(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchRun is one entry in the refresh history.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "at": { + SchemaProps: spec.SchemaProps{ + Description: "At is when the run finished.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "result": { + SchemaProps: spec.SchemaProps{ + Description: "Result is the outcome of the run.", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message is an optional human-readable detail (for a failed run).", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchSchedule(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchSchedule holds the refresh cadence.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cron": { + SchemaProps: spec.SchemaProps{ + Description: "Cron is the refresh schedule in standard cron syntax.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"cron"}, + }, + }, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchSnapshotRef(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchSnapshotRef references the source snapshot.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Type is the snapshot kind (VolumeGroupSnapshot preferred, VolumeSnapshot fallback).", + Type: []string{"string"}, + Format: "", + }, + }, + "ref": { + SchemaProps: spec.SchemaProps{ + Description: "Ref is the name of the snapshot object.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchSource points at a KubeDB Database.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "databaseRef": { + SchemaProps: spec.SchemaProps{ + Description: "DatabaseRef refers to the source KubeDB Database (kind and name).", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the source Database. Defaults to the Branch's namespace when empty.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"databaseRef"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.TypedLocalObjectReference"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchSpec defines the desired state of Branch. One Branch CR is one branch, and it doubles as the session object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "source": { + SchemaProps: spec.SchemaProps{ + Description: "Source is the KubeDB Database whose storage is cloned. Branch has no external source.", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSource"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Description: "Target describes only what differs from the source: the target cluster, namespace, name, StorageClass, and cpu/memory. Everything else is copied from the source Database.", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchTarget"), + }, + }, + "resetRootPassword": { + SchemaProps: spec.SchemaProps{ + Description: "ResetRootPassword resets the branch's root password after provisioning, so the source's password does not unlock the branch.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "dataMassageImage": { + SchemaProps: spec.SchemaProps{ + Description: "DataMassageImage is an optional user-provided container run as the LAST step to massage or anonymize the branch data.", + Type: []string{"string"}, + Format: "", + }, + }, + "schedule": { + SchemaProps: spec.SchemaProps{ + Description: "Schedule optionally refreshes the branch on a cron cadence. Omit for a one-shot branch.", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSchedule"), + }, + }, + "historyLimit": { + SchemaProps: spec.SchemaProps{ + Description: "HistoryLimit bounds status.history (default: last 3 successful, last 2 failed).", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchHistoryLimit"), + }, + }, + "volumeSnapshotClassName": { + SchemaProps: spec.SchemaProps{ + Description: "VolumeSnapshotClassName is the VolumeSnapshotClass used wherever courier creates a VolumeSnapshot — snapshotting the source PVCs and, for cross-namespace/cross-cluster branches, the importing snapshot in the target. It must match the CSI driver backing the volumes. When empty, courier auto-resolves the default class for the driver.", + Type: []string{"string"}, + Format: "", + }, + }, + "deletionPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "DeletionPolicy decides the target's fate on Branch deletion.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"source", "target"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchHistoryLimit", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSchedule", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSource", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchTarget"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchStatus defines the observed state of Branch.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Phase is the current phase of the branch.", + Type: []string{"string"}, + Format: "", + }, + }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode is how this operator is participating in the branch.", + Type: []string{"string"}, + Format: "", + }, + }, + "targetRef": { + SchemaProps: spec.SchemaProps{ + Description: "TargetRef references the branched Database.", + Ref: ref("k8s.io/api/core/v1.ObjectReference"), + }, + }, + "snapshot": { + SchemaProps: spec.SchemaProps{ + Description: "Snapshot references the source snapshot the current branch was cloned from.", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSnapshotRef"), + }, + }, + "lastRefreshAt": { + SchemaProps: spec.SchemaProps{ + Description: "LastRefreshAt is the time of the last successful refresh.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "freshness": { + SchemaProps: spec.SchemaProps{ + Description: "Freshness is the human-readable age of the branch data since the last refresh (e.g. \"3m\", \"1h2m\").", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "history": { + SchemaProps: spec.SchemaProps{ + Description: "History is the bounded refresh history (bounded by spec.historyLimit).", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchRun"), + }, + }, + }, + }, + }, + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "The status of each condition is one of True, False, or Unknown.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/client-go/api/v1.Condition"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "k8s.io/apimachinery/pkg/apis/meta/v1.Time", "kmodules.xyz/client-go/api/v1.Condition", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchRun", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchSnapshotRef"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchTarget describes the target Database. spec.target.cluster equal to the source's cluster is a same-cluster branch; a different cluster is a cross-cluster branch. Omit cluster for a same-cluster (Local) branch.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "clusterName": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterName is the target cluster name. Empty (or equal to the source's own cluster) means a same-cluster (Local) branch; a different ClusterName selects cross-cluster (OCM).", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the target Database.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the target Database.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "storageClassName": { + SchemaProps: spec.SchemaProps{ + Description: "StorageClassName is the StorageClass in the TARGET cluster.", + Type: []string{"string"}, + Format: "", + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources are the cpu/memory requests and limits in the TARGET cluster.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + }, + }, + "issuerRef": { + SchemaProps: spec.SchemaProps{ + Description: "IssuerRef references a cert-manager Issuer or ClusterIssuer in the TARGET cluster. TLS secrets are namespace and cluster scoped, so a branch cannot reuse the source's; when the source Database has TLS enabled the operator points the branch's TLS at this issuer and KubeDB mints fresh certificates for the branch. Required for a TLS-enabled source, ignored otherwise.", + Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + }, + Required: []string{"namespace", "name"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.TypedLocalObjectReference"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchWork(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchWork is a hub-only cross-cluster delivery object, similar to OCM ManifestWork. A source-cluster Branch operator creates it in its own hub namespace to drive a branch into a different cluster; the addon manager translates it into a ManifestWork in the target cluster's namespace and syncs status back. Same-cluster branches never use it.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "metadata is a standard object metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec defines the desired state of BranchWork", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "status defines the observed state of BranchWork", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkSpec", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkStatus"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchWorkList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWork"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWork"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchWorkManifestCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchWorkManifestCondition reports the apply/feedback status of a single delivered manifest, modeled on OCM ManifestWork's ManifestCondition.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "ordinal": { + SchemaProps: spec.SchemaProps{ + Description: "Ordinal is the index of the manifest in spec.manifests.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "resourceMeta": { + SchemaProps: spec.SchemaProps{ + Description: "ResourceMeta identifies the delivered resource.", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkResourceMeta"), + }, + }, + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "The status of each condition is one of True, False, or Unknown.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/client-go/api/v1.Condition"), + }, + }, + }, + }, + }, + }, + Required: []string{"ordinal"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/client-go/api/v1.Condition", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkResourceMeta"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchWorkResourceMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchWorkResourceMeta identifies a delivered resource.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "resource": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchWorkSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchWorkSpec carries the target cluster and the manifests to create there.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "targetCluster": { + SchemaProps: spec.SchemaProps{ + Description: "TargetCluster is the cluster the manifests are delivered to.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "manifests": { + SchemaProps: spec.SchemaProps{ + Description: "Manifests are the resources to create in the target cluster (the Branch CR, the target Database, the auth and config secrets, the VolumeSnapshot(s), and anything else the target needs).", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + }, + }, + }, + "refreshGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "RefreshGeneration is bumped by the source each time it re-ships a fresh snapshot; the creator keys its swap off a change here.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "deleteOption": { + SchemaProps: spec.SchemaProps{ + Description: "DeleteOption mirrors ManifestWork deletion semantics for the delivered resources.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"targetCluster"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_BranchWorkStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BranchWorkStatus mirrors the delivered Branch status plus per-manifest apply/feedback conditions, modeled on OCM ManifestWork.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "observedRefreshGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "ObservedRefreshGeneration is the spec.refreshGeneration the target has acted on.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "branch": { + SchemaProps: spec.SchemaProps{ + Description: "Branch mirrors the target-side Branch status so the source can copy it into its own Branch.", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchStatus"), + }, + }, + "manifests": { + SchemaProps: spec.SchemaProps{ + Description: "Manifests carries the per-manifest apply/feedback conditions from the target (ManifestWork-style).", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkManifestCondition"), + }, + }, + }, + }, + }, + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "The status of each condition is one of True, False, or Unknown.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/client-go/api/v1.Condition"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "kmodules.xyz/client-go/api/v1.Condition", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchStatus", "kubedb.dev/apimachinery/apis/courier/v1alpha1.BranchWorkManifestCondition"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_ConnectionInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -33330,226 +34138,618 @@ func schema_apimachinery_apis_migrator_v1alpha1_ConnectionInfo(ref common.Refere Properties: map[string]spec.Schema{ "appBinding": { SchemaProps: spec.SchemaProps{ - Description: "AppBinding refers to the source database AppBinding name, Who contains the connection information.", - Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), + Description: "AppBinding refers to the source database AppBinding name, Who contains the connection information.", + Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), + }, + }, + "dbName": { + SchemaProps: spec.SchemaProps{ + Description: "DBName refers to the database name.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "url": { + SchemaProps: spec.SchemaProps{ + Description: "URL refers to the database connection string.e.g postgres://postgres:password@localhost:5432/postgres", + Type: []string{"string"}, + Format: "", + }, + }, + "maxConnections": { + SchemaProps: spec.SchemaProps{ + Description: "MaxConnections refers to the `MaxConns`,which means the maximum size of the pool. The default is the greater of 4 or runtime.NumCPU().", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "tls": { + SchemaProps: spec.SchemaProps{ + Description: "TLS holds paths to PEM files for TLS-enabled connections.", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.TLSConfig"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "kmodules.xyz/client-go/api/v1.ObjectReference", "kubedb.dev/apimachinery/apis/courier/v1alpha1.TLSConfig"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_DBCourierCLI(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"image"}, + }, + }, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_DBCourierImages(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cli": { + SchemaProps: spec.SchemaProps{ + Description: "CLI specifies the migrator CLI image", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierCLI"), + }, + }, + "statusReporter": { + SchemaProps: spec.SchemaProps{ + Description: "StatusReporter is the sidecar image used to report migration progress", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierStatusReporter"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierCLI", "kubedb.dev/apimachinery/apis/courier/v1alpha1.DBCourierStatusReporter"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_DBCourierStatusReporter(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"image"}, + }, + }, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_JobDefaults(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "JobDefaults defines default settings for migration jobs", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "imagePullPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "ImagePullPolicy specifies the image pull policy for the migrator Job\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Always", "IfNotPresent", "Never"}, + }, + }, + "backoffLimit": { + SchemaProps: spec.SchemaProps{ + Description: "BackoffLimit specifies the number of retries before marking the job as failed", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "ttlSecondsAfterFinished": { + SchemaProps: spec.SchemaProps{ + Description: "TTLSecondsAfterFinished specifies the TTL for completed jobs", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "activeDeadlineSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it", + Type: []string{"integer"}, + Format: "int64", + }, + }, + }, + }, + }, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_LogicalReplication(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "copyData": { + SchemaProps: spec.SchemaProps{ + Description: "CopyData refers to whether to copy data the initial snapshot when creating the subscription.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "publication": { + SchemaProps: spec.SchemaProps{ + Description: "Publication refers to the publication configuration.", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.Publication"), + }, + }, + "subscription": { + SchemaProps: spec.SchemaProps{ + Description: "Subscription refers to the subscription configuration.", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.Subscription"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/courier/v1alpha1.Publication", "kubedb.dev/apimachinery/apis/courier/v1alpha1.Subscription"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MSSQLServerConnectionInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "appBinding": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/client-go/api/v1.ObjectReference"), + }, + }, + "database": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "maxConnections": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "encrypt": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "trustServerCertificate": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"database"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/client-go/api/v1.ObjectReference"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MSSQLServerMigration(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "metadata is a standard object metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec defines the desired state of MSSQLServerMigration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerMigrationSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "status defines the observed state of MSSQLServerMigration. It reuses the shared MigrationStatus so that the Migration duck type can project it and the operator's status patches replay onto it unchanged.", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationStatus"), }, }, - "dbName": { + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerMigrationSpec", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationStatus"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MSSQLServerMigrationList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DBName refers to the database name.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "url": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "URL refers to the database connection string.e.g postgres://postgres:password@localhost:5432/postgres", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "maxConnections": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "MaxConnections refers to the `MaxConns`,which means the maximum size of the pool. The default is the greater of 4 or runtime.NumCPU().", - Type: []string{"integer"}, - Format: "int32", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "tls": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "TLS holds paths to PEM files for TLS-enabled connections.", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.TLSConfig"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerMigration"), + }, + }, + }, }, }, }, + Required: []string{"metadata", "items"}, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.ObjectReference", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.TLSConfig"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerMigration"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_DBMigratorCLI(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MSSQLServerMigrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "MSSQLServerMigrationSpec defines the desired state of MSSQLServerMigration", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "image": { + "source": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Source defines the source MSSQL Server database configuration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSource"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Description: "Target defines the target MSSQL Server database configuration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerTarget"), + }, + }, + "jobDefaults": { + SchemaProps: spec.SchemaProps{ + Description: "JobDefaults specifies default settings for migration jobs", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults"), + }, + }, + "jobTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "JobTemplate specifies runtime configurations for the migration Job", + Ref: ref("kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec"), }, }, }, - Required: []string{"image"}, + Required: []string{"source", "target"}, }, }, + Dependencies: []string{ + "kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec", "kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSource", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerTarget"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_DBMigratorImages(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MSSQLServerSchema(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cli": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "CLI specifies the migrator CLI image", - Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorCLI"), + Description: "Enabled controls whether the Schema Phase should be executed.", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "statusReporter": { + "database": { SchemaProps: spec.SchemaProps{ - Description: "StatusReporter is the sidecar image used to report migration progress", - Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorStatusReporter"), + Description: "Database is the list of databases to migrate.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "schema": { + SchemaProps: spec.SchemaProps{ + Description: "Schema is the list of SQL Server schemas (e.g. \"dbo\") to include.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "excludeSchema": { + SchemaProps: spec.SchemaProps{ + Description: "ExcludeSchema is the list of SQL Server schemas to exclude.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "table": { + SchemaProps: spec.SchemaProps{ + Description: "Table is the list of schema-qualified tables (e.g. \"dbo.Users\") to include.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "excludeTable": { + SchemaProps: spec.SchemaProps{ + Description: "ExcludeTable is the list of schema-qualified tables to exclude.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, + Required: []string{"enabled"}, }, }, - Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorCLI", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.DBMigratorStatusReporter"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_DBMigratorStatusReporter(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MSSQLServerSnapshot(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "image": { + "enabled": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Enabled controls whether the Snapshot Phase should be executed.", + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "pipeline": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSnapshotPipeline"), }, }, }, - Required: []string{"image"}, }, }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSnapshotPipeline"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_JobDefaults(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MSSQLServerSnapshotPipeline(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "JobDefaults defines default settings for migration jobs", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "imagePullPolicy": { + "workers": { SchemaProps: spec.SchemaProps{ - Description: "ImagePullPolicy specifies the image pull policy for the migrator Job\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Always", "IfNotPresent", "Never"}, + Type: []string{"integer"}, + Format: "int32", }, }, - "backoffLimit": { + "sinkers": { SchemaProps: spec.SchemaProps{ - Description: "BackoffLimit specifies the number of retries before marking the job as failed", - Type: []string{"integer"}, - Format: "int32", + Type: []string{"integer"}, + Format: "int32", }, }, - "ttlSecondsAfterFinished": { + "buffer": { SchemaProps: spec.SchemaProps{ - Description: "TTLSecondsAfterFinished specifies the TTL for completed jobs", - Type: []string{"integer"}, - Format: "int32", + Type: []string{"integer"}, + Format: "int32", }, }, - "activeDeadlineSeconds": { + "read_batch_size": { SchemaProps: spec.SchemaProps{ - Description: "ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it", - Type: []string{"integer"}, - Format: "int64", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "write_batch_size": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", }, }, }, + Required: []string{"workers", "sinkers", "buffer", "read_batch_size", "write_batch_size"}, }, }, } } -func schema_apimachinery_apis_migrator_v1alpha1_LogicalReplication(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MSSQLServerSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "copyData": { + "connectionInfo": { SchemaProps: spec.SchemaProps{ - Description: "CopyData refers to whether to copy data the initial snapshot when creating the subscription.", - Type: []string{"boolean"}, - Format: "", + Description: "ConnectionInfo refers to the source MSSQL Server database connection information.", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerConnectionInfo"), }, }, - "publication": { + "schema": { SchemaProps: spec.SchemaProps{ - Description: "Publication refers to the publication configuration.", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.Publication"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSchema"), }, }, - "subscription": { + "snapshot": { SchemaProps: spec.SchemaProps{ - Description: "Subscription refers to the subscription configuration.", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.Subscription"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSnapshot"), + }, + }, + "streaming": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerStreaming"), }, }, }, + Required: []string{"connectionInfo"}, }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Publication", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Subscription"}, + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerConnectionInfo", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSchema", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerSnapshot", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerStreaming"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_MariaDBSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MSSQLServerStreaming(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "connectionInfo": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "ConnectionInfo refers to the source MariaDB database connection information.", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"), + Description: "Enabled controls whether the CDC Streaming Phase should be executed.", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "schema": { + "pollInterval": { SchemaProps: spec.SchemaProps{ - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSchema"), + Description: "PollInterval controls how often CDC changes are polled from the source.", + Type: []string{"integer"}, + Format: "int64", }, }, - "snapshot": { + "autoEnableCDC": { SchemaProps: spec.SchemaProps{ - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSnapshot"), + Description: "AutoEnableCDC enables Change Data Capture on the source database/tables automatically when set to true. If false, CDC must be pre-enabled.", + Type: []string{"boolean"}, + Format: "", }, }, - "streaming": { + "batchSize": { SchemaProps: spec.SchemaProps{ - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLStreaming"), + Description: "BatchSize is the maximum number of CDC changes to apply in a single target transaction. Larger batches improve throughput but extend the window of lost work if the migration is cancelled mid-batch.", + Type: []string{"integer"}, + Format: "int32", }, }, }, - Required: []string{"connectionInfo"}, }, }, - Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSchema", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSnapshot", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLStreaming"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_MariaDBTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MSSQLServerTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -33557,8 +34757,8 @@ func schema_apimachinery_apis_migrator_v1alpha1_MariaDBTarget(ref common.Referen Properties: map[string]spec.Schema{ "connectionInfo": { SchemaProps: spec.SchemaProps{ - Description: "ConnectionInfo refers to the target MariaDB database connection information.", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"), + Description: "ConnectionInfo refers to the target MSSQL Server database connection information.", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerConnectionInfo"), }, }, }, @@ -33566,39 +34766,61 @@ func schema_apimachinery_apis_migrator_v1alpha1_MariaDBTarget(ref common.Referen }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"}, + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MSSQLServerConnectionInfo"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_MigrationConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MariaDBMigration(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "MigrationConfig defines the desired state of Migrator", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "source": { + "kind": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.Source"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "target": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.Target"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "metadata is a standard object metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec defines the desired state of MariaDBMigration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBMigrationSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "status defines the observed state of MariaDBMigration. It reuses the shared MigrationStatus so that the Migration duck type can project it and the operator's status patches replay onto it unchanged.", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationStatus"), }, }, }, - Required: []string{"source", "target"}, + Required: []string{"spec"}, }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Source", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Target"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBMigrationSpec", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationStatus"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_Migrator(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MariaDBMigrationList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -33620,35 +34842,160 @@ func schema_apimachinery_apis_migrator_v1alpha1_Migrator(ref common.ReferenceCal }, "metadata": { SchemaProps: spec.SchemaProps{ - Description: "metadata is a standard object metadata", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "spec": { + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBMigration"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBMigration"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MariaDBMigrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MariaDBMigrationSpec defines the desired state of MariaDBMigration", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "source": { SchemaProps: spec.SchemaProps{ - Description: "spec defines the desired state of Migrator", + Description: "Source defines the source MariaDB database configuration", Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MigratorSpec"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBSource"), }, }, - "status": { + "target": { SchemaProps: spec.SchemaProps{ - Description: "status defines the observed state of Migrator", + Description: "Target defines the target MariaDB database configuration", Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MigratorStatus"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBTarget"), + }, + }, + "jobDefaults": { + SchemaProps: spec.SchemaProps{ + Description: "JobDefaults specifies default settings for migration jobs", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults"), + }, + }, + "jobTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "JobTemplate specifies runtime configurations for the migration Job", + Ref: ref("kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec"), }, }, }, - Required: []string{"spec"}, + Required: []string{"source", "target"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec", "kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBSource", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MariaDBTarget"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MariaDBSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "connectionInfo": { + SchemaProps: spec.SchemaProps{ + Description: "ConnectionInfo refers to the source MariaDB database connection information.", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"), + }, + }, + "schema": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSchema"), + }, + }, + "snapshot": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSnapshot"), + }, + }, + "streaming": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLStreaming"), + }, + }, + }, + Required: []string{"connectionInfo"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSchema", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSnapshot", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLStreaming"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MariaDBTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "connectionInfo": { + SchemaProps: spec.SchemaProps{ + Description: "ConnectionInfo refers to the target MariaDB database connection information.", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"), + }, + }, + }, + Required: []string{"connectionInfo"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MigrationConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MigrationConfig defines the desired state of Migration", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "source": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.Source"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.Target"), + }, + }, + }, + Required: []string{"source", "target"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MigratorSpec", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MigratorStatus"}, + "kubedb.dev/apimachinery/apis/courier/v1alpha1.Source", "kubedb.dev/apimachinery/apis/courier/v1alpha1.Target"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_MigratorList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MigrationList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -33681,7 +35028,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_MigratorList(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.Migrator"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.Migration"), }, }, }, @@ -33692,33 +35039,33 @@ func schema_apimachinery_apis_migrator_v1alpha1_MigratorList(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Migrator"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.Migration"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_MigratorSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MigrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "MigratorSpec defines the desired state of Migrator", + Description: "MigrationSpec defines the desired state of Migration", Type: []string{"object"}, Properties: map[string]spec.Schema{ "source": { SchemaProps: spec.SchemaProps{ Description: "Source defines the source database configuration", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.Source"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.Source"), }, }, "target": { SchemaProps: spec.SchemaProps{ Description: "Target defines the target database configuration", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.Target"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.Target"), }, }, "jobDefaults": { SchemaProps: spec.SchemaProps{ Description: "JobDefaults specifies default settings for migration jobs", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.JobDefaults"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults"), }, }, "jobTemplate": { @@ -33732,15 +35079,15 @@ func schema_apimachinery_apis_migrator_v1alpha1_MigratorSpec(ref common.Referenc }, }, Dependencies: []string{ - "kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.JobDefaults", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Source", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Target"}, + "kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec", "kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults", "kubedb.dev/apimachinery/apis/courier/v1alpha1.Source", "kubedb.dev/apimachinery/apis/courier/v1alpha1.Target"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_MigratorStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MigrationStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "MigratorStatus defines the observed state of Migrator.", + Description: "MigrationStatus defines the observed state of Migration.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "phase": { @@ -33753,7 +35100,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_MigratorStatus(ref common.Refere "progress": { SchemaProps: spec.SchemaProps{ Description: "Progress contains the current progress of migration", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.Progress"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.Progress"), }, }, "conditions": { @@ -33782,11 +35129,151 @@ func schema_apimachinery_apis_migrator_v1alpha1_MigratorStatus(ref common.Refere }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.Condition", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Progress"}, + "kmodules.xyz/client-go/api/v1.Condition", "kubedb.dev/apimachinery/apis/courier/v1alpha1.Progress"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MongoDBMigration(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "metadata is a standard object metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec defines the desired state of MongoDBMigration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBMigrationSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "status defines the observed state of MongoDBMigration. It reuses the shared MigrationStatus so that the Migration duck type can project it and the operator's status patches replay onto it unchanged.", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationStatus", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBMigrationSpec"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MongoDBMigrationList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBMigration"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBMigration"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MongoDBMigrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MongoDBMigrationSpec defines the desired state of MongoDBMigration", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "source": { + SchemaProps: spec.SchemaProps{ + Description: "Source defines the source MongoDB database configuration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBSource"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Description: "Target defines the target MongoDB database configuration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBTarget"), + }, + }, + "jobDefaults": { + SchemaProps: spec.SchemaProps{ + Description: "JobDefaults specifies default settings for migration jobs", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults"), + }, + }, + "jobTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "JobTemplate specifies runtime configurations for the migration Job", + Ref: ref("kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec"), + }, + }, + }, + Required: []string{"source", "target"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec", "kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBSource", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MongoDBTarget"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_MongoSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MongoDBSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -33795,12 +35282,12 @@ func schema_apimachinery_apis_migrator_v1alpha1_MongoSource(ref common.Reference "connectionInfo": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"), }, }, "mongoshake": { SchemaProps: spec.SchemaProps{ - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.Mongoshake"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.Mongoshake"), }, }, }, @@ -33808,11 +35295,11 @@ func schema_apimachinery_apis_migrator_v1alpha1_MongoSource(ref common.Reference }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.Mongoshake"}, + "kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo", "kubedb.dev/apimachinery/apis/courier/v1alpha1.Mongoshake"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_MongoTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MongoDBTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -33821,7 +35308,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_MongoTarget(ref common.Reference "connectionInfo": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"), }, }, }, @@ -33829,11 +35316,11 @@ func schema_apimachinery_apis_migrator_v1alpha1_MongoTarget(ref common.Reference }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"}, + "kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_Mongoshake(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_Mongoshake(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -33964,7 +35451,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_Mongoshake(ref common.ReferenceC } } -func schema_apimachinery_apis_migrator_v1alpha1_MySQLConnectionInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MySQLConnectionInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34019,7 +35506,147 @@ func schema_apimachinery_apis_migrator_v1alpha1_MySQLConnectionInfo(ref common.R } } -func schema_apimachinery_apis_migrator_v1alpha1_MySQLSchema(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MySQLMigration(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "metadata is a standard object metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec defines the desired state of MySQLMigration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLMigrationSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "status defines the observed state of MySQLMigration. It reuses the shared MigrationStatus so that the Migration duck type can project it and the operator's status patches replay onto it unchanged.", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationStatus", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLMigrationSpec"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MySQLMigrationList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLMigration"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLMigration"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MySQLMigrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MySQLMigrationSpec defines the desired state of MySQLMigration", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "source": { + SchemaProps: spec.SchemaProps{ + Description: "Source defines the source MySQL database configuration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSource"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Description: "Target defines the target MySQL database configuration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLTarget"), + }, + }, + "jobDefaults": { + SchemaProps: spec.SchemaProps{ + Description: "JobDefaults specifies default settings for migration jobs", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults"), + }, + }, + "jobTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "JobTemplate specifies runtime configurations for the migration Job", + Ref: ref("kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec"), + }, + }, + }, + Required: []string{"source", "target"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec", "kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSource", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLTarget"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_MySQLSchema(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34070,7 +35697,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_MySQLSchema(ref common.Reference } } -func schema_apimachinery_apis_migrator_v1alpha1_MySQLSnapshot(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MySQLSnapshot(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34086,18 +35713,18 @@ func schema_apimachinery_apis_migrator_v1alpha1_MySQLSnapshot(ref common.Referen }, "pipeline": { SchemaProps: spec.SchemaProps{ - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSnapshotPipeline"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSnapshotPipeline"), }, }, }, }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSnapshotPipeline"}, + "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSnapshotPipeline"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_MySQLSnapshotPipeline(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MySQLSnapshotPipeline(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34140,7 +35767,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_MySQLSnapshotPipeline(ref common } } -func schema_apimachinery_apis_migrator_v1alpha1_MySQLSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MySQLSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34149,22 +35776,22 @@ func schema_apimachinery_apis_migrator_v1alpha1_MySQLSource(ref common.Reference "connectionInfo": { SchemaProps: spec.SchemaProps{ Description: "ConnectionInfo refers to the source MySQL database connection information.", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"), }, }, "schema": { SchemaProps: spec.SchemaProps{ - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSchema"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSchema"), }, }, "snapshot": { SchemaProps: spec.SchemaProps{ - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSnapshot"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSnapshot"), }, }, "streaming": { SchemaProps: spec.SchemaProps{ - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLStreaming"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLStreaming"), }, }, }, @@ -34172,11 +35799,11 @@ func schema_apimachinery_apis_migrator_v1alpha1_MySQLSource(ref common.Reference }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSchema", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSnapshot", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLStreaming"}, + "kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSchema", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLSnapshot", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MySQLStreaming"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_MySQLStreaming(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MySQLStreaming(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34196,7 +35823,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_MySQLStreaming(ref common.Refere } } -func schema_apimachinery_apis_migrator_v1alpha1_MySQLTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_MySQLTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34205,7 +35832,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_MySQLTarget(ref common.Reference "connectionInfo": { SchemaProps: spec.SchemaProps{ Description: "ConnectionInfo refers to the target MySQL database connection information.", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"), }, }, }, @@ -34213,11 +35840,11 @@ func schema_apimachinery_apis_migrator_v1alpha1_MySQLTarget(ref common.Reference }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"}, + "kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_PgDump(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_PgDump(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34311,7 +35938,147 @@ func schema_apimachinery_apis_migrator_v1alpha1_PgDump(ref common.ReferenceCallb } } -func schema_apimachinery_apis_migrator_v1alpha1_PostgresSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_PostgresMigration(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "metadata is a standard object metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec defines the desired state of PostgresMigration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresMigrationSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "status defines the observed state of PostgresMigration. It reuses the shared MigrationStatus so that the Migration duck type can project it and the operator's status patches replay onto it unchanged.", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.MigrationStatus", "kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresMigrationSpec"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_PostgresMigrationList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresMigration"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresMigration"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_PostgresMigrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostgresMigrationSpec defines the desired state of PostgresMigration", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "source": { + SchemaProps: spec.SchemaProps{ + Description: "Source defines the source Postgres database configuration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresSource"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Description: "Target defines the target Postgres database configuration", + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresTarget"), + }, + }, + "jobDefaults": { + SchemaProps: spec.SchemaProps{ + Description: "JobDefaults specifies default settings for migration jobs", + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults"), + }, + }, + "jobTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "JobTemplate specifies runtime configurations for the migration Job", + Ref: ref("kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec"), + }, + }, + }, + Required: []string{"source", "target"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec", "kubedb.dev/apimachinery/apis/courier/v1alpha1.JobDefaults", "kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresSource", "kubedb.dev/apimachinery/apis/courier/v1alpha1.PostgresTarget"}, + } +} + +func schema_apimachinery_apis_courier_v1alpha1_PostgresSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34321,19 +36088,19 @@ func schema_apimachinery_apis_migrator_v1alpha1_PostgresSource(ref common.Refere SchemaProps: spec.SchemaProps{ Description: "ConnectionInfo refers to the source Postgres database connection information.", Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"), }, }, "pgDump": { SchemaProps: spec.SchemaProps{ Description: "PgDump refers to the CLI name which will be used to dump the schema or data from the source Postgres database.", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.PgDump"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.PgDump"), }, }, "logicalReplication": { SchemaProps: spec.SchemaProps{ Description: "LogicalReplication refers to the logical replication configuration. URL: https://www.postgresql.org/docs/current/logical-replication.html", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.LogicalReplication"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.LogicalReplication"), }, }, }, @@ -34341,11 +36108,11 @@ func schema_apimachinery_apis_migrator_v1alpha1_PostgresSource(ref common.Refere }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.LogicalReplication", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.PgDump"}, + "kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo", "kubedb.dev/apimachinery/apis/courier/v1alpha1.LogicalReplication", "kubedb.dev/apimachinery/apis/courier/v1alpha1.PgDump"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_PostgresTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_PostgresTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34355,7 +36122,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_PostgresTarget(ref common.Refere SchemaProps: spec.SchemaProps{ Description: "ConnectionInfo refers to the target Postgres database connection information.", Default: map[string]interface{}{}, - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"), + Ref: ref("kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"), }, }, }, @@ -34363,11 +36130,11 @@ func schema_apimachinery_apis_migrator_v1alpha1_PostgresTarget(ref common.Refere }, }, Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.ConnectionInfo"}, + "kubedb.dev/apimachinery/apis/courier/v1alpha1.ConnectionInfo"}, } } -func schema_apimachinery_apis_migrator_v1alpha1_Progress(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_Progress(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34403,7 +36170,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_Progress(ref common.ReferenceCal } } -func schema_apimachinery_apis_migrator_v1alpha1_Publication(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_Publication(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34444,45 +36211,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_Publication(ref common.Reference } } -func schema_apimachinery_apis_migrator_v1alpha1_Source(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Source defines the source database configuration", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "postgres": { - SchemaProps: spec.SchemaProps{ - Description: "Postgres refers to the source Postgres database configuration", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.PostgresSource"), - }, - }, - "mysql": { - SchemaProps: spec.SchemaProps{ - Description: "MySQL refers to the source MySQL database configuration", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSource"), - }, - }, - "mariadb": { - SchemaProps: spec.SchemaProps{ - Description: "MariaDB refers to the source MariaDB database configuration", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MariaDBSource"), - }, - }, - "mongodb": { - SchemaProps: spec.SchemaProps{ - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MongoSource"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MariaDBSource", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MongoSource", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLSource", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.PostgresSource"}, - } -} - -func schema_apimachinery_apis_migrator_v1alpha1_Subscription(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_Subscription(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34501,7 +36230,7 @@ func schema_apimachinery_apis_migrator_v1alpha1_Subscription(ref common.Referenc } } -func schema_apimachinery_apis_migrator_v1alpha1_TLSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_apis_courier_v1alpha1_TLSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -34547,41 +36276,3 @@ func schema_apimachinery_apis_migrator_v1alpha1_TLSConfig(ref common.ReferenceCa }, } } - -func schema_apimachinery_apis_migrator_v1alpha1_Target(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Target defines the target database configuration", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "postgres": { - SchemaProps: spec.SchemaProps{ - Description: "Postgres refers to the target Postgres database configuration", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.PostgresTarget"), - }, - }, - "mongodb": { - SchemaProps: spec.SchemaProps{ - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MongoTarget"), - }, - }, - "mysql": { - SchemaProps: spec.SchemaProps{ - Description: "MySQL refers to the target MySQL database configuration", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLTarget"), - }, - }, - "mariadb": { - SchemaProps: spec.SchemaProps{ - Description: "MariaDB refers to the target MariaDB database configuration", - Ref: ref("kubedb.dev/apimachinery/apis/migrator/v1alpha1.MariaDBTarget"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MariaDBTarget", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MongoTarget", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.MySQLTarget", "kubedb.dev/apimachinery/apis/migrator/v1alpha1.PostgresTarget"}, - } -} diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/postgres.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/postgresmigration_types.go similarity index 62% rename from vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/postgres.go rename to vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/postgresmigration_types.go index 47383e328..d4e6b98d9 100644 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/postgres.go +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/postgresmigration_types.go @@ -16,6 +16,75 @@ limitations under the License. package v1alpha1 +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + ofst "kmodules.xyz/offshoot-api/api/v1" +) + +const ( + ResourceKindPostgresMigration = "PostgresMigration" + ResourceSingularPostgresMigration = "postgresmigration" + ResourcePluralPostgresMigrations = "postgresmigrations" +) + +// +genclient +// +k8s:openapi-gen=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=postgresmigrations,singular=postgresmigration,shortName=pgmig,categories={kubedb,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Namespaced +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Stage",type="string",JSONPath=".status.progress.info.Stage" +// +kubebuilder:printcolumn:name="Lag",type="string",JSONPath=".status.progress.info.Lag" +// +kubebuilder:printcolumn:name="Progress",type="string",JSONPath=".status.progress.info.Progress" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +type PostgresMigration struct { + metav1.TypeMeta `json:",inline"` + + // metadata is a standard object metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitzero"` + + // spec defines the desired state of PostgresMigration + // +required + Spec PostgresMigrationSpec `json:"spec"` + + // status defines the observed state of PostgresMigration. + // It reuses the shared MigrationStatus so that the Migration duck type can + // project it and the operator's status patches replay onto it unchanged. + // +optional + Status MigrationStatus `json:"status,omitzero"` +} + +// PostgresMigrationSpec defines the desired state of PostgresMigration +type PostgresMigrationSpec struct { + // Source defines the source Postgres database configuration + Source PostgresSource `json:"source"` + + // Target defines the target Postgres database configuration + Target PostgresTarget `json:"target"` + + // JobDefaults specifies default settings for migration jobs + // +optional + JobDefaults *JobDefaults `json:"jobDefaults,omitempty"` + + // JobTemplate specifies runtime configurations for the migration Job + // +optional + JobTemplate *ofst.PodTemplateSpec `json:"jobTemplate,omitempty"` +} + +// PostgresMigrationList contains a list of PostgresMigration + +// +kubebuilder:object:root=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type PostgresMigrationList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitzero"` + Items []PostgresMigration `json:"items"` +} + type PostgresSource struct { // ConnectionInfo refers to the source Postgres database connection information. ConnectionInfo ConnectionInfo `yaml:"connectionInfo" json:"connectionInfo"` @@ -110,3 +179,7 @@ type Subscription struct { // This name will be used when creating or referencing the subscription in logical replication. Name string `yaml:"name" json:"name,omitempty"` } + +func init() { + SchemeBuilder.Register(&PostgresMigration{}, &PostgresMigrationList{}) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/types.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/types.go similarity index 68% rename from vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/types.go rename to vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/types.go index ea13d0477..d0f0ababb 100644 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/types.go +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/types.go @@ -20,32 +20,48 @@ import ( kmapi "kmodules.xyz/client-go/api/v1" ) -// MigrationConfig defines the desired state of Migrator +// MigrationConfig defines the desired state of Migration type MigrationConfig struct { Source Source `yaml:"source" json:"source"` Target Target `yaml:"target" json:"target"` } // Source defines the source database configuration +// +// Source is a projection-only union used by the Migration duck type; it inlines +// every engine's source struct, which share JSON field names, so it cannot (and +// need not) be represented as an OpenAPI schema. Migration is never served. +// +k8s:openapi-gen=false type Source struct { // Postgres refers to the source Postgres database configuration - Postgres *PostgresSource `yaml:"postgres" json:"postgres,omitempty"` + *PostgresSource `json:",inline,omitempty"` // MySQL refers to the source MySQL database configuration - MySQL *MySQLSource `yaml:"mysql" json:"mysql,omitempty"` + *MySQLSource `json:",inline,omitempty"` // MariaDB refers to the source MariaDB database configuration - MariaDB *MariaDBSource `yaml:"mariadb" json:"mariadb,omitempty"` - MongoDB *MongoSource `yaml:"mongodb" json:"mongodb,omitempty"` + *MariaDBSource `json:",inline,omitempty"` + // MongoSource refers to the source MongoDB database configuration + *MongoDBSource `json:",inline,omitempty"` + // MSSQLServer refers to the source MSSQL Server database configuration + *MSSQLServerSource `json:",inline,omitempty"` } // Target defines the target database configuration +// +// Target is a projection-only union used by the Migration duck type; it inlines +// every engine's target struct, which share JSON field names, so it cannot (and +// need not) be represented as an OpenAPI schema. Migration is never served. +// +k8s:openapi-gen=false type Target struct { // Postgres refers to the target Postgres database configuration - Postgres *PostgresTarget `yaml:"postgres" json:"postgres,omitempty"` - MongoDB *MongoTarget `yaml:"mongodb" json:"mongodb,omitempty"` + *PostgresTarget `json:",inline,omitempty"` + // MongoTarget refers to the target Postgres database configuration + *MongoDBTarget `json:",inline,omitempty"` // MySQL refers to the target MySQL database configuration - MySQL *MySQLTarget `yaml:"mysql" json:"mysql,omitempty"` + *MySQLTarget `json:",inline,omitempty"` // MariaDB refers to the target MariaDB database configuration - MariaDB *MariaDBTarget `yaml:"mariadb" json:"mariadb,omitempty"` + *MariaDBTarget `json:",inline,omitempty"` + // MSSQLServer refers to the target MSSQL Server database configuration + *MSSQLServerTarget `json:",inline,omitempty"` } type ConnectionInfo struct { @@ -88,19 +104,19 @@ type TLSConfig struct { ServerName string `yaml:"serverName" json:"serverName,omitempty"` } -type DBMigratorImages struct { +type DBCourierImages struct { // CLI specifies the migrator CLI image // +optional - CLI DBMigratorCLI `json:"cli"` + CLI DBCourierCLI `json:"cli"` // StatusReporter is the sidecar image used to report migration progress // +optional - StatusReporter DBMigratorStatusReporter `json:"statusReporter"` + StatusReporter DBCourierStatusReporter `json:"statusReporter"` } -type DBMigratorCLI struct { +type DBCourierCLI struct { Image string `json:"image"` } -type DBMigratorStatusReporter struct { +type DBCourierStatusReporter struct { Image string `json:"image"` } diff --git a/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 000000000..d07319769 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/courier/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,1943 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by deepcopy-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1 "k8s.io/api/core/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + apiv1 "kmodules.xyz/client-go/api/v1" + offshootapiapiv1 "kmodules.xyz/offshoot-api/api/v1" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Branch) DeepCopyInto(out *Branch) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Branch. +func (in *Branch) DeepCopy() *Branch { + if in == nil { + return nil + } + out := new(Branch) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Branch) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchHistoryLimit) DeepCopyInto(out *BranchHistoryLimit) { + *out = *in + if in.Success != nil { + in, out := &in.Success, &out.Success + *out = new(int32) + **out = **in + } + if in.Failed != nil { + in, out := &in.Failed, &out.Failed + *out = new(int32) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchHistoryLimit. +func (in *BranchHistoryLimit) DeepCopy() *BranchHistoryLimit { + if in == nil { + return nil + } + out := new(BranchHistoryLimit) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchList) DeepCopyInto(out *BranchList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Branch, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchList. +func (in *BranchList) DeepCopy() *BranchList { + if in == nil { + return nil + } + out := new(BranchList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *BranchList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchRun) DeepCopyInto(out *BranchRun) { + *out = *in + in.At.DeepCopyInto(&out.At) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchRun. +func (in *BranchRun) DeepCopy() *BranchRun { + if in == nil { + return nil + } + out := new(BranchRun) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchSchedule) DeepCopyInto(out *BranchSchedule) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchSchedule. +func (in *BranchSchedule) DeepCopy() *BranchSchedule { + if in == nil { + return nil + } + out := new(BranchSchedule) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchSnapshotRef) DeepCopyInto(out *BranchSnapshotRef) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchSnapshotRef. +func (in *BranchSnapshotRef) DeepCopy() *BranchSnapshotRef { + if in == nil { + return nil + } + out := new(BranchSnapshotRef) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchSource) DeepCopyInto(out *BranchSource) { + *out = *in + in.DatabaseRef.DeepCopyInto(&out.DatabaseRef) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchSource. +func (in *BranchSource) DeepCopy() *BranchSource { + if in == nil { + return nil + } + out := new(BranchSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchSpec) DeepCopyInto(out *BranchSpec) { + *out = *in + in.Source.DeepCopyInto(&out.Source) + in.Target.DeepCopyInto(&out.Target) + if in.Schedule != nil { + in, out := &in.Schedule, &out.Schedule + *out = new(BranchSchedule) + **out = **in + } + if in.HistoryLimit != nil { + in, out := &in.HistoryLimit, &out.HistoryLimit + *out = new(BranchHistoryLimit) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchSpec. +func (in *BranchSpec) DeepCopy() *BranchSpec { + if in == nil { + return nil + } + out := new(BranchSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchStatus) DeepCopyInto(out *BranchStatus) { + *out = *in + if in.TargetRef != nil { + in, out := &in.TargetRef, &out.TargetRef + *out = new(v1.ObjectReference) + **out = **in + } + if in.Snapshot != nil { + in, out := &in.Snapshot, &out.Snapshot + *out = new(BranchSnapshotRef) + **out = **in + } + if in.LastRefreshAt != nil { + in, out := &in.LastRefreshAt, &out.LastRefreshAt + *out = (*in).DeepCopy() + } + out.Freshness = in.Freshness + if in.History != nil { + in, out := &in.History, &out.History + *out = make([]BranchRun, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]apiv1.Condition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchStatus. +func (in *BranchStatus) DeepCopy() *BranchStatus { + if in == nil { + return nil + } + out := new(BranchStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchTarget) DeepCopyInto(out *BranchTarget) { + *out = *in + in.Resources.DeepCopyInto(&out.Resources) + if in.IssuerRef != nil { + in, out := &in.IssuerRef, &out.IssuerRef + *out = new(v1.TypedLocalObjectReference) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchTarget. +func (in *BranchTarget) DeepCopy() *BranchTarget { + if in == nil { + return nil + } + out := new(BranchTarget) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchWork) DeepCopyInto(out *BranchWork) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchWork. +func (in *BranchWork) DeepCopy() *BranchWork { + if in == nil { + return nil + } + out := new(BranchWork) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *BranchWork) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchWorkList) DeepCopyInto(out *BranchWorkList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]BranchWork, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchWorkList. +func (in *BranchWorkList) DeepCopy() *BranchWorkList { + if in == nil { + return nil + } + out := new(BranchWorkList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *BranchWorkList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchWorkManifestCondition) DeepCopyInto(out *BranchWorkManifestCondition) { + *out = *in + out.ResourceMeta = in.ResourceMeta + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]apiv1.Condition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchWorkManifestCondition. +func (in *BranchWorkManifestCondition) DeepCopy() *BranchWorkManifestCondition { + if in == nil { + return nil + } + out := new(BranchWorkManifestCondition) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchWorkResourceMeta) DeepCopyInto(out *BranchWorkResourceMeta) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchWorkResourceMeta. +func (in *BranchWorkResourceMeta) DeepCopy() *BranchWorkResourceMeta { + if in == nil { + return nil + } + out := new(BranchWorkResourceMeta) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchWorkSpec) DeepCopyInto(out *BranchWorkSpec) { + *out = *in + if in.Manifests != nil { + in, out := &in.Manifests, &out.Manifests + *out = make([]runtime.RawExtension, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchWorkSpec. +func (in *BranchWorkSpec) DeepCopy() *BranchWorkSpec { + if in == nil { + return nil + } + out := new(BranchWorkSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchWorkStatus) DeepCopyInto(out *BranchWorkStatus) { + *out = *in + if in.Branch != nil { + in, out := &in.Branch, &out.Branch + *out = new(BranchStatus) + (*in).DeepCopyInto(*out) + } + if in.Manifests != nil { + in, out := &in.Manifests, &out.Manifests + *out = make([]BranchWorkManifestCondition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]apiv1.Condition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchWorkStatus. +func (in *BranchWorkStatus) DeepCopy() *BranchWorkStatus { + if in == nil { + return nil + } + out := new(BranchWorkStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ConnectionInfo) DeepCopyInto(out *ConnectionInfo) { + *out = *in + if in.AppBinding != nil { + in, out := &in.AppBinding, &out.AppBinding + *out = new(apiv1.ObjectReference) + **out = **in + } + if in.MaxConnections != nil { + in, out := &in.MaxConnections, &out.MaxConnections + *out = new(int32) + **out = **in + } + if in.TLS != nil { + in, out := &in.TLS, &out.TLS + *out = new(TLSConfig) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionInfo. +func (in *ConnectionInfo) DeepCopy() *ConnectionInfo { + if in == nil { + return nil + } + out := new(ConnectionInfo) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DBCourierCLI) DeepCopyInto(out *DBCourierCLI) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBCourierCLI. +func (in *DBCourierCLI) DeepCopy() *DBCourierCLI { + if in == nil { + return nil + } + out := new(DBCourierCLI) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DBCourierImages) DeepCopyInto(out *DBCourierImages) { + *out = *in + out.CLI = in.CLI + out.StatusReporter = in.StatusReporter + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBCourierImages. +func (in *DBCourierImages) DeepCopy() *DBCourierImages { + if in == nil { + return nil + } + out := new(DBCourierImages) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DBCourierStatusReporter) DeepCopyInto(out *DBCourierStatusReporter) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBCourierStatusReporter. +func (in *DBCourierStatusReporter) DeepCopy() *DBCourierStatusReporter { + if in == nil { + return nil + } + out := new(DBCourierStatusReporter) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *JobDefaults) DeepCopyInto(out *JobDefaults) { + *out = *in + if in.BackoffLimit != nil { + in, out := &in.BackoffLimit, &out.BackoffLimit + *out = new(int32) + **out = **in + } + if in.TTLSecondsAfterFinished != nil { + in, out := &in.TTLSecondsAfterFinished, &out.TTLSecondsAfterFinished + *out = new(int32) + **out = **in + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobDefaults. +func (in *JobDefaults) DeepCopy() *JobDefaults { + if in == nil { + return nil + } + out := new(JobDefaults) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LogicalReplication) DeepCopyInto(out *LogicalReplication) { + *out = *in + if in.Publication != nil { + in, out := &in.Publication, &out.Publication + *out = new(Publication) + (*in).DeepCopyInto(*out) + } + if in.Subscription != nil { + in, out := &in.Subscription, &out.Subscription + *out = new(Subscription) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogicalReplication. +func (in *LogicalReplication) DeepCopy() *LogicalReplication { + if in == nil { + return nil + } + out := new(LogicalReplication) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSSQLServerConnectionInfo) DeepCopyInto(out *MSSQLServerConnectionInfo) { + *out = *in + if in.AppBinding != nil { + in, out := &in.AppBinding, &out.AppBinding + *out = new(apiv1.ObjectReference) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerConnectionInfo. +func (in *MSSQLServerConnectionInfo) DeepCopy() *MSSQLServerConnectionInfo { + if in == nil { + return nil + } + out := new(MSSQLServerConnectionInfo) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSSQLServerMigration) DeepCopyInto(out *MSSQLServerMigration) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerMigration. +func (in *MSSQLServerMigration) DeepCopy() *MSSQLServerMigration { + if in == nil { + return nil + } + out := new(MSSQLServerMigration) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MSSQLServerMigration) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSSQLServerMigrationList) DeepCopyInto(out *MSSQLServerMigrationList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]MSSQLServerMigration, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerMigrationList. +func (in *MSSQLServerMigrationList) DeepCopy() *MSSQLServerMigrationList { + if in == nil { + return nil + } + out := new(MSSQLServerMigrationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MSSQLServerMigrationList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSSQLServerMigrationSpec) DeepCopyInto(out *MSSQLServerMigrationSpec) { + *out = *in + in.Source.DeepCopyInto(&out.Source) + in.Target.DeepCopyInto(&out.Target) + if in.JobDefaults != nil { + in, out := &in.JobDefaults, &out.JobDefaults + *out = new(JobDefaults) + (*in).DeepCopyInto(*out) + } + if in.JobTemplate != nil { + in, out := &in.JobTemplate, &out.JobTemplate + *out = new(offshootapiapiv1.PodTemplateSpec) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerMigrationSpec. +func (in *MSSQLServerMigrationSpec) DeepCopy() *MSSQLServerMigrationSpec { + if in == nil { + return nil + } + out := new(MSSQLServerMigrationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSSQLServerSchema) DeepCopyInto(out *MSSQLServerSchema) { + *out = *in + if in.Database != nil { + in, out := &in.Database, &out.Database + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Schema != nil { + in, out := &in.Schema, &out.Schema + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ExcludeSchema != nil { + in, out := &in.ExcludeSchema, &out.ExcludeSchema + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Table != nil { + in, out := &in.Table, &out.Table + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ExcludeTable != nil { + in, out := &in.ExcludeTable, &out.ExcludeTable + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerSchema. +func (in *MSSQLServerSchema) DeepCopy() *MSSQLServerSchema { + if in == nil { + return nil + } + out := new(MSSQLServerSchema) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSSQLServerSnapshot) DeepCopyInto(out *MSSQLServerSnapshot) { + *out = *in + if in.Pipeline != nil { + in, out := &in.Pipeline, &out.Pipeline + *out = new(MSSQLServerSnapshotPipeline) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerSnapshot. +func (in *MSSQLServerSnapshot) DeepCopy() *MSSQLServerSnapshot { + if in == nil { + return nil + } + out := new(MSSQLServerSnapshot) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSSQLServerSnapshotPipeline) DeepCopyInto(out *MSSQLServerSnapshotPipeline) { + *out = *in + if in.Workers != nil { + in, out := &in.Workers, &out.Workers + *out = new(int) + **out = **in + } + if in.Sinkers != nil { + in, out := &in.Sinkers, &out.Sinkers + *out = new(int) + **out = **in + } + if in.Buffer != nil { + in, out := &in.Buffer, &out.Buffer + *out = new(int) + **out = **in + } + if in.ReadBatchSize != nil { + in, out := &in.ReadBatchSize, &out.ReadBatchSize + *out = new(int) + **out = **in + } + if in.WriteBatchSize != nil { + in, out := &in.WriteBatchSize, &out.WriteBatchSize + *out = new(int) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerSnapshotPipeline. +func (in *MSSQLServerSnapshotPipeline) DeepCopy() *MSSQLServerSnapshotPipeline { + if in == nil { + return nil + } + out := new(MSSQLServerSnapshotPipeline) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSSQLServerSource) DeepCopyInto(out *MSSQLServerSource) { + *out = *in + if in.ConnectionInfo != nil { + in, out := &in.ConnectionInfo, &out.ConnectionInfo + *out = new(MSSQLServerConnectionInfo) + (*in).DeepCopyInto(*out) + } + if in.Schema != nil { + in, out := &in.Schema, &out.Schema + *out = new(MSSQLServerSchema) + (*in).DeepCopyInto(*out) + } + if in.Snapshot != nil { + in, out := &in.Snapshot, &out.Snapshot + *out = new(MSSQLServerSnapshot) + (*in).DeepCopyInto(*out) + } + if in.Streaming != nil { + in, out := &in.Streaming, &out.Streaming + *out = new(MSSQLServerStreaming) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerSource. +func (in *MSSQLServerSource) DeepCopy() *MSSQLServerSource { + if in == nil { + return nil + } + out := new(MSSQLServerSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSSQLServerStreaming) DeepCopyInto(out *MSSQLServerStreaming) { + *out = *in + if in.BatchSize != nil { + in, out := &in.BatchSize, &out.BatchSize + *out = new(int) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerStreaming. +func (in *MSSQLServerStreaming) DeepCopy() *MSSQLServerStreaming { + if in == nil { + return nil + } + out := new(MSSQLServerStreaming) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSSQLServerTarget) DeepCopyInto(out *MSSQLServerTarget) { + *out = *in + if in.ConnectionInfo != nil { + in, out := &in.ConnectionInfo, &out.ConnectionInfo + *out = new(MSSQLServerConnectionInfo) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSSQLServerTarget. +func (in *MSSQLServerTarget) DeepCopy() *MSSQLServerTarget { + if in == nil { + return nil + } + out := new(MSSQLServerTarget) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MariaDBMigration) DeepCopyInto(out *MariaDBMigration) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBMigration. +func (in *MariaDBMigration) DeepCopy() *MariaDBMigration { + if in == nil { + return nil + } + out := new(MariaDBMigration) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MariaDBMigration) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MariaDBMigrationList) DeepCopyInto(out *MariaDBMigrationList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]MariaDBMigration, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBMigrationList. +func (in *MariaDBMigrationList) DeepCopy() *MariaDBMigrationList { + if in == nil { + return nil + } + out := new(MariaDBMigrationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MariaDBMigrationList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MariaDBMigrationSpec) DeepCopyInto(out *MariaDBMigrationSpec) { + *out = *in + in.Source.DeepCopyInto(&out.Source) + in.Target.DeepCopyInto(&out.Target) + if in.JobDefaults != nil { + in, out := &in.JobDefaults, &out.JobDefaults + *out = new(JobDefaults) + (*in).DeepCopyInto(*out) + } + if in.JobTemplate != nil { + in, out := &in.JobTemplate, &out.JobTemplate + *out = new(offshootapiapiv1.PodTemplateSpec) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBMigrationSpec. +func (in *MariaDBMigrationSpec) DeepCopy() *MariaDBMigrationSpec { + if in == nil { + return nil + } + out := new(MariaDBMigrationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MariaDBSource) DeepCopyInto(out *MariaDBSource) { + *out = *in + if in.ConnectionInfo != nil { + in, out := &in.ConnectionInfo, &out.ConnectionInfo + *out = new(ConnectionInfo) + (*in).DeepCopyInto(*out) + } + if in.Schema != nil { + in, out := &in.Schema, &out.Schema + *out = new(MySQLSchema) + (*in).DeepCopyInto(*out) + } + if in.Snapshot != nil { + in, out := &in.Snapshot, &out.Snapshot + *out = new(MySQLSnapshot) + (*in).DeepCopyInto(*out) + } + if in.Streaming != nil { + in, out := &in.Streaming, &out.Streaming + *out = new(MySQLStreaming) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBSource. +func (in *MariaDBSource) DeepCopy() *MariaDBSource { + if in == nil { + return nil + } + out := new(MariaDBSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MariaDBTarget) DeepCopyInto(out *MariaDBTarget) { + *out = *in + if in.ConnectionInfo != nil { + in, out := &in.ConnectionInfo, &out.ConnectionInfo + *out = new(ConnectionInfo) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBTarget. +func (in *MariaDBTarget) DeepCopy() *MariaDBTarget { + if in == nil { + return nil + } + out := new(MariaDBTarget) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Migration) DeepCopyInto(out *Migration) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Migration. +func (in *Migration) DeepCopy() *Migration { + if in == nil { + return nil + } + out := new(Migration) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Migration) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MigrationConfig) DeepCopyInto(out *MigrationConfig) { + *out = *in + in.Source.DeepCopyInto(&out.Source) + in.Target.DeepCopyInto(&out.Target) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationConfig. +func (in *MigrationConfig) DeepCopy() *MigrationConfig { + if in == nil { + return nil + } + out := new(MigrationConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MigrationList) DeepCopyInto(out *MigrationList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Migration, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationList. +func (in *MigrationList) DeepCopy() *MigrationList { + if in == nil { + return nil + } + out := new(MigrationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MigrationList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MigrationSpec) DeepCopyInto(out *MigrationSpec) { + *out = *in + if in.Source != nil { + in, out := &in.Source, &out.Source + *out = new(Source) + (*in).DeepCopyInto(*out) + } + if in.Target != nil { + in, out := &in.Target, &out.Target + *out = new(Target) + (*in).DeepCopyInto(*out) + } + if in.JobDefaults != nil { + in, out := &in.JobDefaults, &out.JobDefaults + *out = new(JobDefaults) + (*in).DeepCopyInto(*out) + } + if in.JobTemplate != nil { + in, out := &in.JobTemplate, &out.JobTemplate + *out = new(offshootapiapiv1.PodTemplateSpec) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationSpec. +func (in *MigrationSpec) DeepCopy() *MigrationSpec { + if in == nil { + return nil + } + out := new(MigrationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MigrationStatus) DeepCopyInto(out *MigrationStatus) { + *out = *in + if in.Progress != nil { + in, out := &in.Progress, &out.Progress + *out = new(Progress) + (*in).DeepCopyInto(*out) + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]apiv1.Condition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationStatus. +func (in *MigrationStatus) DeepCopy() *MigrationStatus { + if in == nil { + return nil + } + out := new(MigrationStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MongoDBMigration) DeepCopyInto(out *MongoDBMigration) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBMigration. +func (in *MongoDBMigration) DeepCopy() *MongoDBMigration { + if in == nil { + return nil + } + out := new(MongoDBMigration) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MongoDBMigration) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MongoDBMigrationList) DeepCopyInto(out *MongoDBMigrationList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]MongoDBMigration, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBMigrationList. +func (in *MongoDBMigrationList) DeepCopy() *MongoDBMigrationList { + if in == nil { + return nil + } + out := new(MongoDBMigrationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MongoDBMigrationList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MongoDBMigrationSpec) DeepCopyInto(out *MongoDBMigrationSpec) { + *out = *in + in.Source.DeepCopyInto(&out.Source) + in.Target.DeepCopyInto(&out.Target) + if in.JobDefaults != nil { + in, out := &in.JobDefaults, &out.JobDefaults + *out = new(JobDefaults) + (*in).DeepCopyInto(*out) + } + if in.JobTemplate != nil { + in, out := &in.JobTemplate, &out.JobTemplate + *out = new(offshootapiapiv1.PodTemplateSpec) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBMigrationSpec. +func (in *MongoDBMigrationSpec) DeepCopy() *MongoDBMigrationSpec { + if in == nil { + return nil + } + out := new(MongoDBMigrationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MongoDBSource) DeepCopyInto(out *MongoDBSource) { + *out = *in + in.ConnectionInfo.DeepCopyInto(&out.ConnectionInfo) + if in.Mongoshake != nil { + in, out := &in.Mongoshake, &out.Mongoshake + *out = new(Mongoshake) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBSource. +func (in *MongoDBSource) DeepCopy() *MongoDBSource { + if in == nil { + return nil + } + out := new(MongoDBSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MongoDBTarget) DeepCopyInto(out *MongoDBTarget) { + *out = *in + in.ConnectionInfo.DeepCopyInto(&out.ConnectionInfo) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBTarget. +func (in *MongoDBTarget) DeepCopy() *MongoDBTarget { + if in == nil { + return nil + } + out := new(MongoDBTarget) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Mongoshake) DeepCopyInto(out *Mongoshake) { + *out = *in + if in.FilterOpTypes != nil { + in, out := &in.FilterOpTypes, &out.FilterOpTypes + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.FilterNamespaceBlack != nil { + in, out := &in.FilterNamespaceBlack, &out.FilterNamespaceBlack + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.FilterNamespaceWhite != nil { + in, out := &in.FilterNamespaceWhite, &out.FilterNamespaceWhite + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.FilterPassSpecialDb != nil { + in, out := &in.FilterPassSpecialDb, &out.FilterPassSpecialDb + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.FilterDDLEnable != nil { + in, out := &in.FilterDDLEnable, &out.FilterDDLEnable + *out = new(bool) + **out = **in + } + if in.FilterOplogGids != nil { + in, out := &in.FilterOplogGids, &out.FilterOplogGids + *out = new(bool) + **out = **in + } + if in.TransformNamespace != nil { + in, out := &in.TransformNamespace, &out.TransformNamespace + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ExtraConfiguration != nil { + in, out := &in.ExtraConfiguration, &out.ExtraConfiguration + *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 Mongoshake. +func (in *Mongoshake) DeepCopy() *Mongoshake { + if in == nil { + return nil + } + out := new(Mongoshake) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MySQLConnectionInfo) DeepCopyInto(out *MySQLConnectionInfo) { + *out = *in + if in.AppBinding != nil { + in, out := &in.AppBinding, &out.AppBinding + *out = new(apiv1.ObjectReference) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLConnectionInfo. +func (in *MySQLConnectionInfo) DeepCopy() *MySQLConnectionInfo { + if in == nil { + return nil + } + out := new(MySQLConnectionInfo) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MySQLMigration) DeepCopyInto(out *MySQLMigration) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLMigration. +func (in *MySQLMigration) DeepCopy() *MySQLMigration { + if in == nil { + return nil + } + out := new(MySQLMigration) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MySQLMigration) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MySQLMigrationList) DeepCopyInto(out *MySQLMigrationList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]MySQLMigration, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLMigrationList. +func (in *MySQLMigrationList) DeepCopy() *MySQLMigrationList { + if in == nil { + return nil + } + out := new(MySQLMigrationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MySQLMigrationList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MySQLMigrationSpec) DeepCopyInto(out *MySQLMigrationSpec) { + *out = *in + in.Source.DeepCopyInto(&out.Source) + in.Target.DeepCopyInto(&out.Target) + if in.JobDefaults != nil { + in, out := &in.JobDefaults, &out.JobDefaults + *out = new(JobDefaults) + (*in).DeepCopyInto(*out) + } + if in.JobTemplate != nil { + in, out := &in.JobTemplate, &out.JobTemplate + *out = new(offshootapiapiv1.PodTemplateSpec) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLMigrationSpec. +func (in *MySQLMigrationSpec) DeepCopy() *MySQLMigrationSpec { + if in == nil { + return nil + } + out := new(MySQLMigrationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MySQLSchema) DeepCopyInto(out *MySQLSchema) { + *out = *in + if in.Database != nil { + in, out := &in.Database, &out.Database + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ExcludeDatabase != nil { + in, out := &in.ExcludeDatabase, &out.ExcludeDatabase + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLSchema. +func (in *MySQLSchema) DeepCopy() *MySQLSchema { + if in == nil { + return nil + } + out := new(MySQLSchema) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MySQLSnapshot) DeepCopyInto(out *MySQLSnapshot) { + *out = *in + if in.Pipeline != nil { + in, out := &in.Pipeline, &out.Pipeline + *out = new(MySQLSnapshotPipeline) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLSnapshot. +func (in *MySQLSnapshot) DeepCopy() *MySQLSnapshot { + if in == nil { + return nil + } + out := new(MySQLSnapshot) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MySQLSnapshotPipeline) DeepCopyInto(out *MySQLSnapshotPipeline) { + *out = *in + if in.Workers != nil { + in, out := &in.Workers, &out.Workers + *out = new(int) + **out = **in + } + if in.Sinkers != nil { + in, out := &in.Sinkers, &out.Sinkers + *out = new(int) + **out = **in + } + if in.Buffer != nil { + in, out := &in.Buffer, &out.Buffer + *out = new(int) + **out = **in + } + if in.ReadBatchSize != nil { + in, out := &in.ReadBatchSize, &out.ReadBatchSize + *out = new(int) + **out = **in + } + if in.WriteBatchSize != nil { + in, out := &in.WriteBatchSize, &out.WriteBatchSize + *out = new(int) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLSnapshotPipeline. +func (in *MySQLSnapshotPipeline) DeepCopy() *MySQLSnapshotPipeline { + if in == nil { + return nil + } + out := new(MySQLSnapshotPipeline) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MySQLSource) DeepCopyInto(out *MySQLSource) { + *out = *in + if in.ConnectionInfo != nil { + in, out := &in.ConnectionInfo, &out.ConnectionInfo + *out = new(ConnectionInfo) + (*in).DeepCopyInto(*out) + } + if in.Schema != nil { + in, out := &in.Schema, &out.Schema + *out = new(MySQLSchema) + (*in).DeepCopyInto(*out) + } + if in.Snapshot != nil { + in, out := &in.Snapshot, &out.Snapshot + *out = new(MySQLSnapshot) + (*in).DeepCopyInto(*out) + } + if in.Streaming != nil { + in, out := &in.Streaming, &out.Streaming + *out = new(MySQLStreaming) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLSource. +func (in *MySQLSource) DeepCopy() *MySQLSource { + if in == nil { + return nil + } + out := new(MySQLSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MySQLStreaming) DeepCopyInto(out *MySQLStreaming) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLStreaming. +func (in *MySQLStreaming) DeepCopy() *MySQLStreaming { + if in == nil { + return nil + } + out := new(MySQLStreaming) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MySQLTarget) DeepCopyInto(out *MySQLTarget) { + *out = *in + if in.ConnectionInfo != nil { + in, out := &in.ConnectionInfo, &out.ConnectionInfo + *out = new(ConnectionInfo) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLTarget. +func (in *MySQLTarget) DeepCopy() *MySQLTarget { + if in == nil { + return nil + } + out := new(MySQLTarget) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PgDump) DeepCopyInto(out *PgDump) { + *out = *in + if in.Schema != nil { + in, out := &in.Schema, &out.Schema + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ExcludeSchema != nil { + in, out := &in.ExcludeSchema, &out.ExcludeSchema + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Table != nil { + in, out := &in.Table, &out.Table + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ExcludeTable != nil { + in, out := &in.ExcludeTable, &out.ExcludeTable + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ExtraOptions != nil { + in, out := &in.ExtraOptions, &out.ExtraOptions + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgDump. +func (in *PgDump) DeepCopy() *PgDump { + if in == nil { + return nil + } + out := new(PgDump) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostgresMigration) DeepCopyInto(out *PostgresMigration) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresMigration. +func (in *PostgresMigration) DeepCopy() *PostgresMigration { + if in == nil { + return nil + } + out := new(PostgresMigration) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PostgresMigration) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostgresMigrationList) DeepCopyInto(out *PostgresMigrationList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PostgresMigration, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresMigrationList. +func (in *PostgresMigrationList) DeepCopy() *PostgresMigrationList { + if in == nil { + return nil + } + out := new(PostgresMigrationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PostgresMigrationList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostgresMigrationSpec) DeepCopyInto(out *PostgresMigrationSpec) { + *out = *in + in.Source.DeepCopyInto(&out.Source) + in.Target.DeepCopyInto(&out.Target) + if in.JobDefaults != nil { + in, out := &in.JobDefaults, &out.JobDefaults + *out = new(JobDefaults) + (*in).DeepCopyInto(*out) + } + if in.JobTemplate != nil { + in, out := &in.JobTemplate, &out.JobTemplate + *out = new(offshootapiapiv1.PodTemplateSpec) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresMigrationSpec. +func (in *PostgresMigrationSpec) DeepCopy() *PostgresMigrationSpec { + if in == nil { + return nil + } + out := new(PostgresMigrationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostgresSource) DeepCopyInto(out *PostgresSource) { + *out = *in + in.ConnectionInfo.DeepCopyInto(&out.ConnectionInfo) + if in.PgDump != nil { + in, out := &in.PgDump, &out.PgDump + *out = new(PgDump) + (*in).DeepCopyInto(*out) + } + if in.LogicalReplication != nil { + in, out := &in.LogicalReplication, &out.LogicalReplication + *out = new(LogicalReplication) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSource. +func (in *PostgresSource) DeepCopy() *PostgresSource { + if in == nil { + return nil + } + out := new(PostgresSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostgresTarget) DeepCopyInto(out *PostgresTarget) { + *out = *in + in.ConnectionInfo.DeepCopyInto(&out.ConnectionInfo) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresTarget. +func (in *PostgresTarget) DeepCopy() *PostgresTarget { + if in == nil { + return nil + } + out := new(PostgresTarget) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Progress) DeepCopyInto(out *Progress) { + *out = *in + if in.Info != nil { + in, out := &in.Info, &out.Info + *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 Progress. +func (in *Progress) DeepCopy() *Progress { + if in == nil { + return nil + } + out := new(Progress) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Publication) DeepCopyInto(out *Publication) { + *out = *in + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Publication. +func (in *Publication) DeepCopy() *Publication { + if in == nil { + return nil + } + out := new(Publication) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Source) DeepCopyInto(out *Source) { + *out = *in + if in.PostgresSource != nil { + in, out := &in.PostgresSource, &out.PostgresSource + *out = new(PostgresSource) + (*in).DeepCopyInto(*out) + } + if in.MySQLSource != nil { + in, out := &in.MySQLSource, &out.MySQLSource + *out = new(MySQLSource) + (*in).DeepCopyInto(*out) + } + if in.MariaDBSource != nil { + in, out := &in.MariaDBSource, &out.MariaDBSource + *out = new(MariaDBSource) + (*in).DeepCopyInto(*out) + } + if in.MongoDBSource != nil { + in, out := &in.MongoDBSource, &out.MongoDBSource + *out = new(MongoDBSource) + (*in).DeepCopyInto(*out) + } + if in.MSSQLServerSource != nil { + in, out := &in.MSSQLServerSource, &out.MSSQLServerSource + *out = new(MSSQLServerSource) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source. +func (in *Source) DeepCopy() *Source { + if in == nil { + return nil + } + out := new(Source) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Subscription) DeepCopyInto(out *Subscription) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subscription. +func (in *Subscription) DeepCopy() *Subscription { + if in == nil { + return nil + } + out := new(Subscription) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TLSConfig) DeepCopyInto(out *TLSConfig) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig. +func (in *TLSConfig) DeepCopy() *TLSConfig { + if in == nil { + return nil + } + out := new(TLSConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Target) DeepCopyInto(out *Target) { + *out = *in + if in.PostgresTarget != nil { + in, out := &in.PostgresTarget, &out.PostgresTarget + *out = new(PostgresTarget) + (*in).DeepCopyInto(*out) + } + if in.MongoDBTarget != nil { + in, out := &in.MongoDBTarget, &out.MongoDBTarget + *out = new(MongoDBTarget) + (*in).DeepCopyInto(*out) + } + if in.MySQLTarget != nil { + in, out := &in.MySQLTarget, &out.MySQLTarget + *out = new(MySQLTarget) + (*in).DeepCopyInto(*out) + } + if in.MariaDBTarget != nil { + in, out := &in.MariaDBTarget, &out.MariaDBTarget + *out = new(MariaDBTarget) + (*in).DeepCopyInto(*out) + } + if in.MSSQLServerTarget != nil { + in, out := &in.MSSQLServerTarget, &out.MSSQLServerTarget + *out = new(MSSQLServerTarget) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target. +func (in *Target) DeepCopy() *Target { + if in == nil { + return nil + } + out := new(Target) + in.DeepCopyInto(out) + return out +} diff --git a/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/constants.go b/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/constants.go index 0825ec780..4308c4b36 100644 --- a/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/constants.go +++ b/vendor/kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1/constants.go @@ -95,7 +95,7 @@ const ( ) var ( - ElasticsearchDashboardGracefulDeletionPeriod = (int64)(time.Duration(3 * time.Second)) + ElasticsearchDashboardGracefulDeletionPeriod = int64(time.Duration(3 * time.Second)) DashboardsDefaultResources = core.ResourceRequirements{ Requests: core.ResourceList{ diff --git a/vendor/kubedb.dev/apimachinery/apis/helpers.go b/vendor/kubedb.dev/apimachinery/apis/helpers.go index dbd24e624..c96cba07f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/helpers.go @@ -35,6 +35,22 @@ type ResourceInfo interface { CustomResourceDefinition() *apiextensions.CustomResourceDefinition } +// SetDefaultResizePolicy sets a NotRequired in-place resize policy for cpu & memory +// on every passed container whose ResizePolicy is not already set. +func SetDefaultResizePolicy(containers ...[]core.Container) { + for _, list := range containers { + for i := range list { + if list[i].ResizePolicy != nil { + continue + } + list[i].ResizePolicy = []core.ContainerResizePolicy{ + {ResourceName: core.ResourceCPU, RestartPolicy: core.NotRequired}, + {ResourceName: core.ResourceMemory, RestartPolicy: core.NotRequired}, + } + } + } +} + func SetDefaultResourceLimits(req *core.ResourceRequirements, defaultResources core.ResourceRequirements) { // if request is set, // - limit set: diff --git a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/register.go b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/register.go index 8a98a57d8..bc64fcfdb 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/kafka/v1alpha1/register.go @@ -53,7 +53,8 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &ConnectCluster{}, &ConnectClusterList{}, &Connector{}, @@ -64,7 +65,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &SchemaRegistryList{}, ) - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &metav1.Status{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go index d95d7f92b..cd16cafed 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go @@ -904,6 +904,8 @@ const ( MilvusGrpcPortName = "grpc" MilvusMetricsPortName = "metrics" + MilvusHttpPortName = "http" + MilvusUIPortName = "ui" MilvusGrpcPort = int32(19530) MilvusVolumeNameData = "data" @@ -929,6 +931,8 @@ const ( MinioSecretKey = "secretkey" MilvusMetricsPort = 9091 + MilvusUIPort = 9091 + MilvusHttpPort = 8080 MilvusPortDataNode = 21124 MilvusPortQueryNode = 21123 MilvusPortStreamingNode = 22222 @@ -1578,18 +1582,20 @@ const ( ) const ( - WeaviateHTTPPortName = "http" - WeaviateHTTPPort = 8080 - WeaviateHTTPSPortName = "https" - WeaviateHTTPSPort = 8443 - WeaviateGRPCPortName = "grpc" - WeaviateGRPCPort = 50051 - WeaviateRAFTPortName = "raft" - WeaviateRAFTPort = 8300 - WeaviateGOSSIPPortName = "gossip" - WeaviateGOSSIPPort = 7102 - WeaviateDATAPortName = "data" - WeaviateDATAPort = 7103 + WeaviateHTTPPortName = "http" + WeaviateHTTPPort = 8080 + WeaviateHTTPSPortName = "https" + WeaviateHTTPSPort = 8443 + WeaviateMetricsPortName = "metrics" + WeaviateMetricsPort = 2112 + WeaviateGRPCPortName = "grpc" + WeaviateGRPCPort = 50051 + WeaviateRAFTPortName = "raft" + WeaviateRAFTPort = 8300 + WeaviateGOSSIPPortName = "gossip" + WeaviateGOSSIPPort = 7102 + WeaviateDATAPortName = "data" + WeaviateDATAPort = 7103 WeaviateClassNameKubeDBSystem = "KubeDBSystem" @@ -2397,8 +2403,9 @@ const ( HanaDBVolumeMountScripts = "/scripts" // Container names - HanaDBContainerName = "hanadb" - HanaDBCoordinatorContainerName = "hanadb-coordinator" + HanaDBContainerName = "hanadb" + HanaDBCoordinatorContainerName = "hanadb-coordinator" + HanaDBVolumePermissionInitContainerName = "hanadb-volume-permissions" // Mount paths HanaDBDataDir = "/hana/mounts" @@ -2480,6 +2487,11 @@ const ( KubeSlicePodIPFileName = "podip" KubeSliceNSMContainerName = "cmd-nsc-grpc" + // BranchedFromAnnotation gates the KubeDB provisioner's "branched" mode: a Database carrying it is + // adopted onto cloned PVCs (created by the Courier Branch operator) instead of being provisioned + // empty. Its value records the branch provenance, e.g. {"cluster": "prod-east", "source": "demo/prod-pg"}. + BranchedFromAnnotation = "kubedb.com/branched-from" + // Archiver OwnerDatabasesAnnotation = "kubedb.com/owner-databases" DistributedArchiverSnapshotInfoAnnotation = "distributedsnapshotinfo" diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/elasticsearch_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/elasticsearch_helpers.go index 78dfb366a..b16180922 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/elasticsearch_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/elasticsearch_helpers.go @@ -488,6 +488,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesMemoryIntensive) } + apis.SetDefaultResizePolicy(e.Spec.Topology.Ingest.PodTemplate.Spec.Containers, e.Spec.Topology.Ingest.PodTemplate.Spec.InitContainers) if e.Spec.Topology.Ingest.Replicas == nil { e.Spec.Topology.Ingest.Replicas = pointer.Int32P(1) } @@ -506,6 +507,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesMemoryIntensive) } + apis.SetDefaultResizePolicy(e.Spec.Topology.Master.PodTemplate.Spec.Containers, e.Spec.Topology.Master.PodTemplate.Spec.InitContainers) if e.Spec.Topology.Master.Replicas == nil { e.Spec.Topology.Master.Replicas = pointer.Int32P(1) } @@ -526,6 +528,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesMemoryIntensive) } + apis.SetDefaultResizePolicy(e.Spec.Topology.Data.PodTemplate.Spec.Containers, e.Spec.Topology.Data.PodTemplate.Spec.InitContainers) if e.Spec.Topology.Data.Replicas == nil { e.Spec.Topology.Data.Replicas = pointer.Int32P(1) } @@ -546,6 +549,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesMemoryIntensive) } + apis.SetDefaultResizePolicy(e.Spec.Topology.DataHot.PodTemplate.Spec.Containers, e.Spec.Topology.DataHot.PodTemplate.Spec.InitContainers) if e.Spec.Topology.DataHot.Replicas == nil { e.Spec.Topology.DataHot.Replicas = pointer.Int32P(1) } @@ -566,6 +570,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesMemoryIntensive) } + apis.SetDefaultResizePolicy(e.Spec.Topology.DataWarm.PodTemplate.Spec.Containers, e.Spec.Topology.DataWarm.PodTemplate.Spec.InitContainers) if e.Spec.Topology.DataWarm.Replicas == nil { e.Spec.Topology.DataWarm.Replicas = pointer.Int32P(1) } @@ -586,6 +591,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesMemoryIntensive) } + apis.SetDefaultResizePolicy(e.Spec.Topology.DataCold.PodTemplate.Spec.Containers, e.Spec.Topology.DataCold.PodTemplate.Spec.InitContainers) if e.Spec.Topology.DataCold.Replicas == nil { e.Spec.Topology.DataCold.Replicas = pointer.Int32P(1) } @@ -606,6 +612,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesMemoryIntensive) } + apis.SetDefaultResizePolicy(e.Spec.Topology.DataFrozen.PodTemplate.Spec.Containers, e.Spec.Topology.DataFrozen.PodTemplate.Spec.InitContainers) if e.Spec.Topology.DataFrozen.Replicas == nil { e.Spec.Topology.DataFrozen.Replicas = pointer.Int32P(1) } @@ -626,6 +633,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesMemoryIntensive) } + apis.SetDefaultResizePolicy(e.Spec.Topology.DataContent.PodTemplate.Spec.Containers, e.Spec.Topology.DataContent.PodTemplate.Spec.InitContainers) if e.Spec.Topology.DataContent.Replicas == nil { e.Spec.Topology.DataContent.Replicas = pointer.Int32P(1) } @@ -646,6 +654,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesMemoryIntensive) } + apis.SetDefaultResizePolicy(e.Spec.Topology.ML.PodTemplate.Spec.Containers, e.Spec.Topology.ML.PodTemplate.Spec.InitContainers) if e.Spec.Topology.ML.Replicas == nil { e.Spec.Topology.ML.Replicas = pointer.Int32P(1) } @@ -666,6 +675,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesMemoryIntensive) } + apis.SetDefaultResizePolicy(e.Spec.Topology.Transform.PodTemplate.Spec.Containers, e.Spec.Topology.Transform.PodTemplate.Spec.InitContainers) if e.Spec.Topology.Transform.Replicas == nil { e.Spec.Topology.Transform.Replicas = pointer.Int32P(1) } @@ -681,6 +691,7 @@ func (e *Elasticsearch) SetDefaults(esVersion *catalog.ElasticsearchVersion) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesMemoryIntensive) } + apis.SetDefaultResizePolicy(e.Spec.PodTemplate.Spec.Containers, e.Spec.PodTemplate.Spec.InitContainers) if e.Spec.Replicas == nil { e.Spec.Replicas = pointer.Int32P(1) } 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 bc66e65a1..5fd359c78 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/kafka_helpers.go @@ -474,6 +474,8 @@ func (k *Kafka) setDefaultContainerSecurityContext(kfVersion *catalog.KafkaVersi k.assignDefaultContainerSecurityContext(kfVersion, initContainer.SecurityContext) podTemplate.Spec.InitContainers = coreutil.UpsertContainer(podTemplate.Spec.InitContainers, *initContainer) } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (k *Kafka) assignDefaultContainerSecurityContext(kfVersion *catalog.KafkaVersion, sc *core.SecurityContext) { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mariadb_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mariadb_helpers.go index fe77c404a..b667c7a11 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mariadb_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mariadb_helpers.go @@ -534,6 +534,7 @@ func (m *MariaDB) setDefaultContainerResourceLimits(podTemplate *ofstv2.PodTempl apis.SetDefaultResourceLimits(&coordinatorContainer.Resources, kubedb.CoordinatorDefaultResources) } } + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (m *MariaDB) setMaxscaleDefaultContainerResourceLimits(podTemplate *ofstv2.PodTemplateSpec) { @@ -546,6 +547,7 @@ func (m *MariaDB) setMaxscaleDefaultContainerResourceLimits(podTemplate *ofstv2. if initContainer != nil && (initContainer.Resources.Requests == nil && initContainer.Resources.Limits == nil) { apis.SetDefaultResourceLimits(&initContainer.Resources, kubedb.DefaultInitContainerResource) } + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (m *MariaDB) SetHealthCheckerDefaults() { 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 50285a10a..1114a6f85 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/memcached_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/memcached_helpers.go @@ -298,6 +298,7 @@ func (m *Memcached) setDefaultContainerResourceLimits(podTemplate *ofstv2.PodTem if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResources) } + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } // CertificateName returns the default certificate name and/or certificate secret name for a certificate alias diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mongodb_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mongodb_helpers.go index 579b0d059..c0ddf8d5f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mongodb_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mongodb_helpers.go @@ -774,6 +774,8 @@ func (m *MongoDB) setPodTemplateDefaultValues(podTemplate *ofstv2.PodTemplateSpe container = ofst_util.EnsureContainerExists(podTemplate, kubedb.ReplicationModeDetectorContainerName) m.setContainerDefaultValues(container, mgVersion, kubedb.CoordinatorDefaultResources, isArbiter...) } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (m *MongoDB) setContainerDefaultValues(container *core.Container, mgVersion *v1alpha1.MongoDBVersion, diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mysql_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mysql_helpers.go index f5af142ff..339776c77 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mysql_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/mysql_helpers.go @@ -356,6 +356,8 @@ func (m *MySQL) SetDefaults(myVersion *v1alpha1.MySQLVersion) error { if routerContainer != nil && (routerContainer.Resources.Requests == nil && routerContainer.Resources.Limits == nil) { apis.SetDefaultResourceLimits(&routerContainer.Resources, kubedb.CoordinatorDefaultResources) } + + apis.SetDefaultResizePolicy(m.Spec.Topology.InnoDBCluster.Router.PodTemplate.Spec.Containers, m.Spec.Topology.InnoDBCluster.Router.PodTemplate.Spec.InitContainers) } } @@ -596,6 +598,8 @@ func (m *MySQL) setDefaultContainerResourceLimits(podTemplate *ofstv2.PodTemplat apis.SetDefaultResourceLimits(&coordinatorContainer.Resources, kubedb.CoordinatorDefaultResources) } } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (m *MySQL) ConfigSecretName() string { 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 c5e561b63..4caaede42 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/openapi_generated.go @@ -658,6 +658,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/kubedb/v1.PostgresReplication": schema_apimachinery_apis_kubedb_v1_PostgresReplication(ref), "kubedb.dev/apimachinery/apis/kubedb/v1.PostgresSpec": schema_apimachinery_apis_kubedb_v1_PostgresSpec(ref), "kubedb.dev/apimachinery/apis/kubedb/v1.PostgresStatus": schema_apimachinery_apis_kubedb_v1_PostgresStatus(ref), + "kubedb.dev/apimachinery/apis/kubedb/v1.PostgresSynchronousReplicationSpec": schema_apimachinery_apis_kubedb_v1_PostgresSynchronousReplicationSpec(ref), "kubedb.dev/apimachinery/apis/kubedb/v1.PostgresTuningConfig": schema_apimachinery_apis_kubedb_v1_PostgresTuningConfig(ref), "kubedb.dev/apimachinery/apis/kubedb/v1.ProxySQL": schema_apimachinery_apis_kubedb_v1_ProxySQL(ref), "kubedb.dev/apimachinery/apis/kubedb/v1.ProxySQLConfiguration": schema_apimachinery_apis_kubedb_v1_ProxySQLConfiguration(ref), @@ -38035,6 +38036,12 @@ func schema_apimachinery_apis_kubedb_v1_PostgresSpec(ref common.ReferenceCallbac Format: "", }, }, + "synchronousReplicationConfig": { + SchemaProps: spec.SchemaProps{ + Description: "SynchronousReplicationConfig holds fine-grained config for synchronous replication. Only applicable when StreamingMode is Synchronous.", + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1.PostgresSynchronousReplicationSpec"), + }, + }, "mode": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, @@ -38205,7 +38212,7 @@ func schema_apimachinery_apis_kubedb_v1_PostgresSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "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/v1.AllowedConsumers", "kubedb.dev/apimachinery/apis/kubedb/v1.ArbiterSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.Archiver", "kubedb.dev/apimachinery/apis/kubedb/v1.AutoOpsSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.InitSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.PostgreLeaderElectionConfig", "kubedb.dev/apimachinery/apis/kubedb/v1.PostgresConfiguration", "kubedb.dev/apimachinery/apis/kubedb/v1.PostgresReplication", "kubedb.dev/apimachinery/apis/kubedb/v1.ReadReplicaSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.RemoteReplicaSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.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/v1.AllowedConsumers", "kubedb.dev/apimachinery/apis/kubedb/v1.ArbiterSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.Archiver", "kubedb.dev/apimachinery/apis/kubedb/v1.AutoOpsSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.InitSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.PostgreLeaderElectionConfig", "kubedb.dev/apimachinery/apis/kubedb/v1.PostgresConfiguration", "kubedb.dev/apimachinery/apis/kubedb/v1.PostgresReplication", "kubedb.dev/apimachinery/apis/kubedb/v1.PostgresSynchronousReplicationSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.ReadReplicaSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.RemoteReplicaSpec", "kubedb.dev/apimachinery/apis/kubedb/v1.SecretReference"}, } } @@ -38256,6 +38263,67 @@ func schema_apimachinery_apis_kubedb_v1_PostgresStatus(ref common.ReferenceCallb } } +func schema_apimachinery_apis_kubedb_v1_PostgresSynchronousReplicationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostgresSynchronousReplicationSpec configures fine-grained synchronous replication behavior. Only applicable when spec.streamingMode is Synchronous.\n\nSample configurations:\n\n\t# Case 1 — Minimal: all defaults (Any 1, RemoteWrite, auto-generated pod list)\n\tstreamingMode: Synchronous\n\t# synchronousReplicationConfig omitted → ANY 1 (\"pg-0\",\"pg-1\",\"pg-2\")\n\n\t# Case 2 — Quorum: wait for any 2 of N standbys\n\tsynchronousReplicationConfig:\n\t mode: Any\n\t numSyncReplicas: 2\n\t commitLevel: RemoteWrite\n\n\t# Case 3 — Priority: ordered list, first live standby wins\n\tsynchronousReplicationConfig:\n\t mode: First\n\t numSyncReplicas: 1\n\t commitLevel: On\n\n\t# Case 4 — Explicit standby names with Any mode\n\tsynchronousReplicationConfig:\n\t mode: Any\n\t numSyncReplicas: 2\n\t standbyNames: [pg-1, pg-2, pg-3]\n\t commitLevel: RemoteWrite\n\n\t# Case 5 — Explicit standby names with First mode (order = priority)\n\tsynchronousReplicationConfig:\n\t mode: First\n\t numSyncReplicas: 1\n\t standbyNames: [pg-3, pg-1, pg-2] # pg-3 has highest priority\n\t commitLevel: RemoteApply\n\n\t# Case 6 — Strongest durability: WAL flushed on standby before commit returns\n\tsynchronousReplicationConfig:\n\t mode: Any\n\t numSyncReplicas: 1\n\t commitLevel: On\n\n\t# Case 7 — Relaxed durability: only local WAL flush, standby not waited on\n\tsynchronousReplicationConfig:\n\t mode: Any\n\t numSyncReplicas: 1\n\t commitLevel: Local\n\n\t# Case 8 — No WAL flush guarantee at all\n\tsynchronousReplicationConfig:\n\t mode: Any\n\t numSyncReplicas: 1\n\t commitLevel: Off\n\n\t# Case 9 — Wildcard: accept any connected standby (useful when standby\n\t# application_names are unknown, e.g. external DR replicas).\n\t# Mutually exclusive with standbyNames.\n\t# With First mode, avoid wildcard — priority order is non-deterministic.\n\tsynchronousReplicationConfig:\n\t mode: Any\n\t numSyncReplicas: 1\n\t useWildcard: true\n\t # renders: ANY 1 (*)\n\n\t# Case 10 — Wildcard quorum: any 2 standbys regardless of name\n\tsynchronousReplicationConfig:\n\t mode: Any\n\t numSyncReplicas: 2\n\t useWildcard: true\n\t # renders: ANY 2 (*)", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode controls how standbys are selected: Any (quorum) or First (priority). Defaults to Any.", + Type: []string{"string"}, + Format: "", + }, + }, + "numSyncReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "NumSyncReplicas is the number of synchronous standby replicas to wait for. Must be >= 1 and less than spec.replicas. Defaults to 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "commitLevel": { + SchemaProps: spec.SchemaProps{ + Description: "CommitLevel maps to PostgreSQL's synchronous_commit parameter, controlling the durability vs. performance trade-off for synchronous standbys. Defaults to RemoteWrite.", + Type: []string{"string"}, + Format: "", + }, + }, + "standbyNames": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "StandbyNames is an explicit ordered list of standby application_names to include in synchronous_standby_names. When set, only these names participate in synchronous replication instead of the auto-generated list of all pod names. For FIRST mode the order determines priority (first entry = highest priority). Must not contain duplicates or empty strings. When absent, all standby pods are included in ascending pod-index order. Mutually exclusive with UseWildcard.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "useWildcard": { + SchemaProps: spec.SchemaProps{ + Description: "UseWildcard, when true, uses '*' in synchronous_standby_names to match any connected standby regardless of its application_name. Useful when standby names are not known in advance (e.g. external DR replicas with custom application_name). Avoid combining with mode: First — connection-order priority is non-deterministic. Mutually exclusive with StandbyNames.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_apimachinery_apis_kubedb_v1_PostgresTuningConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/perconaxtradb_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/perconaxtradb_helpers.go index 82eac1d60..7cd0d4b9c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/perconaxtradb_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/perconaxtradb_helpers.go @@ -338,6 +338,8 @@ func (p *PerconaXtraDB) setDefaultContainerResourceLimits(podTemplate *ofstv2.Po if coordinatorContainer != nil && (coordinatorContainer.Resources.Requests == nil && coordinatorContainer.Resources.Limits == nil) { apis.SetDefaultResourceLimits(&coordinatorContainer.Resources, kubedb.CoordinatorDefaultResources) } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (p *PerconaXtraDB) SetHealthCheckerDefaults() { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_helpers.go index b54099cf1..87e264c8b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/pgbouncer_helpers.go @@ -268,6 +268,7 @@ func (p *PgBouncer) setPgBouncerContainerDefaults(podTemplate *ofstv2.PodTemplat container := ofst_util.EnsureContainerExists(podTemplate, kubedb.PgBouncerContainerName) p.setContainerDefaultResources(container, *kubedb.DefaultResources.DeepCopy()) p.SetContainerDefaultSecurityContext(container, pbVersion) + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (p *PgBouncer) setContainerDefaultResources(container *core.Container, defaultResources core.ResourceRequirements) { 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 acb91b2d7..628abcd5f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/postgres_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/postgres_helpers.go @@ -332,6 +332,21 @@ func (p *Postgres) SetDefaults(postgresVersion *catalog.PostgresVersion) { if p.Spec.StandbyMode == nil { p.Spec.StandbyMode = ptr.To(HotPostgresStandbyMode) } + if p.Spec.StreamingMode != nil && *p.Spec.StreamingMode == SynchronousPostgresStreamingMode { + if p.Spec.SynchronousReplicationConfig == nil { + p.Spec.SynchronousReplicationConfig = &PostgresSynchronousReplicationSpec{} + } + cfg := p.Spec.SynchronousReplicationConfig + if cfg.Mode == nil { + cfg.Mode = ptr.To(PostgresSyncReplicationModeAny) + } + if cfg.NumSyncReplicas == nil { + cfg.NumSyncReplicas = ptr.To(int32(1)) + } + if cfg.CommitLevel == nil { + cfg.CommitLevel = ptr.To(PostgresSynchronousCommitRemoteWrite) + } + } if p.Spec.StorageType == "" { p.Spec.StorageType = StorageTypeDurable } @@ -405,6 +420,7 @@ func (p *Postgres) SetDefaults(postgresVersion *catalog.PostgresVersion) { p.SetPostgresContainerDefaults(&p.Spec.PodTemplate, postgresVersion) p.SetCoordinatorContainerDefaults(&p.Spec.PodTemplate, postgresVersion) p.SetInitContainerDefaults(&p.Spec.PodTemplate, postgresVersion) + apis.SetDefaultResizePolicy(p.Spec.PodTemplate.Spec.Containers, p.Spec.PodTemplate.Spec.InitContainers) // Need to set FSGroup equal to p.Spec.PodTemplate.Spec.ContainerSecurityContext.RunAsGroup. // So that /var/pv directory have the group permission for the RunAsGroup user GID. diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/postgres_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/postgres_types.go index e4779ad15..3e1827207 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/postgres_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/postgres_types.go @@ -79,6 +79,11 @@ type PostgresSpec struct { // Streaming mode StreamingMode *PostgresStreamingMode `json:"streamingMode,omitempty"` + // SynchronousReplicationConfig holds fine-grained config for synchronous replication. + // Only applicable when StreamingMode is Synchronous. + // +optional + SynchronousReplicationConfig *PostgresSynchronousReplicationSpec `json:"synchronousReplicationConfig,omitempty"` + // + optional Mode *PostgreSQLMode `json:"mode,omitempty"` // RemoteReplica implies that the instance will be a MySQL Read Only Replica, @@ -381,6 +386,141 @@ const ( AsynchronousPostgresStreamingMode PostgresStreamingMode = "Asynchronous" ) +// PostgresSyncReplicationMode defines how standby replicas are selected for synchronous replication. +// +kubebuilder:validation:Enum=Any;First +type PostgresSyncReplicationMode string + +const ( + // PostgresSyncReplicationModeAny uses quorum-based selection: wait for any NumSyncReplicas standbys. + PostgresSyncReplicationModeAny PostgresSyncReplicationMode = "Any" + // PostgresSyncReplicationModeFirst uses priority-based selection: wait for the first NumSyncReplicas standbys in list order. + PostgresSyncReplicationModeFirst PostgresSyncReplicationMode = "First" +) + +// PostgresSynchronousCommitLevel maps to PostgreSQL's synchronous_commit parameter. +// +kubebuilder:validation:Enum=On;RemoteApply;RemoteWrite;Local;Off +type PostgresSynchronousCommitLevel string + +const ( + // PostgresSynchronousCommitOn waits until the standby has written and flushed WAL to disk. + PostgresSynchronousCommitOn PostgresSynchronousCommitLevel = "On" + // PostgresSynchronousCommitRemoteApply waits until the standby has applied the WAL. + PostgresSynchronousCommitRemoteApply PostgresSynchronousCommitLevel = "RemoteApply" + // PostgresSynchronousCommitRemoteWrite waits until the standby has written WAL to its OS buffer (default). + PostgresSynchronousCommitRemoteWrite PostgresSynchronousCommitLevel = "RemoteWrite" + // PostgresSynchronousCommitLocal waits for local WAL flush only; standby is not waited on. + PostgresSynchronousCommitLocal PostgresSynchronousCommitLevel = "Local" + // PostgresSynchronousCommitOff allows commit without waiting for WAL flush. + PostgresSynchronousCommitOff PostgresSynchronousCommitLevel = "Off" +) + +// PostgresSynchronousReplicationSpec configures fine-grained synchronous replication behavior. +// Only applicable when spec.streamingMode is Synchronous. +// +// Sample configurations: +// +// # Case 1 — Minimal: all defaults (Any 1, RemoteWrite, auto-generated pod list) +// streamingMode: Synchronous +// # synchronousReplicationConfig omitted → ANY 1 ("pg-0","pg-1","pg-2") +// +// # Case 2 — Quorum: wait for any 2 of N standbys +// synchronousReplicationConfig: +// mode: Any +// numSyncReplicas: 2 +// commitLevel: RemoteWrite +// +// # Case 3 — Priority: ordered list, first live standby wins +// synchronousReplicationConfig: +// mode: First +// numSyncReplicas: 1 +// commitLevel: On +// +// # Case 4 — Explicit standby names with Any mode +// synchronousReplicationConfig: +// mode: Any +// numSyncReplicas: 2 +// standbyNames: [pg-1, pg-2, pg-3] +// commitLevel: RemoteWrite +// +// # Case 5 — Explicit standby names with First mode (order = priority) +// synchronousReplicationConfig: +// mode: First +// numSyncReplicas: 1 +// standbyNames: [pg-3, pg-1, pg-2] # pg-3 has highest priority +// commitLevel: RemoteApply +// +// # Case 6 — Strongest durability: WAL flushed on standby before commit returns +// synchronousReplicationConfig: +// mode: Any +// numSyncReplicas: 1 +// commitLevel: On +// +// # Case 7 — Relaxed durability: only local WAL flush, standby not waited on +// synchronousReplicationConfig: +// mode: Any +// numSyncReplicas: 1 +// commitLevel: Local +// +// # Case 8 — No WAL flush guarantee at all +// synchronousReplicationConfig: +// mode: Any +// numSyncReplicas: 1 +// commitLevel: Off +// +// # Case 9 — Wildcard: accept any connected standby (useful when standby +// # application_names are unknown, e.g. external DR replicas). +// # Mutually exclusive with standbyNames. +// # With First mode, avoid wildcard — priority order is non-deterministic. +// synchronousReplicationConfig: +// mode: Any +// numSyncReplicas: 1 +// useWildcard: true +// # renders: ANY 1 (*) +// +// # Case 10 — Wildcard quorum: any 2 standbys regardless of name +// synchronousReplicationConfig: +// mode: Any +// numSyncReplicas: 2 +// useWildcard: true +// # renders: ANY 2 (*) +type PostgresSynchronousReplicationSpec struct { + // Mode controls how standbys are selected: Any (quorum) or First (priority). + // Defaults to Any. + // +optional + Mode *PostgresSyncReplicationMode `json:"mode,omitempty"` + + // NumSyncReplicas is the number of synchronous standby replicas to wait for. + // Must be >= 1 and less than spec.replicas. + // Defaults to 1. + // +optional + NumSyncReplicas *int32 `json:"numSyncReplicas,omitempty"` + + // CommitLevel maps to PostgreSQL's synchronous_commit parameter, controlling the + // durability vs. performance trade-off for synchronous standbys. + // Defaults to RemoteWrite. + // +optional + CommitLevel *PostgresSynchronousCommitLevel `json:"commitLevel,omitempty"` + + // StandbyNames is an explicit ordered list of standby application_names to include in + // synchronous_standby_names. When set, only these names participate in synchronous + // replication instead of the auto-generated list of all pod names. + // For FIRST mode the order determines priority (first entry = highest priority). + // Must not contain duplicates or empty strings. + // When absent, all standby pods are included in ascending pod-index order. + // Mutually exclusive with UseWildcard. + // +optional + // +listType=atomic + StandbyNames []string `json:"standbyNames,omitempty"` + + // UseWildcard, when true, uses '*' in synchronous_standby_names to match any + // connected standby regardless of its application_name. Useful when standby names + // are not known in advance (e.g. external DR replicas with custom application_name). + // Avoid combining with mode: First — connection-order priority is non-deterministic. + // Mutually exclusive with StandbyNames. + // +optional + UseWildcard *bool `json:"useWildcard,omitempty"` +} + // ref: https://www.postgresql.org/docs/13/libpq-ssl.html // +kubebuilder:validation:Enum=disable;allow;prefer;require;verify-ca;verify-full type PostgresSSLMode string diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/proxysql_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/proxysql_helpers.go index 0f8561128..ab61c417f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/proxysql_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/proxysql_helpers.go @@ -245,6 +245,8 @@ func (p *ProxySQL) SetDefaults(psVersion *v1alpha1.ProxySQLVersion, usesAcme boo if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResources) } + + apis.SetDefaultResizePolicy(p.Spec.PodTemplate.Spec.Containers, p.Spec.PodTemplate.Spec.InitContainers) } func (p *ProxySQL) setDefaultContainerSecurityContext(proxyVersion *v1alpha1.ProxySQLVersion, podTemplate *ofstv2.PodTemplateSpec) { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_helpers.go index 27f568efc..03cfda366 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_helpers.go @@ -120,6 +120,14 @@ func (r Redis) GetAuthSecretName() string { return meta_util.NameWithSuffix(r.OffshootName(), "auth") } +// ACLSecretName returns the name of the ACL secret maintained by the operator. +// It is seeded from spec.configuration.acl.secretRef (if provided) and updated +// on each reconfigure ops request. +func (r Redis) ACLSecretName() string { + uid := string(r.UID) + return meta_util.NameWithSuffix(meta_util.NameWithSuffix(r.OffshootName(), "acl"), uid[len(uid)-6:]) +} + func (r Redis) ServiceName() string { return r.OffshootName() } @@ -445,6 +453,8 @@ func (r *Redis) setDefaultContainerResourceLimits(podTemplate *ofstv2.PodTemplat apis.SetDefaultResourceLimits(&coordinatorContainer.Resources, kubedb.CoordinatorDefaultResources) } } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (r Redis) ShardNodeTemplate() string { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_sentinel_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_sentinel_helpers.go index a63970f49..82602c9c7 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_sentinel_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/redis_sentinel_helpers.go @@ -347,6 +347,8 @@ func (rs *RedisSentinel) setDefaultContainerResourceLimits(podTemplate *ofstv2.P if initContainer != nil && (initContainer.Resources.Requests == nil && initContainer.Resources.Limits == nil) { apis.SetDefaultResourceLimits(&initContainer.Resources, kubedb.DefaultInitContainerResource) } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } // CertificateName returns the default certificate name and/or certificate secret name for a certificate alias diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/register.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/register.go index 953dd37ef..355fa35f5 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1/register.go @@ -53,7 +53,8 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &Elasticsearch{}, &ElasticsearchList{}, &Kafka{}, @@ -80,7 +81,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &RedisSentinelList{}, ) - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &metav1.Status{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) 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 86e36b41f..df1af9611 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 @@ -2784,6 +2784,11 @@ func (in *PostgresSpec) DeepCopyInto(out *PostgresSpec) { *out = new(PostgresStreamingMode) **out = **in } + if in.SynchronousReplicationConfig != nil { + in, out := &in.SynchronousReplicationConfig, &out.SynchronousReplicationConfig + *out = new(PostgresSynchronousReplicationSpec) + (*in).DeepCopyInto(*out) + } if in.Mode != nil { in, out := &in.Mode, &out.Mode *out = new(PostgreSQLMode) @@ -2911,6 +2916,47 @@ func (in *PostgresStatus) DeepCopy() *PostgresStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostgresSynchronousReplicationSpec) DeepCopyInto(out *PostgresSynchronousReplicationSpec) { + *out = *in + if in.Mode != nil { + in, out := &in.Mode, &out.Mode + *out = new(PostgresSyncReplicationMode) + **out = **in + } + if in.NumSyncReplicas != nil { + in, out := &in.NumSyncReplicas, &out.NumSyncReplicas + *out = new(int32) + **out = **in + } + if in.CommitLevel != nil { + in, out := &in.CommitLevel, &out.CommitLevel + *out = new(PostgresSynchronousCommitLevel) + **out = **in + } + if in.StandbyNames != nil { + in, out := &in.StandbyNames, &out.StandbyNames + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.UseWildcard != nil { + in, out := &in.UseWildcard, &out.UseWildcard + *out = new(bool) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSynchronousReplicationSpec. +func (in *PostgresSynchronousReplicationSpec) DeepCopy() *PostgresSynchronousReplicationSpec { + if in == nil { + return nil + } + out := new(PostgresSynchronousReplicationSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PostgresTuningConfig) DeepCopyInto(out *PostgresTuningConfig) { *out = *in diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/register.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/register.go index 4ea70f3d0..b78619288 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/register.go @@ -53,7 +53,8 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &Postgres{}, &PostgresList{}, &Elasticsearch{}, @@ -72,7 +73,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &RedisList{}, ) - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &metav1.Status{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/aerospike_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/aerospike_helpers.go index e82197415..1540b19ba 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/aerospike_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/aerospike_helpers.go @@ -130,6 +130,7 @@ func (a *Aerospike) SetDefaults(arVersion *catalog.AerospikeVersion) { } apis.SetDefaultResourceLimits(&container.Resources, kubedb.DefaultResources) a.Spec.PodTemplate.Spec.Containers = coreutil.UpsertContainer(a.Spec.PodTemplate.Spec.Containers, *container) + apis.SetDefaultResizePolicy(a.Spec.PodTemplate.Spec.Containers, a.Spec.PodTemplate.Spec.InitContainers) } func (a Aerospike) setDefaultContainerSecurityContext(arVersion *catalog.AerospikeVersion, podTemplate *ofst.PodTemplateSpec) { 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 169887535..597624b09 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/cassandra_helpers.go @@ -426,6 +426,8 @@ func (r *Cassandra) setDefaultContainerSecurityContext(csVersion *catalog.Cassan initContainer.SecurityContext = &core.SecurityContext{} } r.assignDefaultContainerSecurityContext(csVersion, initContainer.SecurityContext) + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (r *Cassandra) assignDefaultContainerSecurityContext(csVersion *catalog.CassandraVersion, rc *core.SecurityContext) { 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 41f6ae8ee..58adf60be 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/clickhouse_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/clickhouse_helpers.go @@ -401,6 +401,7 @@ func (c *ClickHouse) SetDefaults(kc client.Client) { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.ClickHouseDefaultResources) } c.setDefaultContainerSecurityContext(&chVersion, cluster.PodTemplate) + apis.SetDefaultResizePolicy(cluster.PodTemplate.Spec.Containers, cluster.PodTemplate.Spec.InitContainers) c.Spec.ClusterTopology.Cluster = cluster if c.Spec.ClusterTopology.ClickHouseKeeper != nil && !c.Spec.ClusterTopology.ClickHouseKeeper.ExternallyManaged && c.Spec.ClusterTopology.ClickHouseKeeper.Spec != nil { @@ -420,6 +421,7 @@ func (c *ClickHouse) SetDefaults(kc client.Client) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResources) } + apis.SetDefaultResizePolicy(c.Spec.ClusterTopology.ClickHouseKeeper.Spec.PodTemplate.Spec.Containers, c.Spec.ClusterTopology.ClickHouseKeeper.Spec.PodTemplate.Spec.InitContainers) } } else { if c.Spec.Replicas == nil { @@ -440,6 +442,7 @@ func (c *ClickHouse) SetDefaults(kc client.Client) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.ClickHouseDefaultResources) } + apis.SetDefaultResizePolicy(c.Spec.PodTemplate.Spec.Containers, c.Spec.PodTemplate.Spec.InitContainers) } c.SetTLSDefaults() c.SetHealthCheckerDefaults() diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/db2_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/db2_helpers.go index 0b0516c98..9571cd30c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/db2_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/db2_helpers.go @@ -150,6 +150,7 @@ func (d *DB2) SetDefaults(kc client.Client) { klog.Errorf("Failed to get database version %s: %s", err.Error(), d.Spec.Version) return } + apis.SetDefaultResizePolicy(d.Spec.PodTemplate.Spec.Containers, d.Spec.PodTemplate.Spec.InitContainers) } func (d *DB2) initializePodTemplates() { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/documentdb_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/documentdb_helpers.go index f9532ceb0..c3deaa119 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/documentdb_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/documentdb_helpers.go @@ -231,9 +231,9 @@ func (d *DocumentDB) SetDefaults(_ client.Client, documentDBVersion catalogv1alp // So 5s is a safe upper limit of global round-trip time. As the election timeout should be an order of magnitude // bigger than broadcast time, in the case of ~5s for a globally distributed cluster, then 50 seconds becomes // a reasonable maximum. - Period: metav1.Duration{Duration: 300 * time.Millisecond}, + Period: metav1.Duration{Duration: 1 * time.Second}, // the amount of HeartbeatTick can be missed before the failOver - ElectionTick: 10, + ElectionTick: 15, // this value should be one. HeartbeatTick: 1, // we have set this default to 67108864. if the difference between primary and replica is more then this, @@ -258,6 +258,7 @@ func (d *DocumentDB) SetDefaults(_ client.Client, documentDBVersion catalogv1alp d.SetInitContainerDefaults(d.Spec.PodTemplate, &documentDBVersion) d.SetDocumentDBContainerDefaults(d.Spec.PodTemplate, &documentDBVersion) d.SetCoordinatorContainerDefaults(d.Spec.PodTemplate, &documentDBVersion) + apis.SetDefaultResizePolicy(d.Spec.PodTemplate.Spec.Containers, d.Spec.PodTemplate.Spec.InitContainers) d.SetDefaultReplicationMode() d.SetHealthCheckerDefaults() } @@ -371,7 +372,7 @@ func (d *DocumentDB) initializePodTemplates() { } func (d *DocumentDB) GetPersistentSecrets() []string { - var secrets []string + secrets := make([]string, 0, 2) secrets = append(secrets, d.GetAuthSecretName()) secrets = append(secrets, d.GetAdminAuthSecretName()) return secrets 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 3ee52eb17..93bad95aa 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/druid_helpers.go @@ -739,6 +739,8 @@ func (d *Druid) setDefaultContainerResourceLimits(podTemplate *ofst.PodTemplateS if initContainer != nil && (initContainer.Resources.Requests == nil && initContainer.Resources.Limits == nil) { apis.SetDefaultResourceLimits(&initContainer.Resources, kubedb.DefaultInitContainerResource) } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (d *Druid) GetPersistentSecrets() []string { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hanadb_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hanadb_helpers.go index f072f7d97..e03f05079 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hanadb_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hanadb_helpers.go @@ -769,6 +769,8 @@ func (h *HanaDB) setDefaultContainerResourceLimits(podTemplate *ofst.PodTemplate apis.SetDefaultResourceLimits(&coordinatorContainer.Resources, kubedb.CoordinatorDefaultResources) } } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (h *HanaDB) ReplicasAreReady(lister pslister.PetSetLister) (bool, string, error) { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hanadb_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hanadb_types.go index 01c296751..c03f59c03 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hanadb_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hanadb_types.go @@ -113,6 +113,13 @@ type HanaDBSpec struct { // Storage to specify how storage shall be used Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"` + // EnforceVolumePermission runs a root init container to make the HanaDB data + // volume writable by the runtime user. Use this when storage provisioners + // create volumes that are not writable by HanaDB. fsGroup is not used because + // /run_hana rejects SGID on /hana/mounts. + // +optional + EnforceVolumePermission bool `json:"enforceVolumePermission,omitempty"` + // Database authentication secret // +optional AuthSecret *SecretReference `json:"authSecret,omitempty"` diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hazelcast_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hazelcast_helpers.go index e75736a28..3a3d66654 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hazelcast_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/hazelcast_helpers.go @@ -174,6 +174,7 @@ func (h *Hazelcast) SetDefaults(kc client.Client) { h.setDefaultContainerSecurityContext(&hzVersion, &h.Spec.PodTemplate) h.setDefaultContainerResourceLimits(&h.Spec.PodTemplate) h.setDefaultProbes(&h.Spec.PodTemplate) + apis.SetDefaultResizePolicy(h.Spec.PodTemplate.Spec.Containers, h.Spec.PodTemplate.Spec.InitContainers) if h.Spec.Monitor != nil { h.Spec.Monitor.SetDefaults() diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/ignite_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/ignite_helpers.go index dcab9c631..176220d49 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/ignite_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/ignite_helpers.go @@ -140,6 +140,8 @@ func (i *Ignite) SetDefaults(kc client.Client) { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.IgniteDefaultResources) } + apis.SetDefaultResizePolicy(i.Spec.PodTemplate.Spec.Containers, i.Spec.PodTemplate.Spec.InitContainers) + i.SetHealthCheckerDefaults() i.Spec.Monitor.SetDefaults() 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 81f58f8bc..35496f9d6 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/kafka_helpers.go @@ -399,6 +399,8 @@ func (k *Kafka) setDefaultContainerSecurityContext(kfVersion *catalog.KafkaVersi } k.assignDefaultContainerSecurityContext(kfVersion, dbContainer.SecurityContext) podTemplate.Spec.Containers = coreutil.UpsertContainer(podTemplate.Spec.Containers, *dbContainer) + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (k *Kafka) assignDefaultContainerSecurityContext(kfVersion *catalog.KafkaVersion, sc *core.SecurityContext) { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/milvus_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/milvus_helpers.go index 6d4890e70..23e5751b7 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/milvus_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/milvus_helpers.go @@ -220,7 +220,7 @@ func (m *Milvus) SetHealthCheckerDefaults() { } func (m *Milvus) EtcdServiceName() string { - return fmt.Sprintf("%s-%s", m.Namespace, kubedb.EtcdName) + return fmt.Sprintf("%s-%s", m.Name, kubedb.EtcdName) } func (m *Milvus) MetaStorageEndpoints() []string { @@ -312,6 +312,7 @@ func (m *Milvus) setComponentDefaults(mvVersion *catalog.MilvusVersion, node any m.setDefaultContainerSecurityContext(mvVersion, *podTemplate) m.setDefaultContainerResourceLimits(*podTemplate) + apis.SetDefaultResizePolicy((*podTemplate).Spec.Containers, (*podTemplate).Spec.InitContainers) } func (m *Milvus) SetDefaults(kc client.Client) { @@ -352,6 +353,7 @@ func (m *Milvus) SetDefaults(kc client.Client) { } else { m.setDefaultContainerSecurityContext(&mvVersion, m.Spec.PodTemplate) m.setDefaultContainerResourceLimits(m.Spec.PodTemplate) + apis.SetDefaultResizePolicy(m.Spec.PodTemplate.Spec.Containers, m.Spec.PodTemplate.Spec.InitContainers) } m.setMetaStorageDefaults() @@ -553,3 +555,25 @@ func (m *Milvus) CertificateName(alias MilvusCertificateType) string { func (m *Milvus) GetStorageClassName() string { return *m.Spec.Storage.StorageClassName } + +type MilvusBind struct { + *Milvus +} + +var _ DBBindInterface = &MilvusBind{} + +func (m *MilvusBind) ServiceNames() (string, string) { + return m.ServiceName(), "" +} + +func (m *MilvusBind) Ports() (int, int) { + return int(kubedb.MilvusHttpPort), 0 +} + +func (m *MilvusBind) SecretName() string { + return m.GetAuthSecretName() +} + +func (m *MilvusBind) CertSecretName() string { + return m.GetCertSecretName(MilvusCertificateTypeClient) +} 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 f57c93632..6da68fb05 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mssqlserver_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/mssqlserver_helpers.go @@ -558,6 +558,8 @@ func (m *MSSQLServer) setDefaultContainerResourceLimits(podTemplate *ofst.PodTem apis.SetDefaultResourceLimits(&coordinatorContainer.Resources, kubedb.CoordinatorDefaultResources) } } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (m *MSSQLServer) SetArbiterDefault() { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/neo4j_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/neo4j_helpers.go index 0d736a340..34e9f9b19 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/neo4j_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/neo4j_helpers.go @@ -166,6 +166,8 @@ func (r *Neo4j) SetDefaults(kc client.Client) { if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResourcesNeo4j) } + + apis.SetDefaultResizePolicy(r.Spec.PodTemplate.Spec.Containers, r.Spec.PodTemplate.Spec.InitContainers) } func (r *Neo4j) SetTLSDefaults() { @@ -187,6 +189,11 @@ func (r *Neo4j) SetTLSDefaults() { Mode: TLSModeMTLS, } } + if r.Spec.TLS.Backup == nil { + r.Spec.TLS.Backup = &ProtocolTLSConfig{ + Mode: TLSModeMTLS, + } + } r.Spec.TLS.Certificates = kmapi.SetMissingSecretNameForCertificate(r.Spec.TLS.Certificates, string(Neo4jCertificateTypeServer), r.CertificateName(Neo4jCertificateTypeServer)) r.Spec.TLS.Certificates = kmapi.SetMissingSecretNameForCertificate(r.Spec.TLS.Certificates, string(Neo4jCertificateTypeClient), r.CertificateName(Neo4jCertificateTypeClient)) if r.Spec.TLS.KeystoreCredSecret == nil { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/neo4j_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/neo4j_types.go index 312b29cf9..a0f0cff04 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/neo4j_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/neo4j_types.go @@ -116,6 +116,8 @@ type Neo4jTLSConfig struct { HTTP *ProtocolTLSConfig `json:"http,omitempty"` // +optional Cluster *ProtocolTLSConfig `json:"cluster,omitempty"` + // +optional + Backup *ProtocolTLSConfig `json:"backup,omitempty"` // Keystore encryption secret // +optional KeystoreCredSecret *SecretReference `json:"keystoreCredSecret,omitempty"` 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 3d9d6ab25..98231a9c5 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go @@ -700,6 +700,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.MetadataStorage": schema_apimachinery_apis_kubedb_v1alpha2_MetadataStorage(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Milvus": schema_apimachinery_apis_kubedb_v1alpha2_Milvus(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.MilvusApp": schema_apimachinery_apis_kubedb_v1alpha2_MilvusApp(ref), + "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.MilvusBind": schema_apimachinery_apis_kubedb_v1alpha2_MilvusBind(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.MilvusDataNode": schema_apimachinery_apis_kubedb_v1alpha2_MilvusDataNode(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.MilvusDistributedSpec": schema_apimachinery_apis_kubedb_v1alpha2_MilvusDistributedSpec(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.MilvusList": schema_apimachinery_apis_kubedb_v1alpha2_MilvusList(ref), @@ -773,6 +774,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProxySQLStatus": schema_apimachinery_apis_kubedb_v1alpha2_ProxySQLStatus(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Qdrant": schema_apimachinery_apis_kubedb_v1alpha2_Qdrant(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.QdrantApp": schema_apimachinery_apis_kubedb_v1alpha2_QdrantApp(ref), + "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.QdrantBind": schema_apimachinery_apis_kubedb_v1alpha2_QdrantBind(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.QdrantList": schema_apimachinery_apis_kubedb_v1alpha2_QdrantList(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.QdrantSpec": schema_apimachinery_apis_kubedb_v1alpha2_QdrantSpec(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.QdrantStatus": schema_apimachinery_apis_kubedb_v1alpha2_QdrantStatus(ref), @@ -823,6 +825,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Topology": schema_apimachinery_apis_kubedb_v1alpha2_Topology(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Weaviate": schema_apimachinery_apis_kubedb_v1alpha2_Weaviate(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.WeaviateApp": schema_apimachinery_apis_kubedb_v1alpha2_WeaviateApp(ref), + "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.WeaviateBind": schema_apimachinery_apis_kubedb_v1alpha2_WeaviateBind(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.WeaviateConfiguration": schema_apimachinery_apis_kubedb_v1alpha2_WeaviateConfiguration(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.WeaviateList": schema_apimachinery_apis_kubedb_v1alpha2_WeaviateList(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.WeaviateSpec": schema_apimachinery_apis_kubedb_v1alpha2_WeaviateSpec(ref), @@ -873,6 +876,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.singlestoreApp": schema_apimachinery_apis_kubedb_v1alpha2_singlestoreApp(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.singlestoreStatsService": schema_apimachinery_apis_kubedb_v1alpha2_singlestoreStatsService(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.solrStatsService": schema_apimachinery_apis_kubedb_v1alpha2_solrStatsService(ref), + "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.weaviateStatsService": schema_apimachinery_apis_kubedb_v1alpha2_weaviateStatsService(ref), "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.zookeeperStatsService": schema_apimachinery_apis_kubedb_v1alpha2_zookeeperStatsService(ref), } } @@ -37426,6 +37430,13 @@ func schema_apimachinery_apis_kubedb_v1alpha2_HanaDBSpec(ref common.ReferenceCal Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), }, }, + "enforceVolumePermission": { + SchemaProps: spec.SchemaProps{ + Description: "EnforceVolumePermission runs a root init container to make the HanaDB data volume writable by the runtime user. Use this when storage provisioners create volumes that are not writable by HanaDB. fsGroup is not used because /run_hana rejects SGID on /hana/mounts.", + Type: []string{"boolean"}, + Format: "", + }, + }, "authSecret": { SchemaProps: spec.SchemaProps{ Description: "Database authentication secret", @@ -40144,6 +40155,26 @@ func schema_apimachinery_apis_kubedb_v1alpha2_MilvusApp(ref common.ReferenceCall } } +func schema_apimachinery_apis_kubedb_v1alpha2_MilvusBind(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "Milvus": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Milvus"), + }, + }, + }, + Required: []string{"Milvus"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Milvus"}, + } +} + func schema_apimachinery_apis_kubedb_v1alpha2_MilvusDataNode(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -42099,6 +42130,11 @@ func schema_apimachinery_apis_kubedb_v1alpha2_Neo4jTLSConfig(ref common.Referenc Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProtocolTLSConfig"), }, }, + "backup": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProtocolTLSConfig"), + }, + }, "keystoreCredSecret": { SchemaProps: spec.SchemaProps{ Description: "Keystore encryption secret", @@ -44311,6 +44347,26 @@ func schema_apimachinery_apis_kubedb_v1alpha2_QdrantApp(ref common.ReferenceCall } } +func schema_apimachinery_apis_kubedb_v1alpha2_QdrantBind(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "Qdrant": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Qdrant"), + }, + }, + }, + Required: []string{"Qdrant"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Qdrant"}, + } +} + func schema_apimachinery_apis_kubedb_v1alpha2_QdrantList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -46991,6 +47047,26 @@ func schema_apimachinery_apis_kubedb_v1alpha2_WeaviateApp(ref common.ReferenceCa } } +func schema_apimachinery_apis_kubedb_v1alpha2_WeaviateBind(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "Weaviate": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Weaviate"), + }, + }, + }, + Required: []string{"Weaviate"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Weaviate"}, + } +} + func schema_apimachinery_apis_kubedb_v1alpha2_WeaviateConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -47190,12 +47266,18 @@ func schema_apimachinery_apis_kubedb_v1alpha2_WeaviateSpec(ref common.ReferenceC Ref: ref("kmodules.xyz/client-go/api/v1.HealthCheckSpec"), }, }, + "monitor": { + SchemaProps: spec.SchemaProps{ + Description: "Monitor is used to monitor database instance", + Ref: ref("kmodules.xyz/monitoring-agent-api/api/v1.AgentSpec"), + }, + }, }, Required: []string{"version"}, }, }, Dependencies: []string{ - "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.InitSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ReplicationConfig", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.WeaviateConfiguration", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.WeaviateTLSConfig"}, + "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.InitSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.NamedServiceTemplateSpec", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ReplicationConfig", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.SecretReference", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.WeaviateConfiguration", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.WeaviateTLSConfig"}, } } @@ -48403,6 +48485,26 @@ func schema_apimachinery_apis_kubedb_v1alpha2_solrStatsService(ref common.Refere } } +func schema_apimachinery_apis_kubedb_v1alpha2_weaviateStatsService(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "Weaviate": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Weaviate"), + }, + }, + }, + Required: []string{"Weaviate"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.Weaviate"}, + } +} + func schema_apimachinery_apis_kubedb_v1alpha2_zookeeperStatsService(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/oracle_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/oracle_helpers.go index d70457bb1..bceab7a24 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/oracle_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/oracle_helpers.go @@ -329,12 +329,14 @@ func (o *Oracle) SetDefaults(kc client.Client) { o.SetDefaultPodSecurityContext(o.Spec.DataGuard.Observer.PodTemplate, oraVersion) o.SetObserverInitContainerDefaults(o.Spec.DataGuard.Observer.PodTemplate, oraVersion) o.SetOracleObserverContainerDefaults(o.Spec.DataGuard.Observer.PodTemplate, oraVersion) + apis.SetDefaultResizePolicy(o.Spec.DataGuard.Observer.PodTemplate.Spec.Containers, o.Spec.DataGuard.Observer.PodTemplate.Spec.InitContainers) } o.SetDefaultPodSecurityContext(o.Spec.PodTemplate, oraVersion) o.SetOracleContainerDefaults(o.Spec.PodTemplate, oraVersion) o.SetCoordinatorContainerDefaults(o.Spec.PodTemplate, oraVersion) o.SetInitContainerDefaults(o.Spec.PodTemplate, oraVersion) + apis.SetDefaultResizePolicy(o.Spec.PodTemplate.Spec.Containers, o.Spec.PodTemplate.Spec.InitContainers) o.SetHealthCheckerDefaults() o.Spec.Monitor.SetDefaults() o.SetTcpsDefaults() diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_helpers.go index 4ff152536..4fb221adb 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgbouncer_helpers.go @@ -247,7 +247,7 @@ func (p *PgBouncer) GetPersistentSecrets() []string { if p == nil { return nil } - var secrets []string + secrets := make([]string, 0, 3) secrets = append(secrets, p.GetAuthSecretName()) secrets = append(secrets, p.GetBackendSecretName()) secrets = append(secrets, p.ConfigSecretName()) diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgpool_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgpool_helpers.go index 277b40ad7..466ac6f77 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgpool_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/pgpool_helpers.go @@ -409,6 +409,7 @@ func (p *Pgpool) SetDefaults(client client.Client) { p.SetHealthCheckerDefaults() p.SetSecurityContext(&ppVersion, p.Spec.PodTemplate) p.setContainerResourceLimits(p.Spec.PodTemplate) + apis.SetDefaultResizePolicy(p.Spec.PodTemplate.Spec.Containers, p.Spec.PodTemplate.Spec.InitContainers) } func (p *Pgpool) GetPersistentSecrets() []string { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/qdrant_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/qdrant_helpers.go index 2cc8efbb1..2777e14e5 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/qdrant_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/qdrant_helpers.go @@ -122,7 +122,8 @@ func (q *Qdrant) ServiceDNS() string { } func (q *Qdrant) PodDNS(ordinal string) string { - return fmt.Sprintf("%s-%s.%s.%s.svc", + return fmt.Sprintf( + "%s-%s.%s.%s.svc", q.OffshootName(), ordinal, q.GoverningServiceName(), @@ -429,4 +430,28 @@ func (q *Qdrant) setDefaultContainerResourceLimits(podTemplate *ofst.PodTemplate if dbContainer != nil { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResources) } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) +} + +type QdrantBind struct { + *Qdrant +} + +var _ DBBindInterface = &QdrantBind{} + +func (q *QdrantBind) ServiceNames() (string, string) { + return q.ServiceName(), q.ServiceName() +} + +func (q *QdrantBind) Ports() (int, int) { + return kubedb.QdrantHTTPPort, kubedb.QdrantHTTPPort +} + +func (q *QdrantBind) SecretName() string { + return q.GetAuthSecretName() +} + +func (q *QdrantBind) CertSecretName() string { + return q.GetCertSecretName(QdrantClientCert) } 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 ebd15280c..110c4df4c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/rabbitmq_helpers.go @@ -375,6 +375,8 @@ func (r *RabbitMQ) setDefaultContainerSecurityContext(rmVersion *catalog.RabbitM initContainer.SecurityContext = &core.SecurityContext{} } r.assignDefaultInitContainerSecurityContext(rmVersion, initContainer.SecurityContext) + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (r *RabbitMQ) assignDefaultInitContainerSecurityContext(rmVersion *catalog.RabbitMQVersion, rc *core.SecurityContext) { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/register.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/register.go index 143f05d2c..fbc294e26 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/register.go @@ -53,7 +53,8 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &Aerospike{}, &AerospikeList{}, &Cassandra{}, @@ -120,7 +121,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ZooKeeperList{}, ) - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &metav1.Status{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/singlestore_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/singlestore_helpers.go index 602ab0b8b..20b48ed4e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/singlestore_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/singlestore_helpers.go @@ -513,6 +513,8 @@ func (s *Singlestore) setDefaultContainerResourceLimits(podTemplate *ofst.PodTem apis.SetDefaultResourceLimits(&coordinatorContainer.Resources, kubedb.CoordinatorDefaultResources) } } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (s *Singlestore) SetTLSDefaults() { 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 0dede4365..1983ef4d6 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/solr_helpers.go @@ -133,7 +133,7 @@ func (s *Solr) Merge(opt map[string]string) map[string]string { } func (s *Solr) Append(opt map[string]string) string { - key := make([]string, 0) + key := make([]string, 0, len(opt)) for x := range opt { key = append(key, x) } @@ -490,6 +490,8 @@ func (s *Solr) setDefaultContainerResourceLimits(podTemplate *ofst.PodTemplateSp if initContainer != nil && (initContainer.Resources.Requests == nil && initContainer.Resources.Limits == nil) { apis.SetDefaultResourceLimits(&initContainer.Resources, kubedb.DefaultInitContainerResource) } + + apis.SetDefaultResizePolicy(podTemplate.Spec.Containers, podTemplate.Spec.InitContainers) } func (s *Solr) SetHealthCheckerDefaults() { diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/weaviate_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/weaviate_helpers.go index 141a84103..9ac8e36fc 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/weaviate_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/weaviate_helpers.go @@ -25,6 +25,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" @@ -36,6 +37,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" "sigs.k8s.io/controller-runtime/pkg/client" ) @@ -92,7 +94,7 @@ func (w *Weaviate) ResourcePlural() string { } func (w *Weaviate) AsOwner() *meta.OwnerReference { - return meta.NewControllerRef(w, SchemeGroupVersion.WithKind(ResourceKindRabbitmq)) + return meta.NewControllerRef(w, SchemeGroupVersion.WithKind(ResourceKindWeaviate)) } func (w *Weaviate) ResourceFQN() string { @@ -212,8 +214,26 @@ func (w *Weaviate) SetDefaults(kc client.Client) { apis.SetDefaultResourceLimits(&dbContainer.Resources, kubedb.DefaultResources) } + apis.SetDefaultResizePolicy(w.Spec.PodTemplate.Spec.Containers, w.Spec.PodTemplate.Spec.InitContainers) + w.SetHealthCheckerDefaults() w.SetTLSDefaults() + + if w.Spec.Monitor != nil { + if w.Spec.Monitor.Prometheus == nil { + w.Spec.Monitor.Prometheus = &mona.PrometheusSpec{} + } + if w.Spec.Monitor.Prometheus.Exporter.Port == 0 { + w.Spec.Monitor.Prometheus.Exporter.Port = kubedb.WeaviateMetricsPort + } + w.Spec.Monitor.SetDefaults() + if w.Spec.Monitor.Prometheus.Exporter.SecurityContext.RunAsUser == nil { + w.Spec.Monitor.Prometheus.Exporter.SecurityContext.RunAsUser = wvVersion.Spec.SecurityContext.RunAsUser + } + if w.Spec.Monitor.Prometheus.Exporter.SecurityContext.RunAsGroup == nil { + w.Spec.Monitor.Prometheus.Exporter.SecurityContext.RunAsGroup = wvVersion.Spec.SecurityContext.RunAsUser + } + } } func (w *Weaviate) setDefaultContainerSecurityContext(wvVersion *catalog.WeaviateVersion, podTemplate *ofst.PodTemplateSpec) { @@ -274,6 +294,46 @@ func (w *Weaviate) GetAPIKey(ctx context.Context, kc client.Client) string { return string(apiKey) } +type weaviateStatsService struct { + *Weaviate +} + +func (w weaviateStatsService) GetNamespace() string { + return w.Weaviate.GetNamespace() +} + +func (w weaviateStatsService) ServiceName() string { + return w.OffshootName() + "-stats" +} + +func (w weaviateStatsService) ServiceMonitorName() string { + return w.ServiceName() +} + +func (w weaviateStatsService) ServiceMonitorAdditionalLabels() map[string]string { + return w.OffshootLabels() +} + +func (w weaviateStatsService) Path() string { + return kubedb.DefaultStatsPath +} + +func (w weaviateStatsService) Scheme() string { + return "http" +} + +func (w weaviateStatsService) TLSConfig() *promapi.TLSConfig { + return nil +} + +func (w Weaviate) StatsService() mona.StatsAccessor { + return &weaviateStatsService{&w} +} + +func (w Weaviate) StatsServiceLabels() map[string]string { + return w.ServiceLabels(StatsServiceAlias, map[string]string{kubedb.LabelRole: kubedb.RoleStats}) +} + func (w *Weaviate) GetConnectionScheme() string { scheme := "http" if w.Spec.TLS != nil { @@ -343,3 +403,28 @@ func (w *Weaviate) SetTLSDefaults() { func (w *Weaviate) GetStorageClassName() string { return *w.Spec.Storage.StorageClassName } + +type WeaviateBind struct { + *Weaviate +} + +var _ DBBindInterface = &WeaviateBind{} + +func (w *WeaviateBind) ServiceNames() (string, string) { + return w.ServiceName(), "" +} + +func (w *WeaviateBind) Ports() (int, int) { + if w.Spec.TLS != nil { + return kubedb.WeaviateHTTPSPort, 0 + } + return kubedb.WeaviateHTTPPort, 0 +} + +func (w *WeaviateBind) SecretName() string { + return w.GetAuthSecretName() +} + +func (w *WeaviateBind) CertSecretName() string { + return w.GetCertSecretName(WeaviateClientCert) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/weaviate_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/weaviate_types.go index 86920dab2..2d75cb03b 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/weaviate_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/weaviate_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" ofstv2 "kmodules.xyz/offshoot-api/api/v2" ) @@ -110,6 +111,10 @@ type WeaviateSpec struct { // +optional // +kubebuilder:default={periodSeconds: 10, timeoutSeconds: 10, failureThreshold: 3} HealthChecker kmapi.HealthCheckSpec `json:"healthChecker"` + + // Monitor is used to monitor database instance + // +optional + Monitor *mona.AgentSpec `json:"monitor,omitempty"` } // WeaviateStatus defines the observed state of Weaviate. 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 a99b7dacc..bd84280eb 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/zookeeper_helpers.go @@ -236,6 +236,8 @@ func (z *ZooKeeper) SetDefaults(kc client.Client) { apis.SetDefaultResourceLimits(&initContainer.Resources, kubedb.DefaultInitContainerResource) } + apis.SetDefaultResizePolicy(z.Spec.PodTemplate.Spec.Containers, z.Spec.PodTemplate.Spec.InitContainers) + if z.Spec.EnableSSL { z.SetTLSDefaults() } 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 731ec4dbd..23110745f 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 @@ -3831,6 +3831,7 @@ func autoConvert_v1_PostgresSpec_To_v1alpha2_PostgresSpec(in *v1.PostgresSpec, o out.Replicas = (*int32)(unsafe.Pointer(in.Replicas)) out.StandbyMode = (*PostgresStandbyMode)(unsafe.Pointer(in.StandbyMode)) out.StreamingMode = (*PostgresStreamingMode)(unsafe.Pointer(in.StreamingMode)) + // WARNING: in.SynchronousReplicationConfig requires manual conversion: does not exist in peer-type out.Mode = (*PostgreSQLMode)(unsafe.Pointer(in.Mode)) out.RemoteReplica = (*RemoteReplicaSpec)(unsafe.Pointer(in.RemoteReplica)) out.LeaderElection = (*PostgreLeaderElectionConfig)(unsafe.Pointer(in.LeaderElection)) 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 cc1ebe160..0f123d23b 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 @@ -4044,6 +4044,27 @@ func (in *MilvusApp) DeepCopy() *MilvusApp { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MilvusBind) DeepCopyInto(out *MilvusBind) { + *out = *in + if in.Milvus != nil { + in, out := &in.Milvus, &out.Milvus + *out = new(Milvus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusBind. +func (in *MilvusBind) DeepCopy() *MilvusBind { + if in == nil { + return nil + } + out := new(MilvusBind) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MilvusDataNode) DeepCopyInto(out *MilvusDataNode) { *out = *in @@ -5207,6 +5228,11 @@ func (in *Neo4jTLSConfig) DeepCopyInto(out *Neo4jTLSConfig) { *out = new(ProtocolTLSConfig) **out = **in } + if in.Backup != nil { + in, out := &in.Backup, &out.Backup + *out = new(ProtocolTLSConfig) + **out = **in + } if in.KeystoreCredSecret != nil { in, out := &in.KeystoreCredSecret, &out.KeystoreCredSecret *out = new(SecretReference) @@ -6518,6 +6544,27 @@ func (in *QdrantApp) DeepCopy() *QdrantApp { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QdrantBind) DeepCopyInto(out *QdrantBind) { + *out = *in + if in.Qdrant != nil { + in, out := &in.Qdrant, &out.Qdrant + *out = new(Qdrant) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QdrantBind. +func (in *QdrantBind) DeepCopy() *QdrantBind { + if in == nil { + return nil + } + out := new(QdrantBind) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *QdrantList) DeepCopyInto(out *QdrantList) { *out = *in @@ -8049,6 +8096,27 @@ func (in *WeaviateApp) DeepCopy() *WeaviateApp { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WeaviateBind) DeepCopyInto(out *WeaviateBind) { + *out = *in + if in.Weaviate != nil { + in, out := &in.Weaviate, &out.Weaviate + *out = new(Weaviate) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WeaviateBind. +func (in *WeaviateBind) DeepCopy() *WeaviateBind { + if in == nil { + return nil + } + out := new(WeaviateBind) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WeaviateConfiguration) DeepCopyInto(out *WeaviateConfiguration) { *out = *in @@ -8151,6 +8219,11 @@ func (in *WeaviateSpec) DeepCopyInto(out *WeaviateSpec) { } } in.HealthChecker.DeepCopyInto(&out.HealthChecker) + if in.Monitor != nil { + in, out := &in.Monitor, &out.Monitor + *out = new(v1.AgentSpec) + (*in).DeepCopyInto(*out) + } return } diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/helpers.go b/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/helpers.go deleted file mode 100644 index 13addc9bd..000000000 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/helpers.go +++ /dev/null @@ -1,60 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - "kubedb.dev/apimachinery/crds" - - "kmodules.xyz/client-go/apiextensions" -) - -func GetFinalizer() string { - return SchemeGroupVersion.Group -} - -func (Migrator) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { - return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralMigrator)) -} - -func (m Migrator) GetDBKindAndCommand() (string, string) { - switch { - case m.Spec.Source.Postgres != nil && m.Spec.Target.Postgres != nil: - return "Postgres", "postgres" - case m.Spec.Source.MongoDB != nil && m.Spec.Target.MongoDB != nil: - return "MongoDB", "mongodb" - case m.Spec.Source.MySQL != nil && m.Spec.Target.MySQL != nil: - return "MySQL", "mysql" - case m.Spec.Source.MariaDB != nil && m.Spec.Target.MariaDB != nil: - return "MariaDB", "mariadb" - } - - return "", "" -} - -func (m Migrator) GetConnectionInfos() (*ConnectionInfo, *ConnectionInfo) { - switch { - case m.Spec.Source.Postgres != nil && m.Spec.Target.Postgres != nil: - return &m.Spec.Source.Postgres.ConnectionInfo, &m.Spec.Target.Postgres.ConnectionInfo - case m.Spec.Source.MongoDB != nil && m.Spec.Target.MongoDB != nil: - return &m.Spec.Source.MongoDB.ConnectionInfo, &m.Spec.Target.MongoDB.ConnectionInfo - case m.Spec.Source.MySQL != nil && m.Spec.Target.MySQL != nil: - return m.Spec.Source.MySQL.ConnectionInfo, m.Spec.Target.MySQL.ConnectionInfo - case m.Spec.Source.MariaDB != nil && m.Spec.Target.MariaDB != nil: - return m.Spec.Source.MariaDB.ConnectionInfo, m.Spec.Target.MariaDB.ConnectionInfo - } - return nil, nil -} diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/mariadb.go b/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/mariadb.go deleted file mode 100644 index 44a74d4c2..000000000 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/mariadb.go +++ /dev/null @@ -1,30 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -type MariaDBSource struct { - // ConnectionInfo refers to the source MariaDB database connection information. - ConnectionInfo *ConnectionInfo `yaml:"connectionInfo" json:"connectionInfo"` - Schema *MySQLSchema `yaml:"schema" json:"schema,omitempty"` - Snapshot *MySQLSnapshot `yaml:"snapshot" json:"snapshot,omitempty"` - Streaming *MySQLStreaming `yaml:"streaming" json:"streaming,omitempty"` -} - -type MariaDBTarget struct { - // ConnectionInfo refers to the target MariaDB database connection information. - ConnectionInfo *ConnectionInfo `yaml:"connectionInfo" json:"connectionInfo"` -} diff --git a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index 2a014da33..000000000 --- a/vendor/kubedb.dev/apimachinery/apis/migrator/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,878 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - runtime "k8s.io/apimachinery/pkg/runtime" - v1 "kmodules.xyz/client-go/api/v1" - apiv1 "kmodules.xyz/offshoot-api/api/v1" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConnectionInfo) DeepCopyInto(out *ConnectionInfo) { - *out = *in - if in.AppBinding != nil { - in, out := &in.AppBinding, &out.AppBinding - *out = new(v1.ObjectReference) - **out = **in - } - if in.MaxConnections != nil { - in, out := &in.MaxConnections, &out.MaxConnections - *out = new(int32) - **out = **in - } - if in.TLS != nil { - in, out := &in.TLS, &out.TLS - *out = new(TLSConfig) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionInfo. -func (in *ConnectionInfo) DeepCopy() *ConnectionInfo { - if in == nil { - return nil - } - out := new(ConnectionInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBMigratorCLI) DeepCopyInto(out *DBMigratorCLI) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBMigratorCLI. -func (in *DBMigratorCLI) DeepCopy() *DBMigratorCLI { - if in == nil { - return nil - } - out := new(DBMigratorCLI) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBMigratorImages) DeepCopyInto(out *DBMigratorImages) { - *out = *in - out.CLI = in.CLI - out.StatusReporter = in.StatusReporter - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBMigratorImages. -func (in *DBMigratorImages) DeepCopy() *DBMigratorImages { - if in == nil { - return nil - } - out := new(DBMigratorImages) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBMigratorStatusReporter) DeepCopyInto(out *DBMigratorStatusReporter) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBMigratorStatusReporter. -func (in *DBMigratorStatusReporter) DeepCopy() *DBMigratorStatusReporter { - if in == nil { - return nil - } - out := new(DBMigratorStatusReporter) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *JobDefaults) DeepCopyInto(out *JobDefaults) { - *out = *in - if in.BackoffLimit != nil { - in, out := &in.BackoffLimit, &out.BackoffLimit - *out = new(int32) - **out = **in - } - if in.TTLSecondsAfterFinished != nil { - in, out := &in.TTLSecondsAfterFinished, &out.TTLSecondsAfterFinished - *out = new(int32) - **out = **in - } - if in.ActiveDeadlineSeconds != nil { - in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobDefaults. -func (in *JobDefaults) DeepCopy() *JobDefaults { - if in == nil { - return nil - } - out := new(JobDefaults) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LogicalReplication) DeepCopyInto(out *LogicalReplication) { - *out = *in - if in.Publication != nil { - in, out := &in.Publication, &out.Publication - *out = new(Publication) - (*in).DeepCopyInto(*out) - } - if in.Subscription != nil { - in, out := &in.Subscription, &out.Subscription - *out = new(Subscription) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogicalReplication. -func (in *LogicalReplication) DeepCopy() *LogicalReplication { - if in == nil { - return nil - } - out := new(LogicalReplication) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MariaDBSource) DeepCopyInto(out *MariaDBSource) { - *out = *in - if in.ConnectionInfo != nil { - in, out := &in.ConnectionInfo, &out.ConnectionInfo - *out = new(ConnectionInfo) - (*in).DeepCopyInto(*out) - } - if in.Schema != nil { - in, out := &in.Schema, &out.Schema - *out = new(MySQLSchema) - (*in).DeepCopyInto(*out) - } - if in.Snapshot != nil { - in, out := &in.Snapshot, &out.Snapshot - *out = new(MySQLSnapshot) - (*in).DeepCopyInto(*out) - } - if in.Streaming != nil { - in, out := &in.Streaming, &out.Streaming - *out = new(MySQLStreaming) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBSource. -func (in *MariaDBSource) DeepCopy() *MariaDBSource { - if in == nil { - return nil - } - out := new(MariaDBSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MariaDBTarget) DeepCopyInto(out *MariaDBTarget) { - *out = *in - if in.ConnectionInfo != nil { - in, out := &in.ConnectionInfo, &out.ConnectionInfo - *out = new(ConnectionInfo) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBTarget. -func (in *MariaDBTarget) DeepCopy() *MariaDBTarget { - if in == nil { - return nil - } - out := new(MariaDBTarget) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MigrationConfig) DeepCopyInto(out *MigrationConfig) { - *out = *in - in.Source.DeepCopyInto(&out.Source) - in.Target.DeepCopyInto(&out.Target) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationConfig. -func (in *MigrationConfig) DeepCopy() *MigrationConfig { - if in == nil { - return nil - } - out := new(MigrationConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Migrator) DeepCopyInto(out *Migrator) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Migrator. -func (in *Migrator) DeepCopy() *Migrator { - if in == nil { - return nil - } - out := new(Migrator) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Migrator) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MigratorList) DeepCopyInto(out *MigratorList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Migrator, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigratorList. -func (in *MigratorList) DeepCopy() *MigratorList { - if in == nil { - return nil - } - out := new(MigratorList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MigratorList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MigratorSpec) DeepCopyInto(out *MigratorSpec) { - *out = *in - if in.Source != nil { - in, out := &in.Source, &out.Source - *out = new(Source) - (*in).DeepCopyInto(*out) - } - if in.Target != nil { - in, out := &in.Target, &out.Target - *out = new(Target) - (*in).DeepCopyInto(*out) - } - if in.JobDefaults != nil { - in, out := &in.JobDefaults, &out.JobDefaults - *out = new(JobDefaults) - (*in).DeepCopyInto(*out) - } - if in.JobTemplate != nil { - in, out := &in.JobTemplate, &out.JobTemplate - *out = new(apiv1.PodTemplateSpec) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigratorSpec. -func (in *MigratorSpec) DeepCopy() *MigratorSpec { - if in == nil { - return nil - } - out := new(MigratorSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MigratorStatus) DeepCopyInto(out *MigratorStatus) { - *out = *in - if in.Progress != nil { - in, out := &in.Progress, &out.Progress - *out = new(Progress) - (*in).DeepCopyInto(*out) - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigratorStatus. -func (in *MigratorStatus) DeepCopy() *MigratorStatus { - if in == nil { - return nil - } - out := new(MigratorStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MongoSource) DeepCopyInto(out *MongoSource) { - *out = *in - in.ConnectionInfo.DeepCopyInto(&out.ConnectionInfo) - if in.Mongoshake != nil { - in, out := &in.Mongoshake, &out.Mongoshake - *out = new(Mongoshake) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoSource. -func (in *MongoSource) DeepCopy() *MongoSource { - if in == nil { - return nil - } - out := new(MongoSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MongoTarget) DeepCopyInto(out *MongoTarget) { - *out = *in - in.ConnectionInfo.DeepCopyInto(&out.ConnectionInfo) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoTarget. -func (in *MongoTarget) DeepCopy() *MongoTarget { - if in == nil { - return nil - } - out := new(MongoTarget) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Mongoshake) DeepCopyInto(out *Mongoshake) { - *out = *in - if in.FilterOpTypes != nil { - in, out := &in.FilterOpTypes, &out.FilterOpTypes - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.FilterNamespaceBlack != nil { - in, out := &in.FilterNamespaceBlack, &out.FilterNamespaceBlack - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.FilterNamespaceWhite != nil { - in, out := &in.FilterNamespaceWhite, &out.FilterNamespaceWhite - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.FilterPassSpecialDb != nil { - in, out := &in.FilterPassSpecialDb, &out.FilterPassSpecialDb - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.FilterDDLEnable != nil { - in, out := &in.FilterDDLEnable, &out.FilterDDLEnable - *out = new(bool) - **out = **in - } - if in.FilterOplogGids != nil { - in, out := &in.FilterOplogGids, &out.FilterOplogGids - *out = new(bool) - **out = **in - } - if in.TransformNamespace != nil { - in, out := &in.TransformNamespace, &out.TransformNamespace - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExtraConfiguration != nil { - in, out := &in.ExtraConfiguration, &out.ExtraConfiguration - *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 Mongoshake. -func (in *Mongoshake) DeepCopy() *Mongoshake { - if in == nil { - return nil - } - out := new(Mongoshake) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MySQLConnectionInfo) DeepCopyInto(out *MySQLConnectionInfo) { - *out = *in - if in.AppBinding != nil { - in, out := &in.AppBinding, &out.AppBinding - *out = new(v1.ObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLConnectionInfo. -func (in *MySQLConnectionInfo) DeepCopy() *MySQLConnectionInfo { - if in == nil { - return nil - } - out := new(MySQLConnectionInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MySQLSchema) DeepCopyInto(out *MySQLSchema) { - *out = *in - if in.Database != nil { - in, out := &in.Database, &out.Database - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExcludeDatabase != nil { - in, out := &in.ExcludeDatabase, &out.ExcludeDatabase - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLSchema. -func (in *MySQLSchema) DeepCopy() *MySQLSchema { - if in == nil { - return nil - } - out := new(MySQLSchema) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MySQLSnapshot) DeepCopyInto(out *MySQLSnapshot) { - *out = *in - if in.Pipeline != nil { - in, out := &in.Pipeline, &out.Pipeline - *out = new(MySQLSnapshotPipeline) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLSnapshot. -func (in *MySQLSnapshot) DeepCopy() *MySQLSnapshot { - if in == nil { - return nil - } - out := new(MySQLSnapshot) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MySQLSnapshotPipeline) DeepCopyInto(out *MySQLSnapshotPipeline) { - *out = *in - if in.Workers != nil { - in, out := &in.Workers, &out.Workers - *out = new(int) - **out = **in - } - if in.Sinkers != nil { - in, out := &in.Sinkers, &out.Sinkers - *out = new(int) - **out = **in - } - if in.Buffer != nil { - in, out := &in.Buffer, &out.Buffer - *out = new(int) - **out = **in - } - if in.ReadBatchSize != nil { - in, out := &in.ReadBatchSize, &out.ReadBatchSize - *out = new(int) - **out = **in - } - if in.WriteBatchSize != nil { - in, out := &in.WriteBatchSize, &out.WriteBatchSize - *out = new(int) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLSnapshotPipeline. -func (in *MySQLSnapshotPipeline) DeepCopy() *MySQLSnapshotPipeline { - if in == nil { - return nil - } - out := new(MySQLSnapshotPipeline) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MySQLSource) DeepCopyInto(out *MySQLSource) { - *out = *in - if in.ConnectionInfo != nil { - in, out := &in.ConnectionInfo, &out.ConnectionInfo - *out = new(ConnectionInfo) - (*in).DeepCopyInto(*out) - } - if in.Schema != nil { - in, out := &in.Schema, &out.Schema - *out = new(MySQLSchema) - (*in).DeepCopyInto(*out) - } - if in.Snapshot != nil { - in, out := &in.Snapshot, &out.Snapshot - *out = new(MySQLSnapshot) - (*in).DeepCopyInto(*out) - } - if in.Streaming != nil { - in, out := &in.Streaming, &out.Streaming - *out = new(MySQLStreaming) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLSource. -func (in *MySQLSource) DeepCopy() *MySQLSource { - if in == nil { - return nil - } - out := new(MySQLSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MySQLStreaming) DeepCopyInto(out *MySQLStreaming) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLStreaming. -func (in *MySQLStreaming) DeepCopy() *MySQLStreaming { - if in == nil { - return nil - } - out := new(MySQLStreaming) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MySQLTarget) DeepCopyInto(out *MySQLTarget) { - *out = *in - if in.ConnectionInfo != nil { - in, out := &in.ConnectionInfo, &out.ConnectionInfo - *out = new(ConnectionInfo) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLTarget. -func (in *MySQLTarget) DeepCopy() *MySQLTarget { - if in == nil { - return nil - } - out := new(MySQLTarget) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PgDump) DeepCopyInto(out *PgDump) { - *out = *in - if in.Schema != nil { - in, out := &in.Schema, &out.Schema - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExcludeSchema != nil { - in, out := &in.ExcludeSchema, &out.ExcludeSchema - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Table != nil { - in, out := &in.Table, &out.Table - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExcludeTable != nil { - in, out := &in.ExcludeTable, &out.ExcludeTable - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExtraOptions != nil { - in, out := &in.ExtraOptions, &out.ExtraOptions - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgDump. -func (in *PgDump) DeepCopy() *PgDump { - if in == nil { - return nil - } - out := new(PgDump) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PostgresSource) DeepCopyInto(out *PostgresSource) { - *out = *in - in.ConnectionInfo.DeepCopyInto(&out.ConnectionInfo) - if in.PgDump != nil { - in, out := &in.PgDump, &out.PgDump - *out = new(PgDump) - (*in).DeepCopyInto(*out) - } - if in.LogicalReplication != nil { - in, out := &in.LogicalReplication, &out.LogicalReplication - *out = new(LogicalReplication) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSource. -func (in *PostgresSource) DeepCopy() *PostgresSource { - if in == nil { - return nil - } - out := new(PostgresSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PostgresTarget) DeepCopyInto(out *PostgresTarget) { - *out = *in - in.ConnectionInfo.DeepCopyInto(&out.ConnectionInfo) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresTarget. -func (in *PostgresTarget) DeepCopy() *PostgresTarget { - if in == nil { - return nil - } - out := new(PostgresTarget) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Progress) DeepCopyInto(out *Progress) { - *out = *in - if in.Info != nil { - in, out := &in.Info, &out.Info - *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 Progress. -func (in *Progress) DeepCopy() *Progress { - if in == nil { - return nil - } - out := new(Progress) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Publication) DeepCopyInto(out *Publication) { - *out = *in - if in.Args != nil { - in, out := &in.Args, &out.Args - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Publication. -func (in *Publication) DeepCopy() *Publication { - if in == nil { - return nil - } - out := new(Publication) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Source) DeepCopyInto(out *Source) { - *out = *in - if in.Postgres != nil { - in, out := &in.Postgres, &out.Postgres - *out = new(PostgresSource) - (*in).DeepCopyInto(*out) - } - if in.MySQL != nil { - in, out := &in.MySQL, &out.MySQL - *out = new(MySQLSource) - (*in).DeepCopyInto(*out) - } - if in.MariaDB != nil { - in, out := &in.MariaDB, &out.MariaDB - *out = new(MariaDBSource) - (*in).DeepCopyInto(*out) - } - if in.MongoDB != nil { - in, out := &in.MongoDB, &out.MongoDB - *out = new(MongoSource) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source. -func (in *Source) DeepCopy() *Source { - if in == nil { - return nil - } - out := new(Source) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Subscription) DeepCopyInto(out *Subscription) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subscription. -func (in *Subscription) DeepCopy() *Subscription { - if in == nil { - return nil - } - out := new(Subscription) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TLSConfig) DeepCopyInto(out *TLSConfig) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig. -func (in *TLSConfig) DeepCopy() *TLSConfig { - if in == nil { - return nil - } - out := new(TLSConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Target) DeepCopyInto(out *Target) { - *out = *in - if in.Postgres != nil { - in, out := &in.Postgres, &out.Postgres - *out = new(PostgresTarget) - (*in).DeepCopyInto(*out) - } - if in.MongoDB != nil { - in, out := &in.MongoDB, &out.MongoDB - *out = new(MongoTarget) - (*in).DeepCopyInto(*out) - } - if in.MySQL != nil { - in, out := &in.MySQL, &out.MySQL - *out = new(MySQLTarget) - (*in).DeepCopyInto(*out) - } - if in.MariaDB != nil { - in, out := &in.MariaDB, &out.MariaDB - *out = new(MariaDBTarget) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target. -func (in *Target) DeepCopy() *Target { - if in == nil { - return nil - } - out := new(Target) - in.DeepCopyInto(out) - return out -} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/aerospike_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/aerospike_ops_types.go index 5ed4621fb..980268a3c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/aerospike_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/aerospike_ops_types.go @@ -64,6 +64,10 @@ type AerospikeOpsRequestSpec struct { type AerospikeVerticalScalingSpec struct { Aerospike *PodResources `json:"aerospike,omitempty"` Exporter *ContainerResources `json:"exporter,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // +kubebuilder:validation:Enum=VerticalScaling;Restart diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/cassandra_ops-types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/cassandra_ops-types.go index 3702ceca6..ee21bf34e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/cassandra_ops-types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/cassandra_ops-types.go @@ -107,6 +107,10 @@ type CassandraUpdateVersionSpec struct { type CassandraVerticalScalingSpec struct { // Resource spec for nodes Node *PodResources `json:"node,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // CassandraVolumeExpansionSpec is the spec for Cassandra volume expansion 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 7d54142e4..71f491fad 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 @@ -112,12 +112,19 @@ type ClickHouseTLSSpec struct { // ClickHouseVerticalScalingSpec contains the vertical scaling information of a clickhouse cluster type ClickHouseVerticalScalingSpec struct { Node *PodResources `json:"node,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // ClickHouseHorizontalScalingSpec contains the horizontal scaling information of a clickhouse cluster type ClickHouseHorizontalScalingSpec struct { // Number of node Replicas *int32 `json:"replicas,omitempty"` + // Number of shards to scale up to. Scale-up only; the new shards start empty + // (no data is rebalanced from existing shards). + Shards *int32 `json:"shards,omitempty"` } // ClickHouseMigrationSpec is the spec for migrating storageClass of a ClickHouse database. diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go index bb7022594..ed5608e98 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/constant.go @@ -93,16 +93,18 @@ const ( ReconfigureTLSSucceeded = "ReconfigureTLSSucceeded" ReconfigureTLSFailed = "ReconfigureTLSFailed" - RemoveTLS = "RemoveTLS" - RemoveTLSSucceeded = "RemoveTLSSucceeded" - RemoveTLSFailed = "RemoveTLSFailed" - AddTLS = "AddTLS" - AddTLSSucceeded = "AddTLSSucceeded" - AddTLSFailed = "AddTLSFailed" - Issuing = "Issuing" - IssueCertificatesSucceeded = "IssueCertificatesSucceeded" - CertificateSynced = "CertificateSynced" - IssueCertificatesFailed = "IssueCertificatesFailed" + RemoveTLS = "RemoveTLS" + RemoveTLSSucceeded = "RemoveTLSSucceeded" + RemoveTLSFailed = "RemoveTLSFailed" + AddTLS = "AddTLS" + AddTLSSucceeded = "AddTLSSucceeded" + AddTLSFailed = "AddTLSFailed" + Issuing = "Issuing" + IssueCertificatesSucceeded = "IssueCertificatesSucceeded" + CertificateSynced = "CertificateSynced" + IssueCertificatesFailed = "IssueCertificatesFailed" + IssueGrpcCertificatesSucceeded = "IssueGrpcCertificatesSucceeded" + GrpcCertificateSynced = "GrpcCertificateSynced" ) // RotateAuth diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/db2_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/db2_ops_types.go index bc22164d6..9b62dbb58 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/db2_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/db2_ops_types.go @@ -64,6 +64,10 @@ type DB2OpsRequestSpec struct { type DB2VerticalScalingSpec struct { DB2 *PodResources `json:"db2,omitempty"` Exporter *ContainerResources `json:"exporter,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // +kubebuilder:validation:Enum=VerticalScaling;Restart diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/documentdb_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/documentdb_ops_types.go index 9a2a3f132..6cc3d7511 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/documentdb_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/documentdb_ops_types.go @@ -172,6 +172,10 @@ type DocumentDBVerticalScalingSpec struct { Coordinator *ContainerResources `json:"coordinator,omitempty"` Arbiter *PodResources `json:"arbiter,omitempty"` ReadReplicas []DocumentDBReadReplicaResources `json:"readReplicas,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } type DocumentDBReadReplicaResources struct { 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 b2ab60a04..087e5613b 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 @@ -94,6 +94,10 @@ type DruidVerticalScalingSpec struct { Historicals *PodResources `json:"historicals,omitempty"` Brokers *PodResources `json:"brokers,omitempty"` Routers *PodResources `json:"routers,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // DruidHorizontalScalingSpec contains the horizontal scaling information of a Druid cluster 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 71b9fedb3..1db57a339 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 @@ -137,6 +137,10 @@ type ElasticsearchVerticalScalingSpec struct { ML *PodResources `json:"ml,omitempty"` Transform *PodResources `json:"transform,omitempty"` Coordinating *PodResources `json:"coordinating,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // ElasticsearchVolumeExpansionSpec is the spec for Elasticsearch volume expansion diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/hanadb_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/hanadb_ops_types.go index 97a841a3c..da1ee0f3c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/hanadb_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/hanadb_ops_types.go @@ -79,6 +79,10 @@ type HanaDBVerticalScalingSpec struct { HanaDB *PodResources `json:"hanadb,omitempty"` Coordinator *ContainerResources `json:"coordinator,omitempty"` Exporter *ContainerResources `json:"exporter,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // HanaDBVolumeExpansionSpec is the spec for HanaDB volume expansion. diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/hazelcast_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/hazelcast_ops_types.go index 4ed2d376a..954a66f92 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/hazelcast_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/hazelcast_ops_types.go @@ -89,6 +89,10 @@ type HazelcastOpsRequestSpec struct { type HazelcastVerticalScalingSpec struct { // Resource spec for hazelcast nodes Hazelcast *PodResources `json:"hazelcast,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } type HazelcastVolumeExpansionSpec struct { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ignite_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ignite_ops_types.go index abff1b960..937e7c0d1 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ignite_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/ignite_ops_types.go @@ -102,6 +102,10 @@ type IgniteHorizontalScalingSpec struct { type IgniteVerticalScalingSpec struct { // Resource spec for nodes Ignite *PodResources `json:"node,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // IgniteVolumeExpansionSpec is the spec for Ignite volume expansion 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 bcbb5f3c8..6861a77c1 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 @@ -134,6 +134,10 @@ type KafkaVerticalScalingSpec struct { Broker *PodResources `json:"broker,omitempty"` // Resource spec for controller Controller *PodResources `json:"controller,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // KafkaVolumeExpansionSpec is the spec for Kafka volume expansion 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 4ff7fdc76..67beeb346 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 @@ -125,6 +125,10 @@ type MariaDBVerticalScalingSpec struct { MaxScale *PodResources `json:"maxscale,omitempty"` Exporter *ContainerResources `json:"exporter,omitempty"` Coordinator *ContainerResources `json:"coordinator,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // MariaDBVolumeExpansionSpec is the spec for MariaDB volume expansion 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 123d91a49..39c526eae 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 @@ -104,6 +104,10 @@ type MemcachedVerticalScalingSpec struct { Memcached *PodResources `json:"memcached,omitempty"` Exporter *ContainerResources `json:"exporter,omitempty"` ReadinessCriteria *MemcachedReplicaReadinessCriteria `json:"readinessCriteria,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // MemcachedVolumeExpansionSpec is the spec for Memcached volume expansion diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/milvus_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/milvus_ops_types.go index 2c4154285..2fa67d6e5 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/milvus_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/milvus_ops_types.go @@ -128,6 +128,10 @@ type MilvusVerticalScalingSpec struct { DataNode *PodResources `json:"datanode,omitempty"` QueryNode *PodResources `json:"querynode,omitempty"` StreamingNode *PodResources `json:"streamingnode,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // MilvusVolumeExpansionSpec is the spec for Milvus volume expansion 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 0f1732fbf..247c0d8d1 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 @@ -171,6 +171,10 @@ type MongoDBVerticalScalingSpec struct { Hidden *PodResources `json:"hidden,omitempty"` Exporter *ContainerResources `json:"exporter,omitempty"` Coordinator *ContainerResources `json:"coordinator,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // MongoDBVolumeExpansionSpec is the spec for mongodb volume expansion 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 7b61ae063..fe0e8f129 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 @@ -110,6 +110,10 @@ type MSSQLServerVerticalScalingSpec struct { Exporter *ContainerResources `json:"exporter,omitempty"` Coordinator *ContainerResources `json:"coordinator,omitempty"` Arbiter *PodResources `json:"arbiter,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // MSSQLServerVolumeExpansionSpec is the spec for MSSQLServer volume expansion 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 0b4cb669b..5c5d30443 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 @@ -124,6 +124,10 @@ type MySQLVerticalScalingSpec struct { MySQL *PodResources `json:"mysql,omitempty"` Exporter *ContainerResources `json:"exporter,omitempty"` Coordinator *ContainerResources `json:"coordinator,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // MySQLVolumeExpansionSpec is the spec for MySQL volume expansion diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/neo4j_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/neo4j_ops_types.go index 7962bfd6b..be74ab4f8 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/neo4j_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/neo4j_ops_types.go @@ -133,6 +133,10 @@ type Neo4jHorizontalScalingSpec struct { type Neo4jVerticalScalingSpec struct { // Resource spec for neo4j servers Server *PodResources `json:"server,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } type Neo4jTLSSpec struct { 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 3ad6a6110..89ccc605a 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go @@ -33772,6 +33772,13 @@ func schema_apimachinery_apis_ops_v1alpha1_AerospikeVerticalScalingSpec(ref comm Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -34164,6 +34171,13 @@ func schema_apimachinery_apis_ops_v1alpha1_CassandraVerticalScalingSpec(ref comm Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -34215,6 +34229,13 @@ func schema_apimachinery_apis_ops_v1alpha1_ClickHouseHorizontalScalingSpec(ref c Format: "int32", }, }, + "shards": { + SchemaProps: spec.SchemaProps{ + Description: "Number of shards to scale up to. Scale-up only; the new shards start empty (no data is rebalanced from existing shards).", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, }, }, @@ -34541,6 +34562,13 @@ func schema_apimachinery_apis_ops_v1alpha1_ClickHouseVerticalScalingSpec(ref com Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -34787,6 +34815,13 @@ func schema_apimachinery_apis_ops_v1alpha1_DB2VerticalScalingSpec(ref common.Ref Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -35531,6 +35566,13 @@ func schema_apimachinery_apis_ops_v1alpha1_DocumentDBVerticalScalingSpec(ref com }, }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -35905,6 +35947,13 @@ func schema_apimachinery_apis_ops_v1alpha1_DruidVerticalScalingSpec(ref common.R Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -36552,6 +36601,13 @@ func schema_apimachinery_apis_ops_v1alpha1_ElasticsearchVerticalScalingSpec(ref Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -36897,6 +36953,13 @@ func schema_apimachinery_apis_ops_v1alpha1_HanaDBVerticalScalingSpec(ref common. Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -37182,6 +37245,13 @@ func schema_apimachinery_apis_ops_v1alpha1_HazelcastVerticalScalingSpec(ref comm Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -37523,6 +37593,13 @@ func schema_apimachinery_apis_ops_v1alpha1_IgniteVerticalScalingSpec(ref common. Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -37903,6 +37980,13 @@ func schema_apimachinery_apis_ops_v1alpha1_KafkaVerticalScalingSpec(ref common.R Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -38283,6 +38367,13 @@ func schema_apimachinery_apis_ops_v1alpha1_MSSQLServerVerticalScalingSpec(ref co Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -38739,6 +38830,13 @@ func schema_apimachinery_apis_ops_v1alpha1_MariaDBVerticalScalingSpec(ref common Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -39132,6 +39230,13 @@ func schema_apimachinery_apis_ops_v1alpha1_MemcachedVerticalScalingSpec(ref comm Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.MemcachedReplicaReadinessCriteria"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -39549,6 +39654,13 @@ func schema_apimachinery_apis_ops_v1alpha1_MilvusVerticalScalingSpec(ref common. Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -40071,6 +40183,13 @@ func schema_apimachinery_apis_ops_v1alpha1_MongoDBVerticalScalingSpec(ref common Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -40601,6 +40720,13 @@ func schema_apimachinery_apis_ops_v1alpha1_MySQLVerticalScalingSpec(ref common.R Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -40905,6 +41031,11 @@ func schema_apimachinery_apis_ops_v1alpha1_Neo4jTLSSpec(ref common.ReferenceCall Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProtocolTLSConfig"), }, }, + "backup": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ProtocolTLSConfig"), + }, + }, "keystoreCredSecret": { SchemaProps: spec.SchemaProps{ Description: "Keystore encryption secret", @@ -40965,6 +41096,13 @@ func schema_apimachinery_apis_ops_v1alpha1_Neo4jVerticalScalingSpec(ref common.R Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -41238,6 +41376,12 @@ func schema_apimachinery_apis_ops_v1alpha1_OracleOpsRequestSpec(ref common.Refer Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.OracleMigrationSpec"), }, }, + "tls": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies information necessary for TLS reconfiguration", + 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.", @@ -41256,7 +41400,7 @@ func schema_apimachinery_apis_ops_v1alpha1_OracleOpsRequestSpec(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.AuthSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.OracleMigrationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.OracleReconfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.OracleVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.OracleVolumeExpansionSpec", "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.OracleMigrationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.OracleReconfigurationSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.OracleVerticalScalingSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.OracleVolumeExpansionSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.RestartSpec", "kubedb.dev/apimachinery/apis/ops/v1alpha1.TLSSpec"}, } } @@ -41329,6 +41473,13 @@ func schema_apimachinery_apis_ops_v1alpha1_OracleVerticalScalingSpec(ref common. Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -41747,6 +41898,13 @@ func schema_apimachinery_apis_ops_v1alpha1_PerconaXtraDBVerticalScalingSpec(ref Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -42087,6 +42245,13 @@ func schema_apimachinery_apis_ops_v1alpha1_PgBouncerVerticalScalingSpec(ref comm Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -42495,6 +42660,13 @@ func schema_apimachinery_apis_ops_v1alpha1_PgpoolVerticalScalingSpec(ref common. Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -43023,6 +43195,13 @@ func schema_apimachinery_apis_ops_v1alpha1_PostgresTLSSpec(ref common.ReferenceC Format: "", }, }, + "rotateGrpcCertificates": { + SchemaProps: spec.SchemaProps{ + Description: "RotateGrpcCertificates tells operator to rotate the gRPC TLS certificates used by pg-coordinator. This is independent of RotateCertificates (DB-level certs). Both can be set together.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, @@ -43131,6 +43310,13 @@ func schema_apimachinery_apis_ops_v1alpha1_PostgresVerticalScalingSpec(ref commo }, }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -43503,6 +43689,13 @@ func schema_apimachinery_apis_ops_v1alpha1_ProxySQLVerticalScalingSpec(ref commo Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -43834,6 +44027,13 @@ func schema_apimachinery_apis_ops_v1alpha1_QdrantVerticalScalingSpec(ref common. Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -44134,6 +44334,13 @@ func schema_apimachinery_apis_ops_v1alpha1_RabbitMQVerticalScalingSpec(ref commo Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -45091,6 +45298,13 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisSentinelVerticalScalingSpec(ref Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -45229,6 +45443,13 @@ func schema_apimachinery_apis_ops_v1alpha1_RedisVerticalScalingSpec(ref common.R Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -45695,6 +45916,13 @@ func schema_apimachinery_apis_ops_v1alpha1_SinglestoreVerticalScalingSpec(ref co Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.ContainerResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -46071,6 +46299,13 @@ func schema_apimachinery_apis_ops_v1alpha1_SolrVerticalScalingSpec(ref common.Re Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -46599,6 +46834,13 @@ func schema_apimachinery_apis_ops_v1alpha1_WeaviateVerticalScalingSpec(ref commo Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -46893,6 +47135,13 @@ func schema_apimachinery_apis_ops_v1alpha1_ZooKeeperVerticalScalingSpec(ref comm Ref: ref("kubedb.dev/apimachinery/apis/ops/v1alpha1.PodResources"), }, }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode selects how the vertical scaling is actuated. Defaults to Restart.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/oracle_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/oracle_ops_types.go index 17bbcf236..5e3883f00 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/oracle_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/oracle_ops_types.go @@ -68,6 +68,9 @@ type OracleOpsRequestSpec struct { Restart *RestartSpec `json:"restart,omitempty"` // Specifies information necessary for migrating storage Migration *OracleMigrationSpec `json:"migration,omitempty"` + // Specifies information necessary for TLS reconfiguration + // +optional + 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. @@ -88,14 +91,18 @@ type OracleMigrationSpec struct { OldPVReclaimPolicy core.PersistentVolumeReclaimPolicy `json:"oldPVReclaimPolicy,omitempty"` } -// +kubebuilder:validation:Enum=Restart;Reconfigure;StorageMigration;VerticalScaling;VolumeExpansion;RotateAuth -// ENUM(Restart, Reconfigure, StorageMigration, VerticalScaling, VolumeExpansion, RotateAuth) +// +kubebuilder:validation:Enum=Restart;Reconfigure;ReconfigureTLS;StorageMigration;VerticalScaling;VolumeExpansion;RotateAuth +// ENUM(Restart, Reconfigure, ReconfigureTLS, StorageMigration, VerticalScaling, VolumeExpansion, RotateAuth) type OracleOpsRequestType string // OracleVerticalScalingSpec contains the vertical scaling information of an Oracle cluster type OracleVerticalScalingSpec struct { // Resource spec for nodes Node *PodResources `json:"node,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // OracleVolumeExpansionSpec is the spec for Oracle volume expansion diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/oracle_ops_types_enum.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/oracle_ops_types_enum.go index c4b011ed9..220599f77 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/oracle_ops_types_enum.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/oracle_ops_types_enum.go @@ -15,6 +15,8 @@ const ( OracleOpsRequestTypeRestart OracleOpsRequestType = "Restart" // OracleOpsRequestTypeReconfigure is a OracleOpsRequestType of type Reconfigure. OracleOpsRequestTypeReconfigure OracleOpsRequestType = "Reconfigure" + // OracleOpsRequestTypeReconfigureTLS is a OracleOpsRequestType of type ReconfigureTLS. + OracleOpsRequestTypeReconfigureTLS OracleOpsRequestType = "ReconfigureTLS" // OracleOpsRequestTypeStorageMigration is a OracleOpsRequestType of type StorageMigration. OracleOpsRequestTypeStorageMigration OracleOpsRequestType = "StorageMigration" // OracleOpsRequestTypeVerticalScaling is a OracleOpsRequestType of type VerticalScaling. @@ -30,6 +32,7 @@ var ErrInvalidOracleOpsRequestType = fmt.Errorf("not a valid OracleOpsRequestTyp var _OracleOpsRequestTypeNames = []string{ string(OracleOpsRequestTypeRestart), string(OracleOpsRequestTypeReconfigure), + string(OracleOpsRequestTypeReconfigureTLS), string(OracleOpsRequestTypeStorageMigration), string(OracleOpsRequestTypeVerticalScaling), string(OracleOpsRequestTypeVolumeExpansion), @@ -48,6 +51,7 @@ func OracleOpsRequestTypeValues() []OracleOpsRequestType { return []OracleOpsRequestType{ OracleOpsRequestTypeRestart, OracleOpsRequestTypeReconfigure, + OracleOpsRequestTypeReconfigureTLS, OracleOpsRequestTypeStorageMigration, OracleOpsRequestTypeVerticalScaling, OracleOpsRequestTypeVolumeExpansion, @@ -70,6 +74,7 @@ func (x OracleOpsRequestType) IsValid() bool { var _OracleOpsRequestTypeValue = map[string]OracleOpsRequestType{ "Restart": OracleOpsRequestTypeRestart, "Reconfigure": OracleOpsRequestTypeReconfigure, + "ReconfigureTLS": OracleOpsRequestTypeReconfigureTLS, "StorageMigration": OracleOpsRequestTypeStorageMigration, "VerticalScaling": OracleOpsRequestTypeVerticalScaling, "VolumeExpansion": OracleOpsRequestTypeVolumeExpansion, 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 02bed13c0..b3cfea91d 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 @@ -105,6 +105,10 @@ type PerconaXtraDBVerticalScalingSpec struct { PerconaXtraDB *PodResources `json:"perconaxtradb,omitempty"` Exporter *ContainerResources `json:"exporter,omitempty"` Coordinator *ContainerResources `json:"coordinator,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // PerconaXtraDBVolumeExpansionSpec is the spec for PerconaXtraDB volume expansion 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 8e24dda63..1e4ca486c 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 @@ -97,6 +97,10 @@ type PgBouncerHorizontalScalingSpec struct { type PgBouncerVerticalScalingSpec struct { PgBouncer *PodResources `json:"pgbouncer,omitempty"` Exporter *ContainerResources `json:"exporter,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } type PgBouncerTLSSpec struct { 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 7eec4d84f..db1856604 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 @@ -116,14 +116,18 @@ type PgpoolBackendConfigurationSpec struct { } type PgpoolCustomConfigurationSpec struct { - *ReconfigurationSpec `json:",inline,omitempty"` - Backend *PgpoolBackendConfigurationSpec `json:"backend,omitempty"` + ReconfigurationSpec `json:",inline,omitempty"` + Backend *PgpoolBackendConfigurationSpec `json:"backend,omitempty"` } // PgpoolVerticalScalingSpec contains the vertical scaling information of a Pgpool cluster type PgpoolVerticalScalingSpec struct { // Resource spec for nodes Node *PodResources `json:"node,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object 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 baa3063b0..0e254b4d6 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 @@ -71,6 +71,11 @@ type PostgresTLSSpec struct { // ClientAuthMode for sidecar or sharding. (default will be md5. [md5;scram;cert]) // +optional ClientAuthMode dbapi.PostgresClientAuthMode `json:"clientAuthMode,omitempty"` + + // RotateGrpcCertificates tells operator to rotate the gRPC TLS certificates used by pg-coordinator. + // This is independent of RotateCertificates (DB-level certs). Both can be set together. + // +optional + RotateGrpcCertificates bool `json:"rotateGrpcCertificates,omitempty"` } // PostgresOpsRequestSpec is the spec for PostgresOpsRequest @@ -196,6 +201,10 @@ type PostgresVerticalScalingSpec struct { Coordinator *ContainerResources `json:"coordinator,omitempty"` Arbiter *PodResources `json:"arbiter,omitempty"` ReadReplicas []ReadReplicaResources `json:"readReplicas,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } type ReadReplicaResources struct { 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 98c29ae70..ec2bcdb65 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 @@ -103,6 +103,10 @@ type ProxySQLHorizontalScalingSpec struct { // ProxySQLVerticalScalingSpec is the spec for ProxySQL vertical scaling type ProxySQLVerticalScalingSpec struct { ProxySQL *PodResources `json:"proxysql,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } type ProxySQLCustomConfiguration struct { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/qdrant_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/qdrant_ops_types.go index d949ff9fd..2fd5617e2 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/qdrant_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/qdrant_ops_types.go @@ -108,6 +108,10 @@ type QdrantHorizontalScalingSpec struct { type QdrantVerticalScalingSpec struct { // Resource spec for nodes Node *PodResources `json:"node,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // QdrantVolumeExpansionSpec is the spec for Qdrant volume expansion 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 0131a1ff8..bb5c16730 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 @@ -106,6 +106,10 @@ type RabbitMQHorizontalScalingSpec struct { type RabbitMQVerticalScalingSpec struct { // Resource spec for nodes Node *PodResources `json:"node,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // RabbitMQVolumeExpansionSpec is the spec for RabbitMQ volume expansion 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 9b5df594c..330eb2c2a 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 @@ -145,6 +145,10 @@ type RedisVerticalScalingSpec struct { Redis *PodResources `json:"redis,omitempty"` Exporter *ContainerResources `json:"exporter,omitempty"` Coordinator *ContainerResources `json:"coordinator,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } type RedisAclSpec struct { 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 77205dfd1..911113ad7 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 @@ -101,6 +101,10 @@ type RedisSentinelHorizontalScalingSpec struct { type RedisSentinelVerticalScalingSpec struct { RedisSentinel *PodResources `json:"redissentinel,omitempty"` Exporter *ContainerResources `json:"exporter,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // RedisSentinelVolumeExpansionSpec is the spec for RedisSentinel volume expansion diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/register.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/register.go index f2cde365e..5ee8a04d5 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/register.go @@ -53,7 +53,8 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &AerospikeOpsRequest{}, &AerospikeOpsRequestList{}, &CassandraOpsRequest{}, @@ -120,7 +121,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &WeaviateOpsRequestList{}, ) - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &metav1.Status{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/singlestore_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/singlestore_ops_types.go index 86ed5468b..c9cf3d7e3 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 @@ -110,6 +110,10 @@ type SinglestoreVerticalScalingSpec struct { Leaf *PodResources `json:"leaf,omitempty"` // Resource spec for Coordinator container Coordinator *ContainerResources `json:"coordinator,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // SinglestoreVolumeExpansionSpec is the spec for Singlestore volume expansion 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 4a1fb3576..bb3c4a4ff 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 @@ -95,6 +95,10 @@ type SolrVerticalScalingSpec struct { Overseer *PodResources `json:"overseer,omitempty"` // Resource spec for overseer nodes Coordinator *PodResources `json:"coordinator,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } type SolrVolumeExpansionSpec struct { diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go index c7797f497..3372e0b5f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/type.go @@ -114,6 +114,18 @@ const ( VolumeExpansionModeOffline VolumeExpansionMode = "Offline" ) +// +kubebuilder:validation:Enum=Restart;InPlace +type VerticalScalingMode string + +const ( + // VerticalScalingModeRestart actuates a vertical scaling by patching the + // pod template and restarting the pods (the default, restart-based path). + VerticalScalingModeRestart VerticalScalingMode = "Restart" + // VerticalScalingModeInPlace actuates a vertical scaling in place via the + // pods/resize subresource, falling back to restart when infeasible. + VerticalScalingModeInPlace VerticalScalingMode = "InPlace" +) + type RestartSpec struct{} type Reprovision struct{} diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/weaviate_ops_types.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/weaviate_ops_types.go index cfa3b70f6..1c5a26a5c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/weaviate_ops_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/weaviate_ops_types.go @@ -107,6 +107,10 @@ type WeaviateHorizontalScalingSpec struct { type WeaviateVerticalScalingSpec struct { // Resource spec for nodes Node *PodResources `json:"node,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // WeaviateVolumeExpansionSpec is the spec for Weaviate volume expansion 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 8b0e6b55a..2135bf5d1 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 @@ -104,6 +104,10 @@ type ZooKeeperHorizontalScalingSpec struct { type ZooKeeperVerticalScalingSpec struct { // Resource spec for nodes Node *PodResources `json:"node,omitempty"` + // Mode selects how the vertical scaling is actuated. Defaults to Restart. + // +optional + // +kubebuilder:default=Restart + Mode VerticalScalingMode `json:"mode,omitempty"` } // ZooKeeperVolumeExpansionSpec is the spec for ZooKeeper volume expansion 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 361ac360d..9ee10cf89 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 @@ -461,6 +461,11 @@ func (in *ClickHouseHorizontalScalingSpec) DeepCopyInto(out *ClickHouseHorizonta *out = new(int32) **out = **in } + if in.Shards != nil { + in, out := &in.Shards, &out.Shards + *out = new(int32) + **out = **in + } return } @@ -5485,6 +5490,11 @@ func (in *OracleOpsRequestSpec) DeepCopyInto(out *OracleOpsRequestSpec) { *out = new(OracleMigrationSpec) (*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) @@ -6084,11 +6094,7 @@ func (in *PgpoolBackendConfigurationSpec) DeepCopy() *PgpoolBackendConfiguration // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PgpoolCustomConfigurationSpec) DeepCopyInto(out *PgpoolCustomConfigurationSpec) { *out = *in - if in.ReconfigurationSpec != nil { - in, out := &in.ReconfigurationSpec, &out.ReconfigurationSpec - *out = new(ReconfigurationSpec) - (*in).DeepCopyInto(*out) - } + in.ReconfigurationSpec.DeepCopyInto(&out.ReconfigurationSpec) if in.Backend != nil { in, out := &in.Backend, &out.Backend *out = new(PgpoolBackendConfigurationSpec) diff --git a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/register.go b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/register.go index fd79fed02..8e50eca84 100644 --- a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/register.go @@ -53,14 +53,16 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &Publisher{}, &PublisherList{}, &Subscriber{}, &SubscriberList{}, ) - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &metav1.Status{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) diff --git a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/register.go b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/register.go index 22f8ccb5b..4b2515351 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/register.go +++ b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/register.go @@ -56,7 +56,8 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &DatabaseConnection{}, &DatabaseConnectionList{}, &DatabaseConfiguration{}, @@ -115,7 +116,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &RedisSchemaOverviewList{}, ) - scheme.AddKnownTypes(SchemeGroupVersion, + scheme.AddKnownTypes( + SchemeGroupVersion, &metav1.Status{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/clientset.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/clientset.go index 607c0a863..3537c5d1e 100644 --- a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/clientset.go +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/clientset.go @@ -26,13 +26,13 @@ import ( autoscalingv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/autoscaling/v1alpha1" catalogv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/catalog/v1alpha1" configv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/config/v1alpha1" + courierv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1" elasticsearchv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/elasticsearch/v1alpha1" gitopsv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/gitops/v1alpha1" kafkav1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kafka/v1alpha1" kubedbv1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1" kubedbv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1alpha1" kubedbv1alpha2 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1alpha2" - migratorv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1" opsv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1" postgresv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/postgres/v1alpha1" schemav1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/schema/v1alpha1" @@ -49,13 +49,13 @@ type Interface interface { AutoscalingV1alpha1() autoscalingv1alpha1.AutoscalingV1alpha1Interface CatalogV1alpha1() catalogv1alpha1.CatalogV1alpha1Interface ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface + CourierV1alpha1() courierv1alpha1.CourierV1alpha1Interface ElasticsearchV1alpha1() elasticsearchv1alpha1.ElasticsearchV1alpha1Interface GitopsV1alpha1() gitopsv1alpha1.GitopsV1alpha1Interface KafkaV1alpha1() kafkav1alpha1.KafkaV1alpha1Interface KubedbV1alpha1() kubedbv1alpha1.KubedbV1alpha1Interface KubedbV1alpha2() kubedbv1alpha2.KubedbV1alpha2Interface KubedbV1() kubedbv1.KubedbV1Interface - MigratorV1alpha1() migratorv1alpha1.MigratorV1alpha1Interface OpsV1alpha1() opsv1alpha1.OpsV1alpha1Interface PostgresV1alpha1() postgresv1alpha1.PostgresV1alpha1Interface SchemaV1alpha1() schemav1alpha1.SchemaV1alpha1Interface @@ -69,13 +69,13 @@ type Clientset struct { autoscalingV1alpha1 *autoscalingv1alpha1.AutoscalingV1alpha1Client catalogV1alpha1 *catalogv1alpha1.CatalogV1alpha1Client configV1alpha1 *configv1alpha1.ConfigV1alpha1Client + courierV1alpha1 *courierv1alpha1.CourierV1alpha1Client elasticsearchV1alpha1 *elasticsearchv1alpha1.ElasticsearchV1alpha1Client gitopsV1alpha1 *gitopsv1alpha1.GitopsV1alpha1Client kafkaV1alpha1 *kafkav1alpha1.KafkaV1alpha1Client kubedbV1alpha1 *kubedbv1alpha1.KubedbV1alpha1Client kubedbV1alpha2 *kubedbv1alpha2.KubedbV1alpha2Client kubedbV1 *kubedbv1.KubedbV1Client - migratorV1alpha1 *migratorv1alpha1.MigratorV1alpha1Client opsV1alpha1 *opsv1alpha1.OpsV1alpha1Client postgresV1alpha1 *postgresv1alpha1.PostgresV1alpha1Client schemaV1alpha1 *schemav1alpha1.SchemaV1alpha1Client @@ -102,6 +102,11 @@ func (c *Clientset) ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface { return c.configV1alpha1 } +// CourierV1alpha1 retrieves the CourierV1alpha1Client +func (c *Clientset) CourierV1alpha1() courierv1alpha1.CourierV1alpha1Interface { + return c.courierV1alpha1 +} + // ElasticsearchV1alpha1 retrieves the ElasticsearchV1alpha1Client func (c *Clientset) ElasticsearchV1alpha1() elasticsearchv1alpha1.ElasticsearchV1alpha1Interface { return c.elasticsearchV1alpha1 @@ -132,11 +137,6 @@ func (c *Clientset) KubedbV1() kubedbv1.KubedbV1Interface { return c.kubedbV1 } -// MigratorV1alpha1 retrieves the MigratorV1alpha1Client -func (c *Clientset) MigratorV1alpha1() migratorv1alpha1.MigratorV1alpha1Interface { - return c.migratorV1alpha1 -} - // OpsV1alpha1 retrieves the OpsV1alpha1Client func (c *Clientset) OpsV1alpha1() opsv1alpha1.OpsV1alpha1Interface { return c.opsV1alpha1 @@ -217,6 +217,10 @@ func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, if err != nil { return nil, err } + cs.courierV1alpha1, err = courierv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) + if err != nil { + return nil, err + } cs.elasticsearchV1alpha1, err = elasticsearchv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) if err != nil { return nil, err @@ -241,10 +245,6 @@ func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, if err != nil { return nil, err } - cs.migratorV1alpha1, err = migratorv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } cs.opsV1alpha1, err = opsv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) if err != nil { return nil, err @@ -286,13 +286,13 @@ func New(c rest.Interface) *Clientset { cs.autoscalingV1alpha1 = autoscalingv1alpha1.New(c) cs.catalogV1alpha1 = catalogv1alpha1.New(c) cs.configV1alpha1 = configv1alpha1.New(c) + cs.courierV1alpha1 = courierv1alpha1.New(c) cs.elasticsearchV1alpha1 = elasticsearchv1alpha1.New(c) cs.gitopsV1alpha1 = gitopsv1alpha1.New(c) cs.kafkaV1alpha1 = kafkav1alpha1.New(c) cs.kubedbV1alpha1 = kubedbv1alpha1.New(c) cs.kubedbV1alpha2 = kubedbv1alpha2.New(c) cs.kubedbV1 = kubedbv1.New(c) - cs.migratorV1alpha1 = migratorv1alpha1.New(c) cs.opsV1alpha1 = opsv1alpha1.New(c) cs.postgresV1alpha1 = postgresv1alpha1.New(c) cs.schemaV1alpha1 = schemav1alpha1.New(c) diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/scheme/register.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/scheme/register.go index 52d2e3689..cff478aea 100644 --- a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/scheme/register.go +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/scheme/register.go @@ -23,13 +23,13 @@ import ( autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" configv1alpha1 "kubedb.dev/apimachinery/apis/config/v1alpha1" + courierv1alpha1 "kubedb.dev/apimachinery/apis/courier/v1alpha1" elasticsearchv1alpha1 "kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1" gitopsv1alpha1 "kubedb.dev/apimachinery/apis/gitops/v1alpha1" kafkav1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" kubedbv1 "kubedb.dev/apimachinery/apis/kubedb/v1" kubedbv1alpha1 "kubedb.dev/apimachinery/apis/kubedb/v1alpha1" kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - migratorv1alpha1 "kubedb.dev/apimachinery/apis/migrator/v1alpha1" opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" postgresv1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" @@ -50,13 +50,13 @@ var localSchemeBuilder = runtime.SchemeBuilder{ autoscalingv1alpha1.AddToScheme, catalogv1alpha1.AddToScheme, configv1alpha1.AddToScheme, + courierv1alpha1.AddToScheme, elasticsearchv1alpha1.AddToScheme, gitopsv1alpha1.AddToScheme, kafkav1alpha1.AddToScheme, kubedbv1alpha1.AddToScheme, kubedbv1alpha2.AddToScheme, kubedbv1.AddToScheme, - migratorv1alpha1.AddToScheme, opsv1alpha1.AddToScheme, postgresv1alpha1.AddToScheme, schemav1alpha1.AddToScheme, diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/migrator.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/branch.go similarity index 50% rename from vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/migrator.go rename to vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/branch.go index 39eb1fed1..892e5457a 100644 --- a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/migrator.go +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/branch.go @@ -22,7 +22,7 @@ import ( "context" "time" - v1alpha1 "kubedb.dev/apimachinery/apis/migrator/v1alpha1" + v1alpha1 "kubedb.dev/apimachinery/apis/courier/v1alpha1" scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -31,46 +31,46 @@ import ( rest "k8s.io/client-go/rest" ) -// MigratorsGetter has a method to return a MigratorInterface. +// BranchesGetter has a method to return a BranchInterface. // A group's client should implement this interface. -type MigratorsGetter interface { - Migrators(namespace string) MigratorInterface +type BranchesGetter interface { + Branches(namespace string) BranchInterface } -// MigratorInterface has methods to work with Migrator resources. -type MigratorInterface interface { - Create(ctx context.Context, migrator *v1alpha1.Migrator, opts v1.CreateOptions) (*v1alpha1.Migrator, error) - Update(ctx context.Context, migrator *v1alpha1.Migrator, opts v1.UpdateOptions) (*v1alpha1.Migrator, error) - UpdateStatus(ctx context.Context, migrator *v1alpha1.Migrator, opts v1.UpdateOptions) (*v1alpha1.Migrator, error) +// BranchInterface has methods to work with Branch resources. +type BranchInterface interface { + Create(ctx context.Context, branch *v1alpha1.Branch, opts v1.CreateOptions) (*v1alpha1.Branch, error) + Update(ctx context.Context, branch *v1alpha1.Branch, opts v1.UpdateOptions) (*v1alpha1.Branch, error) + UpdateStatus(ctx context.Context, branch *v1alpha1.Branch, opts v1.UpdateOptions) (*v1alpha1.Branch, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Migrator, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MigratorList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Branch, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.BranchList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Migrator, err error) - MigratorExpansion + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Branch, err error) + BranchExpansion } -// migrators implements MigratorInterface -type migrators struct { +// branches implements BranchInterface +type branches struct { client rest.Interface ns string } -// newMigrators returns a Migrators -func newMigrators(c *MigratorV1alpha1Client, namespace string) *migrators { - return &migrators{ +// newBranches returns a Branches +func newBranches(c *CourierV1alpha1Client, namespace string) *branches { + return &branches{ client: c.RESTClient(), ns: namespace, } } -// Get takes name of the migrator, and returns the corresponding migrator object, and an error if there is any. -func (c *migrators) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Migrator, err error) { - result = &v1alpha1.Migrator{} +// Get takes name of the branch, and returns the corresponding branch object, and an error if there is any. +func (c *branches) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Branch, err error) { + result = &v1alpha1.Branch{} err = c.client.Get(). Namespace(c.ns). - Resource("migrators"). + Resource("branches"). Name(name). VersionedParams(&options, scheme.ParameterCodec). Do(ctx). @@ -78,16 +78,16 @@ func (c *migrators) Get(ctx context.Context, name string, options v1.GetOptions) return } -// List takes label and field selectors, and returns the list of Migrators that match those selectors. -func (c *migrators) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MigratorList, err error) { +// List takes label and field selectors, and returns the list of Branches that match those selectors. +func (c *branches) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BranchList, err error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second } - result = &v1alpha1.MigratorList{} + result = &v1alpha1.BranchList{} err = c.client.Get(). Namespace(c.ns). - Resource("migrators"). + Resource("branches"). VersionedParams(&opts, scheme.ParameterCodec). Timeout(timeout). Do(ctx). @@ -95,8 +95,8 @@ func (c *migrators) List(ctx context.Context, opts v1.ListOptions) (result *v1al return } -// Watch returns a watch.Interface that watches the requested migrators. -func (c *migrators) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { +// Watch returns a watch.Interface that watches the requested branches. +func (c *branches) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second @@ -104,34 +104,34 @@ func (c *migrators) Watch(ctx context.Context, opts v1.ListOptions) (watch.Inter opts.Watch = true return c.client.Get(). Namespace(c.ns). - Resource("migrators"). + Resource("branches"). VersionedParams(&opts, scheme.ParameterCodec). Timeout(timeout). Watch(ctx) } -// Create takes the representation of a migrator and creates it. Returns the server's representation of the migrator, and an error, if there is any. -func (c *migrators) Create(ctx context.Context, migrator *v1alpha1.Migrator, opts v1.CreateOptions) (result *v1alpha1.Migrator, err error) { - result = &v1alpha1.Migrator{} +// Create takes the representation of a branch and creates it. Returns the server's representation of the branch, and an error, if there is any. +func (c *branches) Create(ctx context.Context, branch *v1alpha1.Branch, opts v1.CreateOptions) (result *v1alpha1.Branch, err error) { + result = &v1alpha1.Branch{} err = c.client.Post(). Namespace(c.ns). - Resource("migrators"). + Resource("branches"). VersionedParams(&opts, scheme.ParameterCodec). - Body(migrator). + Body(branch). Do(ctx). Into(result) return } -// Update takes the representation of a migrator and updates it. Returns the server's representation of the migrator, and an error, if there is any. -func (c *migrators) Update(ctx context.Context, migrator *v1alpha1.Migrator, opts v1.UpdateOptions) (result *v1alpha1.Migrator, err error) { - result = &v1alpha1.Migrator{} +// Update takes the representation of a branch and updates it. Returns the server's representation of the branch, and an error, if there is any. +func (c *branches) Update(ctx context.Context, branch *v1alpha1.Branch, opts v1.UpdateOptions) (result *v1alpha1.Branch, err error) { + result = &v1alpha1.Branch{} err = c.client.Put(). Namespace(c.ns). - Resource("migrators"). - Name(migrator.Name). + Resource("branches"). + Name(branch.Name). VersionedParams(&opts, scheme.ParameterCodec). - Body(migrator). + Body(branch). Do(ctx). Into(result) return @@ -139,25 +139,25 @@ func (c *migrators) Update(ctx context.Context, migrator *v1alpha1.Migrator, opt // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *migrators) UpdateStatus(ctx context.Context, migrator *v1alpha1.Migrator, opts v1.UpdateOptions) (result *v1alpha1.Migrator, err error) { - result = &v1alpha1.Migrator{} +func (c *branches) UpdateStatus(ctx context.Context, branch *v1alpha1.Branch, opts v1.UpdateOptions) (result *v1alpha1.Branch, err error) { + result = &v1alpha1.Branch{} err = c.client.Put(). Namespace(c.ns). - Resource("migrators"). - Name(migrator.Name). + Resource("branches"). + Name(branch.Name). SubResource("status"). VersionedParams(&opts, scheme.ParameterCodec). - Body(migrator). + Body(branch). Do(ctx). Into(result) return } -// Delete takes name of the migrator and deletes it. Returns an error if one occurs. -func (c *migrators) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { +// Delete takes name of the branch and deletes it. Returns an error if one occurs. +func (c *branches) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("migrators"). + Resource("branches"). Name(name). Body(&opts). Do(ctx). @@ -165,14 +165,14 @@ func (c *migrators) Delete(ctx context.Context, name string, opts v1.DeleteOptio } // DeleteCollection deletes a collection of objects. -func (c *migrators) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { +func (c *branches) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { var timeout time.Duration if listOpts.TimeoutSeconds != nil { timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second } return c.client.Delete(). Namespace(c.ns). - Resource("migrators"). + Resource("branches"). VersionedParams(&listOpts, scheme.ParameterCodec). Timeout(timeout). Body(&opts). @@ -180,12 +180,12 @@ func (c *migrators) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, Error() } -// Patch applies the patch and returns the patched migrator. -func (c *migrators) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Migrator, err error) { - result = &v1alpha1.Migrator{} +// Patch applies the patch and returns the patched branch. +func (c *branches) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Branch, err error) { + result = &v1alpha1.Branch{} err = c.client.Patch(pt). Namespace(c.ns). - Resource("migrators"). + Resource("branches"). Name(name). SubResource(subresources...). VersionedParams(&opts, scheme.ParameterCodec). diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/branchwork.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/branchwork.go new file mode 100644 index 000000000..62bd3c145 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/branchwork.go @@ -0,0 +1,196 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + "time" + + v1alpha1 "kubedb.dev/apimachinery/apis/courier/v1alpha1" + scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// BranchWorksGetter has a method to return a BranchWorkInterface. +// A group's client should implement this interface. +type BranchWorksGetter interface { + BranchWorks(namespace string) BranchWorkInterface +} + +// BranchWorkInterface has methods to work with BranchWork resources. +type BranchWorkInterface interface { + Create(ctx context.Context, branchWork *v1alpha1.BranchWork, opts v1.CreateOptions) (*v1alpha1.BranchWork, error) + Update(ctx context.Context, branchWork *v1alpha1.BranchWork, opts v1.UpdateOptions) (*v1alpha1.BranchWork, error) + UpdateStatus(ctx context.Context, branchWork *v1alpha1.BranchWork, opts v1.UpdateOptions) (*v1alpha1.BranchWork, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.BranchWork, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.BranchWorkList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BranchWork, err error) + BranchWorkExpansion +} + +// branchWorks implements BranchWorkInterface +type branchWorks struct { + client rest.Interface + ns string +} + +// newBranchWorks returns a BranchWorks +func newBranchWorks(c *CourierV1alpha1Client, namespace string) *branchWorks { + return &branchWorks{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the branchWork, and returns the corresponding branchWork object, and an error if there is any. +func (c *branchWorks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BranchWork, err error) { + result = &v1alpha1.BranchWork{} + err = c.client.Get(). + Namespace(c.ns). + Resource("branchworks"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of BranchWorks that match those selectors. +func (c *branchWorks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BranchWorkList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.BranchWorkList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("branchworks"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested branchWorks. +func (c *branchWorks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("branchworks"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a branchWork and creates it. Returns the server's representation of the branchWork, and an error, if there is any. +func (c *branchWorks) Create(ctx context.Context, branchWork *v1alpha1.BranchWork, opts v1.CreateOptions) (result *v1alpha1.BranchWork, err error) { + result = &v1alpha1.BranchWork{} + err = c.client.Post(). + Namespace(c.ns). + Resource("branchworks"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(branchWork). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a branchWork and updates it. Returns the server's representation of the branchWork, and an error, if there is any. +func (c *branchWorks) Update(ctx context.Context, branchWork *v1alpha1.BranchWork, opts v1.UpdateOptions) (result *v1alpha1.BranchWork, err error) { + result = &v1alpha1.BranchWork{} + err = c.client.Put(). + Namespace(c.ns). + Resource("branchworks"). + Name(branchWork.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(branchWork). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *branchWorks) UpdateStatus(ctx context.Context, branchWork *v1alpha1.BranchWork, opts v1.UpdateOptions) (result *v1alpha1.BranchWork, err error) { + result = &v1alpha1.BranchWork{} + err = c.client.Put(). + Namespace(c.ns). + Resource("branchworks"). + Name(branchWork.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(branchWork). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the branchWork and deletes it. Returns an error if one occurs. +func (c *branchWorks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("branchworks"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *branchWorks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("branchworks"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched branchWork. +func (c *branchWorks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BranchWork, err error) { + result = &v1alpha1.BranchWork{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("branchworks"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/courier_client.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/courier_client.go new file mode 100644 index 000000000..6d39593f6 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/courier_client.go @@ -0,0 +1,138 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "net/http" + + v1alpha1 "kubedb.dev/apimachinery/apis/courier/v1alpha1" + "kubedb.dev/apimachinery/client/clientset/versioned/scheme" + + rest "k8s.io/client-go/rest" +) + +type CourierV1alpha1Interface interface { + RESTClient() rest.Interface + BranchesGetter + BranchWorksGetter + MSSQLServerMigrationsGetter + MariaDBMigrationsGetter + MongoDBMigrationsGetter + MySQLMigrationsGetter + PostgresMigrationsGetter +} + +// CourierV1alpha1Client is used to interact with features provided by the courier.kubedb.com group. +type CourierV1alpha1Client struct { + restClient rest.Interface +} + +func (c *CourierV1alpha1Client) Branches(namespace string) BranchInterface { + return newBranches(c, namespace) +} + +func (c *CourierV1alpha1Client) BranchWorks(namespace string) BranchWorkInterface { + return newBranchWorks(c, namespace) +} + +func (c *CourierV1alpha1Client) MSSQLServerMigrations(namespace string) MSSQLServerMigrationInterface { + return newMSSQLServerMigrations(c, namespace) +} + +func (c *CourierV1alpha1Client) MariaDBMigrations(namespace string) MariaDBMigrationInterface { + return newMariaDBMigrations(c, namespace) +} + +func (c *CourierV1alpha1Client) MongoDBMigrations(namespace string) MongoDBMigrationInterface { + return newMongoDBMigrations(c, namespace) +} + +func (c *CourierV1alpha1Client) MySQLMigrations(namespace string) MySQLMigrationInterface { + return newMySQLMigrations(c, namespace) +} + +func (c *CourierV1alpha1Client) PostgresMigrations(namespace string) PostgresMigrationInterface { + return newPostgresMigrations(c, namespace) +} + +// NewForConfig creates a new CourierV1alpha1Client for the given config. +// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), +// where httpClient was generated with rest.HTTPClientFor(c). +func NewForConfig(c *rest.Config) (*CourierV1alpha1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + httpClient, err := rest.HTTPClientFor(&config) + if err != nil { + return nil, err + } + return NewForConfigAndClient(&config, httpClient) +} + +// NewForConfigAndClient creates a new CourierV1alpha1Client for the given config and http client. +// Note the http client provided takes precedence over the configured transport values. +func NewForConfigAndClient(c *rest.Config, h *http.Client) (*CourierV1alpha1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientForConfigAndClient(&config, h) + if err != nil { + return nil, err + } + return &CourierV1alpha1Client{client}, nil +} + +// NewForConfigOrDie creates a new CourierV1alpha1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *CourierV1alpha1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new CourierV1alpha1Client for the given RESTClient. +func New(c rest.Interface) *CourierV1alpha1Client { + return &CourierV1alpha1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv := v1alpha1.SchemeGroupVersion + config.GroupVersion = &gv + config.APIPath = "/apis" + config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *CourierV1alpha1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/doc.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/doc.go similarity index 100% rename from vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/doc.go rename to vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/doc.go diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/generated_expansion.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/generated_expansion.go similarity index 68% rename from vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/generated_expansion.go rename to vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/generated_expansion.go index b1b35581e..4a4b4c301 100644 --- a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/generated_expansion.go +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/generated_expansion.go @@ -18,4 +18,16 @@ limitations under the License. package v1alpha1 -type MigratorExpansion interface{} +type BranchExpansion interface{} + +type BranchWorkExpansion interface{} + +type MSSQLServerMigrationExpansion interface{} + +type MariaDBMigrationExpansion interface{} + +type MongoDBMigrationExpansion interface{} + +type MySQLMigrationExpansion interface{} + +type PostgresMigrationExpansion interface{} diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mariadbmigration.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mariadbmigration.go new file mode 100644 index 000000000..8580387eb --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mariadbmigration.go @@ -0,0 +1,196 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + "time" + + v1alpha1 "kubedb.dev/apimachinery/apis/courier/v1alpha1" + scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// MariaDBMigrationsGetter has a method to return a MariaDBMigrationInterface. +// A group's client should implement this interface. +type MariaDBMigrationsGetter interface { + MariaDBMigrations(namespace string) MariaDBMigrationInterface +} + +// MariaDBMigrationInterface has methods to work with MariaDBMigration resources. +type MariaDBMigrationInterface interface { + Create(ctx context.Context, mariaDBMigration *v1alpha1.MariaDBMigration, opts v1.CreateOptions) (*v1alpha1.MariaDBMigration, error) + Update(ctx context.Context, mariaDBMigration *v1alpha1.MariaDBMigration, opts v1.UpdateOptions) (*v1alpha1.MariaDBMigration, error) + UpdateStatus(ctx context.Context, mariaDBMigration *v1alpha1.MariaDBMigration, opts v1.UpdateOptions) (*v1alpha1.MariaDBMigration, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MariaDBMigration, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MariaDBMigrationList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBMigration, err error) + MariaDBMigrationExpansion +} + +// mariaDBMigrations implements MariaDBMigrationInterface +type mariaDBMigrations struct { + client rest.Interface + ns string +} + +// newMariaDBMigrations returns a MariaDBMigrations +func newMariaDBMigrations(c *CourierV1alpha1Client, namespace string) *mariaDBMigrations { + return &mariaDBMigrations{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the mariaDBMigration, and returns the corresponding mariaDBMigration object, and an error if there is any. +func (c *mariaDBMigrations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MariaDBMigration, err error) { + result = &v1alpha1.MariaDBMigration{} + err = c.client.Get(). + Namespace(c.ns). + Resource("mariadbmigrations"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of MariaDBMigrations that match those selectors. +func (c *mariaDBMigrations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MariaDBMigrationList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.MariaDBMigrationList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("mariadbmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested mariaDBMigrations. +func (c *mariaDBMigrations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("mariadbmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a mariaDBMigration and creates it. Returns the server's representation of the mariaDBMigration, and an error, if there is any. +func (c *mariaDBMigrations) Create(ctx context.Context, mariaDBMigration *v1alpha1.MariaDBMigration, opts v1.CreateOptions) (result *v1alpha1.MariaDBMigration, err error) { + result = &v1alpha1.MariaDBMigration{} + err = c.client.Post(). + Namespace(c.ns). + Resource("mariadbmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mariaDBMigration). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a mariaDBMigration and updates it. Returns the server's representation of the mariaDBMigration, and an error, if there is any. +func (c *mariaDBMigrations) Update(ctx context.Context, mariaDBMigration *v1alpha1.MariaDBMigration, opts v1.UpdateOptions) (result *v1alpha1.MariaDBMigration, err error) { + result = &v1alpha1.MariaDBMigration{} + err = c.client.Put(). + Namespace(c.ns). + Resource("mariadbmigrations"). + Name(mariaDBMigration.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mariaDBMigration). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *mariaDBMigrations) UpdateStatus(ctx context.Context, mariaDBMigration *v1alpha1.MariaDBMigration, opts v1.UpdateOptions) (result *v1alpha1.MariaDBMigration, err error) { + result = &v1alpha1.MariaDBMigration{} + err = c.client.Put(). + Namespace(c.ns). + Resource("mariadbmigrations"). + Name(mariaDBMigration.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mariaDBMigration). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the mariaDBMigration and deletes it. Returns an error if one occurs. +func (c *mariaDBMigrations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("mariadbmigrations"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *mariaDBMigrations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("mariadbmigrations"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched mariaDBMigration. +func (c *mariaDBMigrations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBMigration, err error) { + result = &v1alpha1.MariaDBMigration{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("mariadbmigrations"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mongodbmigration.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mongodbmigration.go new file mode 100644 index 000000000..e91666fb3 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mongodbmigration.go @@ -0,0 +1,196 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + "time" + + v1alpha1 "kubedb.dev/apimachinery/apis/courier/v1alpha1" + scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// MongoDBMigrationsGetter has a method to return a MongoDBMigrationInterface. +// A group's client should implement this interface. +type MongoDBMigrationsGetter interface { + MongoDBMigrations(namespace string) MongoDBMigrationInterface +} + +// MongoDBMigrationInterface has methods to work with MongoDBMigration resources. +type MongoDBMigrationInterface interface { + Create(ctx context.Context, mongoDBMigration *v1alpha1.MongoDBMigration, opts v1.CreateOptions) (*v1alpha1.MongoDBMigration, error) + Update(ctx context.Context, mongoDBMigration *v1alpha1.MongoDBMigration, opts v1.UpdateOptions) (*v1alpha1.MongoDBMigration, error) + UpdateStatus(ctx context.Context, mongoDBMigration *v1alpha1.MongoDBMigration, opts v1.UpdateOptions) (*v1alpha1.MongoDBMigration, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MongoDBMigration, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MongoDBMigrationList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBMigration, err error) + MongoDBMigrationExpansion +} + +// mongoDBMigrations implements MongoDBMigrationInterface +type mongoDBMigrations struct { + client rest.Interface + ns string +} + +// newMongoDBMigrations returns a MongoDBMigrations +func newMongoDBMigrations(c *CourierV1alpha1Client, namespace string) *mongoDBMigrations { + return &mongoDBMigrations{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the mongoDBMigration, and returns the corresponding mongoDBMigration object, and an error if there is any. +func (c *mongoDBMigrations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBMigration, err error) { + result = &v1alpha1.MongoDBMigration{} + err = c.client.Get(). + Namespace(c.ns). + Resource("mongodbmigrations"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of MongoDBMigrations that match those selectors. +func (c *mongoDBMigrations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MongoDBMigrationList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.MongoDBMigrationList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("mongodbmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested mongoDBMigrations. +func (c *mongoDBMigrations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("mongodbmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a mongoDBMigration and creates it. Returns the server's representation of the mongoDBMigration, and an error, if there is any. +func (c *mongoDBMigrations) Create(ctx context.Context, mongoDBMigration *v1alpha1.MongoDBMigration, opts v1.CreateOptions) (result *v1alpha1.MongoDBMigration, err error) { + result = &v1alpha1.MongoDBMigration{} + err = c.client.Post(). + Namespace(c.ns). + Resource("mongodbmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mongoDBMigration). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a mongoDBMigration and updates it. Returns the server's representation of the mongoDBMigration, and an error, if there is any. +func (c *mongoDBMigrations) Update(ctx context.Context, mongoDBMigration *v1alpha1.MongoDBMigration, opts v1.UpdateOptions) (result *v1alpha1.MongoDBMigration, err error) { + result = &v1alpha1.MongoDBMigration{} + err = c.client.Put(). + Namespace(c.ns). + Resource("mongodbmigrations"). + Name(mongoDBMigration.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mongoDBMigration). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *mongoDBMigrations) UpdateStatus(ctx context.Context, mongoDBMigration *v1alpha1.MongoDBMigration, opts v1.UpdateOptions) (result *v1alpha1.MongoDBMigration, err error) { + result = &v1alpha1.MongoDBMigration{} + err = c.client.Put(). + Namespace(c.ns). + Resource("mongodbmigrations"). + Name(mongoDBMigration.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mongoDBMigration). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the mongoDBMigration and deletes it. Returns an error if one occurs. +func (c *mongoDBMigrations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("mongodbmigrations"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *mongoDBMigrations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("mongodbmigrations"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched mongoDBMigration. +func (c *mongoDBMigrations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBMigration, err error) { + result = &v1alpha1.MongoDBMigration{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("mongodbmigrations"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mssqlservermigration.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mssqlservermigration.go new file mode 100644 index 000000000..449483356 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mssqlservermigration.go @@ -0,0 +1,196 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + "time" + + v1alpha1 "kubedb.dev/apimachinery/apis/courier/v1alpha1" + scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// MSSQLServerMigrationsGetter has a method to return a MSSQLServerMigrationInterface. +// A group's client should implement this interface. +type MSSQLServerMigrationsGetter interface { + MSSQLServerMigrations(namespace string) MSSQLServerMigrationInterface +} + +// MSSQLServerMigrationInterface has methods to work with MSSQLServerMigration resources. +type MSSQLServerMigrationInterface interface { + Create(ctx context.Context, mSSQLServerMigration *v1alpha1.MSSQLServerMigration, opts v1.CreateOptions) (*v1alpha1.MSSQLServerMigration, error) + Update(ctx context.Context, mSSQLServerMigration *v1alpha1.MSSQLServerMigration, opts v1.UpdateOptions) (*v1alpha1.MSSQLServerMigration, error) + UpdateStatus(ctx context.Context, mSSQLServerMigration *v1alpha1.MSSQLServerMigration, opts v1.UpdateOptions) (*v1alpha1.MSSQLServerMigration, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MSSQLServerMigration, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MSSQLServerMigrationList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MSSQLServerMigration, err error) + MSSQLServerMigrationExpansion +} + +// mSSQLServerMigrations implements MSSQLServerMigrationInterface +type mSSQLServerMigrations struct { + client rest.Interface + ns string +} + +// newMSSQLServerMigrations returns a MSSQLServerMigrations +func newMSSQLServerMigrations(c *CourierV1alpha1Client, namespace string) *mSSQLServerMigrations { + return &mSSQLServerMigrations{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the mSSQLServerMigration, and returns the corresponding mSSQLServerMigration object, and an error if there is any. +func (c *mSSQLServerMigrations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MSSQLServerMigration, err error) { + result = &v1alpha1.MSSQLServerMigration{} + err = c.client.Get(). + Namespace(c.ns). + Resource("mssqlservermigrations"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of MSSQLServerMigrations that match those selectors. +func (c *mSSQLServerMigrations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MSSQLServerMigrationList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.MSSQLServerMigrationList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("mssqlservermigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested mSSQLServerMigrations. +func (c *mSSQLServerMigrations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("mssqlservermigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a mSSQLServerMigration and creates it. Returns the server's representation of the mSSQLServerMigration, and an error, if there is any. +func (c *mSSQLServerMigrations) Create(ctx context.Context, mSSQLServerMigration *v1alpha1.MSSQLServerMigration, opts v1.CreateOptions) (result *v1alpha1.MSSQLServerMigration, err error) { + result = &v1alpha1.MSSQLServerMigration{} + err = c.client.Post(). + Namespace(c.ns). + Resource("mssqlservermigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mSSQLServerMigration). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a mSSQLServerMigration and updates it. Returns the server's representation of the mSSQLServerMigration, and an error, if there is any. +func (c *mSSQLServerMigrations) Update(ctx context.Context, mSSQLServerMigration *v1alpha1.MSSQLServerMigration, opts v1.UpdateOptions) (result *v1alpha1.MSSQLServerMigration, err error) { + result = &v1alpha1.MSSQLServerMigration{} + err = c.client.Put(). + Namespace(c.ns). + Resource("mssqlservermigrations"). + Name(mSSQLServerMigration.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mSSQLServerMigration). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *mSSQLServerMigrations) UpdateStatus(ctx context.Context, mSSQLServerMigration *v1alpha1.MSSQLServerMigration, opts v1.UpdateOptions) (result *v1alpha1.MSSQLServerMigration, err error) { + result = &v1alpha1.MSSQLServerMigration{} + err = c.client.Put(). + Namespace(c.ns). + Resource("mssqlservermigrations"). + Name(mSSQLServerMigration.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mSSQLServerMigration). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the mSSQLServerMigration and deletes it. Returns an error if one occurs. +func (c *mSSQLServerMigrations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("mssqlservermigrations"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *mSSQLServerMigrations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("mssqlservermigrations"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched mSSQLServerMigration. +func (c *mSSQLServerMigrations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MSSQLServerMigration, err error) { + result = &v1alpha1.MSSQLServerMigration{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("mssqlservermigrations"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mysqlmigration.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mysqlmigration.go new file mode 100644 index 000000000..a14fe4ca7 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/mysqlmigration.go @@ -0,0 +1,196 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + "time" + + v1alpha1 "kubedb.dev/apimachinery/apis/courier/v1alpha1" + scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// MySQLMigrationsGetter has a method to return a MySQLMigrationInterface. +// A group's client should implement this interface. +type MySQLMigrationsGetter interface { + MySQLMigrations(namespace string) MySQLMigrationInterface +} + +// MySQLMigrationInterface has methods to work with MySQLMigration resources. +type MySQLMigrationInterface interface { + Create(ctx context.Context, mySQLMigration *v1alpha1.MySQLMigration, opts v1.CreateOptions) (*v1alpha1.MySQLMigration, error) + Update(ctx context.Context, mySQLMigration *v1alpha1.MySQLMigration, opts v1.UpdateOptions) (*v1alpha1.MySQLMigration, error) + UpdateStatus(ctx context.Context, mySQLMigration *v1alpha1.MySQLMigration, opts v1.UpdateOptions) (*v1alpha1.MySQLMigration, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MySQLMigration, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MySQLMigrationList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLMigration, err error) + MySQLMigrationExpansion +} + +// mySQLMigrations implements MySQLMigrationInterface +type mySQLMigrations struct { + client rest.Interface + ns string +} + +// newMySQLMigrations returns a MySQLMigrations +func newMySQLMigrations(c *CourierV1alpha1Client, namespace string) *mySQLMigrations { + return &mySQLMigrations{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the mySQLMigration, and returns the corresponding mySQLMigration object, and an error if there is any. +func (c *mySQLMigrations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLMigration, err error) { + result = &v1alpha1.MySQLMigration{} + err = c.client.Get(). + Namespace(c.ns). + Resource("mysqlmigrations"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of MySQLMigrations that match those selectors. +func (c *mySQLMigrations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLMigrationList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.MySQLMigrationList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("mysqlmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested mySQLMigrations. +func (c *mySQLMigrations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("mysqlmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a mySQLMigration and creates it. Returns the server's representation of the mySQLMigration, and an error, if there is any. +func (c *mySQLMigrations) Create(ctx context.Context, mySQLMigration *v1alpha1.MySQLMigration, opts v1.CreateOptions) (result *v1alpha1.MySQLMigration, err error) { + result = &v1alpha1.MySQLMigration{} + err = c.client.Post(). + Namespace(c.ns). + Resource("mysqlmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mySQLMigration). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a mySQLMigration and updates it. Returns the server's representation of the mySQLMigration, and an error, if there is any. +func (c *mySQLMigrations) Update(ctx context.Context, mySQLMigration *v1alpha1.MySQLMigration, opts v1.UpdateOptions) (result *v1alpha1.MySQLMigration, err error) { + result = &v1alpha1.MySQLMigration{} + err = c.client.Put(). + Namespace(c.ns). + Resource("mysqlmigrations"). + Name(mySQLMigration.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mySQLMigration). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *mySQLMigrations) UpdateStatus(ctx context.Context, mySQLMigration *v1alpha1.MySQLMigration, opts v1.UpdateOptions) (result *v1alpha1.MySQLMigration, err error) { + result = &v1alpha1.MySQLMigration{} + err = c.client.Put(). + Namespace(c.ns). + Resource("mysqlmigrations"). + Name(mySQLMigration.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(mySQLMigration). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the mySQLMigration and deletes it. Returns an error if one occurs. +func (c *mySQLMigrations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("mysqlmigrations"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *mySQLMigrations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("mysqlmigrations"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched mySQLMigration. +func (c *mySQLMigrations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLMigration, err error) { + result = &v1alpha1.MySQLMigration{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("mysqlmigrations"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/postgresmigration.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/postgresmigration.go new file mode 100644 index 000000000..b8bda9109 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1/postgresmigration.go @@ -0,0 +1,196 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + "time" + + v1alpha1 "kubedb.dev/apimachinery/apis/courier/v1alpha1" + scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// PostgresMigrationsGetter has a method to return a PostgresMigrationInterface. +// A group's client should implement this interface. +type PostgresMigrationsGetter interface { + PostgresMigrations(namespace string) PostgresMigrationInterface +} + +// PostgresMigrationInterface has methods to work with PostgresMigration resources. +type PostgresMigrationInterface interface { + Create(ctx context.Context, postgresMigration *v1alpha1.PostgresMigration, opts v1.CreateOptions) (*v1alpha1.PostgresMigration, error) + Update(ctx context.Context, postgresMigration *v1alpha1.PostgresMigration, opts v1.UpdateOptions) (*v1alpha1.PostgresMigration, error) + UpdateStatus(ctx context.Context, postgresMigration *v1alpha1.PostgresMigration, opts v1.UpdateOptions) (*v1alpha1.PostgresMigration, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PostgresMigration, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PostgresMigrationList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresMigration, err error) + PostgresMigrationExpansion +} + +// postgresMigrations implements PostgresMigrationInterface +type postgresMigrations struct { + client rest.Interface + ns string +} + +// newPostgresMigrations returns a PostgresMigrations +func newPostgresMigrations(c *CourierV1alpha1Client, namespace string) *postgresMigrations { + return &postgresMigrations{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the postgresMigration, and returns the corresponding postgresMigration object, and an error if there is any. +func (c *postgresMigrations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresMigration, err error) { + result = &v1alpha1.PostgresMigration{} + err = c.client.Get(). + Namespace(c.ns). + Resource("postgresmigrations"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of PostgresMigrations that match those selectors. +func (c *postgresMigrations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PostgresMigrationList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.PostgresMigrationList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("postgresmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested postgresMigrations. +func (c *postgresMigrations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("postgresmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a postgresMigration and creates it. Returns the server's representation of the postgresMigration, and an error, if there is any. +func (c *postgresMigrations) Create(ctx context.Context, postgresMigration *v1alpha1.PostgresMigration, opts v1.CreateOptions) (result *v1alpha1.PostgresMigration, err error) { + result = &v1alpha1.PostgresMigration{} + err = c.client.Post(). + Namespace(c.ns). + Resource("postgresmigrations"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(postgresMigration). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a postgresMigration and updates it. Returns the server's representation of the postgresMigration, and an error, if there is any. +func (c *postgresMigrations) Update(ctx context.Context, postgresMigration *v1alpha1.PostgresMigration, opts v1.UpdateOptions) (result *v1alpha1.PostgresMigration, err error) { + result = &v1alpha1.PostgresMigration{} + err = c.client.Put(). + Namespace(c.ns). + Resource("postgresmigrations"). + Name(postgresMigration.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(postgresMigration). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *postgresMigrations) UpdateStatus(ctx context.Context, postgresMigration *v1alpha1.PostgresMigration, opts v1.UpdateOptions) (result *v1alpha1.PostgresMigration, err error) { + result = &v1alpha1.PostgresMigration{} + err = c.client.Put(). + Namespace(c.ns). + Resource("postgresmigrations"). + Name(postgresMigration.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(postgresMigration). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the postgresMigration and deletes it. Returns an error if one occurs. +func (c *postgresMigrations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("postgresmigrations"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *postgresMigrations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("postgresmigrations"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched postgresMigration. +func (c *postgresMigrations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresMigration, err error) { + result = &v1alpha1.PostgresMigration{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("postgresmigrations"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/migrator_client.go b/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/migrator_client.go deleted file mode 100644 index a2d299859..000000000 --- a/vendor/kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1/migrator_client.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/migrator/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type MigratorV1alpha1Interface interface { - RESTClient() rest.Interface - MigratorsGetter -} - -// MigratorV1alpha1Client is used to interact with features provided by the migrator.kubedb.com group. -type MigratorV1alpha1Client struct { - restClient rest.Interface -} - -func (c *MigratorV1alpha1Client) Migrators(namespace string) MigratorInterface { - return newMigrators(c, namespace) -} - -// NewForConfig creates a new MigratorV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*MigratorV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new MigratorV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*MigratorV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &MigratorV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new MigratorV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *MigratorV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new MigratorV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *MigratorV1alpha1Client { - return &MigratorV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *MigratorV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} 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 cfd088a10..d6b88c718 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mariadbversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mariadbversions.yaml @@ -119,6 +119,23 @@ spec: required: - image type: object + courier: + properties: + cli: + properties: + image: + type: string + required: + - image + type: object + statusReporter: + properties: + image: + type: string + required: + - image + type: object + type: object db: properties: image: @@ -164,23 +181,6 @@ spec: required: - image type: object - migrator: - properties: - cli: - properties: - image: - type: string - required: - - image - type: object - statusReporter: - properties: - image: - type: string - required: - - image - type: object - type: object podSecurityPolicies: properties: databasePolicyName: diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mongodbversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mongodbversions.yaml index 081d3f508..c48bf509c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mongodbversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mongodbversions.yaml @@ -115,6 +115,23 @@ spec: - image type: object type: object + courier: + properties: + cli: + properties: + image: + type: string + required: + - image + type: object + statusReporter: + properties: + image: + type: string + required: + - image + type: object + type: object db: properties: image: @@ -154,23 +171,6 @@ spec: required: - image type: object - migrator: - properties: - cli: - properties: - image: - type: string - required: - - image - type: object - statusReporter: - properties: - image: - type: string - required: - - image - type: object - type: object podSecurityPolicies: properties: databasePolicyName: diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mssqlserverversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mssqlserverversions.yaml index da812e38b..88b7c58d1 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mssqlserverversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mssqlserverversions.yaml @@ -119,6 +119,23 @@ spec: required: - image type: object + courier: + properties: + cli: + properties: + image: + type: string + required: + - image + type: object + statusReporter: + properties: + image: + type: string + required: + - image + type: object + type: object db: properties: image: diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mysqlversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mysqlversions.yaml index f3bae1725..a6ea1dba6 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mysqlversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_mysqlversions.yaml @@ -122,6 +122,23 @@ spec: required: - image type: object + courier: + properties: + cli: + properties: + image: + type: string + required: + - image + type: object + statusReporter: + properties: + image: + type: string + required: + - image + type: object + type: object db: properties: image: @@ -162,23 +179,6 @@ spec: required: - image type: object - migrator: - properties: - cli: - properties: - image: - type: string - required: - - image - type: object - statusReporter: - properties: - image: - type: string - required: - - image - type: object - type: object podSecurityPolicies: properties: databasePolicyName: diff --git a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_postgresversions.yaml b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_postgresversions.yaml index 260407789..5c4480b92 100644 --- a/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_postgresversions.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/catalog.kubedb.com_postgresversions.yaml @@ -122,6 +122,23 @@ spec: required: - image type: object + courier: + properties: + cli: + properties: + image: + type: string + required: + - image + type: object + statusReporter: + properties: + image: + type: string + required: + - image + type: object + type: object db: properties: baseOS: @@ -166,23 +183,6 @@ spec: required: - image type: object - migrator: - properties: - cli: - properties: - image: - type: string - required: - - image - type: object - statusReporter: - properties: - image: - type: string - required: - - image - type: object - type: object podSecurityPolicies: properties: databasePolicyName: diff --git a/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_branches.yaml b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_branches.yaml new file mode 100644 index 000000000..9a4e02adf --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_branches.yaml @@ -0,0 +1,262 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: branches.courier.kubedb.com +spec: + group: courier.kubedb.com + names: + kind: Branch + listKind: BranchList + plural: branches + singular: branch + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Phase + type: string + - jsonPath: .status.mode + name: Mode + type: string + - jsonPath: .status.targetRef.name + name: Target + type: string + - jsonPath: .status.freshness + name: Freshness + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + dataMassageImage: + type: string + deletionPolicy: + default: Delete + enum: + - Delete + - Orphan + type: string + historyLimit: + properties: + failed: + default: 2 + format: int32 + type: integer + success: + default: 3 + format: int32 + type: integer + type: object + resetRootPassword: + type: boolean + schedule: + properties: + cron: + type: string + required: + - cron + type: object + source: + properties: + databaseRef: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + namespace: + type: string + required: + - databaseRef + type: object + target: + properties: + clusterName: + type: string + issuerRef: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + name: + type: string + namespace: + type: string + resources: + properties: + claims: + items: + properties: + name: + type: string + request: + 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 + storageClassName: + type: string + required: + - name + - namespace + type: object + volumeSnapshotClassName: + type: string + required: + - source + - target + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + severity: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + freshness: + type: string + history: + items: + properties: + at: + format: date-time + type: string + message: + type: string + result: + enum: + - Succeeded + - Failed + type: string + type: object + type: array + lastRefreshAt: + format: date-time + type: string + mode: + enum: + - Local + - Initiator + - Creator + type: string + phase: + enum: + - Pending + - Snapshotting + - Cloning + - Provisioning + - Massaging + - Ready + - Refreshing + - Deleting + - Failed + type: string + snapshot: + properties: + ref: + type: string + type: + enum: + - VolumeGroupSnapshot + - VolumeSnapshot + type: string + type: object + targetRef: + properties: + apiVersion: + type: string + fieldPath: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + resourceVersion: + type: string + uid: + type: string + type: object + x-kubernetes-map-type: atomic + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_branchworks.yaml b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_branchworks.yaml new file mode 100644 index 000000000..6bc2dead3 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_branchworks.yaml @@ -0,0 +1,247 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: branchworks.courier.kubedb.com +spec: + group: courier.kubedb.com + names: + kind: BranchWork + listKind: BranchWorkList + plural: branchworks + singular: branchwork + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .spec.targetCluster + name: TargetCluster + type: string + - jsonPath: .status.branch.phase + name: Phase + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + deleteOption: + enum: + - Delete + - Orphan + type: string + manifests: + items: + type: object + x-kubernetes-preserve-unknown-fields: true + type: array + refreshGeneration: + format: int64 + type: integer + targetCluster: + type: string + required: + - targetCluster + type: object + status: + properties: + branch: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + severity: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + freshness: + type: string + history: + items: + properties: + at: + format: date-time + type: string + message: + type: string + result: + enum: + - Succeeded + - Failed + type: string + type: object + type: array + lastRefreshAt: + format: date-time + type: string + mode: + enum: + - Local + - Initiator + - Creator + type: string + phase: + enum: + - Pending + - Snapshotting + - Cloning + - Provisioning + - Massaging + - Ready + - Refreshing + - Deleting + - Failed + type: string + snapshot: + properties: + ref: + type: string + type: + enum: + - VolumeGroupSnapshot + - VolumeSnapshot + type: string + type: object + targetRef: + properties: + apiVersion: + type: string + fieldPath: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + resourceVersion: + type: string + uid: + type: string + type: object + x-kubernetes-map-type: atomic + type: object + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + severity: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + manifests: + items: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + severity: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + ordinal: + format: int32 + type: integer + resourceMeta: + properties: + group: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + resource: + type: string + version: + type: string + type: object + required: + - ordinal + type: object + type: array + observedRefreshGeneration: + format: int64 + type: integer + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mariadbmigrations.yaml b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mariadbmigrations.yaml new file mode 100644 index 000000000..0c6d0b0a1 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mariadbmigrations.yaml @@ -0,0 +1,2965 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: mariadbmigrations.courier.kubedb.com +spec: + group: courier.kubedb.com + names: + kind: MariaDBMigration + listKind: MariaDBMigrationList + plural: mariadbmigrations + singular: mariadbmigration + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Phase + type: string + - jsonPath: .status.progress.info.Stage + name: Stage + type: string + - jsonPath: .status.progress.info.Lag + name: Lag + type: string + - jsonPath: .status.progress.info.Progress + name: Progress + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + jobDefaults: + properties: + activeDeadlineSeconds: + format: int64 + type: integer + backoffLimit: + default: 6 + format: int32 + type: integer + imagePullPolicy: + default: IfNotPresent + type: string + ttlSecondsAfterFinished: + format: int32 + type: integer + type: object + jobTemplate: + properties: + controller: + properties: + annotations: + additionalProperties: + type: string + type: object + labels: + additionalProperties: + type: string + type: object + type: object + metadata: + properties: + annotations: + additionalProperties: + type: string + type: object + labels: + additionalProperties: + type: string + type: object + type: object + spec: + properties: + affinity: + properties: + nodeAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + preference: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchFields: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + weight: + format: int32 + type: integer + required: + - preference + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + properties: + nodeSelectorTerms: + items: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchFields: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + type: array + x-kubernetes-list-type: atomic + required: + - nodeSelectorTerms + type: object + x-kubernetes-map-type: atomic + type: object + podAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + podAffinityTerm: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + weight: + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + type: array + x-kubernetes-list-type: atomic + type: object + podAntiAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + podAffinityTerm: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + weight: + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + type: array + x-kubernetes-list-type: atomic + type: object + type: object + args: + items: + type: string + type: array + containerSecurityContext: + 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 + dnsConfig: + properties: + nameservers: + items: + type: string + type: array + x-kubernetes-list-type: atomic + options: + items: + properties: + name: + type: string + value: + type: string + type: object + type: array + x-kubernetes-list-type: atomic + searches: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + dnsPolicy: + type: string + enableServiceLinks: + type: boolean + 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 + fileKeyRef: + properties: + key: + type: string + optional: + default: false + type: boolean + path: + type: string + volumeName: + type: string + required: + - key + - path + - volumeName + 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 + hostIPC: + type: boolean + hostNetwork: + type: boolean + hostPID: + type: boolean + imagePullSecrets: + items: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: array + initContainers: + items: + properties: + args: + items: + type: string + type: array + x-kubernetes-list-type: atomic + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + 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 + fileKeyRef: + properties: + key: + type: string + optional: + default: false + type: boolean + path: + type: string + volumeName: + type: string + required: + - key + - path + - volumeName + 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 + x-kubernetes-list-map-keys: + - name + x-kubernetes-list-type: map + envFrom: + items: + properties: + configMapRef: + properties: + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + prefix: + type: string + secretRef: + properties: + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + type: object + type: array + x-kubernetes-list-type: atomic + image: + type: string + imagePullPolicy: + type: string + lifecycle: + properties: + postStart: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + preStop: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + stopSignal: + type: string + type: object + livenessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + name: + type: string + ports: + items: + properties: + containerPort: + format: int32 + type: integer + hostIP: + type: string + hostPort: + format: int32 + type: integer + name: + type: string + protocol: + default: TCP + type: string + required: + - containerPort + type: object + type: array + x-kubernetes-list-map-keys: + - containerPort + - protocol + x-kubernetes-list-type: map + readinessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + resizePolicy: + items: + properties: + resourceName: + type: string + restartPolicy: + type: string + required: + - resourceName + - restartPolicy + type: object + type: array + x-kubernetes-list-type: atomic + resources: + properties: + claims: + items: + properties: + name: + type: string + request: + 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 + restartPolicy: + type: string + restartPolicyRules: + items: + properties: + action: + type: string + exitCodes: + properties: + operator: + type: string + values: + items: + format: int32 + type: integer + type: array + x-kubernetes-list-type: set + required: + - operator + type: object + required: + - action + type: object + type: array + x-kubernetes-list-type: atomic + 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 + startupProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + stdin: + type: boolean + stdinOnce: + type: boolean + terminationMessagePath: + type: string + terminationMessagePolicy: + type: string + tty: + type: boolean + volumeDevices: + items: + properties: + devicePath: + type: string + name: + type: string + required: + - devicePath + - name + type: object + type: array + x-kubernetes-list-map-keys: + - devicePath + x-kubernetes-list-type: map + volumeMounts: + items: + properties: + mountPath: + type: string + mountPropagation: + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + type: string + subPath: + type: string + subPathExpr: + type: string + required: + - mountPath + - name + type: object + type: array + x-kubernetes-list-map-keys: + - mountPath + x-kubernetes-list-type: map + workingDir: + type: string + required: + - name + type: object + type: array + lifecycle: + properties: + postStart: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + preStop: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + stopSignal: + type: string + type: object + livenessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + nodeSelector: + additionalProperties: + type: string + type: object + x-kubernetes-map-type: atomic + podPlacementPolicy: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + priority: + format: int32 + type: integer + priorityClassName: + type: string + readinessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + resources: + properties: + claims: + items: + properties: + name: + type: string + request: + 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 + runtimeClassName: + type: string + schedulerName: + type: string + securityContext: + properties: + appArmorProfile: + properties: + localhostProfile: + type: string + type: + type: string + required: + - type + type: object + fsGroup: + format: int64 + type: integer + fsGroupChangePolicy: + type: string + runAsGroup: + format: int64 + type: integer + runAsNonRoot: + type: boolean + runAsUser: + format: int64 + type: integer + seLinuxChangePolicy: + type: string + 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 + supplementalGroups: + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic + supplementalGroupsPolicy: + type: string + sysctls: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + windowsOptions: + properties: + gmsaCredentialSpec: + type: string + gmsaCredentialSpecName: + type: string + hostProcess: + type: boolean + runAsUserName: + type: string + type: object + type: object + serviceAccountName: + type: string + shareProcessNamespace: + type: boolean + terminationGracePeriodSeconds: + format: int64 + type: integer + tolerations: + items: + properties: + effect: + type: string + key: + type: string + operator: + type: string + tolerationSeconds: + format: int64 + type: integer + value: + type: string + type: object + type: array + topologySpreadConstraints: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + maxSkew: + format: int32 + type: integer + minDomains: + format: int32 + type: integer + nodeAffinityPolicy: + type: string + nodeTaintsPolicy: + type: string + topologyKey: + type: string + whenUnsatisfiable: + type: string + required: + - maxSkew + - topologyKey + - whenUnsatisfiable + type: object + type: array + x-kubernetes-list-map-keys: + - topologyKey + - whenUnsatisfiable + x-kubernetes-list-type: map + volumeMounts: + items: + properties: + mountPath: + type: string + mountPropagation: + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + type: string + subPath: + type: string + subPathExpr: + type: string + required: + - mountPath + - name + type: object + type: array + volumes: + items: + properties: + awsElasticBlockStore: + properties: + fsType: + type: string + partition: + format: int32 + type: integer + readOnly: + type: boolean + volumeID: + type: string + required: + - volumeID + type: object + azureDisk: + properties: + cachingMode: + type: string + diskName: + type: string + diskURI: + type: string + fsType: + default: ext4 + type: string + kind: + type: string + readOnly: + default: false + type: boolean + required: + - diskName + - diskURI + type: object + azureFile: + properties: + readOnly: + type: boolean + secretName: + type: string + shareName: + type: string + required: + - secretName + - shareName + type: object + cephfs: + properties: + monitors: + items: + type: string + type: array + x-kubernetes-list-type: atomic + path: + type: string + readOnly: + type: boolean + secretFile: + type: string + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + user: + type: string + required: + - monitors + type: object + cinder: + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + volumeID: + type: string + required: + - volumeID + type: object + configMap: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + csi: + properties: + driver: + type: string + fsType: + type: string + nodePublishSecretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + readOnly: + type: boolean + volumeAttributes: + additionalProperties: + type: string + type: object + required: + - driver + type: object + downwardAPI: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + fieldRef: + properties: + apiVersion: + type: string + fieldPath: + type: string + required: + - fieldPath + type: object + x-kubernetes-map-type: atomic + mode: + format: int32 + type: integer + path: + type: string + 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 + required: + - path + type: object + type: array + x-kubernetes-list-type: atomic + type: object + emptyDir: + properties: + medium: + type: string + sizeLimit: + 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 + ephemeral: + properties: + volumeClaimTemplate: + properties: + metadata: + properties: + annotations: + additionalProperties: + type: string + type: object + generateName: + type: string + labels: + additionalProperties: + type: string + type: object + name: + type: string + namespace: + type: string + ownerReferences: + items: + properties: + apiVersion: + type: string + blockOwnerDeletion: + type: boolean + controller: + type: boolean + kind: + type: string + name: + type: string + uid: + type: string + required: + - apiVersion + - kind + - name + - uid + type: object + x-kubernetes-map-type: atomic + type: array + type: object + spec: + properties: + accessModes: + items: + type: string + type: array + x-kubernetes-list-type: atomic + dataSource: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + dataSourceRef: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + required: + - kind + - name + type: object + resources: + properties: + 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 + selector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + storageClassName: + type: string + volumeAttributesClassName: + type: string + volumeMode: + type: string + volumeName: + type: string + type: object + required: + - spec + type: object + type: object + fc: + properties: + fsType: + type: string + lun: + format: int32 + type: integer + readOnly: + type: boolean + targetWWNs: + items: + type: string + type: array + x-kubernetes-list-type: atomic + wwids: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + flexVolume: + properties: + driver: + type: string + fsType: + type: string + options: + additionalProperties: + type: string + type: object + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + required: + - driver + type: object + flocker: + properties: + datasetName: + type: string + datasetUUID: + type: string + type: object + gcePersistentDisk: + properties: + fsType: + type: string + partition: + format: int32 + type: integer + pdName: + type: string + readOnly: + type: boolean + required: + - pdName + type: object + glusterfs: + properties: + endpoints: + type: string + path: + type: string + readOnly: + type: boolean + required: + - endpoints + - path + type: object + hostPath: + properties: + path: + type: string + type: + type: string + required: + - path + type: object + iscsi: + properties: + chapAuthDiscovery: + type: boolean + chapAuthSession: + type: boolean + fsType: + type: string + initiatorName: + type: string + iqn: + type: string + iscsiInterface: + default: default + type: string + lun: + format: int32 + type: integer + portals: + items: + type: string + type: array + x-kubernetes-list-type: atomic + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + targetPortal: + type: string + required: + - iqn + - lun + - targetPortal + type: object + name: + type: string + nfs: + properties: + path: + type: string + readOnly: + type: boolean + server: + type: string + required: + - path + - server + type: object + persistentVolumeClaim: + properties: + claimName: + type: string + readOnly: + type: boolean + required: + - claimName + type: object + photonPersistentDisk: + properties: + fsType: + type: string + pdID: + type: string + required: + - pdID + type: object + portworxVolume: + properties: + fsType: + type: string + readOnly: + type: boolean + volumeID: + type: string + required: + - volumeID + type: object + projected: + properties: + defaultMode: + format: int32 + type: integer + sources: + items: + properties: + clusterTrustBundle: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + name: + type: string + optional: + type: boolean + path: + type: string + signerName: + type: string + required: + - path + type: object + configMap: + properties: + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + downwardAPI: + properties: + items: + items: + properties: + fieldRef: + properties: + apiVersion: + type: string + fieldPath: + type: string + required: + - fieldPath + type: object + x-kubernetes-map-type: atomic + mode: + format: int32 + type: integer + path: + type: string + 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 + required: + - path + type: object + type: array + x-kubernetes-list-type: atomic + type: object + podCertificate: + properties: + certificateChainPath: + type: string + credentialBundlePath: + type: string + keyPath: + type: string + keyType: + type: string + maxExpirationSeconds: + format: int32 + type: integer + signerName: + type: string + required: + - keyType + - signerName + type: object + secret: + properties: + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + serviceAccountToken: + properties: + audience: + type: string + expirationSeconds: + format: int64 + type: integer + path: + type: string + required: + - path + type: object + type: object + type: array + x-kubernetes-list-type: atomic + type: object + quobyte: + properties: + group: + type: string + readOnly: + type: boolean + registry: + type: string + tenant: + type: string + user: + type: string + volume: + type: string + required: + - registry + - volume + type: object + rbd: + properties: + fsType: + type: string + image: + type: string + keyring: + default: /etc/ceph/keyring + type: string + monitors: + items: + type: string + type: array + x-kubernetes-list-type: atomic + pool: + default: rbd + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + user: + default: admin + type: string + required: + - image + - monitors + type: object + scaleIO: + properties: + fsType: + default: xfs + type: string + gateway: + type: string + protectionDomain: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + sslEnabled: + type: boolean + storageMode: + default: ThinProvisioned + type: string + storagePool: + type: string + system: + type: string + volumeName: + type: string + required: + - gateway + - secretRef + - system + type: object + secret: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + optional: + type: boolean + secretName: + type: string + type: object + storageos: + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + volumeName: + type: string + volumeNamespace: + type: string + type: object + vsphereVolume: + properties: + fsType: + type: string + storagePolicyID: + type: string + storagePolicyName: + type: string + volumePath: + type: string + required: + - volumePath + type: object + required: + - name + type: object + type: array + type: object + type: object + source: + properties: + connectionInfo: + properties: + appBinding: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + dbName: + type: string + maxConnections: + format: int32 + type: integer + tls: + properties: + caFile: + type: string + certFile: + type: string + insecureSkipVerify: + type: boolean + keyFile: + type: string + serverName: + type: string + type: object + url: + type: string + type: object + schema: + properties: + database: + items: + type: string + type: array + enabled: + type: boolean + excludeDatabase: + items: + type: string + type: array + required: + - enabled + type: object + snapshot: + properties: + enabled: + type: boolean + pipeline: + properties: + buffer: + type: integer + read_batch_size: + type: integer + sinkers: + type: integer + workers: + type: integer + write_batch_size: + type: integer + required: + - buffer + - read_batch_size + - sinkers + - workers + - write_batch_size + type: object + type: object + streaming: + properties: + enabled: + type: boolean + type: object + required: + - connectionInfo + type: object + target: + properties: + connectionInfo: + properties: + appBinding: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + dbName: + type: string + maxConnections: + format: int32 + type: integer + tls: + properties: + caFile: + type: string + certFile: + type: string + insecureSkipVerify: + type: boolean + keyFile: + type: string + serverName: + type: string + type: object + url: + type: string + type: object + required: + - connectionInfo + type: object + required: + - source + - target + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + severity: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + phase: + default: Pending + type: string + progress: + properties: + dbType: + type: string + info: + additionalProperties: + type: string + type: object + type: object + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mongodbmigrations.yaml b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mongodbmigrations.yaml new file mode 100644 index 000000000..c87b3b25e --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mongodbmigrations.yaml @@ -0,0 +1,2957 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: mongodbmigrations.courier.kubedb.com +spec: + group: courier.kubedb.com + names: + kind: MongoDBMigration + listKind: MongoDBMigrationList + plural: mongodbmigrations + singular: mongodbmigration + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Phase + type: string + - jsonPath: .status.progress.info.Stage + name: Stage + type: string + - jsonPath: .status.progress.info.Lag + name: Lag + type: string + - jsonPath: .status.progress.info.Progress + name: Progress + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + jobDefaults: + properties: + activeDeadlineSeconds: + format: int64 + type: integer + backoffLimit: + default: 6 + format: int32 + type: integer + imagePullPolicy: + default: IfNotPresent + type: string + ttlSecondsAfterFinished: + format: int32 + type: integer + type: object + jobTemplate: + properties: + controller: + properties: + annotations: + additionalProperties: + type: string + type: object + labels: + additionalProperties: + type: string + type: object + type: object + metadata: + properties: + annotations: + additionalProperties: + type: string + type: object + labels: + additionalProperties: + type: string + type: object + type: object + spec: + properties: + affinity: + properties: + nodeAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + preference: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchFields: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + weight: + format: int32 + type: integer + required: + - preference + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + properties: + nodeSelectorTerms: + items: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchFields: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + type: array + x-kubernetes-list-type: atomic + required: + - nodeSelectorTerms + type: object + x-kubernetes-map-type: atomic + type: object + podAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + podAffinityTerm: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + weight: + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + type: array + x-kubernetes-list-type: atomic + type: object + podAntiAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + podAffinityTerm: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + weight: + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + type: array + x-kubernetes-list-type: atomic + type: object + type: object + args: + items: + type: string + type: array + containerSecurityContext: + 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 + dnsConfig: + properties: + nameservers: + items: + type: string + type: array + x-kubernetes-list-type: atomic + options: + items: + properties: + name: + type: string + value: + type: string + type: object + type: array + x-kubernetes-list-type: atomic + searches: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + dnsPolicy: + type: string + enableServiceLinks: + type: boolean + 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 + fileKeyRef: + properties: + key: + type: string + optional: + default: false + type: boolean + path: + type: string + volumeName: + type: string + required: + - key + - path + - volumeName + 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 + hostIPC: + type: boolean + hostNetwork: + type: boolean + hostPID: + type: boolean + imagePullSecrets: + items: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: array + initContainers: + items: + properties: + args: + items: + type: string + type: array + x-kubernetes-list-type: atomic + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + 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 + fileKeyRef: + properties: + key: + type: string + optional: + default: false + type: boolean + path: + type: string + volumeName: + type: string + required: + - key + - path + - volumeName + 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 + x-kubernetes-list-map-keys: + - name + x-kubernetes-list-type: map + envFrom: + items: + properties: + configMapRef: + properties: + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + prefix: + type: string + secretRef: + properties: + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + type: object + type: array + x-kubernetes-list-type: atomic + image: + type: string + imagePullPolicy: + type: string + lifecycle: + properties: + postStart: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + preStop: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + stopSignal: + type: string + type: object + livenessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + name: + type: string + ports: + items: + properties: + containerPort: + format: int32 + type: integer + hostIP: + type: string + hostPort: + format: int32 + type: integer + name: + type: string + protocol: + default: TCP + type: string + required: + - containerPort + type: object + type: array + x-kubernetes-list-map-keys: + - containerPort + - protocol + x-kubernetes-list-type: map + readinessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + resizePolicy: + items: + properties: + resourceName: + type: string + restartPolicy: + type: string + required: + - resourceName + - restartPolicy + type: object + type: array + x-kubernetes-list-type: atomic + resources: + properties: + claims: + items: + properties: + name: + type: string + request: + 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 + restartPolicy: + type: string + restartPolicyRules: + items: + properties: + action: + type: string + exitCodes: + properties: + operator: + type: string + values: + items: + format: int32 + type: integer + type: array + x-kubernetes-list-type: set + required: + - operator + type: object + required: + - action + type: object + type: array + x-kubernetes-list-type: atomic + 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 + startupProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + stdin: + type: boolean + stdinOnce: + type: boolean + terminationMessagePath: + type: string + terminationMessagePolicy: + type: string + tty: + type: boolean + volumeDevices: + items: + properties: + devicePath: + type: string + name: + type: string + required: + - devicePath + - name + type: object + type: array + x-kubernetes-list-map-keys: + - devicePath + x-kubernetes-list-type: map + volumeMounts: + items: + properties: + mountPath: + type: string + mountPropagation: + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + type: string + subPath: + type: string + subPathExpr: + type: string + required: + - mountPath + - name + type: object + type: array + x-kubernetes-list-map-keys: + - mountPath + x-kubernetes-list-type: map + workingDir: + type: string + required: + - name + type: object + type: array + lifecycle: + properties: + postStart: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + preStop: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + stopSignal: + type: string + type: object + livenessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + nodeSelector: + additionalProperties: + type: string + type: object + x-kubernetes-map-type: atomic + podPlacementPolicy: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + priority: + format: int32 + type: integer + priorityClassName: + type: string + readinessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + resources: + properties: + claims: + items: + properties: + name: + type: string + request: + 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 + runtimeClassName: + type: string + schedulerName: + type: string + securityContext: + properties: + appArmorProfile: + properties: + localhostProfile: + type: string + type: + type: string + required: + - type + type: object + fsGroup: + format: int64 + type: integer + fsGroupChangePolicy: + type: string + runAsGroup: + format: int64 + type: integer + runAsNonRoot: + type: boolean + runAsUser: + format: int64 + type: integer + seLinuxChangePolicy: + type: string + 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 + supplementalGroups: + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic + supplementalGroupsPolicy: + type: string + sysctls: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + windowsOptions: + properties: + gmsaCredentialSpec: + type: string + gmsaCredentialSpecName: + type: string + hostProcess: + type: boolean + runAsUserName: + type: string + type: object + type: object + serviceAccountName: + type: string + shareProcessNamespace: + type: boolean + terminationGracePeriodSeconds: + format: int64 + type: integer + tolerations: + items: + properties: + effect: + type: string + key: + type: string + operator: + type: string + tolerationSeconds: + format: int64 + type: integer + value: + type: string + type: object + type: array + topologySpreadConstraints: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + maxSkew: + format: int32 + type: integer + minDomains: + format: int32 + type: integer + nodeAffinityPolicy: + type: string + nodeTaintsPolicy: + type: string + topologyKey: + type: string + whenUnsatisfiable: + type: string + required: + - maxSkew + - topologyKey + - whenUnsatisfiable + type: object + type: array + x-kubernetes-list-map-keys: + - topologyKey + - whenUnsatisfiable + x-kubernetes-list-type: map + volumeMounts: + items: + properties: + mountPath: + type: string + mountPropagation: + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + type: string + subPath: + type: string + subPathExpr: + type: string + required: + - mountPath + - name + type: object + type: array + volumes: + items: + properties: + awsElasticBlockStore: + properties: + fsType: + type: string + partition: + format: int32 + type: integer + readOnly: + type: boolean + volumeID: + type: string + required: + - volumeID + type: object + azureDisk: + properties: + cachingMode: + type: string + diskName: + type: string + diskURI: + type: string + fsType: + default: ext4 + type: string + kind: + type: string + readOnly: + default: false + type: boolean + required: + - diskName + - diskURI + type: object + azureFile: + properties: + readOnly: + type: boolean + secretName: + type: string + shareName: + type: string + required: + - secretName + - shareName + type: object + cephfs: + properties: + monitors: + items: + type: string + type: array + x-kubernetes-list-type: atomic + path: + type: string + readOnly: + type: boolean + secretFile: + type: string + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + user: + type: string + required: + - monitors + type: object + cinder: + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + volumeID: + type: string + required: + - volumeID + type: object + configMap: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + csi: + properties: + driver: + type: string + fsType: + type: string + nodePublishSecretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + readOnly: + type: boolean + volumeAttributes: + additionalProperties: + type: string + type: object + required: + - driver + type: object + downwardAPI: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + fieldRef: + properties: + apiVersion: + type: string + fieldPath: + type: string + required: + - fieldPath + type: object + x-kubernetes-map-type: atomic + mode: + format: int32 + type: integer + path: + type: string + 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 + required: + - path + type: object + type: array + x-kubernetes-list-type: atomic + type: object + emptyDir: + properties: + medium: + type: string + sizeLimit: + 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 + ephemeral: + properties: + volumeClaimTemplate: + properties: + metadata: + properties: + annotations: + additionalProperties: + type: string + type: object + generateName: + type: string + labels: + additionalProperties: + type: string + type: object + name: + type: string + namespace: + type: string + ownerReferences: + items: + properties: + apiVersion: + type: string + blockOwnerDeletion: + type: boolean + controller: + type: boolean + kind: + type: string + name: + type: string + uid: + type: string + required: + - apiVersion + - kind + - name + - uid + type: object + x-kubernetes-map-type: atomic + type: array + type: object + spec: + properties: + accessModes: + items: + type: string + type: array + x-kubernetes-list-type: atomic + dataSource: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + dataSourceRef: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + required: + - kind + - name + type: object + resources: + properties: + 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 + selector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + storageClassName: + type: string + volumeAttributesClassName: + type: string + volumeMode: + type: string + volumeName: + type: string + type: object + required: + - spec + type: object + type: object + fc: + properties: + fsType: + type: string + lun: + format: int32 + type: integer + readOnly: + type: boolean + targetWWNs: + items: + type: string + type: array + x-kubernetes-list-type: atomic + wwids: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + flexVolume: + properties: + driver: + type: string + fsType: + type: string + options: + additionalProperties: + type: string + type: object + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + required: + - driver + type: object + flocker: + properties: + datasetName: + type: string + datasetUUID: + type: string + type: object + gcePersistentDisk: + properties: + fsType: + type: string + partition: + format: int32 + type: integer + pdName: + type: string + readOnly: + type: boolean + required: + - pdName + type: object + glusterfs: + properties: + endpoints: + type: string + path: + type: string + readOnly: + type: boolean + required: + - endpoints + - path + type: object + hostPath: + properties: + path: + type: string + type: + type: string + required: + - path + type: object + iscsi: + properties: + chapAuthDiscovery: + type: boolean + chapAuthSession: + type: boolean + fsType: + type: string + initiatorName: + type: string + iqn: + type: string + iscsiInterface: + default: default + type: string + lun: + format: int32 + type: integer + portals: + items: + type: string + type: array + x-kubernetes-list-type: atomic + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + targetPortal: + type: string + required: + - iqn + - lun + - targetPortal + type: object + name: + type: string + nfs: + properties: + path: + type: string + readOnly: + type: boolean + server: + type: string + required: + - path + - server + type: object + persistentVolumeClaim: + properties: + claimName: + type: string + readOnly: + type: boolean + required: + - claimName + type: object + photonPersistentDisk: + properties: + fsType: + type: string + pdID: + type: string + required: + - pdID + type: object + portworxVolume: + properties: + fsType: + type: string + readOnly: + type: boolean + volumeID: + type: string + required: + - volumeID + type: object + projected: + properties: + defaultMode: + format: int32 + type: integer + sources: + items: + properties: + clusterTrustBundle: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + name: + type: string + optional: + type: boolean + path: + type: string + signerName: + type: string + required: + - path + type: object + configMap: + properties: + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + downwardAPI: + properties: + items: + items: + properties: + fieldRef: + properties: + apiVersion: + type: string + fieldPath: + type: string + required: + - fieldPath + type: object + x-kubernetes-map-type: atomic + mode: + format: int32 + type: integer + path: + type: string + 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 + required: + - path + type: object + type: array + x-kubernetes-list-type: atomic + type: object + podCertificate: + properties: + certificateChainPath: + type: string + credentialBundlePath: + type: string + keyPath: + type: string + keyType: + type: string + maxExpirationSeconds: + format: int32 + type: integer + signerName: + type: string + required: + - keyType + - signerName + type: object + secret: + properties: + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + serviceAccountToken: + properties: + audience: + type: string + expirationSeconds: + format: int64 + type: integer + path: + type: string + required: + - path + type: object + type: object + type: array + x-kubernetes-list-type: atomic + type: object + quobyte: + properties: + group: + type: string + readOnly: + type: boolean + registry: + type: string + tenant: + type: string + user: + type: string + volume: + type: string + required: + - registry + - volume + type: object + rbd: + properties: + fsType: + type: string + image: + type: string + keyring: + default: /etc/ceph/keyring + type: string + monitors: + items: + type: string + type: array + x-kubernetes-list-type: atomic + pool: + default: rbd + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + user: + default: admin + type: string + required: + - image + - monitors + type: object + scaleIO: + properties: + fsType: + default: xfs + type: string + gateway: + type: string + protectionDomain: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + sslEnabled: + type: boolean + storageMode: + default: ThinProvisioned + type: string + storagePool: + type: string + system: + type: string + volumeName: + type: string + required: + - gateway + - secretRef + - system + type: object + secret: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + optional: + type: boolean + secretName: + type: string + type: object + storageos: + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + volumeName: + type: string + volumeNamespace: + type: string + type: object + vsphereVolume: + properties: + fsType: + type: string + storagePolicyID: + type: string + storagePolicyName: + type: string + volumePath: + type: string + required: + - volumePath + type: object + required: + - name + type: object + type: array + type: object + type: object + source: + properties: + connectionInfo: + properties: + appBinding: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + dbName: + type: string + maxConnections: + format: int32 + type: integer + tls: + properties: + caFile: + type: string + certFile: + type: string + insecureSkipVerify: + type: boolean + keyFile: + type: string + serverName: + type: string + type: object + url: + type: string + type: object + mongoshake: + properties: + checkpointStartPosition: + format: int64 + type: integer + extraConfiguration: + additionalProperties: + type: string + type: object + filterDdlEnable: + type: boolean + filterNamespaceBlack: + items: + type: string + type: array + filterNamespaceWhite: + items: + type: string + type: array + filterOpTypes: + items: + type: string + type: array + filterOplogGids: + type: boolean + filterPassSpecialDb: + items: + type: string + type: array + syncMode: + type: string + transformNamespace: + items: + type: string + type: array + type: object + required: + - connectionInfo + type: object + target: + properties: + connectionInfo: + properties: + appBinding: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + dbName: + type: string + maxConnections: + format: int32 + type: integer + tls: + properties: + caFile: + type: string + certFile: + type: string + insecureSkipVerify: + type: boolean + keyFile: + type: string + serverName: + type: string + type: object + url: + type: string + type: object + required: + - connectionInfo + type: object + required: + - source + - target + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + severity: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + phase: + default: Pending + type: string + progress: + properties: + dbType: + type: string + info: + additionalProperties: + type: string + type: object + type: object + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mssqlservermigrations.yaml b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mssqlservermigrations.yaml new file mode 100644 index 000000000..a273e7ab8 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mssqlservermigrations.yaml @@ -0,0 +1,2964 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: mssqlservermigrations.courier.kubedb.com +spec: + group: courier.kubedb.com + names: + kind: MSSQLServerMigration + listKind: MSSQLServerMigrationList + plural: mssqlservermigrations + singular: mssqlservermigration + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Phase + type: string + - jsonPath: .status.progress.info.Stage + name: Stage + type: string + - jsonPath: .status.progress.info.Lag + name: Lag + type: string + - jsonPath: .status.progress.info.Progress + name: Progress + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + jobDefaults: + properties: + activeDeadlineSeconds: + format: int64 + type: integer + backoffLimit: + default: 6 + format: int32 + type: integer + imagePullPolicy: + default: IfNotPresent + type: string + ttlSecondsAfterFinished: + format: int32 + type: integer + type: object + jobTemplate: + properties: + controller: + properties: + annotations: + additionalProperties: + type: string + type: object + labels: + additionalProperties: + type: string + type: object + type: object + metadata: + properties: + annotations: + additionalProperties: + type: string + type: object + labels: + additionalProperties: + type: string + type: object + type: object + spec: + properties: + affinity: + properties: + nodeAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + preference: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchFields: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + weight: + format: int32 + type: integer + required: + - preference + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + properties: + nodeSelectorTerms: + items: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchFields: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + type: array + x-kubernetes-list-type: atomic + required: + - nodeSelectorTerms + type: object + x-kubernetes-map-type: atomic + type: object + podAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + podAffinityTerm: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + weight: + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + type: array + x-kubernetes-list-type: atomic + type: object + podAntiAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + podAffinityTerm: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + weight: + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + type: array + x-kubernetes-list-type: atomic + type: object + type: object + args: + items: + type: string + type: array + containerSecurityContext: + 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 + dnsConfig: + properties: + nameservers: + items: + type: string + type: array + x-kubernetes-list-type: atomic + options: + items: + properties: + name: + type: string + value: + type: string + type: object + type: array + x-kubernetes-list-type: atomic + searches: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + dnsPolicy: + type: string + enableServiceLinks: + type: boolean + 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 + fileKeyRef: + properties: + key: + type: string + optional: + default: false + type: boolean + path: + type: string + volumeName: + type: string + required: + - key + - path + - volumeName + 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 + hostIPC: + type: boolean + hostNetwork: + type: boolean + hostPID: + type: boolean + imagePullSecrets: + items: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: array + initContainers: + items: + properties: + args: + items: + type: string + type: array + x-kubernetes-list-type: atomic + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + 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 + fileKeyRef: + properties: + key: + type: string + optional: + default: false + type: boolean + path: + type: string + volumeName: + type: string + required: + - key + - path + - volumeName + 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 + x-kubernetes-list-map-keys: + - name + x-kubernetes-list-type: map + envFrom: + items: + properties: + configMapRef: + properties: + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + prefix: + type: string + secretRef: + properties: + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + type: object + type: array + x-kubernetes-list-type: atomic + image: + type: string + imagePullPolicy: + type: string + lifecycle: + properties: + postStart: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + preStop: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + stopSignal: + type: string + type: object + livenessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + name: + type: string + ports: + items: + properties: + containerPort: + format: int32 + type: integer + hostIP: + type: string + hostPort: + format: int32 + type: integer + name: + type: string + protocol: + default: TCP + type: string + required: + - containerPort + type: object + type: array + x-kubernetes-list-map-keys: + - containerPort + - protocol + x-kubernetes-list-type: map + readinessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + resizePolicy: + items: + properties: + resourceName: + type: string + restartPolicy: + type: string + required: + - resourceName + - restartPolicy + type: object + type: array + x-kubernetes-list-type: atomic + resources: + properties: + claims: + items: + properties: + name: + type: string + request: + 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 + restartPolicy: + type: string + restartPolicyRules: + items: + properties: + action: + type: string + exitCodes: + properties: + operator: + type: string + values: + items: + format: int32 + type: integer + type: array + x-kubernetes-list-type: set + required: + - operator + type: object + required: + - action + type: object + type: array + x-kubernetes-list-type: atomic + 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 + startupProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + stdin: + type: boolean + stdinOnce: + type: boolean + terminationMessagePath: + type: string + terminationMessagePolicy: + type: string + tty: + type: boolean + volumeDevices: + items: + properties: + devicePath: + type: string + name: + type: string + required: + - devicePath + - name + type: object + type: array + x-kubernetes-list-map-keys: + - devicePath + x-kubernetes-list-type: map + volumeMounts: + items: + properties: + mountPath: + type: string + mountPropagation: + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + type: string + subPath: + type: string + subPathExpr: + type: string + required: + - mountPath + - name + type: object + type: array + x-kubernetes-list-map-keys: + - mountPath + x-kubernetes-list-type: map + workingDir: + type: string + required: + - name + type: object + type: array + lifecycle: + properties: + postStart: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + preStop: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + stopSignal: + type: string + type: object + livenessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + nodeSelector: + additionalProperties: + type: string + type: object + x-kubernetes-map-type: atomic + podPlacementPolicy: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + priority: + format: int32 + type: integer + priorityClassName: + type: string + readinessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + resources: + properties: + claims: + items: + properties: + name: + type: string + request: + 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 + runtimeClassName: + type: string + schedulerName: + type: string + securityContext: + properties: + appArmorProfile: + properties: + localhostProfile: + type: string + type: + type: string + required: + - type + type: object + fsGroup: + format: int64 + type: integer + fsGroupChangePolicy: + type: string + runAsGroup: + format: int64 + type: integer + runAsNonRoot: + type: boolean + runAsUser: + format: int64 + type: integer + seLinuxChangePolicy: + type: string + 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 + supplementalGroups: + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic + supplementalGroupsPolicy: + type: string + sysctls: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + windowsOptions: + properties: + gmsaCredentialSpec: + type: string + gmsaCredentialSpecName: + type: string + hostProcess: + type: boolean + runAsUserName: + type: string + type: object + type: object + serviceAccountName: + type: string + shareProcessNamespace: + type: boolean + terminationGracePeriodSeconds: + format: int64 + type: integer + tolerations: + items: + properties: + effect: + type: string + key: + type: string + operator: + type: string + tolerationSeconds: + format: int64 + type: integer + value: + type: string + type: object + type: array + topologySpreadConstraints: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + maxSkew: + format: int32 + type: integer + minDomains: + format: int32 + type: integer + nodeAffinityPolicy: + type: string + nodeTaintsPolicy: + type: string + topologyKey: + type: string + whenUnsatisfiable: + type: string + required: + - maxSkew + - topologyKey + - whenUnsatisfiable + type: object + type: array + x-kubernetes-list-map-keys: + - topologyKey + - whenUnsatisfiable + x-kubernetes-list-type: map + volumeMounts: + items: + properties: + mountPath: + type: string + mountPropagation: + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + type: string + subPath: + type: string + subPathExpr: + type: string + required: + - mountPath + - name + type: object + type: array + volumes: + items: + properties: + awsElasticBlockStore: + properties: + fsType: + type: string + partition: + format: int32 + type: integer + readOnly: + type: boolean + volumeID: + type: string + required: + - volumeID + type: object + azureDisk: + properties: + cachingMode: + type: string + diskName: + type: string + diskURI: + type: string + fsType: + default: ext4 + type: string + kind: + type: string + readOnly: + default: false + type: boolean + required: + - diskName + - diskURI + type: object + azureFile: + properties: + readOnly: + type: boolean + secretName: + type: string + shareName: + type: string + required: + - secretName + - shareName + type: object + cephfs: + properties: + monitors: + items: + type: string + type: array + x-kubernetes-list-type: atomic + path: + type: string + readOnly: + type: boolean + secretFile: + type: string + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + user: + type: string + required: + - monitors + type: object + cinder: + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + volumeID: + type: string + required: + - volumeID + type: object + configMap: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + csi: + properties: + driver: + type: string + fsType: + type: string + nodePublishSecretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + readOnly: + type: boolean + volumeAttributes: + additionalProperties: + type: string + type: object + required: + - driver + type: object + downwardAPI: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + fieldRef: + properties: + apiVersion: + type: string + fieldPath: + type: string + required: + - fieldPath + type: object + x-kubernetes-map-type: atomic + mode: + format: int32 + type: integer + path: + type: string + 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 + required: + - path + type: object + type: array + x-kubernetes-list-type: atomic + type: object + emptyDir: + properties: + medium: + type: string + sizeLimit: + 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 + ephemeral: + properties: + volumeClaimTemplate: + properties: + metadata: + properties: + annotations: + additionalProperties: + type: string + type: object + generateName: + type: string + labels: + additionalProperties: + type: string + type: object + name: + type: string + namespace: + type: string + ownerReferences: + items: + properties: + apiVersion: + type: string + blockOwnerDeletion: + type: boolean + controller: + type: boolean + kind: + type: string + name: + type: string + uid: + type: string + required: + - apiVersion + - kind + - name + - uid + type: object + x-kubernetes-map-type: atomic + type: array + type: object + spec: + properties: + accessModes: + items: + type: string + type: array + x-kubernetes-list-type: atomic + dataSource: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + dataSourceRef: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + required: + - kind + - name + type: object + resources: + properties: + 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 + selector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + storageClassName: + type: string + volumeAttributesClassName: + type: string + volumeMode: + type: string + volumeName: + type: string + type: object + required: + - spec + type: object + type: object + fc: + properties: + fsType: + type: string + lun: + format: int32 + type: integer + readOnly: + type: boolean + targetWWNs: + items: + type: string + type: array + x-kubernetes-list-type: atomic + wwids: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + flexVolume: + properties: + driver: + type: string + fsType: + type: string + options: + additionalProperties: + type: string + type: object + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + required: + - driver + type: object + flocker: + properties: + datasetName: + type: string + datasetUUID: + type: string + type: object + gcePersistentDisk: + properties: + fsType: + type: string + partition: + format: int32 + type: integer + pdName: + type: string + readOnly: + type: boolean + required: + - pdName + type: object + glusterfs: + properties: + endpoints: + type: string + path: + type: string + readOnly: + type: boolean + required: + - endpoints + - path + type: object + hostPath: + properties: + path: + type: string + type: + type: string + required: + - path + type: object + iscsi: + properties: + chapAuthDiscovery: + type: boolean + chapAuthSession: + type: boolean + fsType: + type: string + initiatorName: + type: string + iqn: + type: string + iscsiInterface: + default: default + type: string + lun: + format: int32 + type: integer + portals: + items: + type: string + type: array + x-kubernetes-list-type: atomic + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + targetPortal: + type: string + required: + - iqn + - lun + - targetPortal + type: object + name: + type: string + nfs: + properties: + path: + type: string + readOnly: + type: boolean + server: + type: string + required: + - path + - server + type: object + persistentVolumeClaim: + properties: + claimName: + type: string + readOnly: + type: boolean + required: + - claimName + type: object + photonPersistentDisk: + properties: + fsType: + type: string + pdID: + type: string + required: + - pdID + type: object + portworxVolume: + properties: + fsType: + type: string + readOnly: + type: boolean + volumeID: + type: string + required: + - volumeID + type: object + projected: + properties: + defaultMode: + format: int32 + type: integer + sources: + items: + properties: + clusterTrustBundle: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + name: + type: string + optional: + type: boolean + path: + type: string + signerName: + type: string + required: + - path + type: object + configMap: + properties: + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + downwardAPI: + properties: + items: + items: + properties: + fieldRef: + properties: + apiVersion: + type: string + fieldPath: + type: string + required: + - fieldPath + type: object + x-kubernetes-map-type: atomic + mode: + format: int32 + type: integer + path: + type: string + 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 + required: + - path + type: object + type: array + x-kubernetes-list-type: atomic + type: object + podCertificate: + properties: + certificateChainPath: + type: string + credentialBundlePath: + type: string + keyPath: + type: string + keyType: + type: string + maxExpirationSeconds: + format: int32 + type: integer + signerName: + type: string + required: + - keyType + - signerName + type: object + secret: + properties: + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + serviceAccountToken: + properties: + audience: + type: string + expirationSeconds: + format: int64 + type: integer + path: + type: string + required: + - path + type: object + type: object + type: array + x-kubernetes-list-type: atomic + type: object + quobyte: + properties: + group: + type: string + readOnly: + type: boolean + registry: + type: string + tenant: + type: string + user: + type: string + volume: + type: string + required: + - registry + - volume + type: object + rbd: + properties: + fsType: + type: string + image: + type: string + keyring: + default: /etc/ceph/keyring + type: string + monitors: + items: + type: string + type: array + x-kubernetes-list-type: atomic + pool: + default: rbd + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + user: + default: admin + type: string + required: + - image + - monitors + type: object + scaleIO: + properties: + fsType: + default: xfs + type: string + gateway: + type: string + protectionDomain: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + sslEnabled: + type: boolean + storageMode: + default: ThinProvisioned + type: string + storagePool: + type: string + system: + type: string + volumeName: + type: string + required: + - gateway + - secretRef + - system + type: object + secret: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + optional: + type: boolean + secretName: + type: string + type: object + storageos: + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + volumeName: + type: string + volumeNamespace: + type: string + type: object + vsphereVolume: + properties: + fsType: + type: string + storagePolicyID: + type: string + storagePolicyName: + type: string + volumePath: + type: string + required: + - volumePath + type: object + required: + - name + type: object + type: array + type: object + type: object + source: + properties: + connectionInfo: + properties: + appBinding: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + database: + type: string + encrypt: + type: boolean + maxConnections: + type: integer + trustServerCertificate: + type: boolean + required: + - database + type: object + schema: + properties: + database: + items: + type: string + type: array + enabled: + type: boolean + excludeSchema: + items: + type: string + type: array + excludeTable: + items: + type: string + type: array + schema: + items: + type: string + type: array + table: + items: + type: string + type: array + required: + - enabled + type: object + snapshot: + properties: + enabled: + type: boolean + pipeline: + properties: + buffer: + type: integer + read_batch_size: + type: integer + sinkers: + type: integer + workers: + type: integer + write_batch_size: + type: integer + required: + - buffer + - read_batch_size + - sinkers + - workers + - write_batch_size + type: object + type: object + streaming: + properties: + autoEnableCDC: + type: boolean + batchSize: + type: integer + enabled: + type: boolean + pollInterval: + format: int64 + type: integer + type: object + required: + - connectionInfo + type: object + target: + properties: + connectionInfo: + properties: + appBinding: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + database: + type: string + encrypt: + type: boolean + maxConnections: + type: integer + trustServerCertificate: + type: boolean + required: + - database + type: object + required: + - connectionInfo + type: object + required: + - source + - target + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + severity: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + phase: + default: Pending + type: string + progress: + properties: + dbType: + type: string + info: + additionalProperties: + type: string + type: object + type: object + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mysqlmigrations.yaml b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mysqlmigrations.yaml new file mode 100644 index 000000000..9bbf4eb4e --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_mysqlmigrations.yaml @@ -0,0 +1,2965 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: mysqlmigrations.courier.kubedb.com +spec: + group: courier.kubedb.com + names: + kind: MySQLMigration + listKind: MySQLMigrationList + plural: mysqlmigrations + singular: mysqlmigration + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Phase + type: string + - jsonPath: .status.progress.info.Stage + name: Stage + type: string + - jsonPath: .status.progress.info.Lag + name: Lag + type: string + - jsonPath: .status.progress.info.Progress + name: Progress + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + jobDefaults: + properties: + activeDeadlineSeconds: + format: int64 + type: integer + backoffLimit: + default: 6 + format: int32 + type: integer + imagePullPolicy: + default: IfNotPresent + type: string + ttlSecondsAfterFinished: + format: int32 + type: integer + type: object + jobTemplate: + properties: + controller: + properties: + annotations: + additionalProperties: + type: string + type: object + labels: + additionalProperties: + type: string + type: object + type: object + metadata: + properties: + annotations: + additionalProperties: + type: string + type: object + labels: + additionalProperties: + type: string + type: object + type: object + spec: + properties: + affinity: + properties: + nodeAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + preference: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchFields: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + weight: + format: int32 + type: integer + required: + - preference + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + properties: + nodeSelectorTerms: + items: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchFields: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + type: array + x-kubernetes-list-type: atomic + required: + - nodeSelectorTerms + type: object + x-kubernetes-map-type: atomic + type: object + podAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + podAffinityTerm: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + weight: + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + type: array + x-kubernetes-list-type: atomic + type: object + podAntiAffinity: + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + properties: + podAffinityTerm: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + weight: + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + type: string + required: + - topologyKey + type: object + type: array + x-kubernetes-list-type: atomic + type: object + type: object + args: + items: + type: string + type: array + containerSecurityContext: + 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 + dnsConfig: + properties: + nameservers: + items: + type: string + type: array + x-kubernetes-list-type: atomic + options: + items: + properties: + name: + type: string + value: + type: string + type: object + type: array + x-kubernetes-list-type: atomic + searches: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + dnsPolicy: + type: string + enableServiceLinks: + type: boolean + 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 + fileKeyRef: + properties: + key: + type: string + optional: + default: false + type: boolean + path: + type: string + volumeName: + type: string + required: + - key + - path + - volumeName + 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 + hostIPC: + type: boolean + hostNetwork: + type: boolean + hostPID: + type: boolean + imagePullSecrets: + items: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + type: array + initContainers: + items: + properties: + args: + items: + type: string + type: array + x-kubernetes-list-type: atomic + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + 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 + fileKeyRef: + properties: + key: + type: string + optional: + default: false + type: boolean + path: + type: string + volumeName: + type: string + required: + - key + - path + - volumeName + 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 + x-kubernetes-list-map-keys: + - name + x-kubernetes-list-type: map + envFrom: + items: + properties: + configMapRef: + properties: + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + prefix: + type: string + secretRef: + properties: + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + type: object + type: array + x-kubernetes-list-type: atomic + image: + type: string + imagePullPolicy: + type: string + lifecycle: + properties: + postStart: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + preStop: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + stopSignal: + type: string + type: object + livenessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + name: + type: string + ports: + items: + properties: + containerPort: + format: int32 + type: integer + hostIP: + type: string + hostPort: + format: int32 + type: integer + name: + type: string + protocol: + default: TCP + type: string + required: + - containerPort + type: object + type: array + x-kubernetes-list-map-keys: + - containerPort + - protocol + x-kubernetes-list-type: map + readinessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + resizePolicy: + items: + properties: + resourceName: + type: string + restartPolicy: + type: string + required: + - resourceName + - restartPolicy + type: object + type: array + x-kubernetes-list-type: atomic + resources: + properties: + claims: + items: + properties: + name: + type: string + request: + 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 + restartPolicy: + type: string + restartPolicyRules: + items: + properties: + action: + type: string + exitCodes: + properties: + operator: + type: string + values: + items: + format: int32 + type: integer + type: array + x-kubernetes-list-type: set + required: + - operator + type: object + required: + - action + type: object + type: array + x-kubernetes-list-type: atomic + 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 + startupProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + stdin: + type: boolean + stdinOnce: + type: boolean + terminationMessagePath: + type: string + terminationMessagePolicy: + type: string + tty: + type: boolean + volumeDevices: + items: + properties: + devicePath: + type: string + name: + type: string + required: + - devicePath + - name + type: object + type: array + x-kubernetes-list-map-keys: + - devicePath + x-kubernetes-list-type: map + volumeMounts: + items: + properties: + mountPath: + type: string + mountPropagation: + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + type: string + subPath: + type: string + subPathExpr: + type: string + required: + - mountPath + - name + type: object + type: array + x-kubernetes-list-map-keys: + - mountPath + x-kubernetes-list-type: map + workingDir: + type: string + required: + - name + type: object + type: array + lifecycle: + properties: + postStart: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + preStop: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + sleep: + properties: + seconds: + format: int64 + type: integer + required: + - seconds + type: object + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + stopSignal: + type: string + type: object + livenessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + nodeSelector: + additionalProperties: + type: string + type: object + x-kubernetes-map-type: atomic + podPlacementPolicy: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + priority: + format: int32 + type: integer + priorityClassName: + type: string + readinessProbe: + properties: + exec: + properties: + command: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + failureThreshold: + format: int32 + type: integer + grpc: + properties: + port: + format: int32 + type: integer + service: + default: "" + type: string + required: + - port + type: object + httpGet: + properties: + host: + type: string + httpHeaders: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + type: string + required: + - port + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + resources: + properties: + claims: + items: + properties: + name: + type: string + request: + 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 + runtimeClassName: + type: string + schedulerName: + type: string + securityContext: + properties: + appArmorProfile: + properties: + localhostProfile: + type: string + type: + type: string + required: + - type + type: object + fsGroup: + format: int64 + type: integer + fsGroupChangePolicy: + type: string + runAsGroup: + format: int64 + type: integer + runAsNonRoot: + type: boolean + runAsUser: + format: int64 + type: integer + seLinuxChangePolicy: + type: string + 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 + supplementalGroups: + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic + supplementalGroupsPolicy: + type: string + sysctls: + items: + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + type: array + x-kubernetes-list-type: atomic + windowsOptions: + properties: + gmsaCredentialSpec: + type: string + gmsaCredentialSpecName: + type: string + hostProcess: + type: boolean + runAsUserName: + type: string + type: object + type: object + serviceAccountName: + type: string + shareProcessNamespace: + type: boolean + terminationGracePeriodSeconds: + format: int64 + type: integer + tolerations: + items: + properties: + effect: + type: string + key: + type: string + operator: + type: string + tolerationSeconds: + format: int64 + type: integer + value: + type: string + type: object + type: array + topologySpreadConstraints: + items: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + matchLabelKeys: + items: + type: string + type: array + x-kubernetes-list-type: atomic + maxSkew: + format: int32 + type: integer + minDomains: + format: int32 + type: integer + nodeAffinityPolicy: + type: string + nodeTaintsPolicy: + type: string + topologyKey: + type: string + whenUnsatisfiable: + type: string + required: + - maxSkew + - topologyKey + - whenUnsatisfiable + type: object + type: array + x-kubernetes-list-map-keys: + - topologyKey + - whenUnsatisfiable + x-kubernetes-list-type: map + volumeMounts: + items: + properties: + mountPath: + type: string + mountPropagation: + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + type: string + subPath: + type: string + subPathExpr: + type: string + required: + - mountPath + - name + type: object + type: array + volumes: + items: + properties: + awsElasticBlockStore: + properties: + fsType: + type: string + partition: + format: int32 + type: integer + readOnly: + type: boolean + volumeID: + type: string + required: + - volumeID + type: object + azureDisk: + properties: + cachingMode: + type: string + diskName: + type: string + diskURI: + type: string + fsType: + default: ext4 + type: string + kind: + type: string + readOnly: + default: false + type: boolean + required: + - diskName + - diskURI + type: object + azureFile: + properties: + readOnly: + type: boolean + secretName: + type: string + shareName: + type: string + required: + - secretName + - shareName + type: object + cephfs: + properties: + monitors: + items: + type: string + type: array + x-kubernetes-list-type: atomic + path: + type: string + readOnly: + type: boolean + secretFile: + type: string + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + user: + type: string + required: + - monitors + type: object + cinder: + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + volumeID: + type: string + required: + - volumeID + type: object + configMap: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + csi: + properties: + driver: + type: string + fsType: + type: string + nodePublishSecretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + readOnly: + type: boolean + volumeAttributes: + additionalProperties: + type: string + type: object + required: + - driver + type: object + downwardAPI: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + fieldRef: + properties: + apiVersion: + type: string + fieldPath: + type: string + required: + - fieldPath + type: object + x-kubernetes-map-type: atomic + mode: + format: int32 + type: integer + path: + type: string + 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 + required: + - path + type: object + type: array + x-kubernetes-list-type: atomic + type: object + emptyDir: + properties: + medium: + type: string + sizeLimit: + 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 + ephemeral: + properties: + volumeClaimTemplate: + properties: + metadata: + properties: + annotations: + additionalProperties: + type: string + type: object + generateName: + type: string + labels: + additionalProperties: + type: string + type: object + name: + type: string + namespace: + type: string + ownerReferences: + items: + properties: + apiVersion: + type: string + blockOwnerDeletion: + type: boolean + controller: + type: boolean + kind: + type: string + name: + type: string + uid: + type: string + required: + - apiVersion + - kind + - name + - uid + type: object + x-kubernetes-map-type: atomic + type: array + type: object + spec: + properties: + accessModes: + items: + type: string + type: array + x-kubernetes-list-type: atomic + dataSource: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + dataSourceRef: + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + required: + - kind + - name + type: object + resources: + properties: + 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 + selector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + storageClassName: + type: string + volumeAttributesClassName: + type: string + volumeMode: + type: string + volumeName: + type: string + type: object + required: + - spec + type: object + type: object + fc: + properties: + fsType: + type: string + lun: + format: int32 + type: integer + readOnly: + type: boolean + targetWWNs: + items: + type: string + type: array + x-kubernetes-list-type: atomic + wwids: + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + flexVolume: + properties: + driver: + type: string + fsType: + type: string + options: + additionalProperties: + type: string + type: object + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + required: + - driver + type: object + flocker: + properties: + datasetName: + type: string + datasetUUID: + type: string + type: object + gcePersistentDisk: + properties: + fsType: + type: string + partition: + format: int32 + type: integer + pdName: + type: string + readOnly: + type: boolean + required: + - pdName + type: object + glusterfs: + properties: + endpoints: + type: string + path: + type: string + readOnly: + type: boolean + required: + - endpoints + - path + type: object + hostPath: + properties: + path: + type: string + type: + type: string + required: + - path + type: object + iscsi: + properties: + chapAuthDiscovery: + type: boolean + chapAuthSession: + type: boolean + fsType: + type: string + initiatorName: + type: string + iqn: + type: string + iscsiInterface: + default: default + type: string + lun: + format: int32 + type: integer + portals: + items: + type: string + type: array + x-kubernetes-list-type: atomic + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + targetPortal: + type: string + required: + - iqn + - lun + - targetPortal + type: object + name: + type: string + nfs: + properties: + path: + type: string + readOnly: + type: boolean + server: + type: string + required: + - path + - server + type: object + persistentVolumeClaim: + properties: + claimName: + type: string + readOnly: + type: boolean + required: + - claimName + type: object + photonPersistentDisk: + properties: + fsType: + type: string + pdID: + type: string + required: + - pdID + type: object + portworxVolume: + properties: + fsType: + type: string + readOnly: + type: boolean + volumeID: + type: string + required: + - volumeID + type: object + projected: + properties: + defaultMode: + format: int32 + type: integer + sources: + items: + properties: + clusterTrustBundle: + properties: + labelSelector: + properties: + matchExpressions: + items: + properties: + key: + type: string + operator: + type: string + values: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - operator + type: object + type: array + x-kubernetes-list-type: atomic + matchLabels: + additionalProperties: + type: string + type: object + type: object + x-kubernetes-map-type: atomic + name: + type: string + optional: + type: boolean + path: + type: string + signerName: + type: string + required: + - path + type: object + configMap: + properties: + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + downwardAPI: + properties: + items: + items: + properties: + fieldRef: + properties: + apiVersion: + type: string + fieldPath: + type: string + required: + - fieldPath + type: object + x-kubernetes-map-type: atomic + mode: + format: int32 + type: integer + path: + type: string + 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 + required: + - path + type: object + type: array + x-kubernetes-list-type: atomic + type: object + podCertificate: + properties: + certificateChainPath: + type: string + credentialBundlePath: + type: string + keyPath: + type: string + keyType: + type: string + maxExpirationSeconds: + format: int32 + type: integer + signerName: + type: string + required: + - keyType + - signerName + type: object + secret: + properties: + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + name: + default: "" + type: string + optional: + type: boolean + type: object + x-kubernetes-map-type: atomic + serviceAccountToken: + properties: + audience: + type: string + expirationSeconds: + format: int64 + type: integer + path: + type: string + required: + - path + type: object + type: object + type: array + x-kubernetes-list-type: atomic + type: object + quobyte: + properties: + group: + type: string + readOnly: + type: boolean + registry: + type: string + tenant: + type: string + user: + type: string + volume: + type: string + required: + - registry + - volume + type: object + rbd: + properties: + fsType: + type: string + image: + type: string + keyring: + default: /etc/ceph/keyring + type: string + monitors: + items: + type: string + type: array + x-kubernetes-list-type: atomic + pool: + default: rbd + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + user: + default: admin + type: string + required: + - image + - monitors + type: object + scaleIO: + properties: + fsType: + default: xfs + type: string + gateway: + type: string + protectionDomain: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + sslEnabled: + type: boolean + storageMode: + default: ThinProvisioned + type: string + storagePool: + type: string + system: + type: string + volumeName: + type: string + required: + - gateway + - secretRef + - system + type: object + secret: + properties: + defaultMode: + format: int32 + type: integer + items: + items: + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + required: + - key + - path + type: object + type: array + x-kubernetes-list-type: atomic + optional: + type: boolean + secretName: + type: string + type: object + storageos: + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + properties: + name: + default: "" + type: string + type: object + x-kubernetes-map-type: atomic + volumeName: + type: string + volumeNamespace: + type: string + type: object + vsphereVolume: + properties: + fsType: + type: string + storagePolicyID: + type: string + storagePolicyName: + type: string + volumePath: + type: string + required: + - volumePath + type: object + required: + - name + type: object + type: array + type: object + type: object + source: + properties: + connectionInfo: + properties: + appBinding: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + dbName: + type: string + maxConnections: + format: int32 + type: integer + tls: + properties: + caFile: + type: string + certFile: + type: string + insecureSkipVerify: + type: boolean + keyFile: + type: string + serverName: + type: string + type: object + url: + type: string + type: object + schema: + properties: + database: + items: + type: string + type: array + enabled: + type: boolean + excludeDatabase: + items: + type: string + type: array + required: + - enabled + type: object + snapshot: + properties: + enabled: + type: boolean + pipeline: + properties: + buffer: + type: integer + read_batch_size: + type: integer + sinkers: + type: integer + workers: + type: integer + write_batch_size: + type: integer + required: + - buffer + - read_batch_size + - sinkers + - workers + - write_batch_size + type: object + type: object + streaming: + properties: + enabled: + type: boolean + type: object + required: + - connectionInfo + type: object + target: + properties: + connectionInfo: + properties: + appBinding: + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + dbName: + type: string + maxConnections: + format: int32 + type: integer + tls: + properties: + caFile: + type: string + certFile: + type: string + insecureSkipVerify: + type: boolean + keyFile: + type: string + serverName: + type: string + type: object + url: + type: string + type: object + required: + - connectionInfo + type: object + required: + - source + - target + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + severity: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + phase: + default: Pending + type: string + progress: + properties: + dbType: + type: string + info: + additionalProperties: + type: string + type: object + type: object + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/vendor/kubedb.dev/apimachinery/crds/migrator.kubedb.com_migrators.yaml b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_postgresmigrations.yaml similarity index 88% rename from vendor/kubedb.dev/apimachinery/crds/migrator.kubedb.com_migrators.yaml rename to vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_postgresmigrations.yaml index c8fad2168..09660f17a 100644 --- a/vendor/kubedb.dev/apimachinery/crds/migrator.kubedb.com_migrators.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/courier.kubedb.com_postgresmigrations.yaml @@ -4,23 +4,20 @@ metadata: creationTimestamp: null labels: app.kubernetes.io/name: kubedb - name: migrators.migrator.kubedb.com + name: postgresmigrations.courier.kubedb.com spec: - group: migrator.kubedb.com + group: courier.kubedb.com names: - kind: Migrator - listKind: MigratorList - plural: migrators - singular: migrator + kind: PostgresMigration + listKind: PostgresMigrationList + plural: postgresmigrations + singular: postgresmigration scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .status.phase name: Phase type: string - - jsonPath: .status.progress.dbType - name: DBType - type: string - jsonPath: .status.progress.info.Stage name: Stage type: string @@ -2796,482 +2793,130 @@ spec: type: object source: properties: - mariadb: + connectionInfo: properties: - connectionInfo: + appBinding: properties: - appBinding: - properties: - name: - type: string - namespace: - type: string - required: - - name - type: object - dbName: + name: type: string - maxConnections: - format: int32 - type: integer - tls: - properties: - caFile: - type: string - certFile: - type: string - insecureSkipVerify: - type: boolean - keyFile: - type: string - serverName: - type: string - type: object - url: + namespace: type: string - type: object - schema: - properties: - database: - items: - type: string - type: array - enabled: - type: boolean - excludeDatabase: - items: - type: string - type: array required: - - enabled + - name type: object - snapshot: - properties: - enabled: - type: boolean - pipeline: - properties: - buffer: - type: integer - read_batch_size: - type: integer - sinkers: - type: integer - workers: - type: integer - write_batch_size: - type: integer - required: - - buffer - - read_batch_size - - sinkers - - workers - - write_batch_size - type: object - type: object - streaming: - properties: - enabled: - type: boolean - type: object - required: - - connectionInfo - type: object - mongodb: - properties: - connectionInfo: + dbName: + type: string + maxConnections: + format: int32 + type: integer + tls: properties: - appBinding: - properties: - name: - type: string - namespace: - type: string - required: - - name - type: object - dbName: + caFile: type: string - maxConnections: - format: int32 - type: integer - tls: - properties: - caFile: - type: string - certFile: - type: string - insecureSkipVerify: - type: boolean - keyFile: - type: string - serverName: - type: string - type: object - url: + certFile: type: string - type: object - mongoshake: - properties: - checkpointStartPosition: - format: int64 - type: integer - extraConfiguration: - additionalProperties: - type: string - type: object - filterDdlEnable: - type: boolean - filterNamespaceBlack: - items: - type: string - type: array - filterNamespaceWhite: - items: - type: string - type: array - filterOpTypes: - items: - type: string - type: array - filterOplogGids: + insecureSkipVerify: type: boolean - filterPassSpecialDb: - items: - type: string - type: array - syncMode: + keyFile: + type: string + serverName: type: string - transformNamespace: - items: - type: string - type: array type: object - required: - - connectionInfo + url: + type: string type: object - mysql: + logicalReplication: properties: - connectionInfo: - properties: - appBinding: - properties: - name: - type: string - namespace: - type: string - required: - - name - type: object - dbName: - type: string - maxConnections: - format: int32 - type: integer - tls: - properties: - caFile: - type: string - certFile: - type: string - insecureSkipVerify: - type: boolean - keyFile: - type: string - serverName: - type: string - type: object - url: - type: string - type: object - schema: + copyData: + default: true + type: boolean + publication: properties: - database: + args: items: type: string type: array - enabled: - type: boolean - excludeDatabase: - items: - type: string - type: array - required: - - enabled - type: object - snapshot: - properties: - enabled: - type: boolean - pipeline: - properties: - buffer: - type: integer - read_batch_size: - type: integer - sinkers: - type: integer - workers: - type: integer - write_batch_size: - type: integer - required: - - buffer - - read_batch_size - - sinkers - - workers - - write_batch_size - type: object - type: object - streaming: - properties: - enabled: - type: boolean - type: object - required: - - connectionInfo - type: object - postgres: - properties: - connectionInfo: - properties: - appBinding: - properties: - name: - type: string - namespace: - type: string - required: - - name - type: object - dbName: + mode: + default: default + enum: + - default + - table + - allTable + - tableInSchema type: string - maxConnections: - format: int32 - type: integer - tls: - properties: - caFile: - type: string - certFile: - type: string - insecureSkipVerify: - type: boolean - keyFile: - type: string - serverName: - type: string - type: object - url: + name: type: string type: object - logicalReplication: + subscription: properties: - copyData: - default: true - type: boolean - publication: - properties: - args: - items: - type: string - type: array - mode: - default: default - enum: - - default - - table - - allTable - - tableInSchema - type: string - name: - type: string - type: object - subscription: - properties: - name: - type: string - type: object - type: object - pgDump: - properties: - excludeSchema: - items: - type: string - type: array - excludeTable: - items: - type: string - type: array - extraOptions: - items: - type: string - type: array - schema: - items: - type: string - type: array - schemaOnly: - type: boolean - table: - items: - type: string - type: array + name: + type: string type: object - required: - - connectionInfo type: object + pgDump: + properties: + excludeSchema: + items: + type: string + type: array + excludeTable: + items: + type: string + type: array + extraOptions: + items: + type: string + type: array + schema: + items: + type: string + type: array + schemaOnly: + type: boolean + table: + items: + type: string + type: array + type: object + required: + - connectionInfo type: object target: properties: - mariadb: + connectionInfo: properties: - connectionInfo: + appBinding: properties: - appBinding: - properties: - name: - type: string - namespace: - type: string - required: - - name - type: object - dbName: - type: string - maxConnections: - format: int32 - type: integer - tls: - properties: - caFile: - type: string - certFile: - type: string - insecureSkipVerify: - type: boolean - keyFile: - type: string - serverName: - type: string - type: object - url: - type: string - type: object - required: - - connectionInfo - type: object - mongodb: - properties: - connectionInfo: - properties: - appBinding: - properties: - name: - type: string - namespace: - type: string - required: - - name - type: object - dbName: + name: type: string - maxConnections: - format: int32 - type: integer - tls: - properties: - caFile: - type: string - certFile: - type: string - insecureSkipVerify: - type: boolean - keyFile: - type: string - serverName: - type: string - type: object - url: + namespace: type: string + required: + - name type: object - required: - - connectionInfo - type: object - mysql: - properties: - connectionInfo: + dbName: + type: string + maxConnections: + format: int32 + type: integer + tls: properties: - appBinding: - properties: - name: - type: string - namespace: - type: string - required: - - name - type: object - dbName: + caFile: type: string - maxConnections: - format: int32 - type: integer - tls: - properties: - caFile: - type: string - certFile: - type: string - insecureSkipVerify: - type: boolean - keyFile: - type: string - serverName: - type: string - type: object - url: + certFile: type: string - type: object - required: - - connectionInfo - type: object - postgres: - properties: - connectionInfo: - properties: - appBinding: - properties: - name: - type: string - namespace: - type: string - required: - - name - type: object - dbName: + insecureSkipVerify: + type: boolean + keyFile: type: string - maxConnections: - format: int32 - type: integer - tls: - properties: - caFile: - type: string - certFile: - type: string - insecureSkipVerify: - type: boolean - keyFile: - type: string - serverName: - type: string - type: object - url: + serverName: type: string type: object - required: - - connectionInfo + url: + type: string type: object + required: + - connectionInfo type: object required: - source diff --git a/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_hanadbs.yaml b/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_hanadbs.yaml index 4c4063e09..46c3991cf 100644 --- a/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_hanadbs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_hanadbs.yaml @@ -123,6 +123,8 @@ spec: - WipeOut - DoNotTerminate type: string + enforceVolumePermission: + type: boolean healthChecker: default: failureThreshold: 3 diff --git a/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_neo4js.yaml b/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_neo4js.yaml index 1ffed3018..3b8646f81 100644 --- a/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_neo4js.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_neo4js.yaml @@ -4922,6 +4922,15 @@ spec: type: string tls: properties: + backup: + properties: + mode: + enum: + - Disabled + - TLS + - mTLS + type: string + type: object bolt: properties: mode: diff --git a/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_postgreses.yaml b/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_postgreses.yaml index 710d458d6..c12b5af9d 100644 --- a/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_postgreses.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_postgreses.yaml @@ -5412,6 +5412,32 @@ spec: - Synchronous - Asynchronous type: string + synchronousReplicationConfig: + properties: + commitLevel: + enum: + - "On" + - RemoteApply + - RemoteWrite + - Local + - "Off" + type: string + mode: + enum: + - Any + - First + type: string + numSyncReplicas: + format: int32 + type: integer + standbyNames: + items: + type: string + type: array + x-kubernetes-list-type: atomic + useWildcard: + type: boolean + type: object tls: properties: certificates: diff --git a/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_weaviates.yaml b/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_weaviates.yaml index 99a168826..3682ef7ce 100644 --- a/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_weaviates.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/gitops.kubedb.com_weaviates.yaml @@ -1180,6 +1180,333 @@ spec: waitForInitialRestore: type: boolean 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 + fileKeyRef: + properties: + key: + type: string + optional: + default: false + type: boolean + path: + type: string + volumeName: + type: string + required: + - key + - path + - volumeName + 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 + request: + 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: + endpoints: + items: + properties: + metricRelabelings: + items: + properties: + action: + default: replace + enum: + - replace + - Replace + - keep + - Keep + - drop + - Drop + - hashmod + - HashMod + - labelmap + - LabelMap + - labeldrop + - LabelDrop + - labelkeep + - LabelKeep + - lowercase + - Lowercase + - uppercase + - Uppercase + - keepequal + - KeepEqual + - dropequal + - DropEqual + type: string + modulus: + format: int64 + type: integer + regex: + type: string + replacement: + type: string + separator: + type: string + sourceLabels: + items: + type: string + type: array + targetLabel: + type: string + type: object + type: array + port: + type: string + relabelings: + items: + properties: + action: + default: replace + enum: + - replace + - Replace + - keep + - Keep + - drop + - Drop + - hashmod + - HashMod + - labelmap + - LabelMap + - labeldrop + - LabelDrop + - labelkeep + - LabelKeep + - lowercase + - Lowercase + - uppercase + - Uppercase + - keepequal + - KeepEqual + - dropequal + - DropEqual + type: string + modulus: + format: int64 + type: integer + regex: + type: string + replacement: + type: string + separator: + type: string + sourceLabels: + items: + type: string + type: array + targetLabel: + type: string + type: object + type: array + type: object + type: array + interval: + type: string + labels: + additionalProperties: + type: string + type: object + podTargetLabels: + items: + type: string + type: array + targetLabels: + items: + type: string + type: array + type: object + type: object + type: object podTemplate: properties: controller: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_hanadbs.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_hanadbs.yaml index b6d194621..ad96fb330 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_hanadbs.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_hanadbs.yaml @@ -145,6 +145,8 @@ spec: - WipeOut - DoNotTerminate type: string + enforceVolumePermission: + type: boolean healthChecker: default: failureThreshold: 3 diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_neo4js.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_neo4js.yaml index 75a5931e0..3bb59f0e9 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_neo4js.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_neo4js.yaml @@ -4939,6 +4939,15 @@ spec: type: string tls: properties: + backup: + properties: + mode: + enum: + - Disabled + - TLS + - mTLS + type: string + type: object bolt: properties: mode: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml index d5b63e5df..f2ce89e7a 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml @@ -5434,6 +5434,32 @@ spec: - Synchronous - Asynchronous type: string + synchronousReplicationConfig: + properties: + commitLevel: + enum: + - "On" + - RemoteApply + - RemoteWrite + - Local + - "Off" + type: string + mode: + enum: + - Any + - First + type: string + numSyncReplicas: + format: int32 + type: integer + standbyNames: + items: + type: string + type: array + x-kubernetes-list-type: atomic + useWildcard: + type: boolean + type: object tls: properties: certificates: diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_weaviates.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_weaviates.yaml index ae12b3bcb..51c12dfc0 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_weaviates.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_weaviates.yaml @@ -1201,6 +1201,333 @@ spec: waitForInitialRestore: type: boolean 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 + fileKeyRef: + properties: + key: + type: string + optional: + default: false + type: boolean + path: + type: string + volumeName: + type: string + required: + - key + - path + - volumeName + 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 + request: + 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: + endpoints: + items: + properties: + metricRelabelings: + items: + properties: + action: + default: replace + enum: + - replace + - Replace + - keep + - Keep + - drop + - Drop + - hashmod + - HashMod + - labelmap + - LabelMap + - labeldrop + - LabelDrop + - labelkeep + - LabelKeep + - lowercase + - Lowercase + - uppercase + - Uppercase + - keepequal + - KeepEqual + - dropequal + - DropEqual + type: string + modulus: + format: int64 + type: integer + regex: + type: string + replacement: + type: string + separator: + type: string + sourceLabels: + items: + type: string + type: array + targetLabel: + type: string + type: object + type: array + port: + type: string + relabelings: + items: + properties: + action: + default: replace + enum: + - replace + - Replace + - keep + - Keep + - drop + - Drop + - hashmod + - HashMod + - labelmap + - LabelMap + - labeldrop + - LabelDrop + - labelkeep + - LabelKeep + - lowercase + - Lowercase + - uppercase + - Uppercase + - keepequal + - KeepEqual + - dropequal + - DropEqual + type: string + modulus: + format: int64 + type: integer + regex: + type: string + replacement: + type: string + separator: + type: string + sourceLabels: + items: + type: string + type: array + targetLabel: + type: string + type: object + type: array + type: object + type: array + interval: + type: string + labels: + additionalProperties: + type: string + type: object + podTargetLabels: + items: + type: string + type: array + targetLabels: + items: + type: string + type: array + type: object + type: object + type: object podTemplate: properties: controller: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_aerospikeopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_aerospikeopsrequests.yaml index 2446f146a..c1a89867d 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_aerospikeopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_aerospikeopsrequests.yaml @@ -154,6 +154,12 @@ spec: type: object type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string type: object required: - databaseRef diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_cassandraopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_cassandraopsrequests.yaml index 8dc13f6a3..5d1b7ad70 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_cassandraopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_cassandraopsrequests.yaml @@ -267,6 +267,12 @@ spec: type: object verticalScaling: properties: + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: 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 672029013..94d17ff38 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_clickhouseopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_clickhouseopsrequests.yaml @@ -101,6 +101,9 @@ spec: replicas: format: int32 type: integer + shards: + format: int32 + type: integer type: object maxRetries: default: 1 @@ -271,6 +274,12 @@ spec: type: object verticalScaling: properties: + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_db2opsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_db2opsrequests.yaml index 8a5d3e1f5..7ee39804c 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_db2opsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_db2opsrequests.yaml @@ -154,6 +154,12 @@ spec: type: object type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string type: object required: - databaseRef diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_documentdbopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_documentdbopsrequests.yaml index 3f985bc3b..c3bf5ec69 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_documentdbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_documentdbopsrequests.yaml @@ -697,6 +697,12 @@ spec: type: object type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string readReplicas: items: properties: 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 ef170afa0..a06924c1b 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_druidopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_druidopsrequests.yaml @@ -453,6 +453,12 @@ spec: - value type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string overlords: properties: nodeSelectionPolicy: 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 4a3bc47a5..f9b51d753 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_elasticsearchopsrequests.yaml @@ -906,6 +906,12 @@ spec: - value type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_hanadbopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_hanadbopsrequests.yaml index 8b6bc84db..437700a0f 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_hanadbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_hanadbopsrequests.yaml @@ -350,6 +350,12 @@ spec: - value type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string type: object volumeExpansion: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_hazelcastopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_hazelcastopsrequests.yaml index 2fc75ef79..c3cd1eae0 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_hazelcastopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_hazelcastopsrequests.yaml @@ -291,6 +291,12 @@ spec: - value type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string type: object volumeExpansion: properties: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_igniteopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_igniteopsrequests.yaml index 0d820228f..e3dff00d0 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_igniteopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_igniteopsrequests.yaml @@ -243,6 +243,12 @@ spec: type: object verticalScaling: properties: + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: 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 7a7886153..5d29738d6 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_kafkaopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_kafkaopsrequests.yaml @@ -369,6 +369,12 @@ spec: - value type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: 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 9a8af9336..8d2d35c85 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mariadbopsrequests.yaml @@ -420,6 +420,12 @@ spec: - value type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string type: object volumeExpansion: 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 d6f714627..ee6ee9fdb 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_memcachedopsrequests.yaml @@ -319,6 +319,12 @@ spec: - value type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string readinessCriteria: type: object type: object diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_milvusopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_milvusopsrequests.yaml index 738b1c8f9..6ff084447 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_milvusopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_milvusopsrequests.yaml @@ -372,6 +372,12 @@ spec: - value type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: 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 f27355d27..b7ccbaeda 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mongodbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mongodbopsrequests.yaml @@ -713,6 +713,12 @@ spec: - value type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string mongos: properties: nodeSelectionPolicy: 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 38568ebf4..512b2443f 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mssqlserveropsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mssqlserveropsrequests.yaml @@ -365,6 +365,12 @@ spec: type: object type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string mssqlserver: properties: nodeSelectionPolicy: 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 3601e752a..353605741 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_mysqlopsrequests.yaml @@ -431,6 +431,12 @@ spec: type: object type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string mysql: properties: nodeSelectionPolicy: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_neo4jopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_neo4jopsrequests.yaml index d1db56719..3c519eb26 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_neo4jopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_neo4jopsrequests.yaml @@ -141,6 +141,15 @@ spec: type: string tls: properties: + backup: + properties: + mode: + enum: + - Disabled + - TLS + - mTLS + type: string + type: object bolt: properties: mode: @@ -314,6 +323,12 @@ spec: type: object verticalScaling: properties: + mode: + default: Restart + enum: + - Restart + - InPlace + type: string server: properties: nodeSelectionPolicy: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_oracleopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_oracleopsrequests.yaml index 5307ec835..9271ec16d 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_oracleopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_oracleopsrequests.yaml @@ -116,10 +116,116 @@ 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: - Restart - Reconfigure + - ReconfigureTLS - StorageMigration - VerticalScaling - VolumeExpansion @@ -127,6 +233,12 @@ spec: type: string verticalScaling: properties: + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: 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 1acc46b25..bafabd42d 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_perconaxtradbopsrequests.yaml @@ -320,6 +320,12 @@ spec: type: object type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string perconaxtradb: properties: nodeSelectionPolicy: 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 77f963cf8..43c5c2bf9 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgbounceropsrequests.yaml @@ -282,6 +282,12 @@ spec: type: object type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string pgbouncer: properties: nodeSelectionPolicy: 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 e988ba516..1e02f4d37 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgpoolopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_pgpoolopsrequests.yaml @@ -273,6 +273,12 @@ spec: type: object verticalScaling: properties: + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: 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 a31accde5..3e1d63e71 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_postgresopsrequests.yaml @@ -512,6 +512,8 @@ spec: type: boolean rotateCertificates: type: boolean + rotateGrpcCertificates: + type: boolean sslMode: enum: - disable @@ -664,6 +666,12 @@ spec: type: object type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string postgres: properties: nodeSelectionPolicy: 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 76ddfa9db..5bb940312 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_proxysqlopsrequests.yaml @@ -276,6 +276,12 @@ spec: type: object verticalScaling: properties: + mode: + default: Restart + enum: + - Restart + - InPlace + type: string proxysql: properties: nodeSelectionPolicy: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_qdrantopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_qdrantopsrequests.yaml index 220475201..377bbf9c1 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_qdrantopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_qdrantopsrequests.yaml @@ -247,6 +247,12 @@ spec: type: object verticalScaling: properties: + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: 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 8b3dbd6ee..8c2dcfab7 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_rabbitmqopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_rabbitmqopsrequests.yaml @@ -243,6 +243,12 @@ spec: type: object verticalScaling: properties: + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: 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 7f666f942..8e176da03 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redisopsrequests.yaml @@ -404,6 +404,12 @@ spec: type: object type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string redis: properties: nodeSelectionPolicy: 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 c92a14ba0..88e4b1ed4 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_redissentinelopsrequests.yaml @@ -263,6 +263,12 @@ spec: type: object type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string redissentinel: properties: nodeSelectionPolicy: 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 4704bb210..1f1a94384 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_singlestoreopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_singlestoreopsrequests.yaml @@ -448,6 +448,12 @@ spec: - value type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: 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 04f75ee95..a33647d43 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_solropsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_solropsrequests.yaml @@ -378,6 +378,12 @@ spec: - value type: object type: object + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: diff --git a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_weaviateopsrequests.yaml b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_weaviateopsrequests.yaml index de6ae750a..dd1251d88 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_weaviateopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_weaviateopsrequests.yaml @@ -246,6 +246,12 @@ spec: type: string verticalScaling: properties: + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: 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 5ea19994a..c88436f8e 100644 --- a/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_zookeeperopsrequests.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/ops.kubedb.com_zookeeperopsrequests.yaml @@ -233,6 +233,12 @@ spec: type: object verticalScaling: properties: + mode: + default: Restart + enum: + - Restart + - InPlace + type: string node: properties: nodeSelectionPolicy: diff --git a/vendor/kubedb.dev/db-client-go/elasticsearch/es_client_v5.go b/vendor/kubedb.dev/db-client-go/elasticsearch/es_client_v5.go index 36a851fb2..fe2e3b827 100644 --- a/vendor/kubedb.dev/db-client-go/elasticsearch/es_client_v5.go +++ b/vendor/kubedb.dev/db-client-go/elasticsearch/es_client_v5.go @@ -289,7 +289,8 @@ func (es *ESClientV5) CountNodes() (int64, error) { } func (es *ESClientV5) AddVotingConfigExclusions(nodes []string) error { - url := fmt.Sprintf("/_cluster/voting_config_exclusions/%s?timeout=120s", + url := fmt.Sprintf( + "/_cluster/voting_config_exclusions/%s?timeout=120s", strings.Join(nodes, ","), ) diff --git a/vendor/kubedb.dev/db-client-go/elasticsearch/es_client_v6.go b/vendor/kubedb.dev/db-client-go/elasticsearch/es_client_v6.go index e1a194807..f3d8aa30f 100644 --- a/vendor/kubedb.dev/db-client-go/elasticsearch/es_client_v6.go +++ b/vendor/kubedb.dev/db-client-go/elasticsearch/es_client_v6.go @@ -433,7 +433,8 @@ func (es *ESClientV6) CountNodes() (int64, error) { } func (es *ESClientV6) AddVotingConfigExclusions(nodes []string) error { - url := fmt.Sprintf("/_cluster/voting_config_exclusions/%s?timeout=120s", + url := fmt.Sprintf( + "/_cluster/voting_config_exclusions/%s?timeout=120s", strings.Join(nodes, ","), ) diff --git a/vendor/kubeops.dev/petset/apis/apps/v1/constants.go b/vendor/kubeops.dev/petset/apis/apps/v1/constants.go index d4be6b247..a11c5c9a0 100644 --- a/vendor/kubeops.dev/petset/apis/apps/v1/constants.go +++ b/vendor/kubeops.dev/petset/apis/apps/v1/constants.go @@ -23,4 +23,9 @@ const ( RolePVC = "pvc" DeletionPolicyAnnotation = GroupName + "/deletion-policy" DeletionPolicyOrphan = "Orphan" + // PetSetNameLabel identifies the PetSet that owns a ManifestWork. Ownership must + // not be resolved by selector alone: two PetSets of the same application (for + // example a data set and its arbiter) can have subset-overlapping selectors, and + // label-subset matching then attributes each other's ManifestWorks to both. + PetSetNameLabel = GroupName + "/petset-name" ) diff --git a/vendor/kubeops.dev/petset/apis/apps/v1/placementpolicy_helpers.go b/vendor/kubeops.dev/petset/apis/apps/v1/placementpolicy_helpers.go new file mode 100644 index 000000000..eea893d6c --- /dev/null +++ b/vendor/kubeops.dev/petset/apis/apps/v1/placementpolicy_helpers.go @@ -0,0 +1,84 @@ +/* +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 v1 + +import "fmt" + +// Validate checks the DC/DR failover configuration of a ClusterSpreadConstraint. +// It is safe to call when FailoverPolicy is nil (returns nil). Wire it from the +// PlacementPolicy validating webhook. +func (c *ClusterSpreadConstraint) Validate() error { + if c == nil || c.FailoverPolicy == nil { + return nil + } + members, arbiters, witnesses := 0, 0, 0 + for i := range c.DistributionRules { + r := &c.DistributionRules[i] + switch r.Role { + case "", DCRoleMember: + members++ + if len(r.ReplicaIndices) == 0 { + return fmt.Errorf("distributionRule for cluster %q has role Member but no replicaIndices", r.ClusterName) + } + case DCRoleArbiter: + arbiters++ + if len(r.ReplicaIndices) != 0 { + return fmt.Errorf("distributionRule for cluster %q has role Arbiter but carries replicaIndices (an arbiter holds no data)", r.ClusterName) + } + case DCRoleWitness: + witnesses++ + if len(r.ReplicaIndices) == 0 { + return fmt.Errorf("distributionRule for cluster %q has role Witness but no replicaIndices (a witness is data bearing)", r.ClusterName) + } + default: + return fmt.Errorf("distributionRule for cluster %q has unknown role %q", r.ClusterName, r.Role) + } + } + if members < 2 { + return fmt.Errorf("DC/DR requires at least two Member data centers, found %d", members) + } + + fp := c.FailoverPolicy + switch fp.Trigger.Scope { + case FailoverScopeGlobal: + if fp.Trigger.Group != "" { + return fmt.Errorf("trigger.group must be empty when scope is Global") + } + case FailoverScopeGroup: + if fp.Trigger.Group == "" { + return fmt.Errorf("trigger.group is required when scope is Group") + } + default: + return fmt.Errorf("trigger.scope must be Global or Group, got %q", fp.Trigger.Scope) + } + + switch fp.Mode { + case "": + // derived, nothing to check + case FailoverModeTwoDC: + if members != 2 || (arbiters+witnesses) < 1 { + return fmt.Errorf("mode TwoDC requires exactly two Members and at least one Arbiter or Witness, found members=%d arbiters=%d witnesses=%d", members, arbiters, witnesses) + } + case FailoverModeThreeDC: + if members < 3 { + return fmt.Errorf("mode ThreeDC requires at least three Members, found %d", members) + } + default: + return fmt.Errorf("mode must be TwoDC or ThreeDC, got %q", fp.Mode) + } + return nil +} diff --git a/vendor/kubeops.dev/petset/apis/apps/v1/placementpolicy_types.go b/vendor/kubeops.dev/petset/apis/apps/v1/placementpolicy_types.go index c495d4481..93ea1043c 100644 --- a/vendor/kubeops.dev/petset/apis/apps/v1/placementpolicy_types.go +++ b/vendor/kubeops.dev/petset/apis/apps/v1/placementpolicy_types.go @@ -84,6 +84,12 @@ So, the project field is not required in the placementPolicy API . But if want t type ClusterSpreadConstraint struct { DistributionRules []DistributionRule `json:"distributionRules"` Slice KubeSliceConfig `json:"slice"` + + // FailoverPolicy, when set, marks this as a cross data center (DC/DR) deployment + // and selects how the common DC failover service drives failover for it. + // When nil, the placement is not managed for DC/DR. + // +optional + FailoverPolicy *FailoverPolicy `json:"failoverPolicy,omitempty"` } type DistributionRule struct { @@ -91,6 +97,74 @@ type DistributionRule struct { ReplicaIndices []int32 `json:"replicaIndices"` StorageClassName string `json:"storageClassName,omitempty"` Monitoring *Monitoring `json:"monitoring,omitempty"` + + // Role describes how this data center participates in DC/DR failover. + // Member: data bearing and primary eligible (a candidate for the primary DC). + // Arbiter: votes only, holds no data, never primary. + // Witness: data bearing but never primary (for engines like MongoDB whose + // witness must carry data to satisfy majority writes, yet must not be elected). + // Defaults to Member when empty. + // +kubebuilder:validation:Enum=Member;Arbiter;Witness + // +optional + Role DCRole `json:"role,omitempty"` +} + +// DCRole is the role a data center plays in DC/DR failover. +type DCRole string + +const ( + // DCRoleMember is data bearing and primary eligible. + DCRoleMember DCRole = "Member" + // DCRoleArbiter votes only, holds no data, and is never primary. + DCRoleArbiter DCRole = "Arbiter" + // DCRoleWitness is data bearing but never primary. + DCRoleWitness DCRole = "Witness" +) + +// FailoverMode is the data center topology of a DC/DR deployment. +type FailoverMode string + +const ( + // FailoverModeTwoDC is two Members plus one Arbiter or Witness. + FailoverModeTwoDC FailoverMode = "TwoDC" + // FailoverModeThreeDC is three Members, all primary eligible. + FailoverModeThreeDC FailoverMode = "ThreeDC" +) + +// FailoverScope selects which primary DC Lease a workload follows. +type FailoverScope string + +const ( + // FailoverScopeGlobal follows the single global primary-dc Lease, so all + // globally scoped workloads fail over together. + FailoverScopeGlobal FailoverScope = "Global" + // FailoverScopeGroup follows a per group primary-dc- Lease, so the + // group fails over independently of other groups. + FailoverScopeGroup FailoverScope = "Group" +) + +// FailoverPolicy selects the mode and the failover trigger granularity. +type FailoverPolicy struct { + // Mode is the DC topology. It can be derived from the per rule roles + // (two Members plus an Arbiter or Witness is TwoDC, three Members is ThreeDC); + // when set it is validated against the roles. + // +kubebuilder:validation:Enum=TwoDC;ThreeDC + // +optional + Mode FailoverMode `json:"mode,omitempty"` + + // Trigger selects which primary DC Lease this workload follows. + Trigger FailoverTrigger `json:"trigger"` +} + +// FailoverTrigger picks the Lease scope that drives this workload's failover. +type FailoverTrigger struct { + // Scope is Global or Group. + // +kubebuilder:validation:Enum=Global;Group + Scope FailoverScope `json:"scope"` + + // Group is required when Scope is Group; it names the primary-dc- Lease. + // +optional + Group string `json:"group,omitempty"` } type Monitoring struct { diff --git a/vendor/kubeops.dev/petset/apis/apps/v1/zz_generated.deepcopy.go b/vendor/kubeops.dev/petset/apis/apps/v1/zz_generated.deepcopy.go index a3156fca4..3f9ad3e8d 100644 --- a/vendor/kubeops.dev/petset/apis/apps/v1/zz_generated.deepcopy.go +++ b/vendor/kubeops.dev/petset/apis/apps/v1/zz_generated.deepcopy.go @@ -63,6 +63,11 @@ func (in *ClusterSpreadConstraint) DeepCopyInto(out *ClusterSpreadConstraint) { } } out.Slice = in.Slice + if in.FailoverPolicy != nil { + in, out := &in.FailoverPolicy, &out.FailoverPolicy + *out = new(FailoverPolicy) + **out = **in + } return } @@ -102,6 +107,39 @@ func (in *DistributionRule) DeepCopy() *DistributionRule { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FailoverPolicy) DeepCopyInto(out *FailoverPolicy) { + *out = *in + out.Trigger = in.Trigger + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailoverPolicy. +func (in *FailoverPolicy) DeepCopy() *FailoverPolicy { + if in == nil { + return nil + } + out := new(FailoverPolicy) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FailoverTrigger) DeepCopyInto(out *FailoverTrigger) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailoverTrigger. +func (in *FailoverTrigger) DeepCopy() *FailoverTrigger { + if in == nil { + return nil + } + out := new(FailoverTrigger) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *KubeSliceConfig) DeepCopyInto(out *KubeSliceConfig) { *out = *in diff --git a/vendor/kubeops.dev/petset/client/listers/apps/v1/petset_expansion.go b/vendor/kubeops.dev/petset/client/listers/apps/v1/petset_expansion.go index db1b2ac0d..24c314c24 100644 --- a/vendor/kubeops.dev/petset/client/listers/apps/v1/petset_expansion.go +++ b/vendor/kubeops.dev/petset/client/listers/apps/v1/petset_expansion.go @@ -94,8 +94,17 @@ func (s *petSetLister) GetManifestWorkPetSets(mw *apiworkv1.ManifestWork) ([]*ap return nil, err } + // Selector matching is subset matching, so two PetSets of one application with + // overlapping selectors (a data set and its arbiter) both match each other's + // ManifestWorks. The owner stamp written at ManifestWork creation resolves the + // owner exactly; unlabeled (pre-upgrade) ManifestWorks keep selector matching. + owner := mw.Labels[api.PetSetNameLabel] + var psList []*api.PetSet for _, ps := range list { + if owner != "" && ps.Name != owner { + continue + } selector, err := metav1.LabelSelectorAsSelector(ps.Spec.Selector) if err != nil { klog.Warningf("PetSet %s/%s has an invalid selector: %v", ps.Namespace, ps.Name, err) diff --git a/vendor/kubeops.dev/petset/crds/apps.k8s.appscode.com_placementpolicies.yaml b/vendor/kubeops.dev/petset/crds/apps.k8s.appscode.com_placementpolicies.yaml index 95b4a61cc..3d8cabb91 100644 --- a/vendor/kubeops.dev/petset/crds/apps.k8s.appscode.com_placementpolicies.yaml +++ b/vendor/kubeops.dev/petset/crds/apps.k8s.appscode.com_placementpolicies.yaml @@ -184,6 +184,19 @@ spec: format: int32 type: integer type: array + role: + description: |- + Role describes how this data center participates in DC/DR failover. + Member: data bearing and primary eligible (a candidate for the primary DC). + Arbiter: votes only, holds no data, never primary. + Witness: data bearing but never primary (for engines like MongoDB whose + witness must carry data to satisfy majority writes, yet must not be elected). + Defaults to Member when empty. + enum: + - Member + - Arbiter + - Witness + type: string storageClassName: type: string required: @@ -191,6 +204,41 @@ spec: - replicaIndices type: object type: array + failoverPolicy: + description: |- + FailoverPolicy, when set, marks this as a cross data center (DC/DR) deployment + and selects how the common DC failover service drives failover for it. + When nil, the placement is not managed for DC/DR. + properties: + mode: + description: |- + Mode is the DC topology. It can be derived from the per rule roles + (two Members plus an Arbiter or Witness is TwoDC, three Members is ThreeDC); + when set it is validated against the roles. + enum: + - TwoDC + - ThreeDC + type: string + trigger: + description: Trigger selects which primary DC Lease this workload + follows. + properties: + group: + description: Group is required when Scope is Group; it + names the primary-dc- Lease. + type: string + scope: + description: Scope is Global or Group. + enum: + - Global + - Group + type: string + required: + - scope + type: object + required: + - trigger + type: object slice: properties: projectNamespace: diff --git a/vendor/kubeops.dev/sidekick/apis/apps/v1alpha1/sidekick_types.go b/vendor/kubeops.dev/sidekick/apis/apps/v1alpha1/sidekick_types.go index cfcad6c05..28de75588 100644 --- a/vendor/kubeops.dev/sidekick/apis/apps/v1alpha1/sidekick_types.go +++ b/vendor/kubeops.dev/sidekick/apis/apps/v1alpha1/sidekick_types.go @@ -40,7 +40,7 @@ const ( PodSelectionPolicyLast LeaderSelectionPolicy = "Last" ) -// +kubebuilder:validation:Enum=Pending;Current;Failed;Succeeded +// +kubebuilder:validation:Enum=Pending;Current;Failed;Succeeded;Degraded type SideKickPhase string const ( @@ -48,6 +48,9 @@ const ( SideKickPhaseFailed SideKickPhase = "Failed" SidekickPhaseSucceeded SideKickPhase = "Succeeded" SideKickPhasePending SideKickPhase = "Pending" + // SideKickPhaseDegraded means the sidekick pod is expected to run but is + // currently missing, pending, failed (retryable) or has non-running containers. + SideKickPhaseDegraded SideKickPhase = "Degraded" ) type LeaderSpec struct { diff --git a/vendor/kubeops.dev/sidekick/crds/apps.k8s.appscode.com_sidekicks.yaml b/vendor/kubeops.dev/sidekick/crds/apps.k8s.appscode.com_sidekicks.yaml index 07eea674a..95c8726f3 100644 --- a/vendor/kubeops.dev/sidekick/crds/apps.k8s.appscode.com_sidekicks.yaml +++ b/vendor/kubeops.dev/sidekick/crds/apps.k8s.appscode.com_sidekicks.yaml @@ -8098,6 +8098,7 @@ spec: - Current - Failed - Succeeded + - Degraded type: string pod: description: PodPhase is a label for the condition of a pod at the diff --git a/vendor/kubestash.dev/apimachinery/apis/core/v1alpha1/zz_generated.deepcopy.go b/vendor/kubestash.dev/apimachinery/apis/core/v1alpha1/zz_generated.deepcopy.go index 20c4ab02e..a5328e56a 100644 --- a/vendor/kubestash.dev/apimachinery/apis/core/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kubestash.dev/apimachinery/apis/core/v1alpha1/zz_generated.deepcopy.go @@ -21,15 +21,14 @@ limitations under the License. package v1alpha1 import ( - "kubestash.dev/apimachinery/apis" - batchv1 "k8s.io/api/batch/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - v1 "kmodules.xyz/client-go/api/v1" + "kmodules.xyz/client-go/api/v1" apiv1 "kmodules.xyz/offshoot-api/api/v1" proberapiv1 "kmodules.xyz/prober/api/v1" + "kubestash.dev/apimachinery/apis" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/backupstorage_helpers.go b/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/backupstorage_helpers.go index 5e28dbb16..f7e7f1fa4 100644 --- a/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/backupstorage_helpers.go +++ b/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/backupstorage_helpers.go @@ -93,6 +93,17 @@ func (b *BackupStorage) LocalNetworkVolume() bool { return false } +// LocalBackendPVC returns true if the local backend is backed by a PersistentVolumeClaim. +// Like network volumes, a PVC can be mounted by the backend accessor deployment, +// so snapshot download and repository maintenance commands can be served through it. +func (b *BackupStorage) LocalBackendPVC() bool { + if b.Spec.Storage.Provider == ProviderLocal && + b.Spec.Storage.Local.PersistentVolumeClaim != nil { + return true + } + return false +} + func (b *BackupStorage) IsCredentialLessModeEnabled() bool { switch b.Spec.Storage.Provider { case ProviderS3: diff --git a/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/snapshot_types.go b/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/snapshot_types.go index 71fe20c48..b684da672 100644 --- a/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/snapshot_types.go +++ b/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/snapshot_types.go @@ -228,12 +228,12 @@ type Neo4jStats struct { Database string `json:"database,omitempty"` DatabaseID string `json:"databaseID,omitempty"` Time string `json:"time,omitempty"` - Full bool `json:"full,omitempty"` - Compressed bool `json:"compressed,omitempty"` + Full *bool `json:"full,omitempty"` + Compressed *bool `json:"compressed,omitempty"` LowestTX int64 `json:"lowestTX,omitempty"` HighestTX int64 `json:"highestTX,omitempty"` StoreIDHash string `json:"storeIDHash,omitempty"` - Recovered bool `json:"recovered,omitempty"` + Recovered *bool `json:"recovered,omitempty"` } type LogStats struct { diff --git a/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/zz_generated.deepcopy.go b/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/zz_generated.deepcopy.go index 0cb70801a..9bb57e5a2 100644 --- a/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kubestash.dev/apimachinery/apis/storage/v1alpha1/zz_generated.deepcopy.go @@ -21,10 +21,9 @@ limitations under the License. package v1alpha1 import ( - "kubestash.dev/apimachinery/apis" - runtime "k8s.io/apimachinery/pkg/runtime" - v1 "kmodules.xyz/client-go/api/v1" + "kmodules.xyz/client-go/api/v1" + "kubestash.dev/apimachinery/apis" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -274,6 +273,13 @@ func (in *Component) DeepCopyInto(out *Component) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.Neo4jStats != nil { + in, out := &in.Neo4jStats, &out.Neo4jStats + *out = make([]Neo4jStats, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Component. @@ -468,6 +474,36 @@ func (in *MedusaStats) DeepCopy() *MedusaStats { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Neo4jStats) DeepCopyInto(out *Neo4jStats) { + *out = *in + if in.Full != nil { + in, out := &in.Full, &out.Full + *out = new(bool) + **out = **in + } + if in.Compressed != nil { + in, out := &in.Compressed, &out.Compressed + *out = new(bool) + **out = **in + } + if in.Recovered != nil { + in, out := &in.Recovered, &out.Recovered + *out = new(bool) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Neo4jStats. +func (in *Neo4jStats) DeepCopy() *Neo4jStats { + if in == nil { + return nil + } + out := new(Neo4jStats) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Repository) DeepCopyInto(out *Repository) { *out = *in diff --git a/vendor/kubestash.dev/apimachinery/apis/zz_generated.deepcopy.go b/vendor/kubestash.dev/apimachinery/apis/zz_generated.deepcopy.go index dbeef264a..40d4e3503 100644 --- a/vendor/kubestash.dev/apimachinery/apis/zz_generated.deepcopy.go +++ b/vendor/kubestash.dev/apimachinery/apis/zz_generated.deepcopy.go @@ -22,7 +22,7 @@ package apis import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - v1 "kmodules.xyz/offshoot-api/api/v1" + "kmodules.xyz/offshoot-api/api/v1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/vendor/modules.txt b/vendor/modules.txt index 73b5b8ee8..f5283e4fc 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1774,8 +1774,8 @@ github.com/munnerz/goautoneg # github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f ## explicit github.com/mxk/go-flowrate/flowrate -# github.com/onsi/gomega v1.36.2 -## explicit; go 1.22.0 +# github.com/onsi/gomega v1.39.0 +## explicit; go 1.23.0 github.com/onsi/gomega github.com/onsi/gomega/format github.com/onsi/gomega/internal @@ -2694,7 +2694,7 @@ kmodules.xyz/resource-metrics/kubedb.com/v1 kmodules.xyz/resource-metrics/kubedb.com/v1alpha2 kmodules.xyz/resource-metrics/kubevault.com/v1alpha2 kmodules.xyz/resource-metrics/ops.kubedb.com/v1alpha1 -# kubedb.dev/apimachinery v0.65.0 +# kubedb.dev/apimachinery v0.66.0 ## explicit; go 1.25.0 kubedb.dev/apimachinery/apis kubedb.dev/apimachinery/apis/archiver/v1alpha1 @@ -2704,6 +2704,8 @@ kubedb.dev/apimachinery/apis/catalog kubedb.dev/apimachinery/apis/catalog/v1alpha1 kubedb.dev/apimachinery/apis/config kubedb.dev/apimachinery/apis/config/v1alpha1 +kubedb.dev/apimachinery/apis/courier +kubedb.dev/apimachinery/apis/courier/v1alpha1 kubedb.dev/apimachinery/apis/elasticsearch/v1alpha1 kubedb.dev/apimachinery/apis/gitops/v1alpha1 kubedb.dev/apimachinery/apis/kafka @@ -2712,8 +2714,6 @@ kubedb.dev/apimachinery/apis/kubedb kubedb.dev/apimachinery/apis/kubedb/v1 kubedb.dev/apimachinery/apis/kubedb/v1alpha1 kubedb.dev/apimachinery/apis/kubedb/v1alpha2 -kubedb.dev/apimachinery/apis/migrator -kubedb.dev/apimachinery/apis/migrator/v1alpha1 kubedb.dev/apimachinery/apis/ops kubedb.dev/apimachinery/apis/ops/v1alpha1 kubedb.dev/apimachinery/apis/postgres @@ -2727,6 +2727,7 @@ kubedb.dev/apimachinery/client/clientset/versioned/typed/archiver/v1alpha1 kubedb.dev/apimachinery/client/clientset/versioned/typed/autoscaling/v1alpha1 kubedb.dev/apimachinery/client/clientset/versioned/typed/catalog/v1alpha1 kubedb.dev/apimachinery/client/clientset/versioned/typed/config/v1alpha1 +kubedb.dev/apimachinery/client/clientset/versioned/typed/courier/v1alpha1 kubedb.dev/apimachinery/client/clientset/versioned/typed/elasticsearch/v1alpha1 kubedb.dev/apimachinery/client/clientset/versioned/typed/gitops/v1alpha1 kubedb.dev/apimachinery/client/clientset/versioned/typed/kafka/v1alpha1 @@ -2734,7 +2735,6 @@ kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1 kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1/util kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1alpha1 kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1alpha2 -kubedb.dev/apimachinery/client/clientset/versioned/typed/migrator/v1alpha1 kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1 kubedb.dev/apimachinery/client/clientset/versioned/typed/postgres/v1alpha1 kubedb.dev/apimachinery/client/clientset/versioned/typed/schema/v1alpha1 @@ -2745,7 +2745,7 @@ kubedb.dev/apimachinery/pkg/factory kubedb.dev/apimachinery/pkg/secret kubedb.dev/apimachinery/pkg/utils kubedb.dev/apimachinery/pkg/utils/raft -# kubedb.dev/db-client-go v0.20.0 +# kubedb.dev/db-client-go v0.21.0 ## explicit; go 1.25.5 kubedb.dev/db-client-go/elasticsearch kubedb.dev/db-client-go/redis @@ -2758,19 +2758,19 @@ kubeops.dev/csi-driver-cacerts/crds ## explicit; go 1.25 kubeops.dev/operator-shard-manager/api/v1alpha1 kubeops.dev/operator-shard-manager/crds -# kubeops.dev/petset v0.0.17-0.20260418091244-7f666912d240 +# kubeops.dev/petset v0.1.1-0.20260709161836-19b3570c41ab ## explicit; go 1.24.0 kubeops.dev/petset/apis/apps/v1 kubeops.dev/petset/client/clientset/versioned/scheme kubeops.dev/petset/client/clientset/versioned/typed/apps/v1 kubeops.dev/petset/client/listers/apps/v1 kubeops.dev/petset/crds -# kubeops.dev/sidekick v0.0.15-0.20260418091208-a1cb9f4a3553 +# kubeops.dev/sidekick v0.0.16-0.20260711064558-9f0ad344e447 ## explicit; go 1.25.0 kubeops.dev/sidekick/apis/apps kubeops.dev/sidekick/apis/apps/v1alpha1 kubeops.dev/sidekick/crds -# kubestash.dev/apimachinery v0.28.0 +# kubestash.dev/apimachinery v0.29.0 ## explicit; go 1.25.0 kubestash.dev/apimachinery/apis kubestash.dev/apimachinery/apis/core/v1alpha1