You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the same issue, but after looking at the code it seems like even though docs say CRDs and resources, those options are only for CRDs. Trying to sync ServiceAccounts or Secrets (in my case) don't work.
What happened?
The selector won't work for the generic synced's import.
What did you expect to happen?
As per the docs, the selector is supposed to be accepted.
https://www.vcluster.com/docs/vcluster/configure/vcluster-yaml/experimental/generic-sync#:~:text=limit%20which%20resources%20to%20sync%20from%20the%20host%20cluster
How can we reproduce it (as minimally and precisely as possible)?
try vcluster create command with the below config:
Anything else we need to know?
As compared to exporter's selector implementation, importer misses these:
1/ selector field doesn't exist in importer
https://github.com/loft-sh/vcluster/blob/main/config/config.go#L1803
2/ exclude based on the selector
exporter checks selector https://github.com/loft-sh/vcluster/blob/main/pkg/controllers/generic/export_syncer.go#L136-L140
where importer doesn't https://github.com/loft-sh/vcluster/blob/main/pkg/controllers/generic/import_syncer.go#L182
If this is a miss, happy to contribute, if you prefer :)
Host cluster Kubernetes version
vcluster version
VCluster Config
The text was updated successfully, but these errors were encountered: