Commit Graph

3129 Commits

Author SHA1 Message Date
Arda Güçlü 1fecf3ab58 Simplify plugin resolution check function
Kubernetes-commit: daebf1c735df845f5e8429381593a4de1762361e
2023-05-15 08:51:46 +03:00
Kubernetes Publisher 2f980765f1 Merge pull request #117961 from humblec/ginkgo
ginkgo update to v2.9.4 and gomega to 1.27.6

Kubernetes-commit: 84c8abfb8bf900ce36f7ebfbc52794bad972d8cc
2023-05-12 18:23:03 +00:00
Kubernetes Publisher 0fcb77ec08 Merge pull request #116761 from iancoolidge/devel-cpuset-revendor
Complete cpuset export to k/utils by revendoring

Kubernetes-commit: 8f9c18569616eb65666a9271c3dd4d87b46ccece
2023-05-12 18:23:01 +00:00
Humble Chirammal a49ce7f9d3 ginkgo update to v2.9.4 and gomega to 1.27.6
https://github.com/onsi/ginkgo/v2/compare/v2.9.1...v2.9.4
 https://github.com/onsi/gomega/compare/v1.27.4...v1.27.6

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>

Kubernetes-commit: cbe825b2b6cde3ae6e13b75e459227c71ea7e1f7
2023-05-12 09:33:31 +05:30
gxwilkerson33 1b129f017b add no resources found message to rollout-status command (#117884)
* add no resources found message to rollout-status command

* return err if not nil before no resource message

Kubernetes-commit: a5575425b039bf7c15dfaa9a7acf257fdc4fde3f
2023-05-11 23:28:58 +00:00
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
Humble Chirammal d9d590eb2a update vendor dependencies for the change
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>

Kubernetes-commit: dcefc42b35acb229fcf95a172bfd635ee615d1be
2023-05-11 21:58:39 +05:30
Humble Chirammal a2c27b66e4 etcd depdencies are updated to v3.5.9
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>

Kubernetes-commit: ae749238786f0c7b32a5291dd52ca31ea7c4fd18
2023-05-11 21:25:46 +05:30
guiyong.ou daae148e73 fix:translations zh_CN LC_MESSAGES k8s.po error
Signed-off-by: guiyong.ou <guiyong.ou@daocloud.io>

Kubernetes-commit: 3a394bbeadac06224f534a99041929e3f9a0e07c
2023-05-10 18:13:28 +08:00
LronDC 22b4cf895f Optimize usage message of commands which have subcommands.
Signed-off-by: LronDC <lun.su@daocloud.io>

Kubernetes-commit: 15678e4a67e1b725368ca1bd3a97b670c5d97776
2023-05-10 18:10:28 +08:00
Arda Güçlü f53c5f479c Use getter function for plugin subcommand resolution
Plugin subcommand resolution is relatively less used than the
builtin subcommands. That's why, instead always initializing a
hash map on memory, it would be better to use a getter function only
serves as needed.

In addition to that this function will be exported that external
libraries can use it.

Kubernetes-commit: 4634073d0b979d2827106a0a1010456ac420baa8
2023-05-10 10:41:43 +03:00
Kubernetes Publisher 9cf9149792 Merge pull request #117426 from cbandy/kubectl-testing-setenv
Replace os.Setenv with testing.T.Setenv in tests

Kubernetes-commit: 54da29dd56014e1cce8bba5f2772d8ddd4de78af
2023-05-06 18:15:57 +00:00
Vihang Mehta 6f146fb23f Add all describers to the exported DefaultObjectDescriber
Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>

Kubernetes-commit: 2cb215e1091fb50a152afca3a8b2166d47f996ee
2023-05-05 18:30:54 +00:00
Kubernetes Publisher 5ef32b94c0 Merge pull request #117713 from flant/ssr-ga
KEP-3325: Promote SelfSubjectReview to GA

Kubernetes-commit: 78833e1b3385ea3485d38aa46586d39195377ec9
2023-05-03 21:39:30 +00:00
Kubernetes Publisher a9f0a4fbaa Merge pull request #117687 from pohly/klog-update
dependencies: klog v2.100.1

Kubernetes-commit: a6825c8542ee1e5e9d570ba1c267458a09287015
2023-05-03 21:39:26 +00:00
Kubernetes Publisher 7fa4e7f4a9 Merge pull request #117090 from jpmcb/cobra-1.7.0
Upgrades spf13/cobra to v1.7.0

Kubernetes-commit: e7162ced04fca7e97fa6be9eb0ae788148dabfda
2023-05-03 10:49:39 +00:00
HirazawaUi 08300912da fix fd leaks and failed file removing for pkg kubectl and pod-security-admission
Kubernetes-commit: b94c6daa0b7602e2d30e35cf2b94f9d1e8fde56e
2023-05-03 01:36:46 +08: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
Patrick Ohly 76946fe0bf dependencies: klog v2.100.1
Kubernetes-commit: 5fff8cae749cefbac63173f176831ea007b95b3a
2023-04-29 20:47:44 +02:00
Chris Bandy 1815b0e2ef Cleanup environment in tests that call os.Unsetenv
testing.T.Cleanup ensures the environment is restored after a test and
any of its parallel sub-tests. It's possible that some of these can be
simplified further to T.Setenv(key, ""), but I did not investigate.

Kubernetes-commit: e8d3a4a105cc8ea6e795e24d5dbf0c61ed78cacd
2023-04-15 11:19:24 -05:00
Chris Bandy facdb16b53 Replace os.Setenv with testing.T.Setenv in tests
T.Setenv ensures that the environment is returned to its prior state
when the test ends. It also panics when called from a parallel test to
prevent racy test interdependencies.

Kubernetes-commit: 2181eea48435310d1b6e366ea8db2968c4941b93
2023-04-15 10:09:47 -05:00
Patrick Ohly dc852358a3 dependencies: bump k8s.io/utils
This includes a fix for a race condition.

Kubernetes-commit: 83fb5a50bc97cb58705084c0750f5a6b16fdf219
2023-04-06 13:11:47 +02:00
John McBride 7c2ba8fecd Upgrades spf13/cobra to 1.7.0
Signed-off-by: John McBride <jpmmcbride@gmail.com>

Kubernetes-commit: 933b665c18c3946a1c1316b1741ae4e0d0f5e05e
2023-04-04 15:02:20 +00:00
Kubernetes Publisher 94fa30e6d1 Merge pull request #117327 from humblec/netlink
dependencies: update {vishvananda/netns,xlab/treeprint}

Kubernetes-commit: 061200113bdb0bc0e6190ab247f06edf8561afb0
2023-05-02 19:51:35 +00:00
Kubernetes Publisher 91bae23f02 Merge pull request #117430 from charles-chenzz/refactoring_util_pkgs
remove Mkdirtemp func to reduce util pkg for testing

Kubernetes-commit: 0a37874037538896cdedbc058d7346f00cce5ae8
2023-05-02 10:46:17 +00:00
Kubernetes Publisher cf356053e4 Merge pull request #117705 from Jefftree/update-openapi-fix-race
Update kube-openapi to fix race

Kubernetes-commit: 3f8c4794eadf8aadd8a5bcb0b875bf0af5c2020b
2023-05-01 23:52:31 +00:00
Jefftree fde8c2eb63 Update kube-openapi to fix race
Kubernetes-commit: de34540248a6cd4335a6aedd3f1d24c608d59c86
2023-05-01 17:19:03 +00:00
Kubernetes Publisher 96b9bd5a8c Merge pull request #117253 from akhilerm/update-containerd-dependencies
dependencies: update cgroups, ttrpc, ebpf versions

Kubernetes-commit: d33853edcfdb521c80cd9a659ed02b7fe52b40f4
2023-05-01 19:47:42 +00:00
Akhil Mohan 6761e1b36f chore: update cgroups and ttrpc versions
- update github.com/containerd/cgroups to v1.1.0
- update github.com/containerd/ttrpc to v1.2.1

Signed-off-by: Akhil Mohan <akhilerm@gmail.com>

Kubernetes-commit: 76fe41a996ec78d9774e1f1ca9d1d7ec40522f98
2023-04-23 22:23:42 -07:00
Kubernetes Publisher 2b68f5e9dd Merge pull request #117603 from brianpursley/api-resources-help-typo
Fix typo in kubectl api-resources help text for --categories flag

Kubernetes-commit: 806b30170c61a38fedd54cc9ede4cd6275a1ad3b
2023-04-26 10:48:27 +00:00
Kubernetes Publisher 2ea3808528 Merge pull request #116512 from aditya-K2/docs-edit
update `kubectl edit` documentation

Kubernetes-commit: 0471518d500fd181c93ffc3fa67765abd6dddff9
2023-04-26 03:03:13 +00:00
Brian Pursley 198d4bdc32 Fix typo in kubectl api-resources help text for --categories flag
Kubernetes-commit: 6d8a0100f70f2df61340bd52385841c5df7bda58
2023-04-25 20:26:10 -04:00
Kubernetes Publisher 2045c7aca2 Merge pull request #117350 from mohitsharma-in/update/google-golang-protobuf
Dependencies: Update google.golang.org/protobuf v1.30.0

Kubernetes-commit: b925ce244638187dbf0f502ecb6e02db149970aa
2023-04-25 19:48:42 +00:00
Kubernetes Publisher a2d83ea4b0 Merge pull request #117483 from ArkaSaha30/bump-gofuzz
dependencies:update `github.com/google/gofuzz` to v1.2.0

Kubernetes-commit: 7fbe3cba41915cad69f376eb6b3d3a326d51cd11
2023-04-25 00:06:42 +00:00
Kubernetes Publisher 831afb683a Merge pull request #117482 from ArkaSaha30/bump-go-logr
dependencies:update `github.com/go-logr/logr` to v1.2.4

Kubernetes-commit: f77e570fbadbf91c05840a1f6f9b6aec860de400
2023-04-25 00:06:38 +00:00
aditya-K2 9ce8f5e1fc Remove repeated info
Kubernetes-commit: 28ac914bc54a946188b98254dfe85a0d721e22f5
2023-04-24 10:22:08 +05:30
Kubernetes Publisher 40b54c6ff6 Merge pull request #116972 from apelisse/update-openapi-file-client
openapi: Make file client more easy to re-use

Kubernetes-commit: 065428befa06c1d99deb4160b4490a8bf1a377ee
2023-04-21 06:45:49 +00:00
Kubernetes Publisher b3d63dd09b Merge pull request #117352 from mohitsharma-in/update/golang_x_tools
dependencies: Update golang.org/x/tools to v0.8.0

Kubernetes-commit: bda7e8979088614c60ee21fd2602d00786e2ea78
2023-04-20 11:14:11 +00:00
ArkaSaha30 d2f7b2679a update gofuzz dependency
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>

Kubernetes-commit: 1d15354ccb56b2e367cc403777255125ef65b7df
2023-04-19 21:08:16 +05:30
ArkaSaha30 99af995eae Update go-logr dependencies
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>

Kubernetes-commit: 2cd23c8b17c93f75a30cf3f651369d7a932aef2d
2023-04-19 21:01:55 +05:30
charles-chenzz 0d2299217d reduce util pkg for testing in tempdir.
Kubernetes-commit: aaa30439bdda1589eacc7be8547c297a73e346b9
2023-04-18 11:18:10 +08:00
Mohit Sharma 17e6a61f46 Dependencies Update golang.org/x/tools v0.7.0 to v0.8.0
Kubernetes-commit: 6f90c5363301c9417a3a806cac69f3e79e66a66c
2023-04-14 04:39:43 -07:00
Kubernetes Publisher 131c723221 Merge pull request #117399 from mohitsharma-in/update/golang_time
dependencies : Update golang.org/x/time v0.3.0

Kubernetes-commit: cf89189ca3a3e5d280ba1cb09998c4b88dc1e127
2023-04-19 14:59:40 +00:00
Mohit Sharma 0b702036e7 Dependencies Update golang.org/x/timet 90d013bbcef8 to v0.3.0
Kubernetes-commit: 4d73864026cde02f4a1cdf9e889a124174d38e38
2023-04-16 22:18:35 -07:00
Kubernetes Publisher 2d31ffc50c Merge pull request #117296 from humblec/hcsshim
dependencies: update {uuid,sortorder}

Kubernetes-commit: a71b7570dd85be41a2668f7a9d4ae8ad3d9148ea
2023-04-14 14:52:41 +00:00
Mohit Sharma ba28382d78 Dependencies Update google.golang.org/protobuf v1.28.1 to v1.30.0
Kubernetes-commit: 8efeb5afcfd006a48d6e1263a5cf8de3284797df
2023-04-14 04:28:47 -07:00
Humble Chirammal 0251633c83 dependencies: update gh/fvbommel/v1.1.0
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>

Kubernetes-commit: 9cfdf989edac74b63888578f434e47cbe65446b3
2023-04-14 11:51:11 +05:30
Humble Chirammal 34311cc343 dependencies: xlab/treeprint v1.2.0
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>

Kubernetes-commit: 6b70710b0d13cfa0fb8af3896433c157c268bdae
2023-04-14 11:17:07 +05:30
Kubernetes Publisher d0d314a48a Merge pull request #117285 from humblec/azure-go-autorest
dependencies: update gh/Azure/auto-test/{adal,validation}

Kubernetes-commit: ba0a8f9cceb513bc36bd803e9bf8f9a8c3912ff2
2023-04-13 23:50:53 +00:00
Humble Chirammal 8a8f01d130 dependencies: update gh/Azure/auto-test/{adal,validation}
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>

Kubernetes-commit: 6d13cad2cf56d0bad77a6410a0c36b2cf8f0df57
2023-04-13 23:25:48 +05:30