-
Notifications
You must be signed in to change notification settings - Fork 253
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Hello,
trying to add chart https://github.com/cloudnative-pg/charts/tree/main/charts/plugin-barman-cloud into fleet and getting error from the very beginning:
cannot patch "objectstores.barmancloud.cnpg.io" with kind CustomResourceDefinition: customresourcedefinitions.apiextensions.k8s.io "objectstores.barmancloud.cnpg.io" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update && cannot patch "barman-cloud-client" with kind Certificate: certificates.cert-manager.io "barman-cloud-client" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update && cannot patch "barman-cloud-server" with kind Certificate: certificates.cert-manager.io "barman-cloud-server" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update
which seems to be a spurious error as the same chart with exact values (I used the values from the repo) using helm upgrade works without error.
Expected Behavior
Install without error.
Steps To Reproduce
- download the chart from https://github.com/cloudnative-pg/charts/tree/main/charts/plugin-barman-cloud
- create fleet.yaml with content:
defaultNamespace: cloudnativepg
helm:
chart: .
releaseName: cloudnativepg-barman-fleet
valuesFiles:
- values.yaml
- add it to fleet.
I removed values.schema.json and the test dir from my git for fleet.
Environment
- Architecture: x86_64
- Fleet Version: 0.13.4
- Cluster:
- Provider: rke2 1.33.6
- Options: 4 control plane nodes, 4 workers
- Kubernetes Version: 1.33.6Logs
fleet agent log:
{"level":"error","ts":"2025-11-22T23:56:00Z","msg":"Reconciler error","controller":"bundledeployment","controllerGroup":"fleet.cattle.io","controllerKind":"BundleDeployment","BundleDeployment":{"name":"cloudnative-barman-nrp1-cloudnative-barman-plugin","namespace":"cluster-fleet-default-c-884cv-280c34a1a790"},"namespace":"cluster-fleet-default-c-884cv-280c34a1a790","name":"cloudnative-barman-nrp1-cloudnative-barman-plugin","reconcileID":"6f964f67-064e-4d6b-9f29-60ce674517ad","error":"failed deploying bundle: cannot patch \"objectstores.barmancloud.cnpg.io\" with kind CustomResourceDefinition: customresourcedefinitions.apiextensions.k8s.io \"objectstores.barmancloud.cnpg.io\" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update && cannot patch \"barman-cloud-client\" with kind Certificate: certificates.cert-manager.io \"barman-cloud-client\" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update && cannot patch \"barman-cloud-server\" with kind Certificate: certificates.cert-manager.io \"barman-cloud-server\" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update","errorCauses":[{"error":"failed deploying bundle: cannot patch \"objectstores.barmancloud.cnpg.io\" with kind CustomResourceDefinition: customresourcedefinitions.apiextensions.k8s.io \"objectstores.barmancloud.cnpg.io\" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update && cannot patch \"barman-cloud-client\" with kind Certificate: certificates.cert-manager.io \"barman-cloud-client\" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update && cannot patch \"barman-cloud-server\" with kind Certificate: certificates.cert-manager.io \"barman-cloud-server\" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update"}],"stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:353\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:300\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.1\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:202"}Anything else?
No response