What happened:
If a user deployed multiple lws objects in the same cluster with names like: lws; lws-1; lws-2; then the "lws" object will create sts lws-1 as the worker sts; but "lws-1" lws object will create sts lws-1 as the leader sts.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Create a LWS object with name "lws" with size 4 and replicas 3;
Create a LWS object with name "lws-1 with size 4 and replicas 3"
Verify that pods count is incorrect
Anything else we need to know?:
Environment:
Kubernetes version (use kubectl version):
LWS version (use git describe --tags --dirty --always):
What happened: If a user deployed multiple lws objects in the same cluster with names like: lws; lws-1; lws-2; then the "lws" object will create sts lws-1 as the worker sts; but "lws-1" lws object will create sts lws-1 as the leader sts. What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):git describe --tags --dirty --always
):cat /etc/os-release
):uname -a
):