nirmata / kube-static-egress-ip

Kubernetes CRD to manage static egress IP addresses for workloads
Apache License 2.0
213 stars 38 forks source link

Fix bug for ready nodes slice #51

Open tallongsun opened 4 years ago

tallongsun commented 4 years ago

Adding pointer to slice in range loop, every item in the slice will be the value of the original slice's last item. So, it's better to add the value itself to ready nodes slice.