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

Alternative to StatefulSetAutoDeletePVC #379

Open
LionelJouin opened this issue Feb 22, 2023 · 0 comments
Open

Alternative to StatefulSetAutoDeletePVC #379

LionelJouin opened this issue Feb 22, 2023 · 0 comments

Comments

@LionelJouin
Copy link
Member

Is your feature request related to a problem? Please describe.

This issue is a follow-up to these:
#362
#361

The current implementation using the persistentVolumeClaimRetentionPolicy property in the StatefulSet specs requires the users to run on at least, Kubernetes v1.23 with the feature gate StatefulSetAutoDeletePVC enabled. This feature, as of Kubernetes v1.26 is still in alpha and disabled by default. Here is a PR to move it to beta: kubernetes/kubernetes#111300. And here is the documentation: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention

Without this enabled, users will still face the issue described here: #361

Describe the solution you'd like
When delting a trench, the operator must delete the PVC assigned to the NSP and IPAM. Deleting the PVC will automatically delete the PV (so no API access needed for this).

This will require the operator to have access to another Kubernetes API function to detete the PVC (PVC is a namespaced resource).

Describe alternatives you've considered
/

Additional context
/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 To Do
Development

No branches or pull requests

1 participant