-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Environmental Info:
Host Cluster Version:
RKE2 v1.31.11
Host Cluster Configuration:
haos-virtual-clusters-pool1-wjp2n-s2tk6 Ready control-plane,etcd,master,worker 3d19h v1.31.11+rke2r1
chaos-virtual-clusters-pool1-wjp2n-sw7fz Ready control-plane,etcd,master,worker 3d19h v1.31.11+rke2r1
chaos-virtual-clusters-pool1-wjp2n-w26w4 Ready control-plane,etcd,master,worker 3d19h v1.31.11+rke2r1
K3K Cluster Configuration:
- 3 server nodes
shared
mode
Describe the bug:
If the cluster name contains -
we don't handle the server deletion properly in
k3k/pkg/controller/cluster/pod.go
Line 74 in 4d4003f
clusterName := s[1] |
As it will not go through the whole deletion process for etcd
k3k/pkg/controller/cluster/pod.go
Line 134 in 4d4003f
tlsConfig, err := p.getETCDTLS(ctx, &cluster) |
It would probably be safer to rely on the label cluster
on the found server pod