Skip to content

Commit

Permalink
allow linkerd install config --ignore-cluster
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Seigner <[email protected]>
  • Loading branch information
siggy committed Apr 25, 2019
1 parent fab0754 commit a4a0b00
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,12 @@ func validateArgs(args []string, flags *pflag.FlagSet, additionalFlags *pflag.Fl
invalidFlags := make([]string, 0)
combinedFlags.VisitAll(func(f *pflag.Flag) {
if f.Changed {
invalidFlags = append(invalidFlags, f.Name)
switch f.Name {
case "ignore-cluster":
// allow `linkerd install config --ignore-cluster`
default:
invalidFlags = append(invalidFlags, f.Name)
}
}
})
if len(invalidFlags) > 0 {
Expand Down

0 comments on commit a4a0b00

Please sign in to comment.