kubectl/pkg/cmd
Filip Křepinský 3ebdc043ce fix false positive kubectl plugin unit tests
- test.args should be passed instead of the os.Args of the test framework
  to prevent simple invocation of kubectl without args that could
  manifest in false positive test runs
- plugin execution should have a different test path
- tests should invoke functioning kubectl commands instead of the mock
  ones to ensure the correct subcommand is executed without a failure

Kubernetes-commit: 8b9cbe62025da49a31518870f2aea0ce9797d3ce
2023-05-11 20:12:38 +02:00
..
annotate Changing annotate PrintFlags from annotate to annotated 2023-05-16 14:39:15 +03:00
apiresources Fix typo in kubectl api-resources help text for --categories flag 2023-04-25 20:26:10 -04:00
apply Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
attach Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
auth KEP-3325: Promote SelfSubjectReview to GA 2023-05-02 01:26:20 +02:00
autoscale Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
certificates Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
clusterinfo Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
completion Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
config Replace uses of diff.ObjectDiff with cmp.Diff 2023-03-23 11:29:01 -07:00
cp Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
create reduce util pkg for testing in tempdir. 2023-04-18 11:18:10 +08:00
debug Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
delete Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
describe Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
diff Replace os.Setenv with testing.T.Setenv in tests 2023-04-15 10:09:47 -05:00
drain Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
edit Remove repeated info 2023-04-24 10:22:08 +05:30
events Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
exec Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
explain Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
expose Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
get Replace uses of ObjectReflectDiff with cmp.Diff 2023-03-23 11:34:03 -07:00
help Move pkg/kubectl/cmd/{command} to staging 2019-08-01 11:01:40 -07:00
kustomize Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
label Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
logs Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
options replace deprecated setoutput 2022-04-05 14:04:22 +08:00
patch Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
plugin Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
portforward Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
proxy Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
replace Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
rollout add no resources found message to rollout-status command (#117884) 2023-05-11 23:28:58 +00:00
run Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
scale Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
set Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
taint Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
testing Allow conformant CRDs to be ApplySet parents 2023-03-07 11:29:50 -05:00
top More migrations from genericclioptions to genericiooptions 2023-04-05 15:14:51 +03:00
util Replace os.Setenv with testing.T.Setenv in tests 2023-04-15 10:09:47 -05:00
version Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
wait Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
alpha.go Migrate genericclioptions.IOStreams usage to genericiooptions 2023-04-05 14:07:46 +03:00
cmd.go Simplify plugin resolution check function 2023-05-15 08:51:46 +03:00
cmd_test.go fix false positive kubectl plugin unit tests 2023-05-11 20:12:38 +02:00
profiling.go Add Close() for profile 2021-12-15 21:03:34 +08:00
skiplookerr_go118.go Adjust for os/exec changes in 1.19 2022-07-22 17:42:11 -04:00
skiplookerr_go119.go Adjust for os/exec changes in 1.19 2022-07-22 17:42:11 -04:00