Skip to content

vcluster snapshot is not working when helmrelease is created in different namespace #3061

@floriankoch

Description

@floriankoch

What happened?

When i create a vcluster with a flux HelmRelease resource within the flux-system namespace , and the vcluster is installed in the mytestcluster namespace , the helm.sh/release.v1 secret is created in the flux-system namespace

Whit this setup, vcluster snapshot does not work, because the release is not found

What did you expect to happen?

vcluster snapshot works when installed via flux HelmRealease in a different namespace
At least the docs should warn about this scenario

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

Create a flux HelmRelease within flux-system, and create the vcluster in a different namespace

Anything else we need to know?

Using storageNamespace in the HelmRelease fixes the problem, but its not obvious that it needs to be used

Host cluster Kubernetes version

$ kubectl version
Client Version: v1.33.3
Kustomize Version: v5.6.0
Server Version: v1.32.6

vcluster version

$ vcluster --version
vcluster version 0.26.0

VCluster Config

# My vcluster.yaml / values.yaml here

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