Open akshaymankar opened 2 years ago
Those env vars are added when a restore is performed. Are you trying to perform a restore?
Hi, yes I performed a restore. But those env variables are left behind after the restore is performed. In my team we use terraform to manage kubernetes resources, terraform started noticing these new changes. But we've since migrated to k8ssandra-operator v2 and we no longer manage this resource ourselves, so this is not a problem for us anymore. Keeping this open in case someone else has this problem.
This is indeed problematic: After performing a successful restore, I can't scale the cluster up (add new nodes by increasing the 'size' in the datacenter) because new pods crash with "no such backup".
How can I remove these environment variables manually after completing the restore so I can scale the datacenter?
Is your feature request related to a problem? Please describe.
We use terraform to create the datacenter objects in kubernetes. When a backup is applied, the medusa-operator adds
RESTORE_KEY
andBACKUP_NAME
env variables to the medusa container. Next time we try to apply terraform this appears as a change and terraform even fails to apply this change due to field_manager conflicts.Describe the solution you'd like
After a restore is complete, medusa-operator should remove the environment variables it has added.
Describe alternatives you've considered
None.
Additional context
The diff from terraform:
Error from terraform on apply failure:
Using
force_conflicts
seems a bit dangerous given that will overwrite anything else that could be important.┆Issue is synchronized with this Jira Task by Unito ┆friendlyId: K8SSAND-1183 ┆priority: Medium