This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
[BUG] a node'label will be deleted if it deleted from a nodepool that has the same label #41
Labels
kind/bug
kind/bug
What happened:
First, I create a nodePool
Second, I add a label in a node
Third, I add the node to the nodepool
Last, I delete the node from the nodePool
What you expected to happen:
The node should have a label
foo=bar
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
I read the source code, find it record the nodePool related attribute.
yurt-app-manager/pkg/yurtappmanager/controller/nodepool/nodepool_controller.go
Lines 236 to 241 in 5dc7d07
yurt-app-manager/pkg/yurtappmanager/controller/nodepool/nodepool_controller.go
Lines 325 to 327 in 5dc7d07
When the node delete from the nodepool, all label will be deleted include the same label.
yurt-app-manager/pkg/yurtappmanager/controller/nodepool/nodepool_controller.go
Lines 268 to 304 in 5dc7d07
Environment:
kubectl version
):cat /etc/os-release
):uname -a
):others
/kind bug
The text was updated successfully, but these errors were encountered: