From 0c467fe613f7c70daa68406c84dea571f1d1fa9f Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Mon, 4 Dec 2017 12:47:47 -0800 Subject: [PATCH] Update pkg paths to kubedb org (#133) --- .github/ISSUE_TEMPLATE | 4 +- CONTRIBUTING.md | 4 +- README.md | 10 +- cmd/kubedb/main.go | 2 +- docs/README.md | 6 +- docs/concepts/monitoring.md | 2 +- docs/concepts/postgres.md | 4 +- docs/developer-guide/README.md | 18 +- docs/examples/postgres/demo-1.yaml | 2 +- docs/examples/postgres/demo-3.yaml | 2 +- docs/install.md | 10 +- docs/reference/kubedb.md | 2 +- docs/tutorials/postgres/README.md | 14 +- docs/tutorials/rbac.md | 2 +- glide-slow | 2 +- glide.lock | 40 +-- glide.yaml | 16 +- hack/gendocs/main.go | 4 +- hack/gendocs/make.sh | 4 +- hack/make.py | 2 +- hack/release.py | 22 +- pkg/cmds/compare.go | 4 +- pkg/cmds/create.go | 8 +- pkg/cmds/delete.go | 6 +- pkg/cmds/describe.go | 6 +- pkg/cmds/edit.go | 16 +- pkg/cmds/get.go | 6 +- pkg/cmds/init.go | 6 +- pkg/cmds/role.go | 4 +- pkg/cmds/root.go | 2 +- pkg/cmds/summarize.go | 8 +- pkg/decoder/decode.go | 2 +- pkg/describer/describer.go | 8 +- pkg/describer/k8sdb_describer.go | 2 +- pkg/describer/kube_describer.go | 4 +- pkg/printer/resource_printer.go | 8 +- pkg/util/resource.go | 4 +- pkg/validator/validate.go | 18 +- .../cpuguy83/go-md2man/md2man/roff.go | 66 +--- vendor/github.com/golang/glog/glog.go | 5 +- vendor/github.com/google/uuid/hash.go | 2 +- vendor/github.com/google/uuid/node.go | 28 +- vendor/github.com/google/uuid/node_js.go | 12 + vendor/github.com/google/uuid/node_net.go | 33 ++ vendor/github.com/google/uuid/time.go | 6 +- vendor/github.com/google/uuid/uuid.go | 19 +- vendor/github.com/google/uuid/version4.go | 2 +- .../elasticsearch/pkg/validator/validate.go | 43 --- .../k8sdb/postgres/pkg/validator/validate.go | 52 --- .../{k8sdb => kubedb}/apimachinery/LICENSE | 0 .../apimachinery/apis/kubedb/doc.go | 0 .../apis/kubedb/dormant_database_types.go | 0 .../apis/kubedb/elasticsearch_types.go | 0 .../apis/kubedb/memcached_types.go | 0 .../apimachinery/apis/kubedb/mongodb_types.go | 0 .../apimachinery/apis/kubedb/mysql_types.go | 0 .../apis/kubedb/postgres_types.go | 0 .../apimachinery/apis/kubedb/redis_types.go | 0 .../apimachinery/apis/kubedb/register.go | 0 .../apimachinery/apis/kubedb/report.go | 0 .../apis/kubedb/snapshot_types.go | 0 .../apimachinery/apis/kubedb/types.go | 0 .../apis/kubedb/v1alpha1/annotations.go | 0 .../apimachinery/apis/kubedb/v1alpha1/doc.go | 2 +- .../v1alpha1/dormant_database_helpers.go | 0 .../kubedb/v1alpha1/dormant_database_types.go | 0 .../kubedb/v1alpha1/elasticsearch_helpers.go | 0 .../kubedb/v1alpha1/elasticsearch_types.go | 0 .../apis/kubedb/v1alpha1/helpers.go | 0 .../apis/kubedb/v1alpha1/memcached_helpers.go | 0 .../apis/kubedb/v1alpha1/memcached_types.go | 0 .../apis/kubedb/v1alpha1/mongodb_helpers.go | 0 .../apis/kubedb/v1alpha1/mongodb_types.go | 0 .../apis/kubedb/v1alpha1/mysql_helpers.go | 0 .../apis/kubedb/v1alpha1/mysql_types.go | 0 .../apis/kubedb/v1alpha1/openapi_generated.go | 328 +++++++++--------- .../apis/kubedb/v1alpha1/postgres_helpers.go | 0 .../apis/kubedb/v1alpha1/postgres_types.go | 0 .../apis/kubedb/v1alpha1/redis_helpers.go | 0 .../apis/kubedb/v1alpha1/redis_types.go | 0 .../apis/kubedb/v1alpha1/register.go | 2 +- .../apis/kubedb/v1alpha1/report.go | 0 .../apis/kubedb/v1alpha1/snapshot_helpers.go | 0 .../apis/kubedb/v1alpha1/snapshot_types.go | 0 .../apis/kubedb/v1alpha1/types.go | 0 .../v1alpha1/zz_generated.conversion.go | 2 +- .../kubedb/v1alpha1/zz_generated.deepcopy.go | 0 .../kubedb/v1alpha1/zz_generated.defaults.go | 0 .../apis/kubedb/zz_generated.deepcopy.go | 0 .../apis/kubedb/zz_generated.defaults.go | 0 .../apimachinery/client/scheme/doc.go | 0 .../apimachinery/client/scheme/register.go | 2 +- .../client/typed/kubedb/v1alpha1/doc.go | 0 .../typed/kubedb/v1alpha1/dormantdatabase.go | 4 +- .../typed/kubedb/v1alpha1/elasticsearch.go | 4 +- .../kubedb/v1alpha1/generated_expansion.go | 0 .../typed/kubedb/v1alpha1/kubedb_client.go | 4 +- .../client/typed/kubedb/v1alpha1/memcached.go | 4 +- .../client/typed/kubedb/v1alpha1/mongodb.go | 4 +- .../client/typed/kubedb/v1alpha1/mysql.go | 4 +- .../client/typed/kubedb/v1alpha1/postgres.go | 4 +- .../client/typed/kubedb/v1alpha1/redis.go | 4 +- .../client/typed/kubedb/v1alpha1/snapshot.go | 4 +- .../apimachinery/pkg/docker/checks.go | 0 .../apimachinery/pkg/docker/images.go | 0 .../apimachinery/pkg/storage/osm.go | 2 +- .../apimachinery/pkg/validator/validate.go | 4 +- .../{k8sdb => kubedb}/elasticsearch/LICENSE | 0 .../elasticsearch/pkg/validator/validate.go | 56 +++ .../{k8sdb => kubedb}/memcached/LICENSE | 0 .../memcached/pkg/validator/validate.go | 6 +- .../{k8sdb => kubedb}/mongodb/LICENSE | 0 .../mongodb/pkg/validator/validate.go | 6 +- .../{k8sdb => kubedb}/mysql/LICENSE | 0 .../mysql/pkg/validator/validate.go | 6 +- .../{k8sdb => kubedb}/postgres/LICENSE | 0 .../kubedb/postgres/pkg/validator/validate.go | 102 ++++++ .../{k8sdb => kubedb}/redis/LICENSE | 0 .../redis/pkg/validator/validate.go | 6 +- 119 files changed, 591 insertions(+), 521 deletions(-) create mode 100644 vendor/github.com/google/uuid/node_js.go create mode 100644 vendor/github.com/google/uuid/node_net.go delete mode 100644 vendor/github.com/k8sdb/elasticsearch/pkg/validator/validate.go delete mode 100644 vendor/github.com/k8sdb/postgres/pkg/validator/validate.go rename vendor/github.com/{k8sdb => kubedb}/apimachinery/LICENSE (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/doc.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/dormant_database_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/elasticsearch_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/memcached_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/mongodb_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/mysql_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/postgres_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/redis_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/register.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/report.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/snapshot_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/annotations.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/doc.go (74%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/dormant_database_helpers.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/dormant_database_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/elasticsearch_helpers.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/elasticsearch_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/helpers.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/memcached_helpers.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/memcached_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/mongodb_helpers.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/mongodb_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/mysql_helpers.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/mysql_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go (81%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/postgres_helpers.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/postgres_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/redis_helpers.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/redis_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/register.go (97%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/report.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/snapshot_helpers.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/snapshot_types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/types.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/zz_generated.conversion.go (99%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/zz_generated.deepcopy.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/v1alpha1/zz_generated.defaults.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/zz_generated.deepcopy.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/apis/kubedb/zz_generated.defaults.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/scheme/doc.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/scheme/register.go (96%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/typed/kubedb/v1alpha1/doc.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/typed/kubedb/v1alpha1/dormantdatabase.go (98%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/typed/kubedb/v1alpha1/elasticsearch.go (97%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/typed/kubedb/v1alpha1/generated_expansion.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/typed/kubedb/v1alpha1/kubedb_client.go (96%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/typed/kubedb/v1alpha1/memcached.go (97%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/typed/kubedb/v1alpha1/mongodb.go (97%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/typed/kubedb/v1alpha1/mysql.go (97%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/typed/kubedb/v1alpha1/postgres.go (97%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/typed/kubedb/v1alpha1/redis.go (97%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/client/typed/kubedb/v1alpha1/snapshot.go (97%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/pkg/docker/checks.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/pkg/docker/images.go (100%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/pkg/storage/osm.go (98%) rename vendor/github.com/{k8sdb => kubedb}/apimachinery/pkg/validator/validate.go (95%) rename vendor/github.com/{k8sdb => kubedb}/elasticsearch/LICENSE (100%) create mode 100644 vendor/github.com/kubedb/elasticsearch/pkg/validator/validate.go rename vendor/github.com/{k8sdb => kubedb}/memcached/LICENSE (100%) rename vendor/github.com/{k8sdb => kubedb}/memcached/pkg/validator/validate.go (81%) rename vendor/github.com/{k8sdb => kubedb}/mongodb/LICENSE (100%) rename vendor/github.com/{k8sdb => kubedb}/mongodb/pkg/validator/validate.go (89%) rename vendor/github.com/{k8sdb => kubedb}/mysql/LICENSE (100%) rename vendor/github.com/{k8sdb => kubedb}/mysql/pkg/validator/validate.go (88%) rename vendor/github.com/{k8sdb => kubedb}/postgres/LICENSE (100%) create mode 100644 vendor/github.com/kubedb/postgres/pkg/validator/validate.go rename vendor/github.com/{k8sdb => kubedb}/redis/LICENSE (100%) rename vendor/github.com/{k8sdb => kubedb}/redis/pkg/validator/validate.go (83%) diff --git a/.github/ISSUE_TEMPLATE b/.github/ISSUE_TEMPLATE index b8fd431ed..e7c65dcdf 100644 --- a/.github/ISSUE_TEMPLATE +++ b/.github/ISSUE_TEMPLATE @@ -1,3 +1,3 @@ If you have found a bug with KubeDB or want to request for new features, please file issues on Github. - - For CLI issues, file a bug under [k8sdb/cli](https://github.com/k8sdb/cli) repository. - - For Backend operator issues, file a bug under [k8sdb/operator](https://github.com/k8sdb/operator) repository. + - For CLI issues, file a bug under [kubedb/cli](https://github.com/kubedb/cli) repository. + - For Backend operator issues, file a bug under [kubedb/operator](https://github.com/kubedb/operator) repository. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9d2aeadd2..126712e83 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,8 +21,8 @@ If you have a question about KubeDB or having problem using it, you can contact ## Bugs/Feature request If you have found a bug with KubeDB or want to request for new features, please file issues on Github. - - For CLI issues, file a bug under [k8sdb/cli](https://github.com/k8sdb/cli) repository. - - For Backend operator issues, file a bug under [k8sdb/operator](https://github.com/k8sdb/operator) repository. + - For CLI issues, file a bug under [kubedb/cli](https://github.com/kubedb/cli) repository. + - For Backend operator issues, file a bug under [kubedb/operator](https://github.com/kubedb/operator) repository. ## Contribution Flow If you fix a bug or developed a new feature, feel free to submit a PR. In either case, please file a Github issue first, so that we can have a discussion on it. This is a rough outline of what a contributor's workflow looks like: diff --git a/README.md b/README.md index db51cc340..31f7cea0f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Go Report Card](https://goreportcard.com/badge/github.com/k8sdb/cli)](https://goreportcard.com/report/github.com/k8sdb/cli) +[![Go Report Card](https://goreportcard.com/badge/github.com/kubedb/cli)](https://goreportcard.com/report/github.com/kubedb/cli) [Website](https://kubedb.com) • [Slack](http://slack.kubernetes.io) • [Twitter](https://twitter.com/KubeDB) @@ -20,8 +20,8 @@ Please pick a version of KubeDB that matches your Kubernetes installation. | KubeDB Version | Docs | Kubernetes Version | |---------------------------------------------------------------------|------------------------------------------------------------|--------------------| -| [0.7.1](https://github.com/k8sdb/cli/releases/tag/0.7.1) (uses CRD) | [User Guide](https://github.com/k8sdb/cli/tree/0.7.1/docs) | 1.7.x+ | -| [0.6.0](https://github.com/k8sdb/cli/releases/tag/0.6.0) (uses TPR) | [User Guide](https://github.com/k8sdb/cli/tree/0.6.0/docs) | 1.5.x - 1.7.x | +| [0.7.1](https://github.com/kubedb/cli/releases/tag/0.7.1) (uses CRD) | [User Guide](https://github.com/kubedb/cli/tree/0.7.1/docs) | 1.7.x+ | +| [0.6.0](https://github.com/kubedb/cli/releases/tag/0.6.0) (uses TPR) | [User Guide](https://github.com/kubedb/cli/tree/0.6.0/docs) | 1.5.x - 1.7.x | ## Installation To install KubeDB, please follow the guide [here](/docs/install.md). @@ -45,6 +45,6 @@ Wondering what features are coming next? Please visit [here](/ROADMAP.md). If you have any questions, talk to us on the [Kubernetes Slack team](http://slack.kubernetes.io/) channel `#kubedb`. If you have found a bug with KubeDB or want to request for new features, please file issues on Github. - - For CLI issues, file a bug under [k8sdb/cli](https://github.com/k8sdb/cli) repository. - - For Backend operator issues, file a bug under [k8sdb/operator](https://github.com/k8sdb/operator) repository. + - For CLI issues, file a bug under [kubedb/cli](https://github.com/kubedb/cli) repository. + - For Backend operator issues, file a bug under [kubedb/operator](https://github.com/kubedb/operator) repository. diff --git a/cmd/kubedb/main.go b/cmd/kubedb/main.go index 2aec05b3d..50be91163 100644 --- a/cmd/kubedb/main.go +++ b/cmd/kubedb/main.go @@ -3,7 +3,7 @@ package main import ( "os" - "github.com/k8sdb/cli/pkg/cmds" + "github.com/kubedb/cli/pkg/cmds" ) func main() { diff --git a/docs/README.md b/docs/README.md index 5b1b70d76..1c3bb9bab 100644 --- a/docs/README.md +++ b/docs/README.md @@ -14,7 +14,7 @@ aliases: - /docs/0.7.1/README/ --- -[![Go Report Card](https://goreportcard.com/badge/github.com/k8sdb/cli)](https://goreportcard.com/report/github.com/k8sdb/cli) +[![Go Report Card](https://goreportcard.com/badge/github.com/kubedb/cli)](https://goreportcard.com/report/github.com/kubedb/cli) # KubeDB Running production quality database in Kubernetes can be tricky to say the least. In the early days of Kubernetes, replication controllers were used to run a single pod for a database. With the introduction of StatefulSet, it became easy to run a docker container for any database. But what about monitoring, taking periodic backups, restoring from backups or cloning from an existing database? KubeDB is a framework for writing operators for any database that support the following operational requirements: @@ -34,8 +34,8 @@ Please pick a version of KubeDB that matches your Kubernetes installation. | KubeDB Version | Docs | Kubernetes Version | |---------------------------------------------------------------------|------------------------------------------------------------|--------------------| -| [0.7.1](https://github.com/k8sdb/cli/releases/tag/0.7.1) (uses CRD) | [User Guide](https://github.com/k8sdb/cli/tree/0.7.1/docs) | 1.7.x+ | -| [0.6.0](https://github.com/k8sdb/cli/releases/tag/0.6.0) (uses TPR) | [User Guide](https://github.com/k8sdb/cli/tree/0.6.0/docs) | 1.5.x - 1.7.x | +| [0.7.1](https://github.com/kubedb/cli/releases/tag/0.7.1) (uses CRD) | [User Guide](https://github.com/kubedb/cli/tree/0.7.1/docs) | 1.7.x+ | +| [0.6.0](https://github.com/kubedb/cli/releases/tag/0.6.0) (uses TPR) | [User Guide](https://github.com/kubedb/cli/tree/0.6.0/docs) | 1.5.x - 1.7.x | ## Installation To install KubeDB, please follow the guide [here](/docs/install.md). diff --git a/docs/concepts/monitoring.md b/docs/concepts/monitoring.md index dc7cdd776..c9f8e5fdf 100644 --- a/docs/concepts/monitoring.md +++ b/docs/concepts/monitoring.md @@ -45,7 +45,7 @@ spec: | `spec.monitor.prometheus.labels` | map | `Required`. Indicates labels applied to service monitor. | | `spec.monitor.prometheus.interval` | string | `Optional`. Indicates the scrape interval for database exporter endpoint (eg, '10s') | -__Known Limitations:__ If the databse password is updated, exporter must be restarted to use the new credentials. This issue is tracked [here](https://github.com/k8sdb/operator/issues/63). +__Known Limitations:__ If the databse password is updated, exporter must be restarted to use the new credentials. This issue is tracked [here](https://github.com/kubedb/operator/issues/63). ## Next Steps diff --git a/docs/concepts/postgres.md b/docs/concepts/postgres.md index 31c308114..ad6500ee1 100644 --- a/docs/concepts/postgres.md +++ b/docs/concepts/postgres.md @@ -43,7 +43,7 @@ spec: scriptSource: scriptPath: "postgres-init-scripts/run.sh" gitRepo: - repository: "https://github.com/k8sdb/postgres-init-scripts.git" + repository: "https://github.com/kubedb/postgres-init-scripts.git" backupSchedule: cronExpression: "@every 6h" storageSecretName: snap-secret @@ -126,7 +126,7 @@ spec: scriptSource: scriptPath: "postgres-init-scripts/run.sh" gitRepo: - repository: "https://github.com/k8sdb/postgres-init-scripts.git" + repository: "https://github.com/kubedb/postgres-init-scripts.git" ``` In the above example, KubeDB operator will launch a Job to execute `run.sh` script once StatefulSet pods are running. diff --git a/docs/developer-guide/README.md b/docs/developer-guide/README.md index d6e5a6c62..8b19a269c 100644 --- a/docs/developer-guide/README.md +++ b/docs/developer-guide/README.md @@ -29,23 +29,23 @@ KubeDB is written in Google's GO programming language. Currently, KubeDB is deve development environment, please follow [these instructions](https://golang.org/doc/code.html) to install GO. #### Code Organization -KubeDB codebase is across various repositories under github.com/k8sdb organization. There are 5 categories of git repositories: +KubeDB codebase is across various repositories under github.com/kubedb organization. There are 5 categories of git repositories: | Repository | Description | |---------------------------------------|---------------------------------------------------------------------------------------------------------| -| https://github.com/k8sdb/apimachinery | Contains api types, clientset and KubeDB framework interfaces. | -| https://github.com/k8sdb/db | This repository contains operator for `db`, eg, https://github.com/k8sdb/postgres | -| https://github.com/k8sdb/db_exporter | This repository contains Prometheus exporter for `db`, eg, https://github.com/k8sdb/postgres_exporter . | -| https://github.com/k8sdb/operator | This repository contains the combined operator for all databases supported by KubeDB. | -| https://github.com/k8sdb/cli | This repository contains CLI for KubeDB. | +| https://github.com/kubedb/apimachinery | Contains api types, clientset and KubeDB framework interfaces. | +| https://github.com/kubedb/db | This repository contains operator for `db`, eg, https://github.com/kubedb/postgres | +| https://github.com/kubedb/db_exporter | This repository contains Prometheus exporter for `db`, eg, https://github.com/kubedb/postgres_exporter . | +| https://github.com/kubedb/operator | This repository contains the combined operator for all databases supported by KubeDB. | +| https://github.com/kubedb/cli | This repository contains CLI for KubeDB. | For each of these repositories, you can get source code and build code using the following steps: #### Download Source ```console -$ go get github.com/k8sdb/operator -$ cd $(go env GOPATH)/src/github.com/k8sdb/operator +$ go get github.com/kubedb/operator +$ cd $(go env GOPATH)/src/github.com/kubedb/operator ``` #### Install Dev tools @@ -85,6 +85,6 @@ $ docker push aerokite/operator:default #### Generate CLI Reference Docs ```console -$ cd ~/go/src/github.com/k8sdb/cli +$ cd ~/go/src/github.com/kubedb/cli $ ./hack/gendocs/make.sh ``` diff --git a/docs/examples/postgres/demo-1.yaml b/docs/examples/postgres/demo-1.yaml index c87a96881..88be14fa4 100644 --- a/docs/examples/postgres/demo-1.yaml +++ b/docs/examples/postgres/demo-1.yaml @@ -17,4 +17,4 @@ spec: scriptSource: scriptPath: "postgres-init-scripts/run.sh" gitRepo: - repository: "https://github.com/k8sdb/postgres-init-scripts.git" + repository: "https://github.com/kubedb/postgres-init-scripts.git" diff --git a/docs/examples/postgres/demo-3.yaml b/docs/examples/postgres/demo-3.yaml index 5cdc0fe36..537d57c91 100644 --- a/docs/examples/postgres/demo-3.yaml +++ b/docs/examples/postgres/demo-3.yaml @@ -17,7 +17,7 @@ spec: scriptSource: scriptPath: "postgres-init-scripts/run.sh" gitRepo: - repository: "https://github.com/k8sdb/postgres-init-scripts.git" + repository: "https://github.com/kubedb/postgres-init-scripts.git" backupSchedule: cronExpression: "@every 1m" storageSecretName: snap-secret diff --git a/docs/install.md b/docs/install.md index 063c6934e..6e2cf6396 100644 --- a/docs/install.md +++ b/docs/install.md @@ -18,16 +18,16 @@ aliases: # Installation Guide ## Install KubeDB CLI -KubeDB provides a CLI to work with database objects. Download pre-built binaries from [k8sdb/cli Github releases](https://github.com/k8sdb/cli/releases) and put the binary to some directory in your `PATH`. To install on Linux 64-bit and MacOS 64-bit you can run the following commands: +KubeDB provides a CLI to work with database objects. Download pre-built binaries from [kubedb/cli Github releases](https://github.com/kubedb/cli/releases) and put the binary to some directory in your `PATH`. To install on Linux 64-bit and MacOS 64-bit you can run the following commands: ```console # Linux amd 64-bit -wget -O kubedb https://github.com/k8sdb/cli/releases/download/0.7.1/kubedb-linux-amd64 \ +wget -O kubedb https://github.com/kubedb/cli/releases/download/0.7.1/kubedb-linux-amd64 \ && chmod +x kubedb \ && sudo mv kubedb /usr/local/bin/ # Mac 64-bit -wget -O kubedb https://github.com/k8sdb/cli/releases/download/0.7.1/kubedb-darwin-amd64 \ +wget -O kubedb https://github.com/kubedb/cli/releases/download/0.7.1/kubedb-darwin-amd64 \ && chmod +x kubedb \ && sudo mv kubedb /usr/local/bin/ ``` @@ -35,13 +35,13 @@ wget -O kubedb https://github.com/k8sdb/cli/releases/download/0.7.1/kubedb-darwi If you prefer to install KubeDB cli from source code, you will need to set up a GO development environment following [these instructions](https://golang.org/doc/code.html). Then, install `kubedb` CLI using `go get` from source code. ```bash -go get github.com/k8sdb/cli/... +go get github.com/kubedb/cli/... ``` Please note that this will install KubeDB cli from master branch which might include breaking and/or undocumented changes. ## Install KubeDB Operator -To use KubeDB, you will need to install KubeDB [operator](https://github.com/k8sdb/operator). `kubedb init` command will deploy operator for kubedb databases. +To use KubeDB, you will need to install KubeDB [operator](https://github.com/kubedb/operator). `kubedb init` command will deploy operator for kubedb databases. ```console $ kubedb init diff --git a/docs/reference/kubedb.md b/docs/reference/kubedb.md index 7457ebf33..5b46e87bc 100644 --- a/docs/reference/kubedb.md +++ b/docs/reference/kubedb.md @@ -21,7 +21,7 @@ Command line interface for KubeDB KubeDB by AppsCode - Kubernetes ready production-grade Databases -Find more information at https://github.com/k8sdb/cli. +Find more information at https://github.com/kubedb/cli. ``` kubedb [flags] diff --git a/docs/tutorials/postgres/README.md b/docs/tutorials/postgres/README.md index 6cfca1a15..663702105 100644 --- a/docs/tutorials/postgres/README.md +++ b/docs/tutorials/postgres/README.md @@ -70,7 +70,7 @@ spec: scriptSource: scriptPath: "postgres-init-scripts/run.sh" gitRepo: - repository: "https://github.com/k8sdb/postgres-init-scripts.git" + repository: "https://github.com/kubedb/postgres-init-scripts.git" $ kubedb create -f ./docs/examples/postgres/demo-1.yaml validating "./docs/examples/postgres/demo-1.yaml" @@ -84,7 +84,7 @@ Here, - `spec.storage` specifies the StorageClass of PVC dynamically allocated to store data for this database. This storage spec will be passed to the StatefulSet created by KubeDB operator to run database pods. You can specify any StorageClass available in your cluster with appropriate resource requests. If no storage spec is given, an `emptyDir` is used. - - `spec.init.scriptSource` specifies a bash script used to initialize the database after it is created. In this tutorial, `run.sh` script from the git repository `https://github.com/k8sdb/postgres-init-scripts.git` is used to create a `dashboard` table in `data` schema. + - `spec.init.scriptSource` specifies a bash script used to initialize the database after it is created. In this tutorial, `run.sh` script from the git repository `https://github.com/kubedb/postgres-init-scripts.git` is used to create a `dashboard` table in `data` schema. KubeDB operator watches for `Postgres` objects using Kubernetes api. When a `Postgres` object is created, KubeDB operator will create a new StatefulSet and a ClusterIP Service with the matching tpr name. KubeDB operator will also create a governing service for StatefulSets with the name `kubedb`, if one is not already present. If [RBAC is enabled](/docs/tutorials/rbac.md), a ClusterRole, ServiceAccount and ClusterRoleBinding with the matching tpr name will be created and used as the service account name for the corresponding StatefulSet. @@ -164,7 +164,7 @@ spec: init: scriptSource: gitRepo: - repository: https://github.com/k8sdb/postgres-init-scripts.git + repository: https://github.com/kubedb/postgres-init-scripts.git scriptPath: postgres-init-scripts/run.sh resources: {} storage: @@ -361,7 +361,7 @@ spec: scriptSource: scriptPath: "postgres-init-scripts/run.sh" gitRepo: - repository: "https://github.com/k8sdb/postgres-init-scripts.git" + repository: "https://github.com/kubedb/postgres-init-scripts.git" backupSchedule: cronExpression: "@every 1m" storageSecretName: snap-secret @@ -508,7 +508,7 @@ spec: init: scriptSource: gitRepo: - repository: https://github.com/k8sdb/postgres-init-scripts.git + repository: https://github.com/kubedb/postgres-init-scripts.git scriptPath: postgres-init-scripts/run.sh resources: {} storage: @@ -569,7 +569,7 @@ spec: init: scriptSource: gitRepo: - repository: https://github.com/k8sdb/postgres-init-scripts.git + repository: https://github.com/kubedb/postgres-init-scripts.git scriptPath: postgres-init-scripts/run.sh resources: {} storage: @@ -626,7 +626,7 @@ spec: init: scriptSource: gitRepo: - repository: https://github.com/k8sdb/postgres-init-scripts.git + repository: https://github.com/kubedb/postgres-init-scripts.git scriptPath: postgres-init-scripts/run.sh resources: {} storage: diff --git a/docs/tutorials/rbac.md b/docs/tutorials/rbac.md index 431027467..226225e9b 100644 --- a/docs/tutorials/rbac.md +++ b/docs/tutorials/rbac.md @@ -246,7 +246,7 @@ spec: init: scriptSource: gitRepo: - repository: https://github.com/k8sdb/postgres-init-scripts.git + repository: https://github.com/kubedb/postgres-init-scripts.git scriptPath: postgres-init-scripts/run.sh resources: {} storage: diff --git a/glide-slow b/glide-slow index 33d001095..1c1ae6b78 100755 --- a/glide-slow +++ b/glide-slow @@ -5,7 +5,7 @@ # - ??? # - Profit -pushd $GOPATH/src/github.com/k8sdb/cli +pushd $GOPATH/src/github.com/kubedb/cli glide up -v glide vc --only-code --no-tests diff --git a/glide.lock b/glide.lock index 22e0fa576..555d99664 100644 --- a/glide.lock +++ b/glide.lock @@ -1,5 +1,5 @@ -hash: c62900e577b0cace4ec04c14d8c636c2ed62732562a2ed1b790ee52d2387b6d7 -updated: 2017-12-04T18:52:53.450682025+06:00 +hash: eb7a9514303e8cb6f6599a9246c3bffd1b905750a0402afd28e21da4d07bd351 +updated: 2017-12-04T12:42:50.554147628-08:00 imports: - name: cloud.google.com/go version: fe3d41e1ecb2ce36ad3a979037c9b9a2b726226f @@ -77,7 +77,7 @@ imports: - name: github.com/cenkalti/backoff version: 61153c768f31ee5f130071d08fc82b85208528de - name: github.com/cpuguy83/go-md2man - version: 1d903dcb749992f3741d744c0f8376b4bd7eb3e1 + version: 71acacd42f85e5e82f70a55327789582a5200a90 subpackages: - md2man - name: github.com/davecgh/go-spew @@ -171,7 +171,7 @@ imports: - proto - sortkeys - name: github.com/golang/glog - version: 23def4e6c14b4da8ac2ed8007337bc5eb5007998 + version: 44145f04b68cf362d9c4df2182967c2275eaefed - name: github.com/golang/groupcache version: 02826c3e79038b59d737d3b1c0a1d937f71a4433 subpackages: @@ -193,7 +193,7 @@ imports: - name: github.com/google/gofuzz version: 44d81051d367757e1c7c6a5a86423ece9afcf63c - name: github.com/google/uuid - version: e367a344cbe8e08149f9951115dc299ebd42b919 + version: dec09d789f3dba190787f8b4454c7d3c936fed9e - name: github.com/googleapis/gnostic version: 0c5108395e2debce0d731cf0287ddf7242066aba subpackages: @@ -249,8 +249,8 @@ imports: version: 36b14963da70d11297d313183d7e6388c8510e1e - name: github.com/juju/ratelimit version: 5b9ff866471762aa2ab2dced63c9fb6f53921342 -- name: github.com/k8sdb/apimachinery - version: 9b5b81e9e6dc542ac375788fa88234410477a34b +- name: github.com/kubedb/apimachinery + version: dafad78de7aa37b475fd2ab9be78f3e2fea5a8f2 subpackages: - apis/kubedb - apis/kubedb/v1alpha1 @@ -259,28 +259,28 @@ imports: - pkg/docker - pkg/storage - pkg/validator -- name: github.com/k8sdb/elasticsearch - version: 378c27f9b1e552b1cadd2bfbe704bcdb46a3f0e7 +- name: github.com/kubedb/elasticsearch + version: 247e2fbe9eabb47ca3cf482a4f2091ec84a8e350 subpackages: - pkg/validator -- name: github.com/k8sdb/memcached - version: c52892815af3ca91f21f5187e69d21bf77749d1a +- name: github.com/kubedb/memcached + version: 0ba00033078cb0bebbcd433afb8d64f807a358ac subpackages: - pkg/validator -- name: github.com/k8sdb/mongodb - version: a4a9d663de1fa2df52844d90ab03ea3eb9c9612a +- name: github.com/kubedb/mongodb + version: ad6ec6dbf03902436d739f02e7f05c1a0d5b7b64 subpackages: - pkg/validator -- name: github.com/k8sdb/mysql - version: 2d4d5c445fb2d0a458345ad22e72067215787a35 +- name: github.com/kubedb/mysql + version: 6fffa71312db5d0c56fd0da14945dca4c49f64cd subpackages: - pkg/validator -- name: github.com/k8sdb/postgres - version: 45137f3723943902a343cf6befb71345aa6d52f6 +- name: github.com/kubedb/postgres + version: 992cddb195349c1cbf6907908f6214e54844fd13 subpackages: - pkg/validator -- name: github.com/k8sdb/redis - version: 1a608fca03e79a6bf6bbe2ab4579e0349e59bd40 +- name: github.com/kubedb/redis + version: ca18531ad8edfc5baf229546932a942ca679da1c subpackages: - pkg/validator - name: github.com/mailru/easyjson @@ -347,7 +347,7 @@ imports: - name: github.com/sirupsen/logrus version: f006c2ac4710855cf0f916dd6b77acf6b048dc6e - name: github.com/spf13/cobra - version: 3a5f27b046057b8b1bc8301159a31635aa68d0d5 + version: de2d9c4eca8f3c1de17d48b096b6504e0296f003 subpackages: - doc - name: github.com/spf13/pflag diff --git a/glide.yaml b/glide.yaml index e052878dd..3d50560c2 100644 --- a/glide.yaml +++ b/glide.yaml @@ -1,23 +1,23 @@ -package: github.com/k8sdb/cli +package: github.com/kubedb/cli import: - package: github.com/appscode/go - package: github.com/ghodss/yaml version: v1.0.0 - package: github.com/golang/glog - package: github.com/jpillora/go-ogle-analytics -- package: github.com/k8sdb/apimachinery +- package: github.com/kubedb/apimachinery version: master -- package: github.com/k8sdb/elasticsearch +- package: github.com/kubedb/elasticsearch version: master -- package: github.com/k8sdb/postgres +- package: github.com/kubedb/postgres version: master -- package: github.com/k8sdb/mysql +- package: github.com/kubedb/mysql version: master -- package: github.com/k8sdb/mongodb +- package: github.com/kubedb/mongodb version: master -- package: github.com/k8sdb/redis +- package: github.com/kubedb/redis version: master -- package: github.com/k8sdb/memcached +- package: github.com/kubedb/memcached version: master - package: github.com/spf13/cobra - package: github.com/yudai/gojsondiff diff --git a/hack/gendocs/main.go b/hack/gendocs/main.go index f501a2475..7ad611495 100644 --- a/hack/gendocs/main.go +++ b/hack/gendocs/main.go @@ -11,7 +11,7 @@ import ( "text/template" "github.com/appscode/go/runtime" - "github.com/k8sdb/cli/pkg/cmds" + "github.com/kubedb/cli/pkg/cmds" "github.com/spf13/cobra/doc" ) @@ -55,7 +55,7 @@ aliases: // ref: https://github.com/spf13/cobra/blob/master/doc/md_docs.md func main() { rootCmd := cmds.NewKubedbCommand(os.Stdin, os.Stdout, os.Stderr, version) - dir := runtime.GOPath() + "/src/github.com/k8sdb/cli/docs/reference" + dir := runtime.GOPath() + "/src/github.com/kubedb/cli/docs/reference" fmt.Printf("Generating cli markdown tree in: %v\n", dir) err := os.RemoveAll(dir) if err != nil { diff --git a/hack/gendocs/make.sh b/hack/gendocs/make.sh index ef151b5a7..f1bade955 100755 --- a/hack/gendocs/make.sh +++ b/hack/gendocs/make.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash -pushd $GOPATH/src/github.com/k8sdb/cli/hack/gendocs +pushd $GOPATH/src/github.com/kubedb/cli/hack/gendocs go run main.go -cd $GOPATH/src/github.com/k8sdb/cli/docs/reference +cd $GOPATH/src/github.com/kubedb/cli/docs/reference sed -i 's/######\ Auto\ generated\ by.*//g' * popd diff --git a/hack/make.py b/hack/make.py index 797107b6b..4d9de95f9 100755 --- a/hack/make.py +++ b/hack/make.py @@ -35,7 +35,7 @@ def check_antipackage(): import sys from os.path import expandvars -libbuild.REPO_ROOT = expandvars('$GOPATH') + '/src/github.com/k8sdb/cli' +libbuild.REPO_ROOT = expandvars('$GOPATH') + '/src/github.com/kubedb/cli' BUILD_METADATA = libbuild.metadata(libbuild.REPO_ROOT) libbuild.BIN_MATRIX = { "kubedb": { diff --git a/hack/release.py b/hack/release.py index 039a12a79..06081d1f9 100755 --- a/hack/release.py +++ b/hack/release.py @@ -38,7 +38,7 @@ def check_antipackage(): import yaml from collections import Counter -libbuild.REPO_ROOT = expandvars('$GOPATH') + '/src/github.com/k8sdb/cli' +libbuild.REPO_ROOT = expandvars('$GOPATH') + '/src/github.com/kubedb/cli' def die(status): if status: @@ -102,18 +102,18 @@ def __init__(self, tag): self.next_version = semver.bump_minor(self.tag) self.release_branch = 'release-{0}.{1}'.format(self.version['major'], self.version['minor']) self.rel_deps = { - 'github.com/k8sdb/apimachinery': self.release_branch, - 'github.com/k8sdb/postgres': self.tag, - 'github.com/k8sdb/elasticsearch': self.tag, + 'github.com/kubedb/apimachinery': self.release_branch, + 'github.com/kubedb/postgres': self.tag, + 'github.com/kubedb/elasticsearch': self.tag, } self.master_deps = { - 'github.com/k8sdb/apimachinery': 'master', - 'github.com/k8sdb/postgres': 'master', - 'github.com/k8sdb/elasticsearch': 'master', + 'github.com/kubedb/apimachinery': 'master', + 'github.com/kubedb/postgres': 'master', + 'github.com/kubedb/elasticsearch': 'master', } def release_apimachinery(self): - repo = libbuild.GOPATH + '/src/github.com/k8sdb/apimachinery' + repo = libbuild.GOPATH + '/src/github.com/kubedb/apimachinery' print(repo) print('----------------------------------------------------------------------------------------') call('git clean -xfd', cwd=repo) @@ -131,7 +131,7 @@ def release_apimachinery(self): call('git push origin {0}'.format(self.release_branch), cwd=repo) def release_db(self, repo_name, short_code): - repo = libbuild.GOPATH + '/src/github.com/k8sdb/' + repo_name + repo = libbuild.GOPATH + '/src/github.com/kubedb/' + repo_name print(repo) print('----------------------------------------------------------------------------------------') call('git clean -xfd', cwd=repo) @@ -162,7 +162,7 @@ def release_db(self, repo_name, short_code): call('git push origin master', cwd=repo) def release_operator(self): - repo = libbuild.GOPATH + '/src/github.com/k8sdb/operator' + repo = libbuild.GOPATH + '/src/github.com/kubedb/operator' print(repo) print('----------------------------------------------------------------------------------------') call('git clean -xfd', cwd=repo) @@ -193,7 +193,7 @@ def release_operator(self): call('git push origin master', cwd=repo) def release_cli(self): - repo = libbuild.GOPATH + '/src/github.com/k8sdb/cli' + repo = libbuild.GOPATH + '/src/github.com/kubedb/cli' print(repo) print('----------------------------------------------------------------------------------------') call('git clean -xfd', cwd=repo) diff --git a/pkg/cmds/compare.go b/pkg/cmds/compare.go index 240fa7cf3..4e1f79c7f 100644 --- a/pkg/cmds/compare.go +++ b/pkg/cmds/compare.go @@ -7,8 +7,8 @@ import ( "path/filepath" "time" - tapi "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/cli/pkg/util" + tapi "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/cli/pkg/util" "github.com/spf13/cobra" diff "github.com/yudai/gojsondiff" "github.com/yudai/gojsondiff/formatter" diff --git a/pkg/cmds/create.go b/pkg/cmds/create.go index 3a24a74d6..9cc140042 100644 --- a/pkg/cmds/create.go +++ b/pkg/cmds/create.go @@ -5,10 +5,10 @@ import ( "fmt" "io" - tapi "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/cli/pkg/kube" - "github.com/k8sdb/cli/pkg/util" - "github.com/k8sdb/cli/pkg/validator" + tapi "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/cli/pkg/kube" + "github.com/kubedb/cli/pkg/util" + "github.com/kubedb/cli/pkg/validator" "github.com/spf13/cobra" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/client-go/kubernetes" diff --git a/pkg/cmds/delete.go b/pkg/cmds/delete.go index a5c382670..0f28dfbb2 100644 --- a/pkg/cmds/delete.go +++ b/pkg/cmds/delete.go @@ -5,9 +5,9 @@ import ( "io" "strings" - "github.com/k8sdb/cli/pkg/kube" - "github.com/k8sdb/cli/pkg/util" - "github.com/k8sdb/cli/pkg/validator" + "github.com/kubedb/cli/pkg/kube" + "github.com/kubedb/cli/pkg/util" + "github.com/kubedb/cli/pkg/validator" "github.com/spf13/cobra" "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" diff --git a/pkg/cmds/describe.go b/pkg/cmds/describe.go index 48243b733..14cef6f39 100644 --- a/pkg/cmds/describe.go +++ b/pkg/cmds/describe.go @@ -5,9 +5,9 @@ import ( "io" "strings" - "github.com/k8sdb/cli/pkg/describer" - "github.com/k8sdb/cli/pkg/kube" - "github.com/k8sdb/cli/pkg/util" + "github.com/kubedb/cli/pkg/describer" + "github.com/kubedb/cli/pkg/kube" + "github.com/kubedb/cli/pkg/util" "github.com/spf13/cobra" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" utilerrors "k8s.io/apimachinery/pkg/util/errors" diff --git a/pkg/cmds/edit.go b/pkg/cmds/edit.go index 8a9705878..5ef5b741f 100644 --- a/pkg/cmds/edit.go +++ b/pkg/cmds/edit.go @@ -11,14 +11,14 @@ import ( "strings" "github.com/golang/glog" - tapi "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/client/scheme" - tcs "github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1" - "github.com/k8sdb/cli/pkg/editor" - "github.com/k8sdb/cli/pkg/encoder" - "github.com/k8sdb/cli/pkg/kube" - "github.com/k8sdb/cli/pkg/printer" - "github.com/k8sdb/cli/pkg/util" + tapi "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/client/scheme" + tcs "github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1" + "github.com/kubedb/cli/pkg/editor" + "github.com/kubedb/cli/pkg/encoder" + "github.com/kubedb/cli/pkg/kube" + "github.com/kubedb/cli/pkg/printer" + "github.com/kubedb/cli/pkg/util" "github.com/spf13/cobra" kerr "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/meta" diff --git a/pkg/cmds/get.go b/pkg/cmds/get.go index ed9bcf850..492b03373 100644 --- a/pkg/cmds/get.go +++ b/pkg/cmds/get.go @@ -5,9 +5,9 @@ import ( "io" "strings" - "github.com/k8sdb/cli/pkg/kube" - "github.com/k8sdb/cli/pkg/printer" - "github.com/k8sdb/cli/pkg/util" + "github.com/kubedb/cli/pkg/kube" + "github.com/kubedb/cli/pkg/printer" + "github.com/kubedb/cli/pkg/util" "github.com/spf13/cobra" "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" diff --git a/pkg/cmds/init.go b/pkg/cmds/init.go index be881aeba..afc0b3ed2 100644 --- a/pkg/cmds/init.go +++ b/pkg/cmds/init.go @@ -6,9 +6,9 @@ import ( "strings" "github.com/appscode/go/types" - "github.com/k8sdb/apimachinery/pkg/docker" - "github.com/k8sdb/cli/pkg/kube" - "github.com/k8sdb/cli/pkg/util" + "github.com/kubedb/apimachinery/pkg/docker" + "github.com/kubedb/cli/pkg/kube" + "github.com/kubedb/cli/pkg/util" "github.com/spf13/cobra" core "k8s.io/api/core/v1" extensions "k8s.io/api/extensions/v1beta1" diff --git a/pkg/cmds/role.go b/pkg/cmds/role.go index 0b36f51f0..d6f801f99 100644 --- a/pkg/cmds/role.go +++ b/pkg/cmds/role.go @@ -4,8 +4,8 @@ import ( "fmt" "io" - "github.com/k8sdb/apimachinery/apis/kubedb" - "github.com/k8sdb/apimachinery/pkg/docker" + "github.com/kubedb/apimachinery/apis/kubedb" + "github.com/kubedb/apimachinery/pkg/docker" apps "k8s.io/api/apps/v1beta1" batch "k8s.io/api/batch/v1" core "k8s.io/api/core/v1" diff --git a/pkg/cmds/root.go b/pkg/cmds/root.go index 5701d3f55..15656338e 100644 --- a/pkg/cmds/root.go +++ b/pkg/cmds/root.go @@ -24,7 +24,7 @@ func NewKubedbCommand(in io.Reader, out, err io.Writer, version string) *cobra.C Long: templates.LongDesc(` KubeDB by AppsCode - Kubernetes ready production-grade Databases - Find more information at https://github.com/k8sdb/cli.`), + Find more information at https://github.com/kubedb/cli.`), PersistentPreRun: func(cmd *cobra.Command, args []string) { if enableAnalytics && gaTrackingCode != "" { if client, err := ga.NewClient(gaTrackingCode); err == nil { diff --git a/pkg/cmds/summarize.go b/pkg/cmds/summarize.go index d7663242a..27ac2128a 100644 --- a/pkg/cmds/summarize.go +++ b/pkg/cmds/summarize.go @@ -15,10 +15,10 @@ import ( "time" "github.com/appscode/go/net/httpclient" - tapi "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/pkg/docker" - "github.com/k8sdb/cli/pkg/kube" - "github.com/k8sdb/cli/pkg/util" + tapi "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/pkg/docker" + "github.com/kubedb/cli/pkg/kube" + "github.com/kubedb/cli/pkg/util" "github.com/spf13/cobra" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" diff --git a/pkg/decoder/decode.go b/pkg/decoder/decode.go index ad535707c..12a37f599 100644 --- a/pkg/decoder/decode.go +++ b/pkg/decoder/decode.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/ghodss/yaml" - tapi "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" + tapi "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" "k8s.io/apimachinery/pkg/runtime" ) diff --git a/pkg/describer/describer.go b/pkg/describer/describer.go index ebb1fd1c3..1769b3d7b 100644 --- a/pkg/describer/describer.go +++ b/pkg/describer/describer.go @@ -5,10 +5,10 @@ import ( "reflect" "github.com/golang/glog" - tapi "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/client/scheme" - tcs "github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1" - "github.com/k8sdb/cli/pkg/decoder" + tapi "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/client/scheme" + tcs "github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1" + "github.com/kubedb/cli/pkg/decoder" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime" cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util" diff --git a/pkg/describer/k8sdb_describer.go b/pkg/describer/k8sdb_describer.go index 5e67beb9c..8686ab85c 100644 --- a/pkg/describer/k8sdb_describer.go +++ b/pkg/describer/k8sdb_describer.go @@ -5,7 +5,7 @@ import ( "io" mona "github.com/appscode/kutil/tools/monitoring/api" - api "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" + api "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" core "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" diff --git a/pkg/describer/kube_describer.go b/pkg/describer/kube_describer.go index 82bccca41..5d53d4a12 100644 --- a/pkg/describer/kube_describer.go +++ b/pkg/describer/kube_describer.go @@ -7,8 +7,8 @@ import ( "sort" "strings" - "github.com/k8sdb/cli/pkg/printer" - "github.com/k8sdb/cli/pkg/util" + "github.com/kubedb/cli/pkg/printer" + "github.com/kubedb/cli/pkg/util" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" kapi "k8s.io/kubernetes/pkg/api" diff --git a/pkg/printer/resource_printer.go b/pkg/printer/resource_printer.go index e9ffde9f7..4c7be5f27 100644 --- a/pkg/printer/resource_printer.go +++ b/pkg/printer/resource_printer.go @@ -10,10 +10,10 @@ import ( "time" "github.com/golang/glog" - tapi "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/client/scheme" - "github.com/k8sdb/cli/pkg/decoder" - "github.com/k8sdb/cli/pkg/util" + tapi "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/client/scheme" + "github.com/kubedb/cli/pkg/decoder" + "github.com/kubedb/cli/pkg/util" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/labels" diff --git a/pkg/util/resource.go b/pkg/util/resource.go index 0553c0343..8ec3f6c25 100644 --- a/pkg/util/resource.go +++ b/pkg/util/resource.go @@ -5,8 +5,8 @@ import ( "strings" "github.com/ghodss/yaml" - tapi "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/cli/pkg/decoder" + tapi "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/cli/pkg/decoder" crd_cs "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1" kerr "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/pkg/validator/validate.go b/pkg/validator/validate.go index 790109dea..d1609067f 100644 --- a/pkg/validator/validate.go +++ b/pkg/validator/validate.go @@ -4,15 +4,15 @@ import ( "fmt" "github.com/ghodss/yaml" - tapi "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - amv "github.com/k8sdb/apimachinery/pkg/validator" - "github.com/k8sdb/cli/pkg/encoder" - esv "github.com/k8sdb/elasticsearch/pkg/validator" - memv "github.com/k8sdb/memcached/pkg/validator" - mgv "github.com/k8sdb/mongodb/pkg/validator" - msv "github.com/k8sdb/mysql/pkg/validator" - pgv "github.com/k8sdb/postgres/pkg/validator" - rdv "github.com/k8sdb/redis/pkg/validator" + tapi "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + amv "github.com/kubedb/apimachinery/pkg/validator" + "github.com/kubedb/cli/pkg/encoder" + esv "github.com/kubedb/elasticsearch/pkg/validator" + memv "github.com/kubedb/memcached/pkg/validator" + mgv "github.com/kubedb/mongodb/pkg/validator" + msv "github.com/kubedb/mysql/pkg/validator" + pgv "github.com/kubedb/postgres/pkg/validator" + rdv "github.com/kubedb/redis/pkg/validator" "k8s.io/client-go/kubernetes" "k8s.io/kubernetes/pkg/kubectl/resource" ) diff --git a/vendor/github.com/cpuguy83/go-md2man/md2man/roff.go b/vendor/github.com/cpuguy83/go-md2man/md2man/roff.go index 292fca343..4478786b7 100644 --- a/vendor/github.com/cpuguy83/go-md2man/md2man/roff.go +++ b/vendor/github.com/cpuguy83/go-md2man/md2man/roff.go @@ -11,8 +11,6 @@ import ( type roffRenderer struct{} -var listCounter int - func RoffRenderer(flags int) blackfriday.Renderer { return &roffRenderer{} } @@ -35,12 +33,8 @@ func (r *roffRenderer) TitleBlock(out *bytes.Buffer, text []byte) { line = append(line, []byte("\" ")...) out.Write(line) } - out.WriteString("\n") - // disable hyphenation - out.WriteString(".nh\n") - // disable justification (adjust text to left margin only) - out.WriteString(".ad l\n") + out.WriteString(" \"\"\n") } func (r *roffRenderer) BlockCode(out *bytes.Buffer, text []byte, lang string) { @@ -86,24 +80,23 @@ func (r *roffRenderer) HRule(out *bytes.Buffer) { func (r *roffRenderer) List(out *bytes.Buffer, text func() bool, flags int) { marker := out.Len() + out.WriteString(".IP ") if flags&blackfriday.LIST_TYPE_ORDERED != 0 { - listCounter = 1 + out.WriteString("\\(bu 2") + } else { + out.WriteString("\\n+[step" + string(flags) + "]") } + out.WriteString("\n") if !text() { out.Truncate(marker) return } + } func (r *roffRenderer) ListItem(out *bytes.Buffer, text []byte, flags int) { - if flags&blackfriday.LIST_TYPE_ORDERED != 0 { - out.WriteString(fmt.Sprintf(".IP \"%3d.\" 5\n", listCounter)) - listCounter += 1 - } else { - out.WriteString(".IP \\(bu 2\n") - } + out.WriteString("\n\\item ") out.Write(text) - out.WriteString("\n") } func (r *roffRenderer) Paragraph(out *bytes.Buffer, text func() bool) { @@ -118,24 +111,11 @@ func (r *roffRenderer) Paragraph(out *bytes.Buffer, text func() bool) { } } +// TODO: This might now work func (r *roffRenderer) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int) { - out.WriteString("\n.TS\nallbox;\n") - - max_delims := 0 - lines := strings.Split(strings.TrimRight(string(header), "\n")+"\n"+strings.TrimRight(string(body), "\n"), "\n") - for _, w := range lines { - cur_delims := strings.Count(w, "\t") - if cur_delims > max_delims { - max_delims = cur_delims - } - } - out.Write([]byte(strings.Repeat("l ", max_delims+1) + "\n")) - out.Write([]byte(strings.Repeat("l ", max_delims+1) + ".\n")) - out.Write(header) - if len(header) > 0 { - out.Write([]byte("\n")) - } + out.WriteString(".TS\nallbox;\n") + out.Write(header) out.Write(body) out.WriteString("\n.TE\n") } @@ -145,30 +125,24 @@ func (r *roffRenderer) TableRow(out *bytes.Buffer, text []byte) { out.WriteString("\n") } out.Write(text) + out.WriteString("\n") } func (r *roffRenderer) TableHeaderCell(out *bytes.Buffer, text []byte, align int) { if out.Len() > 0 { - out.WriteString("\t") - } - if len(text) == 0 { - text = []byte{' '} + out.WriteString(" ") } - out.Write([]byte("\\fB\\fC" + string(text) + "\\fR")) + out.Write(text) + out.WriteString(" ") } +// TODO: This is probably broken func (r *roffRenderer) TableCell(out *bytes.Buffer, text []byte, align int) { if out.Len() > 0 { out.WriteString("\t") } - if len(text) > 30 { - text = append([]byte("T{\n"), text...) - text = append(text, []byte("\nT}")...) - } - if len(text) == 0 { - text = []byte{' '} - } out.Write(text) + out.WriteString("\t") } func (r *roffRenderer) Footnotes(out *bytes.Buffer, text func() bool) { @@ -211,7 +185,6 @@ func (r *roffRenderer) LineBreak(out *bytes.Buffer) { } func (r *roffRenderer) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) { - out.Write(content) r.AutoLink(out, link, 0) } @@ -276,11 +249,6 @@ func needsBackslash(c byte) bool { func escapeSpecialChars(out *bytes.Buffer, text []byte) { for i := 0; i < len(text); i++ { - // escape initial apostrophe or period - if len(text) >= 1 && (text[0] == '\'' || text[0] == '.') { - out.WriteString("\\&") - } - // directly copy normal characters org := i diff --git a/vendor/github.com/golang/glog/glog.go b/vendor/github.com/golang/glog/glog.go index 54bd7afdc..3e63fffd5 100644 --- a/vendor/github.com/golang/glog/glog.go +++ b/vendor/github.com/golang/glog/glog.go @@ -676,10 +676,7 @@ func (l *loggingT) output(s severity, buf *buffer, file string, line int, alsoTo } } data := buf.Bytes() - if !flag.Parsed() { - os.Stderr.Write([]byte("ERROR: logging before flag.Parse: ")) - os.Stderr.Write(data) - } else if l.toStderr { + if l.toStderr { os.Stderr.Write(data) } else { if alsoToStderr || l.alsoToStderr || s >= l.stderrThreshold.get() { diff --git a/vendor/github.com/google/uuid/hash.go b/vendor/github.com/google/uuid/hash.go index 4fc5a77df..b17461631 100644 --- a/vendor/github.com/google/uuid/hash.go +++ b/vendor/github.com/google/uuid/hash.go @@ -27,7 +27,7 @@ var ( func NewHash(h hash.Hash, space UUID, data []byte, version int) UUID { h.Reset() h.Write(space[:]) - h.Write([]byte(data)) + h.Write(data) s := h.Sum(nil) var uuid UUID copy(uuid[:], s) diff --git a/vendor/github.com/google/uuid/node.go b/vendor/github.com/google/uuid/node.go index f2c2765b2..384f07d02 100644 --- a/vendor/github.com/google/uuid/node.go +++ b/vendor/github.com/google/uuid/node.go @@ -5,16 +5,14 @@ package uuid import ( - "net" "sync" ) var ( - nodeMu sync.Mutex - interfaces []net.Interface // cached list of interfaces - ifname string // name of interface being used - nodeID [6]byte // hardware for version 1 UUIDs - zeroID [6]byte // nodeID with only 0's + nodeMu sync.Mutex + ifname string // name of interface being used + nodeID [6]byte // hardware for version 1 UUIDs + zeroID [6]byte // nodeID with only 0's ) // NodeInterface returns the name of the interface from which the NodeID was @@ -39,20 +37,12 @@ func SetNodeInterface(name string) bool { } func setNodeInterface(name string) bool { - if interfaces == nil { - var err error - interfaces, err = net.Interfaces() - if err != nil && name != "" { - return false - } - } - for _, ifs := range interfaces { - if len(ifs.HardwareAddr) >= 6 && (name == "" || name == ifs.Name) { - copy(nodeID[:], ifs.HardwareAddr) - ifname = ifs.Name - return true - } + iname, addr := getHardwareInterface(name) // null implementation for js + if iname != "" && addr != nil { + ifname = iname + copy(nodeID[:], addr) + return true } // We found no interfaces with a valid hardware address. If name diff --git a/vendor/github.com/google/uuid/node_js.go b/vendor/github.com/google/uuid/node_js.go new file mode 100644 index 000000000..24b78edc9 --- /dev/null +++ b/vendor/github.com/google/uuid/node_js.go @@ -0,0 +1,12 @@ +// Copyright 2017 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build js + +package uuid + +// getHardwareInterface returns nil values for the JS version of the code. +// This remvoves the "net" dependency, because it is not used in the browser. +// Using the "net" library inflates the size of the transpiled JS code by 673k bytes. +func getHardwareInterface(name string) (string, []byte) { return "", nil } diff --git a/vendor/github.com/google/uuid/node_net.go b/vendor/github.com/google/uuid/node_net.go new file mode 100644 index 000000000..0cbbcddbd --- /dev/null +++ b/vendor/github.com/google/uuid/node_net.go @@ -0,0 +1,33 @@ +// Copyright 2017 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !js + +package uuid + +import "net" + +var interfaces []net.Interface // cached list of interfaces + +// getHardwareInterface returns the name and hardware address of interface name. +// If name is "" then the name and hardware address of one of the system's +// interfaces is returned. If no interfaces are found (name does not exist or +// there are no interfaces) then "", nil is returned. +// +// Only addresses of at least 6 bytes are returned. +func getHardwareInterface(name string) (string, []byte) { + if interfaces == nil { + var err error + interfaces, err = net.Interfaces() + if err != nil { + return "", nil + } + } + for _, ifs := range interfaces { + if len(ifs.HardwareAddr) >= 6 && (name == "" || name == ifs.Name) { + return ifs.Name, ifs.HardwareAddr + } + } + return "", nil +} diff --git a/vendor/github.com/google/uuid/time.go b/vendor/github.com/google/uuid/time.go index fd7fe0ac4..e6ef06cdc 100644 --- a/vendor/github.com/google/uuid/time.go +++ b/vendor/github.com/google/uuid/time.go @@ -86,7 +86,7 @@ func clockSequence() int { return int(clockSeq & 0x3fff) } -// SetClockSeq sets the clock sequence to the lower 14 bits of seq. Setting to +// SetClockSequence sets the clock sequence to the lower 14 bits of seq. Setting to // -1 causes a new sequence to be generated. func SetClockSequence(seq int) { defer timeMu.Unlock() @@ -100,9 +100,9 @@ func setClockSequence(seq int) { randomBits(b[:]) // clock sequence seq = int(b[0])<<8 | int(b[1]) } - old_seq := clockSeq + oldSeq := clockSeq clockSeq = uint16(seq&0x3fff) | 0x8000 // Set our variant - if old_seq != clockSeq { + if oldSeq != clockSeq { lasttime = 0 } } diff --git a/vendor/github.com/google/uuid/uuid.go b/vendor/github.com/google/uuid/uuid.go index 23161a86c..7f3643fe9 100644 --- a/vendor/github.com/google/uuid/uuid.go +++ b/vendor/github.com/google/uuid/uuid.go @@ -58,11 +58,11 @@ func Parse(s string) (UUID, error) { 14, 16, 19, 21, 24, 26, 28, 30, 32, 34} { - if v, ok := xtob(s[x], s[x+1]); !ok { + v, ok := xtob(s[x], s[x+1]) + if !ok { return uuid, errors.New("invalid UUID format") - } else { - uuid[i] = v } + uuid[i] = v } return uuid, nil } @@ -88,15 +88,22 @@ func ParseBytes(b []byte) (UUID, error) { 14, 16, 19, 21, 24, 26, 28, 30, 32, 34} { - if v, ok := xtob(b[x], b[x+1]); !ok { + v, ok := xtob(b[x], b[x+1]) + if !ok { return uuid, errors.New("invalid UUID format") - } else { - uuid[i] = v } + uuid[i] = v } return uuid, nil } +// FromBytes creates a new UUID from a byte slice. Returns an error if the slice +// does not have a length of 16. The bytes are copied from the slice. +func FromBytes(b []byte) (uuid UUID, err error) { + err = uuid.UnmarshalBinary(b) + return uuid, err +} + // Must returns uuid if err is nil and panics otherwise. func Must(uuid UUID, err error) UUID { if err != nil { diff --git a/vendor/github.com/google/uuid/version4.go b/vendor/github.com/google/uuid/version4.go index 74c4e6c9f..84af91c9f 100644 --- a/vendor/github.com/google/uuid/version4.go +++ b/vendor/github.com/google/uuid/version4.go @@ -14,7 +14,7 @@ func New() UUID { return Must(NewRandom()) } -// NewRandom returns a Random (Version 4) UUID or panics. +// NewRandom returns a Random (Version 4) UUID. // // The strength of the UUIDs is based on the strength of the crypto/rand // package. diff --git a/vendor/github.com/k8sdb/elasticsearch/pkg/validator/validate.go b/vendor/github.com/k8sdb/elasticsearch/pkg/validator/validate.go deleted file mode 100644 index 184fa928d..000000000 --- a/vendor/github.com/k8sdb/elasticsearch/pkg/validator/validate.go +++ /dev/null @@ -1,43 +0,0 @@ -package validator - -import ( - "fmt" - - tapi "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/pkg/docker" - amv "github.com/k8sdb/apimachinery/pkg/validator" - "k8s.io/client-go/kubernetes" -) - -func ValidateElastic(client kubernetes.Interface, elastic *tapi.Elasticsearch) error { - if elastic.Spec.Version == "" { - return fmt.Errorf(`Object 'Version' is missing in '%v'`, elastic.Spec) - } - - if err := docker.CheckDockerImageVersion(docker.ImageElasticsearch, string(elastic.Spec.Version)); err != nil { - return fmt.Errorf(`Image %v:%v not found`, docker.ImageElasticsearch, elastic.Spec.Version) - } - - if elastic.Spec.Storage != nil { - var err error - if err = amv.ValidateStorage(client, elastic.Spec.Storage); err != nil { - return err - } - } - - backupScheduleSpec := elastic.Spec.BackupSchedule - if backupScheduleSpec != nil { - if err := amv.ValidateBackupSchedule(client, backupScheduleSpec, elastic.Namespace); err != nil { - return err - } - } - - monitorSpec := elastic.Spec.Monitor - if monitorSpec != nil { - if err := amv.ValidateMonitorSpec(monitorSpec); err != nil { - return err - } - - } - return nil -} diff --git a/vendor/github.com/k8sdb/postgres/pkg/validator/validate.go b/vendor/github.com/k8sdb/postgres/pkg/validator/validate.go deleted file mode 100644 index ae98f8d8d..000000000 --- a/vendor/github.com/k8sdb/postgres/pkg/validator/validate.go +++ /dev/null @@ -1,52 +0,0 @@ -package validator - -import ( - "fmt" - - tapi "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/pkg/docker" - amv "github.com/k8sdb/apimachinery/pkg/validator" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func ValidatePostgres(client kubernetes.Interface, postgres *tapi.Postgres) error { - if postgres.Spec.Version == "" { - return fmt.Errorf(`Object 'Version' is missing in '%v'`, postgres.Spec) - } - - version := fmt.Sprintf("%v-db", postgres.Spec.Version) - if err := docker.CheckDockerImageVersion(docker.ImagePostgres, version); err != nil { - return fmt.Errorf(`Image %v:%v not found`, docker.ImagePostgres, version) - } - - if postgres.Spec.Storage != nil { - var err error - if err = amv.ValidateStorage(client, postgres.Spec.Storage); err != nil { - return err - } - } - - databaseSecret := postgres.Spec.DatabaseSecret - if databaseSecret != nil { - if _, err := client.CoreV1().Secrets(postgres.Namespace).Get(databaseSecret.SecretName, metav1.GetOptions{}); err != nil { - return err - } - } - - backupScheduleSpec := postgres.Spec.BackupSchedule - if backupScheduleSpec != nil { - if err := amv.ValidateBackupSchedule(client, backupScheduleSpec, postgres.Namespace); err != nil { - return err - } - } - - monitorSpec := postgres.Spec.Monitor - if monitorSpec != nil { - if err := amv.ValidateMonitorSpec(monitorSpec); err != nil { - return err - } - - } - return nil -} diff --git a/vendor/github.com/k8sdb/apimachinery/LICENSE b/vendor/github.com/kubedb/apimachinery/LICENSE similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/LICENSE rename to vendor/github.com/kubedb/apimachinery/LICENSE diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/doc.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/doc.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/doc.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/doc.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/dormant_database_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/dormant_database_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/dormant_database_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/dormant_database_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/elasticsearch_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/elasticsearch_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/elasticsearch_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/elasticsearch_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/memcached_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/memcached_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/memcached_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/memcached_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/mongodb_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/mongodb_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/mongodb_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/mongodb_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/mysql_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/mysql_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/mysql_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/mysql_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/postgres_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/postgres_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/postgres_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/postgres_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/redis_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/redis_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/redis_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/redis_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/register.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/register.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/register.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/register.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/report.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/report.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/report.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/report.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/snapshot_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/snapshot_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/snapshot_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/snapshot_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/annotations.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/annotations.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/annotations.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/annotations.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/doc.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/doc.go similarity index 74% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/doc.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/doc.go index cf75fb371..52c7f1607 100644 --- a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/doc.go +++ b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/doc.go @@ -1,7 +1,7 @@ // Package v1alpha1 is the v1alpha1 version of the API. // +k8s:deepcopy-gen=package,register -// +k8s:conversion-gen=github.com/k8sdb/apimachinery/apis/kubedb +// +k8s:conversion-gen=github.com/kubedb/apimachinery/apis/kubedb // +k8s:openapi-gen=true // +k8s:defaulter-gen=TypeMeta // +groupName=kubedb.com diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/dormant_database_helpers.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/dormant_database_helpers.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/dormant_database_helpers.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/dormant_database_helpers.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/dormant_database_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/dormant_database_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/dormant_database_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/dormant_database_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/elasticsearch_helpers.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/elasticsearch_helpers.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/elasticsearch_helpers.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/elasticsearch_helpers.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/elasticsearch_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/elasticsearch_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/elasticsearch_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/elasticsearch_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/helpers.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/helpers.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/helpers.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/helpers.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/memcached_helpers.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/memcached_helpers.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/memcached_helpers.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/memcached_helpers.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/memcached_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/memcached_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/memcached_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/memcached_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/mongodb_helpers.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/mongodb_helpers.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/mongodb_helpers.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/mongodb_helpers.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/mongodb_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/mongodb_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/mongodb_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/mongodb_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/mysql_helpers.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/mysql_helpers.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/mysql_helpers.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/mysql_helpers.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/mysql_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/mysql_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/mysql_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/mysql_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go similarity index 81% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go index ee59d7629..c1968c4f8 100644 --- a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go +++ b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go @@ -27,7 +27,7 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.AzureSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.AzureSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -48,7 +48,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, Dependencies: []string{}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -66,27 +66,27 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "local": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.LocalSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.LocalSpec"), }, }, "s3": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.S3Spec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.S3Spec"), }, }, "gcs": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.GCSSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.GCSSpec"), }, }, "azure": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.AzureSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.AzureSpec"), }, }, "swift": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"), }, }, "resources": { @@ -99,9 +99,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.AzureSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.GCSSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.LocalSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.S3Spec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec", "k8s.io/api/core/v1.ResourceRequirements"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.AzureSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.GCSSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.LocalSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.S3Spec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec", "k8s.io/api/core/v1.ResourceRequirements"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.DormantDatabase": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.DormantDatabase": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -126,21 +126,21 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "spec": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseStatus"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseList": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseList": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -170,7 +170,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.DormantDatabase"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.DormantDatabase"), }, }, }, @@ -180,9 +180,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.DormantDatabase", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.DormantDatabase", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -203,16 +203,16 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "origin": { SchemaProps: spec.SchemaProps{ Description: "Origin to store original database information", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Origin"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Origin"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Origin"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Origin"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseStatus": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.DormantDatabaseStatus": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -249,7 +249,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Elasticsearch": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Elasticsearch": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Elasticsearch defines a Elasticsearch database.", @@ -275,46 +275,46 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "spec": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchStatus"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchClusterTopology": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchClusterTopology": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ "master": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode"), }, }, "data": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode"), }, }, "client": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchList": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchList": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -344,7 +344,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Elasticsearch"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Elasticsearch"), }, }, }, @@ -354,9 +354,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Elasticsearch", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Elasticsearch", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -377,7 +377,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, Dependencies: []string{}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -398,7 +398,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "topology": { SchemaProps: spec.SchemaProps{ Description: "Elasticsearch topology for node specification", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchClusterTopology"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchClusterTopology"), }, }, "enableSSL": { @@ -443,13 +443,13 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "init": { SchemaProps: spec.SchemaProps{ Description: "Init is used to initialize database", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.InitSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.InitSpec"), }, }, "backupSchedule": { SchemaProps: spec.SchemaProps{ Description: "BackupSchedule spec to specify how database backup will be taken", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec"), }, }, "doNotPause": { @@ -501,9 +501,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/appscode/kutil/tools/monitoring/api.AgentSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchClusterTopology", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.InitSpec", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.Toleration"}, + "github.com/appscode/kutil/tools/monitoring/api.AgentSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchClusterTopology", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.InitSpec", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.Toleration"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchStatus": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchStatus": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -530,7 +530,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSummary": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSummary": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Following structure is used for audit summary report", @@ -566,7 +566,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, Dependencies: []string{}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.GCSSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.GCSSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -588,32 +588,32 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, Dependencies: []string{}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.InitSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.InitSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ "scriptSource": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ScriptSourceSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ScriptSourceSpec"), }, }, "snapshotSource": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotSourceSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotSourceSpec"), }, }, "postgresWAL": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresWALSourceSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresWALSourceSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresWALSourceSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ScriptSourceSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotSourceSpec"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresWALSourceSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ScriptSourceSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotSourceSpec"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.LocalSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.LocalSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -634,7 +634,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "k8s.io/api/core/v1.VolumeSource"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Memcached": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Memcached": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Memcached defines a Memcached database.", @@ -660,21 +660,21 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "spec": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MemcachedSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MemcachedSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MemcachedStatus"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MemcachedStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MemcachedSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MemcachedStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MemcachedSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MemcachedStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MemcachedList": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MemcachedList": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -704,7 +704,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Memcached"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Memcached"), }, }, }, @@ -714,9 +714,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Memcached", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Memcached", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MemcachedSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MemcachedSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -799,7 +799,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "github.com/appscode/kutil/tools/monitoring/api.AgentSpec", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.Toleration"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MemcachedStatus": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MemcachedStatus": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -826,7 +826,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDB": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDB": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "MongoDB defines a MongoDB database.", @@ -852,21 +852,21 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "spec": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDBSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDBSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDBStatus"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDBStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDBSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDBStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDBSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDBStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDBList": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDBList": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -896,7 +896,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDB"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDB"), }, }, }, @@ -906,9 +906,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDB", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDB", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDBSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDBSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -955,13 +955,13 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "init": { SchemaProps: spec.SchemaProps{ Description: "Init is used to initialize database", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.InitSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.InitSpec"), }, }, "backupSchedule": { SchemaProps: spec.SchemaProps{ Description: "BackupSchedule spec to specify how database backup will be taken", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec"), }, }, "doNotPause": { @@ -1013,9 +1013,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/appscode/kutil/tools/monitoring/api.AgentSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.InitSpec", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.Toleration"}, + "github.com/appscode/kutil/tools/monitoring/api.AgentSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.InitSpec", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.Toleration"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDBStatus": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDBStatus": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1042,7 +1042,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQL": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQL": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Mysql defines a Mysql database.", @@ -1068,21 +1068,21 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "spec": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQLSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQLSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQLStatus"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQLStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQLSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQLStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQLSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQLStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQLList": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQLList": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1112,7 +1112,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQL"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQL"), }, }, }, @@ -1122,9 +1122,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQL", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQL", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQLSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQLSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1171,13 +1171,13 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "init": { SchemaProps: spec.SchemaProps{ Description: "Init is used to initialize database", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.InitSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.InitSpec"), }, }, "backupSchedule": { SchemaProps: spec.SchemaProps{ Description: "BackupSchedule spec to specify how database backup will be taken", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec"), }, }, "doNotPause": { @@ -1229,9 +1229,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/appscode/kutil/tools/monitoring/api.AgentSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.InitSpec", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.Toleration"}, + "github.com/appscode/kutil/tools/monitoring/api.AgentSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.InitSpec", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.Toleration"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQLStatus": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQLStatus": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1258,7 +1258,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Origin": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Origin": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1270,62 +1270,62 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "spec": { SchemaProps: spec.SchemaProps{ Description: "Origin Spec to store original database Spec", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.OriginSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.OriginSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.OriginSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.OriginSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.OriginSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.OriginSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ "elasticsearch": { SchemaProps: spec.SchemaProps{ Description: "Elasticsearch Spec", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSpec"), }, }, "postgres": { SchemaProps: spec.SchemaProps{ Description: "Postgres Spec", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresSpec"), }, }, "mysql": { SchemaProps: spec.SchemaProps{ Description: "MySQL Spec", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQLSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQLSpec"), }, }, "mongodb": { SchemaProps: spec.SchemaProps{ Description: "MongoDB Spec", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDBSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDBSpec"), }, }, "redis": { SchemaProps: spec.SchemaProps{ Description: "Redis Spec", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.RedisSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.RedisSpec"), }, }, "memcached": { SchemaProps: spec.SchemaProps{ Description: "Memcached Spec", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MemcachedSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MemcachedSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MemcachedSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MongoDBSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.MySQLSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.RedisSpec"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MemcachedSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MongoDBSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.MySQLSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.RedisSpec"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Postgres": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Postgres": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Postgres defines a Postgres database.", @@ -1351,36 +1351,36 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "spec": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresStatus"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresArchiverSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresArchiverSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ "storage": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotStorageSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotStorageSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotStorageSpec"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotStorageSpec"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresList": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresList": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1410,7 +1410,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Postgres"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Postgres"), }, }, }, @@ -1420,9 +1420,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Postgres", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Postgres", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresSchemaInfo": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresSchemaInfo": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1432,7 +1432,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA AdditionalProperties: &spec.SchemaOrBool{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresTableInfo"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresTableInfo"), }, }, }, @@ -1443,9 +1443,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresTableInfo"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresTableInfo"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1480,7 +1480,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "archiver": { SchemaProps: spec.SchemaProps{ Description: "Archive for wal files", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresArchiverSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresArchiverSpec"), }, }, "databaseSecret": { @@ -1512,13 +1512,13 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "init": { SchemaProps: spec.SchemaProps{ Description: "Init is used to initialize database", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.InitSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.InitSpec"), }, }, "backupSchedule": { SchemaProps: spec.SchemaProps{ Description: "BackupSchedule spec to specify how database backup will be taken", - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec"), }, }, "doNotPause": { @@ -1570,9 +1570,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/appscode/kutil/tools/monitoring/api.AgentSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.InitSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresArchiverSpec", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.Toleration"}, + "github.com/appscode/kutil/tools/monitoring/api.AgentSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.BackupScheduleSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.InitSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresArchiverSpec", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.Toleration"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresStatus": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresStatus": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1599,7 +1599,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresSummary": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresSummary": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1609,7 +1609,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA AdditionalProperties: &spec.SchemaOrBool{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresSchemaInfo"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresSchemaInfo"), }, }, }, @@ -1620,9 +1620,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresSchemaInfo"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresSchemaInfo"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresTableInfo": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresTableInfo": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Following structures are used for audit summary report", @@ -1651,7 +1651,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, Dependencies: []string{}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresWALSourceSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresWALSourceSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1675,36 +1675,36 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "local": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.LocalSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.LocalSpec"), }, }, "s3": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.S3Spec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.S3Spec"), }, }, "gcs": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.GCSSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.GCSSpec"), }, }, "azure": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.AzureSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.AzureSpec"), }, }, "swift": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.AzureSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.GCSSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.LocalSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.S3Spec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.AzureSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.GCSSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.LocalSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.S3Spec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Redis": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Redis": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Redis defines a Redis database.", @@ -1730,21 +1730,21 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "spec": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.RedisSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.RedisSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.RedisStatus"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.RedisStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.RedisSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.RedisStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.RedisSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.RedisStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.RedisList": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.RedisList": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1774,7 +1774,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Redis"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Redis"), }, }, }, @@ -1784,9 +1784,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Redis", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Redis", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.RedisSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.RedisSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1875,7 +1875,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "github.com/appscode/kutil/tools/monitoring/api.AgentSpec", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.Toleration"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.RedisStatus": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.RedisStatus": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1902,7 +1902,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Report": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Report": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1927,21 +1927,21 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "summary": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ReportSummary"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ReportSummary"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ReportStatus"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ReportStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ReportStatus", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ReportSummary", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ReportStatus", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ReportSummary", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ReportStatus": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ReportStatus": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1961,7 +1961,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ReportSummary": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ReportSummary": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -1971,7 +1971,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA AdditionalProperties: &spec.SchemaOrBool{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresSummary"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresSummary"), }, }, }, @@ -1983,7 +1983,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA AdditionalProperties: &spec.SchemaOrBool{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSummary"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSummary"), }, }, }, @@ -1993,9 +1993,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSummary", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.PostgresSummary"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ElasticsearchSummary", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.PostgresSummary"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.S3Spec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.S3Spec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -2023,7 +2023,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, Dependencies: []string{}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.ScriptSourceSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.ScriptSourceSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -2201,7 +2201,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource", "k8s.io/api/core/v1.AzureDiskVolumeSource", "k8s.io/api/core/v1.AzureFileVolumeSource", "k8s.io/api/core/v1.CephFSVolumeSource", "k8s.io/api/core/v1.CinderVolumeSource", "k8s.io/api/core/v1.ConfigMapVolumeSource", "k8s.io/api/core/v1.DownwardAPIVolumeSource", "k8s.io/api/core/v1.EmptyDirVolumeSource", "k8s.io/api/core/v1.FCVolumeSource", "k8s.io/api/core/v1.FlexVolumeSource", "k8s.io/api/core/v1.FlockerVolumeSource", "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource", "k8s.io/api/core/v1.GitRepoVolumeSource", "k8s.io/api/core/v1.GlusterfsVolumeSource", "k8s.io/api/core/v1.HostPathVolumeSource", "k8s.io/api/core/v1.ISCSIVolumeSource", "k8s.io/api/core/v1.NFSVolumeSource", "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource", "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource", "k8s.io/api/core/v1.PortworxVolumeSource", "k8s.io/api/core/v1.ProjectedVolumeSource", "k8s.io/api/core/v1.QuobyteVolumeSource", "k8s.io/api/core/v1.RBDVolumeSource", "k8s.io/api/core/v1.ScaleIOVolumeSource", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.StorageOSVolumeSource", "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Snapshot": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Snapshot": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -2226,21 +2226,21 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "spec": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotStatus"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotList": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotList": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -2270,7 +2270,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Snapshot"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Snapshot"), }, }, }, @@ -2280,9 +2280,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.Snapshot", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.Snapshot", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotSourceSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotSourceSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -2303,7 +2303,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, Dependencies: []string{}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -2322,27 +2322,27 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "local": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.LocalSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.LocalSpec"), }, }, "s3": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.S3Spec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.S3Spec"), }, }, "gcs": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.GCSSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.GCSSpec"), }, }, "azure": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.AzureSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.AzureSpec"), }, }, "swift": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"), }, }, "type": { @@ -2362,9 +2362,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.AzureSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.GCSSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.LocalSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.S3Spec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec", "k8s.io/api/core/v1.ResourceRequirements"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.AzureSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.GCSSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.LocalSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.S3Spec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec", "k8s.io/api/core/v1.ResourceRequirements"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotStatus": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotStatus": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -2396,7 +2396,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA Dependencies: []string{ "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SnapshotStorageSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SnapshotStorageSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ @@ -2408,36 +2408,36 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "local": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.LocalSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.LocalSpec"), }, }, "s3": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.S3Spec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.S3Spec"), }, }, "gcs": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.GCSSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.GCSSpec"), }, }, "azure": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.AzureSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.AzureSpec"), }, }, "swift": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"), + Ref: ref("github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.AzureSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.GCSSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.LocalSpec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.S3Spec", "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"}, + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.AzureSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.GCSSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.LocalSpec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.S3Spec", "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec"}, }, - "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec": { + "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1.SwiftSpec": { Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Properties: map[string]spec.Schema{ diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/postgres_helpers.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/postgres_helpers.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/postgres_helpers.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/postgres_helpers.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/postgres_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/postgres_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/postgres_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/postgres_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/redis_helpers.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/redis_helpers.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/redis_helpers.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/redis_helpers.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/redis_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/redis_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/redis_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/redis_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/register.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/register.go similarity index 97% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/register.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/register.go index b9ac610bf..504e0c260 100644 --- a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/register.go +++ b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/register.go @@ -1,7 +1,7 @@ package v1alpha1 import ( - "github.com/k8sdb/apimachinery/apis/kubedb" + "github.com/kubedb/apimachinery/apis/kubedb" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/report.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/report.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/report.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/report.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/snapshot_helpers.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/snapshot_helpers.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/snapshot_helpers.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/snapshot_helpers.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/snapshot_types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/snapshot_types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/snapshot_types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/snapshot_types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/types.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/types.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/types.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/types.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/zz_generated.conversion.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/zz_generated.conversion.go similarity index 99% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/zz_generated.conversion.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/zz_generated.conversion.go index 434ed78ad..e711ba577 100644 --- a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/zz_generated.conversion.go +++ b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/zz_generated.conversion.go @@ -25,7 +25,7 @@ import ( types "github.com/appscode/go/encoding/json/types" api "github.com/appscode/kutil/tools/monitoring/api" - kubedb "github.com/k8sdb/apimachinery/apis/kubedb" + kubedb "github.com/kubedb/apimachinery/apis/kubedb" core_v1 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" conversion "k8s.io/apimachinery/pkg/conversion" diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/zz_generated.deepcopy.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/zz_generated.deepcopy.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/zz_generated.deepcopy.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/zz_generated.deepcopy.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/zz_generated.defaults.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/zz_generated.defaults.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1/zz_generated.defaults.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/v1alpha1/zz_generated.defaults.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/zz_generated.deepcopy.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/zz_generated.deepcopy.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/zz_generated.deepcopy.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/zz_generated.deepcopy.go diff --git a/vendor/github.com/k8sdb/apimachinery/apis/kubedb/zz_generated.defaults.go b/vendor/github.com/kubedb/apimachinery/apis/kubedb/zz_generated.defaults.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/apis/kubedb/zz_generated.defaults.go rename to vendor/github.com/kubedb/apimachinery/apis/kubedb/zz_generated.defaults.go diff --git a/vendor/github.com/k8sdb/apimachinery/client/scheme/doc.go b/vendor/github.com/kubedb/apimachinery/client/scheme/doc.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/client/scheme/doc.go rename to vendor/github.com/kubedb/apimachinery/client/scheme/doc.go diff --git a/vendor/github.com/k8sdb/apimachinery/client/scheme/register.go b/vendor/github.com/kubedb/apimachinery/client/scheme/register.go similarity index 96% rename from vendor/github.com/k8sdb/apimachinery/client/scheme/register.go rename to vendor/github.com/kubedb/apimachinery/client/scheme/register.go index 349fa257a..826ab9ee4 100644 --- a/vendor/github.com/k8sdb/apimachinery/client/scheme/register.go +++ b/vendor/github.com/kubedb/apimachinery/client/scheme/register.go @@ -17,7 +17,7 @@ limitations under the License. package scheme import ( - kubedbv1alpha1 "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" + kubedbv1alpha1 "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/doc.go b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/doc.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/doc.go rename to vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/doc.go diff --git a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/dormantdatabase.go b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/dormantdatabase.go similarity index 98% rename from vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/dormantdatabase.go rename to vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/dormantdatabase.go index 9215b6da3..b6dd9efa0 100644 --- a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/dormantdatabase.go +++ b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/dormantdatabase.go @@ -17,8 +17,8 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - scheme "github.com/k8sdb/apimachinery/client/scheme" + v1alpha1 "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + scheme "github.com/kubedb/apimachinery/client/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/elasticsearch.go b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/elasticsearch.go similarity index 97% rename from vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/elasticsearch.go rename to vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/elasticsearch.go index 1f04f2e3a..5fc961ed7 100644 --- a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/elasticsearch.go +++ b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/elasticsearch.go @@ -17,8 +17,8 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - scheme "github.com/k8sdb/apimachinery/client/scheme" + v1alpha1 "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + scheme "github.com/kubedb/apimachinery/client/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/generated_expansion.go b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/generated_expansion.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/generated_expansion.go rename to vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/generated_expansion.go diff --git a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/kubedb_client.go b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/kubedb_client.go similarity index 96% rename from vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/kubedb_client.go rename to vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/kubedb_client.go index e6d4fae04..811ea147a 100644 --- a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/kubedb_client.go +++ b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/kubedb_client.go @@ -17,8 +17,8 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/client/scheme" + v1alpha1 "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/client/scheme" serializer "k8s.io/apimachinery/pkg/runtime/serializer" rest "k8s.io/client-go/rest" ) diff --git a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/memcached.go b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/memcached.go similarity index 97% rename from vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/memcached.go rename to vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/memcached.go index 89a26f7d9..286f876c7 100644 --- a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/memcached.go +++ b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/memcached.go @@ -17,8 +17,8 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - scheme "github.com/k8sdb/apimachinery/client/scheme" + v1alpha1 "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + scheme "github.com/kubedb/apimachinery/client/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/mongodb.go b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/mongodb.go similarity index 97% rename from vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/mongodb.go rename to vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/mongodb.go index a99a33c0d..32c03e2fe 100644 --- a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/mongodb.go +++ b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/mongodb.go @@ -17,8 +17,8 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - scheme "github.com/k8sdb/apimachinery/client/scheme" + v1alpha1 "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + scheme "github.com/kubedb/apimachinery/client/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/mysql.go b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/mysql.go similarity index 97% rename from vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/mysql.go rename to vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/mysql.go index d3aa4c1b4..3f14a0f98 100644 --- a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/mysql.go +++ b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/mysql.go @@ -17,8 +17,8 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - scheme "github.com/k8sdb/apimachinery/client/scheme" + v1alpha1 "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + scheme "github.com/kubedb/apimachinery/client/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/postgres.go b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/postgres.go similarity index 97% rename from vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/postgres.go rename to vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/postgres.go index 7b328184c..515b1faca 100644 --- a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/postgres.go +++ b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/postgres.go @@ -17,8 +17,8 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - scheme "github.com/k8sdb/apimachinery/client/scheme" + v1alpha1 "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + scheme "github.com/kubedb/apimachinery/client/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/redis.go b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/redis.go similarity index 97% rename from vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/redis.go rename to vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/redis.go index 1b05d2bd9..c1b290e2b 100644 --- a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/redis.go +++ b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/redis.go @@ -17,8 +17,8 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - scheme "github.com/k8sdb/apimachinery/client/scheme" + v1alpha1 "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + scheme "github.com/kubedb/apimachinery/client/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/snapshot.go b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/snapshot.go similarity index 97% rename from vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/snapshot.go rename to vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/snapshot.go index 7f08760a1..f59fa252f 100644 --- a/vendor/github.com/k8sdb/apimachinery/client/typed/kubedb/v1alpha1/snapshot.go +++ b/vendor/github.com/kubedb/apimachinery/client/typed/kubedb/v1alpha1/snapshot.go @@ -17,8 +17,8 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - scheme "github.com/k8sdb/apimachinery/client/scheme" + v1alpha1 "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + scheme "github.com/kubedb/apimachinery/client/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/vendor/github.com/k8sdb/apimachinery/pkg/docker/checks.go b/vendor/github.com/kubedb/apimachinery/pkg/docker/checks.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/pkg/docker/checks.go rename to vendor/github.com/kubedb/apimachinery/pkg/docker/checks.go diff --git a/vendor/github.com/k8sdb/apimachinery/pkg/docker/images.go b/vendor/github.com/kubedb/apimachinery/pkg/docker/images.go similarity index 100% rename from vendor/github.com/k8sdb/apimachinery/pkg/docker/images.go rename to vendor/github.com/kubedb/apimachinery/pkg/docker/images.go diff --git a/vendor/github.com/k8sdb/apimachinery/pkg/storage/osm.go b/vendor/github.com/kubedb/apimachinery/pkg/storage/osm.go similarity index 98% rename from vendor/github.com/k8sdb/apimachinery/pkg/storage/osm.go rename to vendor/github.com/kubedb/apimachinery/pkg/storage/osm.go index 867f8f315..0fd1f07c8 100644 --- a/vendor/github.com/k8sdb/apimachinery/pkg/storage/osm.go +++ b/vendor/github.com/kubedb/apimachinery/pkg/storage/osm.go @@ -14,7 +14,7 @@ import ( "github.com/graymeta/stow/local" "github.com/graymeta/stow/s3" "github.com/graymeta/stow/swift" - api "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" + api "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" core "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" diff --git a/vendor/github.com/k8sdb/apimachinery/pkg/validator/validate.go b/vendor/github.com/kubedb/apimachinery/pkg/validator/validate.go similarity index 95% rename from vendor/github.com/k8sdb/apimachinery/pkg/validator/validate.go rename to vendor/github.com/kubedb/apimachinery/pkg/validator/validate.go index 73d3b208e..5fa97c278 100644 --- a/vendor/github.com/k8sdb/apimachinery/pkg/validator/validate.go +++ b/vendor/github.com/kubedb/apimachinery/pkg/validator/validate.go @@ -6,8 +6,8 @@ import ( "fmt" mona "github.com/appscode/kutil/tools/monitoring/api" - api "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/pkg/storage" + api "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/pkg/storage" core "k8s.io/api/core/v1" kerr "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/vendor/github.com/k8sdb/elasticsearch/LICENSE b/vendor/github.com/kubedb/elasticsearch/LICENSE similarity index 100% rename from vendor/github.com/k8sdb/elasticsearch/LICENSE rename to vendor/github.com/kubedb/elasticsearch/LICENSE diff --git a/vendor/github.com/kubedb/elasticsearch/pkg/validator/validate.go b/vendor/github.com/kubedb/elasticsearch/pkg/validator/validate.go new file mode 100644 index 000000000..b1b548327 --- /dev/null +++ b/vendor/github.com/kubedb/elasticsearch/pkg/validator/validate.go @@ -0,0 +1,56 @@ +package validator + +import ( + "errors" + "fmt" + + api "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/pkg/docker" + amv "github.com/kubedb/apimachinery/pkg/validator" + "k8s.io/client-go/kubernetes" +) + +func ValidateElasticsearch(client kubernetes.Interface, elasticsearch *api.Elasticsearch) error { + if elasticsearch.Spec.Version == "" { + return fmt.Errorf(`object 'Version' is missing in '%v'`, elasticsearch.Spec) + } + + if err := docker.CheckDockerImageVersion(docker.ImageElasticsearch, string(elasticsearch.Spec.Version)); err != nil { + return fmt.Errorf(`image %v:%v not found`, docker.ImageElasticsearch, elasticsearch.Spec.Version) + } + + topology := elasticsearch.Spec.Topology + if topology != nil { + if topology.Client.Prefix == topology.Master.Prefix { + return errors.New("client & master node should not have same prefix") + } + if topology.Client.Prefix == topology.Data.Prefix { + return errors.New("client & data node should not have same prefix") + } + if topology.Master.Prefix == topology.Data.Prefix { + return errors.New("master & data node should not have same prefix") + } + } + + if elasticsearch.Spec.Storage != nil { + if err := amv.ValidateStorage(client, elasticsearch.Spec.Storage); err != nil { + return err + } + } + + backupScheduleSpec := elasticsearch.Spec.BackupSchedule + if backupScheduleSpec != nil { + if err := amv.ValidateBackupSchedule(client, backupScheduleSpec, elasticsearch.Namespace); err != nil { + return err + } + } + + monitorSpec := elasticsearch.Spec.Monitor + if monitorSpec != nil { + if err := amv.ValidateMonitorSpec(monitorSpec); err != nil { + return err + } + + } + return nil +} diff --git a/vendor/github.com/k8sdb/memcached/LICENSE b/vendor/github.com/kubedb/memcached/LICENSE similarity index 100% rename from vendor/github.com/k8sdb/memcached/LICENSE rename to vendor/github.com/kubedb/memcached/LICENSE diff --git a/vendor/github.com/k8sdb/memcached/pkg/validator/validate.go b/vendor/github.com/kubedb/memcached/pkg/validator/validate.go similarity index 81% rename from vendor/github.com/k8sdb/memcached/pkg/validator/validate.go rename to vendor/github.com/kubedb/memcached/pkg/validator/validate.go index 12710f76d..cff88c364 100644 --- a/vendor/github.com/k8sdb/memcached/pkg/validator/validate.go +++ b/vendor/github.com/kubedb/memcached/pkg/validator/validate.go @@ -3,9 +3,9 @@ package validator import ( "fmt" - api "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/pkg/docker" - amv "github.com/k8sdb/apimachinery/pkg/validator" + api "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/pkg/docker" + amv "github.com/kubedb/apimachinery/pkg/validator" "k8s.io/client-go/kubernetes" ) diff --git a/vendor/github.com/k8sdb/mongodb/LICENSE b/vendor/github.com/kubedb/mongodb/LICENSE similarity index 100% rename from vendor/github.com/k8sdb/mongodb/LICENSE rename to vendor/github.com/kubedb/mongodb/LICENSE diff --git a/vendor/github.com/k8sdb/mongodb/pkg/validator/validate.go b/vendor/github.com/kubedb/mongodb/pkg/validator/validate.go similarity index 89% rename from vendor/github.com/k8sdb/mongodb/pkg/validator/validate.go rename to vendor/github.com/kubedb/mongodb/pkg/validator/validate.go index 113df4d80..440d07ea2 100644 --- a/vendor/github.com/k8sdb/mongodb/pkg/validator/validate.go +++ b/vendor/github.com/kubedb/mongodb/pkg/validator/validate.go @@ -3,9 +3,9 @@ package validator import ( "fmt" - api "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/pkg/docker" - amv "github.com/k8sdb/apimachinery/pkg/validator" + api "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/pkg/docker" + amv "github.com/kubedb/apimachinery/pkg/validator" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" ) diff --git a/vendor/github.com/k8sdb/mysql/LICENSE b/vendor/github.com/kubedb/mysql/LICENSE similarity index 100% rename from vendor/github.com/k8sdb/mysql/LICENSE rename to vendor/github.com/kubedb/mysql/LICENSE diff --git a/vendor/github.com/k8sdb/mysql/pkg/validator/validate.go b/vendor/github.com/kubedb/mysql/pkg/validator/validate.go similarity index 88% rename from vendor/github.com/k8sdb/mysql/pkg/validator/validate.go rename to vendor/github.com/kubedb/mysql/pkg/validator/validate.go index 142f023aa..36b1b10f5 100644 --- a/vendor/github.com/k8sdb/mysql/pkg/validator/validate.go +++ b/vendor/github.com/kubedb/mysql/pkg/validator/validate.go @@ -3,9 +3,9 @@ package validator import ( "fmt" - api "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/pkg/docker" - amv "github.com/k8sdb/apimachinery/pkg/validator" + api "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/pkg/docker" + amv "github.com/kubedb/apimachinery/pkg/validator" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" ) diff --git a/vendor/github.com/k8sdb/postgres/LICENSE b/vendor/github.com/kubedb/postgres/LICENSE similarity index 100% rename from vendor/github.com/k8sdb/postgres/LICENSE rename to vendor/github.com/kubedb/postgres/LICENSE diff --git a/vendor/github.com/kubedb/postgres/pkg/validator/validate.go b/vendor/github.com/kubedb/postgres/pkg/validator/validate.go new file mode 100644 index 000000000..ee34c62d5 --- /dev/null +++ b/vendor/github.com/kubedb/postgres/pkg/validator/validate.go @@ -0,0 +1,102 @@ +package validator + +import ( + "errors" + "fmt" + "strings" + + api "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/pkg/docker" + "github.com/kubedb/apimachinery/pkg/storage" + amv "github.com/kubedb/apimachinery/pkg/validator" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/client-go/kubernetes" +) + +func ValidatePostgres(client kubernetes.Interface, postgres *api.Postgres) error { + if postgres.Spec.Version == "" { + return fmt.Errorf(`object 'Version' is missing in '%v'`, postgres.Spec) + } + + version := fmt.Sprintf("%v-db", postgres.Spec.Version) + if err := docker.CheckDockerImageVersion(docker.ImagePostgres, version); err != nil { + return fmt.Errorf(`image %v:%v not found`, docker.ImagePostgres, version) + } + + if postgres.Spec.Storage != nil { + var err error + if err = amv.ValidateStorage(client, postgres.Spec.Storage); err != nil { + return err + } + } + if postgres.Spec.Standby != "" { + if strings.ToLower(string(postgres.Spec.Standby)) != "hot" && + strings.ToLower(string(postgres.Spec.Standby)) != "warm" { + return fmt.Errorf(`configuration.Standby "%v" invalid`, postgres.Spec.Standby) + } + } + if postgres.Spec.Streaming != "" { + // TODO: synchronous Streaming is unavailable due to lack of support + if /*strings.ToLower(configuration.Streaming) != "synchronous" && + */strings.ToLower(string(postgres.Spec.Streaming)) != "asynchronous" { + return fmt.Errorf(`configuration.Streaming "%v" invalid`, postgres.Spec.Streaming) + } + } + + archiver := postgres.Spec.Archiver.Storage + if archiver != nil { + if archiver.StorageSecretName == "" { + return fmt.Errorf(`object 'StorageSecretName' is missing in '%v'`, archiver) + } + if archiver.S3 == nil { + return errors.New("no storage provider is configured") + } + if !(archiver.GCS == nil && archiver.Azure == nil && archiver.Swift == nil && archiver.Local == nil) { + return errors.New("invalid storage provider is configured") + } + + if err := storage.CheckBucketAccess(client, *archiver, postgres.Namespace); err != nil { + return err + } + } + + databaseSecret := postgres.Spec.DatabaseSecret + if databaseSecret != nil { + if _, err := client.CoreV1().Secrets(postgres.Namespace).Get(databaseSecret.SecretName, metav1.GetOptions{}); err != nil { + return err + } + } + + if postgres.Spec.Init != nil && postgres.Spec.Init.PostgresWAL != nil { + wal := postgres.Spec.Init.PostgresWAL + if wal.StorageSecretName == "" { + return fmt.Errorf(`object 'StorageSecretName' is missing in '%v'`, wal) + } + if wal.S3 == nil { + return errors.New("no storage provider is configured") + } + if !(wal.GCS == nil && wal.Azure == nil && wal.Swift == nil && wal.Local == nil) { + return errors.New("invalid storage provider is configured") + } + + if err := storage.CheckBucketAccess(client, wal.SnapshotStorageSpec, postgres.Namespace); err != nil { + return err + } + } + + backupScheduleSpec := postgres.Spec.BackupSchedule + if backupScheduleSpec != nil { + if err := amv.ValidateBackupSchedule(client, backupScheduleSpec, postgres.Namespace); err != nil { + return err + } + } + + monitorSpec := postgres.Spec.Monitor + if monitorSpec != nil { + if err := amv.ValidateMonitorSpec(monitorSpec); err != nil { + return err + } + + } + return nil +} diff --git a/vendor/github.com/k8sdb/redis/LICENSE b/vendor/github.com/kubedb/redis/LICENSE similarity index 100% rename from vendor/github.com/k8sdb/redis/LICENSE rename to vendor/github.com/kubedb/redis/LICENSE diff --git a/vendor/github.com/k8sdb/redis/pkg/validator/validate.go b/vendor/github.com/kubedb/redis/pkg/validator/validate.go similarity index 83% rename from vendor/github.com/k8sdb/redis/pkg/validator/validate.go rename to vendor/github.com/kubedb/redis/pkg/validator/validate.go index 71a2b0288..8229f687f 100644 --- a/vendor/github.com/k8sdb/redis/pkg/validator/validate.go +++ b/vendor/github.com/kubedb/redis/pkg/validator/validate.go @@ -3,9 +3,9 @@ package validator import ( "fmt" - api "github.com/k8sdb/apimachinery/apis/kubedb/v1alpha1" - "github.com/k8sdb/apimachinery/pkg/docker" - amv "github.com/k8sdb/apimachinery/pkg/validator" + api "github.com/kubedb/apimachinery/apis/kubedb/v1alpha1" + "github.com/kubedb/apimachinery/pkg/docker" + amv "github.com/kubedb/apimachinery/pkg/validator" "k8s.io/client-go/kubernetes" )