| commit | 2f842379253a73de17fc67385765c7862e317453 | [log] [tgz] |
|---|---|---|
| author | Tim Windelschmidt <tim@monogon.tech> | Tue May 07 00:07:11 2024 +0200 |
| committer | Tim Windelschmidt <tim@monogon.tech> | Tue May 07 12:04:28 2024 +0000 |
| tree | 6b78e8f3ff5cbc2b4faeeebaf55e07a2369408fe | |
| parent | ddc5e6a098c24c1e69b5c692f534b05dbc763367 [diff] |
metropolis/cli/metroctl: register context flag to the correct command Change-Id: I934a5094dfb1dcbd472300888a0aef89b3917719 Reviewed-on: https://review.monogon.dev/c/monogon/+/3078 Reviewed-by: Lorenz Brun <lorenz@monogon.tech> Tested-by: Jenkins CI Reviewed-by: Hendrik Hofstadt <hendrik@monogon.tech>
diff --git a/metropolis/cli/metroctl/cmd_k8s_configure.go b/metropolis/cli/metroctl/cmd_k8s_configure.go index be36e57..7e8d771 100644 --- a/metropolis/cli/metroctl/cmd_k8s_configure.go +++ b/metropolis/cli/metroctl/cmd_k8s_configure.go
@@ -57,7 +57,7 @@ } func init() { + k8sConfigureCommand.Flags().String("context", "metroctl", "The name for the kubernetes context to configure") k8sCommand.AddCommand(k8sConfigureCommand) - k8sCommand.Flags().String("context", "metroctl", "The name for the kubernetes context to configure") rootCmd.AddCommand(k8sCommand) }