kubectl/pkg/cmd/util
Patrick Ohly 7c4cfc5d12 enhance and fix log calls
Some of these changes are cosmetic (repeatedly calling klog.V instead of
reusing the result), others address real issues:

- Logging a message only above a certain verbosity threshold without
  recording that verbosity level (if klog.V().Enabled() { klog.Info... }):
  this matters when using a logging backend which records the verbosity
  level.

- Passing a format string with parameters to a logging function that
  doesn't do string formatting.

All of these locations where found by the enhanced logcheck tool from
https://github.com/kubernetes/klog/pull/297.

In some cases it reports false positives, but those can be suppressed with
source code comments.

Kubernetes-commit: edffc700a43e610f641907290a5152ca593bad79
2022-02-16 12:17:47 +01:00
..
editor add test case for issue 106277 (PR 106268) (#106532) 2022-01-12 01:49:19 +00:00
podcmd cmd/kubectl: make 'kubectl logs' default to the first container when default container cannot be determined or found by annotations (#105964) 2022-01-07 09:40:41 +08:00
sanity Move pkg/kubectl/cmd/util and subdirs to staging 2019-07-28 21:29:36 -07:00
env_file.go Remove dependency of generators from create configmap 2021-01-10 18:47:32 -05:00
env_file_test.go Remove dependency of generators from create configmap 2021-01-10 18:47:32 -05:00
factory.go Cache the OpenAPI schema for server-side dry-run. 2021-01-19 16:36:14 -05:00
factory_client_access.go Cache the OpenAPI schema for server-side dry-run. 2021-01-19 16:36:14 -05:00
helpers.go enhance and fix log calls 2022-02-16 12:17:47 +01:00
helpers_test.go Add --override-type flag to kubectl run and kubectl expose to allow the choice of using a JSON Patch or Strategic Merge Patch to apply the override to the generated output. 2021-11-05 07:10:47 -04:00
kubectl_match_version.go remove pkg/version and some of redundant copies of it 2019-09-10 14:42:55 -07:00
override_options.go Add --override-type flag to kubectl run and kubectl expose to allow the choice of using a JSON Patch or Strategic Merge Patch to apply the override to the generated output. 2021-11-05 07:10:47 -04:00
printing.go Move pkg/kubectl/cmd/util and subdirs to staging 2019-07-28 21:29:36 -07:00