kubectl/pkg/cmd/annotate
Arda Güçlü 5691f5e6f9 Gracefully handle empty config error when local flag is used
`f.ToRawKubeConfigLoader().Namespace()` throws `ErrEmptyConfig` when
default configuration file can not be found, even if it invalid.

However, when user explicitly passes `--local` flag, that means
we can gracefully handle this error and continue. This commit does that
for the commands having `--local` flag.

Kubernetes-commit: ba49ccdbc9b4761d0c9589ab7ca9f41029a99568
2023-06-15 10:13:52 +03:00
..
annotate.go Gracefully handle empty config error when local flag is used 2023-06-15 10:13:52 +03:00
annotate_test.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00