kubectl/pkg/cmd
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
..
annotate Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
apiresources Beautify kubectl help flag commands 2021-09-02 13:41:07 -04:00
apply googleapis/gnostic -> google/gnostic 2022-03-15 20:36:21 -07:00
attach Minor adjustments to descriptions and example text 2021-07-06 15:05:26 -04:00
auth Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
autoscale Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
certificates Minor adjustments to descriptions and example text 2021-07-06 15:05:26 -04:00
clusterinfo fix defer in for loop, maybe resource leak 2022-02-20 11:39:11 +08:00
completion Upgrade Cobra from 1.2.1 to 1.3.0 to fix a bug where bash completions don't work when the kubectl command uses the --context flag to specify a context that contains a colon 2022-01-12 10:37:13 -05:00
config Renamed create_authinfo.go, create_cluster.go, and create_context.go 2022-02-06 21:31:13 -05:00
cp add option to make kubectl cp resume on errors 2021-09-06 10:04:15 +02:00
create kubectl create token: use duration instead of expiration seconds 2022-03-18 16:11:13 -04:00
debug Print kubectl debug messages received when starting a container (#108591) 2022-03-10 02:41:45 +00:00
delete Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
describe Cleanup kubectl label selectors with 'cmdutil.AddLabelSelectorFlagVar' 2022-01-06 23:28:44 -05:00
diff Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
drain Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
edit Minor adjustments to descriptions and example text 2021-07-06 15:05:26 -04:00
events 'kubectl events' command (#99557) 2021-10-29 17:13:38 +00:00
exec Minor adjustments to descriptions and example text 2021-07-06 15:05:26 -04:00
explain Minor adjustments to descriptions and example text 2021-07-06 15:05:26 -04:00
expose Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
get sort custom column print flags 2022-03-03 22:31:58 +08:00
help Move pkg/kubectl/cmd/{command} to staging 2019-08-01 11:01:40 -07:00
kustomize Manually update kustomize attachment points. 2021-07-01 17:10:28 -07:00
label Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
logs Cleanup kubectl label selectors with 'cmdutil.AddLabelSelectorFlagVar' 2022-01-06 23:28:44 -05:00
options cleanup: use i18n.T on all command descriptions 2020-10-09 13:16:13 +02:00
patch Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
plugin Adding an example for kubectl plugin list 2021-11-22 13:21:21 -05:00
portforward Minor adjustments to descriptions and example text 2021-07-06 15:05:26 -04:00
proxy Minor adjustments to descriptions and example text 2021-07-06 15:05:26 -04:00
replace Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
rollout Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
run kubectl: Remove deprecated flags 2022-03-19 15:32:06 +08:00
scale Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
set Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
taint Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
testing googleapis/gnostic -> google/gnostic 2022-03-15 20:36:21 -07:00
top Cleanup kubectl label selectors with 'cmdutil.AddLabelSelectorFlagVar' 2022-01-06 23:28:44 -05:00
util enhance and fix log calls 2022-02-16 12:17:47 +01:00
version kubectl version should include bundled kustomize version 2022-03-23 19:17:29 -04:00
wait Added JSONPath wait for kubectl wait 2021-10-04 16:19:08 -04:00
alpha.go 'kubectl events' command (#99557) 2021-10-29 17:13:38 +00:00
cmd.go Fix default config flags 2021-12-19 19:59:46 -08:00
cmd_test.go Switch from arguments to an input structure for kubectl command 2021-11-04 16:29:08 +01:00
profiling.go Add Close() for profile 2021-12-15 21:03:34 +08:00