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 accidental PVC expunge when used icw cloudstack-csi-driver #17

Merged
merged 9 commits into from
Jul 11, 2024

Conversation

hrak
Copy link
Member

@hrak hrak commented Jul 10, 2024

Issue #, if available:

#16

Description of changes:

  • Dont expunge all attached data volumes on machine destroy
    If csMachine.Spec.DiskOffering is nil, skip looking up data volumes attached to VM for expunging
    If csMachine.Spec.DiskOffering is not nil, only add data volumes for expunging that are named 'DATA-'
  • Update to CAPI v1.5.8
  • Revert changes addressing deprecated pointer.To, since the replacement package k8s.io/utils/pointer requires a newer version of k8s.io/utils which pulls in a version of k8s.io/kube-openapi that is incompatible with client-go 0.27.x
  • Fixed broken tests
  • backported upstream change related to the translation of network names containing an underscore

Testing performed:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

hrak added 2 commits July 10, 2024 16:52
This avoids having a monolithic hack/tools/go.mod file and fixes problems with kustomize v4.5.7 failing to build w/ CAPI 1.5.x
@hrak hrak force-pushed the fix/pvc_expunge branch from 194e2d2 to e474834 Compare July 10, 2024 14:53
@hrak hrak merged commit 18fe61e into develop Jul 11, 2024
3 checks passed
@hrak hrak deleted the fix/pvc_expunge branch July 11, 2024 06:02
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.

2 participants