Skip to content

Instantly share code, notes, and snippets.

@tamalsaha
Created April 22, 2022 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamalsaha/26555378d67dad901e282d4b4c96ea71 to your computer and use it in GitHub Desktop.
Save tamalsaha/26555378d67dad901e282d4b4c96ea71 to your computer and use it in GitHub Desktop.
tamal@m1 ~/g/s/k/installer (pb-version)> helm upgrade -i kubedb-catalog appscode/kubedb-catalog -n kubedb --create-namespace \
--set catalog.elasticsearch=false \
--set catalog.etcd=false \
--set catalog.memcached=false \
--set catalog.mongodb=false \
--set catalog.mysql=false \
--set catalog.mariadb=false \
--set catalog.perconaxtradb=false \
--set catalog.postgres=false \
--set catalog.proxysql=false \
--set catalog.redis=false \
--set catalog.pgbouncer=true
Release "kubedb-catalog" does not exist. Installing it now.
NAME: kubedb-catalog
LAST DEPLOYED: Fri Apr 22 16:08:20 2022
NAMESPACE: kubedb
STATUS: deployed
REVISION: 1
TEST SUITE: None
tamal@m1 ~/g/s/k/installer (pb-version)> k get crds
NAME CREATED AT
elasticsearchversions.catalog.kubedb.com 2022-04-22T23:08:19Z
etcdversions.catalog.kubedb.com 2022-04-22T23:08:19Z
mariadbversions.catalog.kubedb.com 2022-04-22T23:08:19Z
memcachedversions.catalog.kubedb.com 2022-04-22T23:08:19Z
mongodbversions.catalog.kubedb.com 2022-04-22T23:08:19Z
mysqlversions.catalog.kubedb.com 2022-04-22T23:08:19Z
perconaxtradbversions.catalog.kubedb.com 2022-04-22T23:08:19Z
pgbouncerversions.catalog.kubedb.com 2022-04-22T23:08:19Z
postgresversions.catalog.kubedb.com 2022-04-22T23:08:19Z
proxysqlversions.catalog.kubedb.com 2022-04-22T23:08:19Z
redisversions.catalog.kubedb.com 2022-04-22T23:08:19Z
tamal@m1 ~/g/s/k/installer (pb-version)> k get pgbouncerversion
NAME VERSION SERVER_IMAGE DEPRECATED AGE
1.10.0 1.10.0 kubedb/pgbouncer:1.10.0 28s
1.11.0 1.11.0 kubedb/pgbouncer:1.11.0 28s
1.12.0 1.12.0 kubedb/pgbouncer:1.12.0 28s
1.7.1 1.7.1 kubedb/pgbouncer:1.7.1 28s
1.7.2 1.7.2 kubedb/pgbouncer:1.7.2 28s
1.8.1 1.8.1 kubedb/pgbouncer:1.8.1 28s
1.9.0 1.9.0 kubedb/pgbouncer:1.9.0 28s
tamal@m1 ~/g/s/k/installer (pb-version)> helm upgrade -i kubedb-catalog charts/kubedb-catalog -n kubedb --create-namespace \
--set catalog.elasticsearch=false \
--set catalog.etcd=false \
--set catalog.memcached=false \
--set catalog.mongodb=false \
--set catalog.mysql=false \
--set catalog.mariadb=false \
--set catalog.perconaxtradb=false \
--set catalog.postgres=false \
--set catalog.proxysql=false \
--set catalog.redis=false \
--set catalog.pgbouncer=true
Error: UPGRADE FAILED: error validating "": error validating data: [ValidationError(PgBouncerVersion.spec): unknown field "initContainer" in com.kubedb.catalog.v1alpha1.PgBouncerVersion.spec, ValidationError(PgBouncerVersion.spec): unknown field "pgBouncer" in com.kubedb.catalog.v1alpha1.PgBouncerVersion.spec, ValidationError(PgBouncerVersion.spec): missing required field "server" in com.kubedb.catalog.v1alpha1.PgBouncerVersion.spec]
tamal@m1 ~/g/s/k/installer (pb-version) [1]> ./hack/scripts/import-crds.sh ../apimachinery/crds/
tamal@m1 ~/g/s/k/installer (pb-version)> gs
On branch pb-version
Your branch is up to date with 'origin/pb-version'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: charts/kubedb-catalog/crds/catalog.kubedb.com_pgbouncerversions.yaml
modified: charts/kubedb-crds/crds/catalog.kubedb.com_pgbouncerversions.yaml
modified: charts/kubedb-crds/crds/schema.kubedb.com_mariadbdatabases.yaml
modified: charts/kubedb-metrics/crds/metrics.appscode.com_metricsconfigurations.yaml
modified: crds/kubedb-catalog-crds.yaml
modified: crds/kubedb-crds.yaml
no changes added to commit (use "git add" and/or "git commit -a")
tamal@m1 ~/g/s/k/installer (pb-version)> gg
tamal@m1 ~/g/s/k/installer (pb-version)> helm upgrade -i kubedb-catalog charts/kubedb-catalog -n kubedb --create-namespace \
--set catalog.elasticsearch=false \
--set catalog.etcd=false \
--set catalog.memcached=false \
--set catalog.mongodb=false \
--set catalog.mysql=false \
--set catalog.mariadb=false \
--set catalog.perconaxtradb=false \
--set catalog.postgres=false \
--set catalog.proxysql=false \
--set catalog.redis=false \
--set catalog.pgbouncer=true
Error: UPGRADE FAILED: error validating "": error validating data: [ValidationError(PgBouncerVersion.spec): unknown field "initContainer" in com.kubedb.catalog.v1alpha1.PgBouncerVersion.spec, ValidationError(PgBouncerVersion.spec): unknown field "pgBouncer" in com.kubedb.catalog.v1alpha1.PgBouncerVersion.spec, ValidationError(PgBouncerVersion.spec): missing required field "server" in com.kubedb.catalog.v1alpha1.PgBouncerVersion.spec]
tamal@m1 ~/g/s/k/installer (pb-version) [1]> k apply -f charts/kubedb-catalog/crds/catalog.kubedb.com_pgbouncerversions.yaml
Warning: resource customresourcedefinitions/pgbouncerversions.catalog.kubedb.com is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
customresourcedefinition.apiextensions.k8s.io/pgbouncerversions.catalog.kubedb.com configured
tamal@m1 ~/g/s/k/installer (pb-version)>
tamal@m1 ~/g/s/k/installer (pb-version)>
tamal@m1 ~/g/s/k/installer (pb-version)> helm upgrade -i kubedb-catalog charts/kubedb-catalog -n kubedb --create-namespace \
--set catalog.elasticsearch=false \
--set catalog.etcd=false \
--set catalog.memcached=false \
--set catalog.mongodb=false \
--set catalog.mysql=false \
--set catalog.mariadb=false \
--set catalog.perconaxtradb=false \
--set catalog.postgres=false \
--set catalog.proxysql=false \
--set catalog.redis=false \
--set catalog.pgbouncer=true
Release "kubedb-catalog" has been upgraded. Happy Helming!
NAME: kubedb-catalog
LAST DEPLOYED: Fri Apr 22 16:10:42 2022
NAMESPACE: kubedb
STATUS: deployed
REVISION: 2
TEST SUITE: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment