Commit Graph

3141 Commits

Author SHA1 Message Date
Kubernetes Publisher bddb2a3ab7 Merge pull request #118045 from Nordix/annotate-fix/adil
Changing annotate PrintFlags from annotate to annotated

Kubernetes-commit: 2d742bb8ab638f3ffde7fe7d34753ab5ff322798
2023-05-16 06:07:35 -07:00
adil ghaffar 76565cfba8 Changing annotate PrintFlags from annotate to annotated
Kubernetes-commit: d6e488b998effbda9675d4dc3d297a142a4079f7
2023-05-16 14:39:15 +03:00
Stephen Kitt 6c612c392e Bump docker/distribution to 2.8.2
k/k doesn't use much code from docker/distribution so this doesn't
change anything that's actually relevant, but 2.8.1 is identified as
affected by CVE-2022-28391 and CVE-2023-2253; bumping to 2.8.2 avoids
k/k triggering scanners on those CVEs.

Signed-off-by: Stephen Kitt <skitt@redhat.com>

Kubernetes-commit: 3680a5230c386602ebc82700fe3031960d0479fd
2023-05-16 09:17:51 +02:00
Humble Chirammal b9bfd02fbe dependencies: update github.com/mitchellh/go-wordwrap v1.0.1
https://github.com/mitchellh/go-wordwrap/compare/v1.0.0...v1.0.1

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

Kubernetes-commit: 3b69fa2fa54ed4e068bd66bf6dff2b10723f59cf
2023-05-16 10:18:52 +05:30
Kubernetes Publisher 27ec3dafa6 Merge pull request #118014 from liggitt/mapstructure
Update kube-openapi, drop mapstructure

Kubernetes-commit: ea4cc84cf7c47d2bc45730ea2563bc320dfe5ff1
2023-05-16 02:23:55 +00:00
Jordan Liggitt 7185b83b77 Update kube-openapi, drop mapstructure
Kubernetes-commit: d6d1dbdd82a412a06cdf458ca40836a018670131
2023-05-15 16:42:00 -04:00
Kubernetes Publisher 5d62f1019a Merge pull request #117645 from humblec/etcd-2
dependencies: update etcd dependencies to v3.5.9

Kubernetes-commit: 3a65b989e3db450029e796b370d103fe2c43006b
2023-05-15 18:11:26 +00:00
Kubernetes Publisher 4cc28e6db0 Merge pull request #117139 from pohly/test-integration-race-detection-update-utils
dependencies: bump k8s.io/utils

Kubernetes-commit: 87d8c4ed0ab58c5d19a4f2513fb49b920fdef346
2023-05-15 18:11:24 +00:00
Filip Křepinský a71362e506 rename err to lookupErr
Kubernetes-commit: bafae5c0764a222e336de1d7ce2645186bb455dd
2023-05-15 16:41:54 +02:00
Kubernetes Publisher b5e2ab130f Merge pull request #117901 from ardaguclu/use-getter-allowed-cmds
Use getter function for plugin subcommand resolution

Kubernetes-commit: 714b165af8f0677dd787c3ef942e726249870d3f
2023-05-15 13:57:10 +00:00
Kubernetes Publisher fbfbf2dfd6 Merge pull request #117904 from HeavenTonight/master
fix:translations zh_CN LC_MESSAGES k8s.po error

Kubernetes-commit: e425a6f6e4a0f3137ba026d100e25185ec6c0535
2023-05-15 05:57:54 +00:00
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
Varsha Prasad Narsing a49f0e6d53 [refactor] refactoring flags and options in Expose cmd
This PR decouples the command options from the input flags.
The input flags from the command are then translated to
options which are further used while running the command.

Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com>

Kubernetes-commit: 8f229057484453bd1b820d00c940efbbc56addc5
2023-05-05 11:31:03 -04: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