kubectl/pkg/cmd/set
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
..
env Generate and format files 2022-07-19 20:54:13 -04:00
helper.go add unit tests for updateEnv 2021-09-08 10:49:15 +08:00
helper_test.go add unit tests for updateEnv 2021-09-08 10:49:15 +08:00
set.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
set_env.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
set_env_test.go kubectl: use bytes.Buffer.String 2023-06-04 15:45:24 +02:00
set_image.go Gracefully handle empty config error when local flag is used 2023-06-15 10:13:52 +03:00
set_image_test.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
set_resources.go Gracefully handle empty config error when local flag is used 2023-06-15 10:13:52 +03:00
set_resources_test.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
set_selector.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
set_selector_test.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
set_serviceaccount.go Gracefully handle empty config error when local flag is used 2023-06-15 10:13:52 +03:00
set_serviceaccount_test.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
set_subject.go Gracefully handle empty config error when local flag is used 2023-06-15 10:13:52 +03:00
set_subject_test.go Staticcheck: vendor/k8s.io/pkg/cmd/set|edit 2020-01-21 11:16:03 +08:00
set_test.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00