Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix-Update namespace restoration logic to respect existingResourcePolicy #14

Open
wants to merge 1 commit into
base: production
Choose a base branch
from

Conversation

sshende-catalogicsoftware
  • Updated tag from v1.14.0.6-1 to v1.14.0.6-2
  • This fix addresses an issue where namespace labels and annotations were not being updated during a restore, even when overwrite behavior was expected.
  • Updated namespace restore logic to handle ExistingResourcePolicyTypeUpdate using the processUpdateResourcePolicy function.
  • Added fallback logic to manually update labels and annotations if the patch operation fails.
  • Ensured that namespace updates only occur when the --existing-resource-policy flag is set to update.
  • Cluster-scoped resources like Namespace are included even when specific namespaces are selected.
  • Update image tag name from v1.14.0.8 to v1.14.0.9.

Fixes KUBEDR-6210

( cherry picked from commit ... )

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Fixes #(issue)

Please indicate you've done the following:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

- Updated tag from v1.14.0.6-1 to v1.14.0.6-2
- This fix addresses an issue where namespace labels and annotations were not being updated during a restore, even when overwrite behavior was expected.
- Updated namespace restore logic to handle `ExistingResourcePolicyTypeUpdate` using the `processUpdateResourcePolicy` function.
- Added fallback logic to manually update labels and annotations if the patch operation fails.
- Ensured that namespace updates only occur when the `--existing-resource-policy` flag is set to `update`.
- Cluster-scoped resources like Namespace are included even when specific namespaces are selected.
- Update image tag name from v1.14.0.8 to v1.14.0.9.

Fixes KUBEDR-6210

( cherry picked from commit ... )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant