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
🐛 Use CRD version prior to remap_crd_version backup item action #2683
🐛 Use CRD version prior to remap_crd_version backup item action #2683
Conversation
This PR looked good in testing against a kubernetes 1.17. Going to run more tests. |
5884a59
to
07e4cfe
Compare
Verified this PR on |
Signed-off-by: Ashish Amarnath <ashisham@vmware.com>
Signed-off-by: Ashish Amarnath <ashisham@vmware.com>
Signed-off-by: Ashish Amarnath <ashisham@vmware.com>
07e4cfe
to
0af3541
Compare
@ashish-amarnath Did you try this against versions lower than 1.17, too? Also, what other CRDs did you test against? We probably want a few different ones to verify against, just to be sure we get a representative sample size. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just waiting on confirmation of testing on Kubernetes versions.
Verified this PR on KIND_IMAGE_VERSIONS=("kindest/node:v1.16.9" "kindest/node:v1.17.0" "kindest/node:v1.18.4") I used the executionhook and hookaction CR from https://github.com/kubernetes-sigs/execution-hook/pull/5/files. |
@carlisia PTAL. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
…re-tanzu#2683) * 🐛 preserve crd version before remapping Signed-off-by: Ashish Amarnath <ashisham@vmware.com>
* Adjust restic timeout and pod values up (#2696) * Adjust restic timeout and pod values up Signed-off-by: Nolan Brubaker <brubakern@vmware.com> * 🐛 Use CRD version prior to remap_crd_version backup item action (#2683) * 🐛 preserve crd version before remapping Signed-off-by: Ashish Amarnath <ashisham@vmware.com> * 🏃♂️ pass git state to build from makefile Signed-off-by: Ashish Amarnath <ashisham@vmware.com> * Add scripts for tagging Velero releases (#2592) * Add release tools Signed-off-by: Nolan Brubaker <brubakern@vmware.com> * Document the tag-release release tool Signed-off-by: Nolan Brubaker <brubakern@vmware.com> * Make sure the upstream used is correct Signed-off-by: Nolan Brubaker <brubakern@vmware.com> * Add copyright statement Signed-off-by: Nolan Brubaker <brubakern@vmware.com> * Address review feedback * Pause to allow for cherry-picking on the release branch before pushing it * Move master branch logic into an else statement * Correct typo Signed-off-by: Nolan Brubaker <brubakern@vmware.com> * Uncomment check for dirty git working tree Signed-off-by: Nolan Brubaker <brubakern@vmware.com> Co-authored-by: Ashish Amarnath <ashisham@vmware.com>
Signed-off-by: Ashish Amarnath ashisham@vmware.com
Fixes: #2682
Captures the version of the CRD before the
remap_crd_version
backup item action plugin updates the version.This ensures that check at item_backupper.go#L253 is satisfied and that the manifest in the backup is persisted under
<BACKUP_ROOT>/resource/customresourcedefinitions.apiextensions.k8s.io/cluster
where it is expected to restore correctly