mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-02 19:11:20 +02:00
ETCD_NAME
`etcd` node's name was defined by `ETCD_NAME`, from `etcd/v3` the server can't be started with both `ETCD_NAME` and `--name` supplied. Which leads to three cases: * `etcd-member.service` starts without further configuration, no issue since only `ETCD_NAME=%m` is used * `etcd-member.service` is overrided with a CLC without `name: ` key, no issue since only `ETCD_NAME=%m` is used * `etcd-member.service` is overrided with a CLC with a `name: ` key, there is an issue since in the final service we will have both `ETCD_NAME=%m` and `--name name-from-clc` This patch conditionally unset the `ETCD_NAME` in case `--name` is supplied. Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Description
Languages
Shell
93.1%
Python
6.9%