Skip to content

dependencies ordering #32119

@khteh

Description

@khteh

What happened?

I want to helm install customized https://github.com/cloudnative-pg/charts chart and hits a missing-CRDs error. I have the following dependencies defined in Chart.yml:

dependencies:
  - name: cloudnative-pg
    version: "v0.28.0"
    repository: https://cloudnative-pg.github.io/charts
  - name: cluster
    version: "v0.6.0"
    repository: https://cloudnative-pg.github.io/charts

and helm install hits this error:

$ helm install postgresql-cluster PostgreSQL_Cluster/
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "postgresql-cluster" namespace: "default" from "": no matches for kind "Cluster" in version "postgresql.cnpg.io/v1"
ensure CRDs are installed first

What did you expect to happen?

helm install the dependencies in listed ordering.

How can we reproduce it (as minimally and precisely as possible)?

helm install this chart: https://github.com/khteh/Kubernetes/tree/master/PostgreSQL/PostgreSQL_Cluster

Helm version

Details
$ helm version
version.BuildInfo{Version:"v3.20.0", GitCommit:"b2e4314fa0f229a1de7b4c981273f61d69ee5a59", GitTreeState:"clean", GoVersion:"go1.25.6"}

Kubernetes version

Details
$ kubectl version
clientVersion:
  buildDate: "2025-12-18T08:37:08Z"
  compiler: gc
  gitCommit: 66452049f3d692768c39c797b21b793dce80314e
  gitTreeState: clean
  gitVersion: v1.35.0
  goVersion: go1.25.5
  major: "1"
  minor: "35"
  platform: linux/amd64
kustomizeVersion: v5.7.1
serverVersion:
  buildDate: "2025-12-18T08:38:08Z"
  compiler: gc
  emulationMajor: "1"
  emulationMinor: "35"
  gitCommit: 66452049f3d692768c39c797b21b793dce80314e
  gitTreeState: clean
  gitVersion: v1.35.0
  goVersion: go1.25.5
  major: "1"
  minCompatibilityMajor: "1"
  minCompatibilityMinor: "34"
  minor: "35"
  platform: linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions