when Volcano is uninstalled, two resources will remain #2980
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this PR is releated to #2979
change resourcelock.New(resourcelock.ConfigMapsLeasesResourceLock to resourcelock.New(resourcelock.LeasesResourceLock
Why is this needed:
it will use fewer resource
beofore this PR
kubectl get cm -A
kube-system vc-controller-manager 0 171d
kube-system volcano 0 171d
kubectl get leases -A
kube-system vc-controller-manager volcano-controller-6bdcc5ccdf-qt7sx_0aeaadca-4c71-4cc3-945b-19a06db5e6b1 171d
kube-system volcano volcano-scheduler-1_5d9b01e2-01c5-4d85-ab48-9f931ec77efc 171d
after this PR
only left leases
kubectl get leases -A
kube-system vc-controller-manager volcano-controller-6bdcc5ccdf-qt7sx_0aeaadca-4c71-4cc3-945b-19a06db5e6b1 171d
kube-system volcano volcano-scheduler-1_5d9b01e2-01c5-4d85-ab48-9f931ec77efc 171d