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

[velero] Remove helm hooks for the custom resources #490

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

jenting
Copy link
Collaborator

@jenting jenting commented Aug 13, 2023

Special notes for your reviewer:

The PR #414 have moved the upgrade CRD job from post hook to pre hook to ensure that the custom resources create/upgrade after the CRD installed/upgraded.

Therefore, the helm hooks for the custom resources are no longer required includes

  • backupstoragelocations.velero.io
  • volumesnapshotlocations.velero.io
  • schedules.velero.io

Fixes #298 #392 #435 #462

Important

It's a breaking change during helm upgrade because the backupstoragelocations.velero.io, volumesnapshotlocations.velero.io, schedules.velero.io which were created by helm hooks does not includes the two annotations

  • meta.helm.sh/release-name
  • meta.helm.sh/release-namespace

Removing the helm hooks, the helm upgrade requires the above two annotations existed.
The workaround is manually remove the backupstoragelocations.velero.io, volumesnapshotlocations.velero.io, schedules.velero.io and recreated by helm upgrade.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the values.yaml or README.md
  • Title of the PR starts with chart name (e.g. [velero])

The PR #414 have moved the upgrade CRD job from post hook to pre hook to
ensure that the custom resources create/upgrade after the CRD
installed/upgraded.

Therefore, the helm hooks for the custom resources are no longer
required includes
- backupstoragelocations.velero.io
- volumesnapshotlocations.velero.io
- schedules.velero.io

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
@jenting jenting marked this pull request as ready for review August 16, 2023 13:01
@qiuming-best qiuming-best merged commit 2432de2 into main Aug 17, 2023
13 checks passed
@jenting jenting deleted the remove-helm-hook branch August 17, 2023 01:47
cwrau added a commit to teutonet/teutonet-helm-charts that referenced this pull request Aug 24, 2023
delete old backupstoragelocations like they recommend in vmware-tanzu/helm-charts#490
replaces #524
cwrau added a commit to teutonet/teutonet-helm-charts that referenced this pull request Aug 24, 2023
delete old backupstoragelocations like they recommend in vmware-tanzu/helm-charts#490
replaces #524
cwrau added a commit to teutonet/teutonet-helm-charts that referenced this pull request Aug 24, 2023
delete old backupstoragelocations like they recommend in vmware-tanzu/helm-charts#490
replaces #524
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.

Velero schedule is replaced on every helm upgrade
3 participants