kubectl/pkg/cmd
Arda Güçlü fc1c4dafec Add new flags into alpha events
In order to promote kubectl alpha events to beta,
it should at least support flags which is already
supported by kubectl get events as well as new flags.

This PR adds;

--output: json|yaml support and does essential refactorings to
integrate other printing options easier in the future.

--no-headers: kubectl get events can hide headers when this flag is set for default printing.
Adds this ability to hide headers also for kubectl alpha events.
This flag has no effect when output is json or yaml for both commands.

--types: This will be used to filter certain events to be printed and
discard others(default behavior is same with --event=Normal,Warning).

Kubernetes-commit: 63b8684cd32f96f3a1e5c5a5fd05e8194f2140fc
2022-05-10 13:09:59 +03:00
..
annotate add setErr 2022-06-21 17:57:48 +08:00
apiresources update kubectl api-resources help info 2022-06-06 10:21:17 +08:00
apply gofmt update 2022-07-24 23:46:44 -07:00
attach Fix error message in attach_test.go 2022-07-17 12:38:26 +02:00
auth add a warning printer in cli-runtime to coordinate warning style 2022-02-18 20:33:38 +08:00
autoscale Refactor completion code into its own package 2022-03-24 09:06:05 -04: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 include powershell in short description for kubectl completion 2022-05-03 20:56:41 -05:00
config Change reflect.Ptr to reflect.Pointer 2022-06-26 01:23:43 +09:00
cp Set validate functions requiring no parameters for all commands 2022-05-17 11:38:20 +03:00
create cleanup: remove duplicate import 2022-04-24 20:58:04 +08:00
debug Generate and format files 2022-07-19 20:54:13 -04:00
delete Typo in kubectl delete --help 111302 2022-07-21 20:42:30 +08:00
describe add setErr 2022-06-21 17:57:48 +08:00
diff Change kubectl diff to exclude managedFields by default 2022-07-27 12:53:32 -04:00
drain add a warning printer in cli-runtime to coordinate warning style 2022-02-18 20:33:38 +08:00
edit updates for kubectl generated ref docs 2022-03-25 12:31:12 -07:00
events Add new flags into alpha events 2022-05-10 13:09:59 +03:00
exec Refactor completion code into its own package 2022-03-24 09:06:05 -04:00
explain Add unit tests for explain command 2022-06-30 12:48:32 +03:00
expose add setErr 2022-06-21 17:57:48 +08:00
get Generate and format files 2022-07-19 20:54:13 -04: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 add setErr 2022-06-21 17:57:48 +08:00
logs Refactor completion code into its own package 2022-03-24 09:06:05 -04:00
options replace deprecated setoutput 2022-04-05 14:04:22 +08:00
patch Refactor completion code into its own package 2022-03-24 09:06:05 -04:00
plugin Adding an example for kubectl plugin list 2021-11-22 13:21:21 -05:00
portforward Refactor completion code into its own package 2022-03-24 09:06:05 -04:00
proxy Minor adjustments to descriptions and example text 2021-07-06 15:05:26 -04:00
replace Change error messages 2022-07-07 15:05:17 +03:00
rollout Add license header into rollout status test file 2022-06-13 16:03:37 +03:00
run Improve run and debug attach message upon failure 2022-06-24 09:07:44 +02:00
scale Set validate functions requiring no parameters for all commands 2022-05-17 11:38:20 +03:00
set Generate and format files 2022-07-19 20:54:13 -04:00
taint add server-side validation support to kubectl 2022-03-09 14:52:32 +00:00
testing Add unit tests for api-resources and api-versions commands 2022-05-14 11:06:49 -04:00
top Refactor completion code into its own package 2022-03-24 09:06:05 -04:00
util Remove redundant validateFlag checks 2022-06-13 10:06:51 +03:00
version Set validate functions requiring no parameters for all commands 2022-05-17 11:38:20 +03:00
wait Revert "Move kubectl wait to informers with a cache to avoid hanging due to objects disappearing from the cluster" 2022-07-18 08:48:29 -07:00
alpha.go 'kubectl events' command (#99557) 2021-10-29 17:13:38 +00:00
cmd.go Generate and format files 2022-07-19 20:54:13 -04: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
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