How to properly restore a NS resource while using HNC (Hierarchical Namespaces) ? #7306
Unanswered
penoux
asked this question in
Community support Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We are struggling on an incompatibility between Velero and HNC controller while restoring a namespace resource.
On any namespace or subnamespace, HNC controller adds dedicated labels, example:
Velero backup works fine, but the restore fails:
The only workaround we have atm is, with bash scripts, to:
This is a lot of boilerplate for such a simple requirement, and we have data saved in a separate place.
We have tried to use resource-modifiers configmap at restore time to remove HNC labels on the fly. Thing is that some HNC labels include the namespace name, so we would have to generate and deploy a dedicated configmap before each restore...
Is there any way to proceed? To capture the namespace name into a regex and reuse it in a label patch/remove?
Beta Was this translation helpful? Give feedback.
All reactions