Commit Graph

29 Commits

Author SHA1 Message Date
Jordan Liggitt 722397942b Drop null creationTimestamp from test fixtures
Kubernetes-commit: 6bb6c9934294d8265197c9dfc4c9dd3adaca147a
2025-03-24 09:37:26 -04:00
Arda Güçlü 608a0553d7 Use generic sets rather than deprecated sets.String
Kubernetes-commit: c3f15fd707a092e6cb7d96b84b81ada1f118d759
2024-11-21 13:22:39 +03:00
Monis Khan 1014b1d5f2 Fix tests that assume core clients use JSON
Signed-off-by: Monis Khan <mok@microsoft.com>

Kubernetes-commit: 6595fa40268bc8e7f46dcc28267e5e8b0b1ae493
2024-08-19 10:38:16 -04:00
Micah Hausler e1b9b58b72 Include additional verbs to can-i
Kubernetes-commit: 08ea67334e1cd664c9f3c34be9a51c0f216183aa
2024-08-20 13:21:55 -05:00
Andrea Hoffer 60dccb9d13 A few minor help text tweaks
Kubernetes-commit: 5252f79f9bd1142bf838aeaf8168ca7fe7616445
2024-07-17 13:30:34 -04:00
ah8ad3 e5da5e005a add approve as a valid verb in can-i
Kubernetes-commit: 12684aacefd3d4a2ba4eecded14086a0b626431b
2024-05-26 15:02:09 +03:30
Andrea Hoffer b676723184 Update CLI help text for grammar and consistency
Kubernetes-commit: a86380c7813a6d0cfa248c9165c878038730526a
2023-06-12 15:55:59 -04:00
m.nabokikh deeeaea2a7 KEP-3325: Promote SelfSubjectReview to GA
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

Kubernetes-commit: 40de26dcff80f29380a4ba90a93ce3ece7482b78
2023-05-02 01:26:20 +02:00
Arda Güçlü 3f05cfcd78 Migrate genericclioptions.IOStreams usage to genericiooptions
Kubernetes-commit: 00c30941260a27e6929aef84c7fdbc8f1508518c
2023-04-05 14:07:46 +03:00
m.nabokikh e0b4d10785 Promote whoami kubectl command
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

Kubernetes-commit: c2cadd2b60424d26678b72506e377dfbf12b9876
2023-03-12 15:24:31 +01:00
Maksim Nabokikh ea55df59db KEP-3325: Promote SelfSubjectReview to Beta (#116274)
* Promote SelfSubjectReview to Beta

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Fix whoami API

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Fixes according to code review

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

---------

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

Kubernetes-commit: c1431af4f83b2b06a581f23806ee12a0663fed3b
2023-03-09 04:56:40 +00:00
Thomas Guettler b7f6852b36 Extend example to contain --as==...
Kubernetes-commit: 2b980b8c01dfa17c08a4357b185b684bf69aa86f
2023-01-29 19:39:58 +01:00
Sean Sullivan d545780f6d Exports WarningPrinter field in DeleteOptions
Kubernetes-commit: 75ff830ab198348b0c727d05e54754d5f73a7286
2023-01-09 17:14:16 -08:00
inosato 8272d71ba6 Remove ioutil from kubectl
Signed-off-by: inosato <si17_21@yahoo.co.jp>

Kubernetes-commit: 774ab1349bfd553c97a99b992e9f38659f541c84
2022-07-30 22:31:16 +09:00
m.nabokikh a5404b6548 Split the API error in two
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

Kubernetes-commit: e6e670624b5fbe5493f48796f54e60d505727314
2022-09-29 11:50:33 +02:00
m.nabokikh faf015bc84 Fix the code according to the code review comments
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

Kubernetes-commit: 967fdbd3d52b67ed5c72f2b4888adae1f04489e1
2022-09-27 15:49:51 +02:00
m.nabokikh d614c60b0c Add more accurate error message for WhoAmI command
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

Kubernetes-commit: bbc58a55176ea9f879e4dfabfde0202a17504c56
2022-09-27 14:12:07 +02:00
m.nabokikh 254147c688 Cleanup WhoAmI sorting code
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

Kubernetes-commit: b81b422a70ec6ab1bbdacae56bbe3ccd0daef5a6
2022-09-16 07:14:20 +02:00
m.nabokikh f55dcb2100 Fix WhoAmI flaky test
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

Kubernetes-commit: 378d7f8f2b05b9228efd71e73562a29f941f968a
2022-09-15 11:02:42 +02:00
m.nabokikh 2988d073de Add auth API to get self subject attributes
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

Kubernetes-commit: 00dfba473b08528f0a21f7bd3b921f5dd35b013a
2022-07-22 04:01:52 +04:00
song 6f44e96c59 update auto can-i error message
Signed-off-by: song <tinysong1226@gmail.com>

Kubernetes-commit: 41762c588fc92e5d310649d2fa6133523a045f19
2022-05-29 00:38:52 +08:00
jlsong01 ec9d0484e5 add a warning printer in cli-runtime to coordinate warning style
modified:   staging/src/k8s.io/kubectl/pkg/cmd/auth/auth.go

Kubernetes-commit: 272e245f06e425fc912b1e477e8b6763850b161e
2022-02-18 20:33:38 +08:00
Davanum Srinivas 12c6b0404d Check in OWNERS modified by update-yamlfmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Kubernetes-commit: 9405e9b55ebcd461f161859a698b949ea3bde31d
2021-12-09 21:31:26 -05:00
Senthil Kumaran 5f6099143c Provide reference to impersonation options for kubectl auth can-i command.
Kubernetes-commit: ef181c14e128fd70c9d95193d676e1019601556c
2021-07-19 21:08:04 -07:00
Andrea Hoffer 09ed00ef49 Minor adjustments to descriptions and example text
Kubernetes-commit: 6b736f348483bb6b20d4633319305960f4d9e4c1
2021-07-06 15:05:26 -04:00
David Eads 8f3ebd40ae prevent restmapper lookup for kubectl reconcile
Kubernetes-commit: d3e702fa9938e645c2bc852b0239887ec645ffe5
2021-05-07 11:53:37 -04:00
carlory 96b4e0f923 As users are a valid resources type for the can-i command, the warning shouldn't appear
Kubernetes-commit: 5d9a0c3c00df605d1a186844c4b1a9b1ffdf588d
2021-04-30 11:44:27 +08:00
xiongzhongliang 862982a5ec cleanup: change klog.Fatalf to fmt.Errorf for kubectl auth reconcile
cleanup: change klog.Fatalf to fmt.Errorf for kubectl auth reconcile

cleanup: change klog.Fatalf to fmt.Errorf for

Kubernetes-commit: 3b3a6d27cd1a55fff173427ac9d74d35de7f5acf
2021-01-01 22:43:51 +08:00
Jan Chaloupka 64350dbb8b Move pkg/kubectl/cmd/auth under staging/src/k8s.io/kubectl/pkg/cmd/auth
Kubernetes-commit: d3726b91e2c4c0a945151649230c41d326cf643c
2020-11-03 10:22:36 +01:00