mirror of https://github.com/linkerd/linkerd2.git
install: Don't reuse flag set (#2649)
The instalOnlyFlagSet incorrectly extends the recordableFlagSet. I'm not sure if this has any potential for unexpected user interactions, but it's at least confusing when reading the code. This change makes the flag sets distinct.
This commit is contained in:
parent
edb225069c
commit
4fd1de4340
|
@ -307,7 +307,7 @@ func (options *installOptions) recordableFlagSet(e pflag.ErrorHandling) *pflag.F
|
|||
// installOnlyFlagSet includes flags that are only accessible at install-time
|
||||
// and not at upgrade-time.
|
||||
func (options *installOptions) installOnlyFlagSet(e pflag.ErrorHandling) *pflag.FlagSet {
|
||||
flags := options.recordableFlagSet(e)
|
||||
flags := pflag.NewFlagSet("install-only", e)
|
||||
|
||||
flags.StringVar(
|
||||
&options.identityOptions.trustDomain, "identity-trust-domain", options.identityOptions.trustDomain,
|
||||
|
|
Loading…
Reference in New Issue