SUSE / caasp-salt

A collection of salt states used to provision a kubernetes cluster
Apache License 2.0
64 stars 29 forks source link

Fix etcd member addition on nodename changes #686

Closed bergmannf closed 5 years ago

bergmannf commented 5 years ago

When the default nodename that is used by salt changes duplicates would be added to etcd.

This pull request checks if a given nodename might be known to the cluster by an alias. If any of the aliases is already an etcd member, then no changes are performed.

This PR also fixes the wrong key used to get the current etcd api version from a pillar.