kubectl/pkg
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
..
apps Remove `newlineReporter` custom report 2022-06-01 13:09:47 +08:00
cmd Gracefully handle empty config error when local flag is used 2023-06-15 10:13:52 +03:00
describe kubectl: fix describe node output when sidecars are present 2023-07-21 09:02:11 -05:00
drain adding more callbacks in kubedrain helper 2023-04-20 16:16:11 +03:00
explain kubectl explain should work for both cluster and namespace resources and without a GET method 2023-06-26 18:39:28 +02:00
generate cleanup: Update deprecated FromInt to FromInt32 (#119858) 2023-08-16 21:07:06 +00:00
metricsutil Added --sum flag to kubectl top pod 2021-09-16 09:28:30 -04:00
polymorphichelpers fix: kubectl expose fails for apps with same-port, different-protocol 2023-06-19 09:58:54 +08:00
proxy Remove ioutil from kubectl 2022-07-30 22:31:16 +09:00
rawhttp Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
scale Support kubectl scale --dry-run=server|client 2020-03-30 17:33:15 -04:00
scheme Replace uses of diff.ObjectDiff with cmp.Diff 2023-03-23 11:29:01 -07:00
util kubectl: fix describe node output when sidecars are present 2023-07-21 09:02:11 -05:00
validation test: fix ginkgolinter issues 2023-02-22 10:35:09 +01:00