Database upgrade script fails when the deployment uses a non-default namespace
Following the steps to upgrade the bundled PostgreSQL chart, scripts/database-upgrade
fails to work on a deployment that uses a non-default namespace.
All kubectl
calls assume that the deployment uses the default
namespace.
Workaround
kubectl config set-context --current --namespace=NAMESPACE
Before running the script.