-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add ck8s ops velero
command and clean up new velero finalizers
#2141
Add ck8s ops velero
command and clean up new velero finalizers
#2141
Conversation
afb615b
to
34d66ba
Compare
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.
This feels like it's working around something that was added with a purpose. Is there something preventing us from fulfilling the finalizers instead of just patching them?
I had the same thought. Should we try to use helmfile destroy more? Will that satisfy finalizers? Also I saw that Velero recommends doing
|
@simonklb ye, my reasoning would be that there should not matter in this case as we just want to be able to delete everything without interruption, but I will look into using
@robinAwallace Helmfile destroy would not delete all Velero resources that have finalizers in this case since some are created after deployment such as
I saw that too and was considering using it, but wasn't sure about adding it as another dependency to apps, but it might be good to do, as then we can also ensure the Velero CLI is installed with the a version matching the cluster as well. I can look into adding that and uninstall Velero that way, as that is the recommended way. |
👍 The only thing I'm worried about is that if we bypass the finalizers and delete we might end up leaving things behind. I assume the finalizers are there to make sure that everything gets cleaned up and terminated gracefully. On the other hand, it's not such a big deal if backups are left in the object storage since we delete it eventually as well.
Yea, if it's not a huge PITA it might be worth doing it "the right way". 😄 |
bcdd411
to
eea192f
Compare
Added so Velero is installed with |
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.
Really nice! :)
Would love to see the fix to the challenges cleanup in a separate commit, but that is completely optional.
ck8s ops velero
command and clean up new velero finalizers
4841fe7
to
c984b7c
Compare
Warning
This is a public repository, ensure not to disclose:
What kind of PR is this?
Required: Mark one of the following that is applicable:
Optional: Mark one or more of the following that are applicable:
Important
Breaking changes should be marked
kind/admin-change
orkind/dev-change
depending on typeCritical security fixes should be marked with
kind/security
Platform Administrator notice
It is now possible to run
velero
commands withck8s ops velero <wc|sc>
What does this PR do / why do we need this PR?
Running clean script got stuck when trying to delete Velero CRDs after having upgraded to the new Velero chart. This was caused by newly added finalizers to Velero resources (see breaking changes in this Velero release). This PR adds a step for running
velero uninstall
before deleting thevelero
namespace or any of its CRDs, as it is the recommended way according to their docs. To achieve this in the clean scripts, a newck8s ops
command was added forvelero
to be able to run thevelero
CLI against the correct cluster context.Information to reviewers
Checklist
NetworkPolicy Dashboard