Missing CRDs

Issue: If you encounter an error during installation or upgrade


Error: UPGRADE FAILED: resource mapping not found for name: "<releasename>-pg-db" 
namespace: "uno" from "": no matches for kind "PerconaPGCluster" in version "pgv2.percona.com/v2"

It usually indicates that the required Custom Resource Definitions (CRDs) are not installed.

Solution:

Ensure the Percona PostgreSQL Operator is installed or upgraded before creating your cluster:


helm upgrade --install pg-operator percona/pg-operator \
  --version 2.8.0 \
  -n "$NS

Replace $NS with your namespace. This ensures all necessary CRDs and resources are available.

Note:
  1. Replace <namespace> with the Kubernetes namespace where you want the components installed.
  2. The pg-operator will be installed automatically in the same namespace specified by the -n flag in the command.
  3. For other installation options, see Alternative installation methods.
  4. For more details, refer to the official Percona Helm chart documentation: https://github.com/percona/percona-helm-charts/tree/main/charts/pg-operator