Improve etcd indexing - start from 1

This commit is contained in:
Pearl Dsilva 2024-07-31 11:59:52 -04:00 committed by nvazquez
parent 1952f2e7dd
commit 9905f07b6e
No known key found for this signature in database
GPG Key ID: 656E1BCC8CB54F84
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ public class KubernetesClusterStartWorker extends KubernetesClusterResourceModif
private List<String> getEtcdNodeHostnames() {
List<String> hostnames = new ArrayList<>();
for (int etcdNodeIndex = 0; etcdNodeIndex <= kubernetesCluster.getEtcdNodeCount(); etcdNodeIndex++) {
for (int etcdNodeIndex = 1; etcdNodeIndex <= kubernetesCluster.getEtcdNodeCount(); etcdNodeIndex++) {
String suffix = Long.toHexString(System.currentTimeMillis());
hostnames.add(String.format("%s-%s-%s", getEtcdNodeNameForCluster(), etcdNodeIndex, suffix));
}