Skip to content

cnpg/cluster - spec.externalClusters not an array in cluster.yaml #753

@bartekd123

Description

@bartekd123

I see that cluster.yaml is just updated, and when I deploy cnpg/cluster I get the following error:

Error: Cluster.postgresql.cnpg.io "dbName" is invalid: [spec.externalClusters: Invalid value: "null": spec.externalClusters in body must be of type array: "null", : Invalid value: "null": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]

Looking at cluster\templates\cluster.yaml, I see this:
{{ include "cluster.externalClusters" . | nindent 2 }}

Should there be a _externalClusters.tpl as well?

Here is my helm command:
helm upgrade --install --timeout=600s dbName cnpg/cluster --set cluster.imagePullPolicy=Always --set nameOverride=dbName --set fullnameOverride=dbName --set-string version.postgresql=15 --set cluster.instances=1 --set cluster.enableSuperuserAccess=true --set cluster.superuserSecret=postgresuser-secret

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions