image build and composition scripts for Flatcar Container Linux
Go to file
Mathieu Tortuyaux ac99563d5e app-admin/etcd-wrapper: remove 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>
2021-11-29 10:49:39 +01:00
sdk_container/src/third_party/coreos-overlay app-admin/etcd-wrapper: remove ETCD_NAME 2021-11-29 10:49:39 +01:00