talos/pkg/argsbuilder/argsbuilder_interface.go
Andrew Rynhard e1fc9017d2 feat: allow extra arguments to be passed to etcd
This allows for an arbitrary set of args to be passed to etcd. Due to
the fact the we do the discovery of the current cluster state, we
blacklist initial-cluster. Additionally, we black list args that would
makes sense to modify, like the path to the certs.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-11-14 05:53:00 -08:00

13 lines
405 B
Go

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
package argsbuilder
// ArgsBuilder defines the requirements to build and manage a set of args.
type ArgsBuilder interface {
Merge(Args) ArgsBuilder
Set(string, string) ArgsBuilder
Args() []string
}