Closed mrclrchtr closed 6 months ago
Is your Helm release called the same?
I'm using kustomize:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: cnpg-cluster
repo: https://cloudnative-pg.github.io/charts
releaseName: cnpg-cluster
version: 0.0.7
valuesFile: ../../../base/cnpg-cluster/values.yaml
So the it's the same I assume.
I'm sorry for the late response, but to understand the issue I need to clarify a couple of things.
According to the documentation for serverName
, the underlying parameter:
The server name on S3, the cluster name is used if this parameter is omitted
In turn the cluster name is based on the chart name and release name. Assuming that the release name was identical between the original standalone cluster and the consecutive recovery cluster it would have worked without needing to specify recovery.clusterName
.
That being said I'll crate a PR that sets it to:
serverName: {{ default (include "cluster.fullname" .) .Values.recovery.clusterName }}
This should make sure it is consistent.
Version 0.0.6 of Cluster-Chart
The following full config is not possible without
clusterName
set:With cluster name, the recovery works perfectly.
I did not use a different cluster name for the backup. It's the same config, I want to recover from.