Commit Graph

3413 Commits

Author SHA1 Message Date
Jefftree 90ca180ce0 vendor
Kubernetes-commit: 1993a4cb3798d818ff05db0e0c7c9c87d8b41dd2
2023-06-01 18:25:30 +00:00
Kubernetes Publisher f2a0dc206d Merge pull request #117930 from LronDC/master
kubectl: optimize usage message of commands which have subcommands.

Kubernetes-commit: 82f7cf6010e02700a9589f473af87910b4061924
2023-06-01 10:51:26 +00:00
Kubernetes Publisher 982ecb07a2 Merge pull request #115694 from mpuckett159/fix/explain-jsonpath
Fix/explain jsonpath

Kubernetes-commit: e1af716860896c2750672cfa0dddb8e41e30f75b
2023-05-31 02:54:26 +00:00
Kubernetes Publisher 5fb93b7250 Merge pull request #118269 from liggitt/genproto
Update google.golang.org/genproto

Kubernetes-commit: d05b79c836c9db35ef0a60f0175b3a6bbeedfa7e
2023-05-26 22:59:30 +00:00
Jordan Liggitt 7b34e3a843 Update google.golang.org/genproto
Kubernetes-commit: a045fedd025c08ad6cb116a9beb3042b6be39fd1
2023-05-25 21:10:02 -04:00
Kubernetes Publisher 4aaf14bd75 Merge pull request #116656 from HirazawaUi/fik-fd-leaks
Cleanup fd leaks and file removal cleanup

Kubernetes-commit: 03ebd4b7ef3fc5d2ec5b407b36488c6324a058b6
2023-05-25 06:51:46 +00:00
Kubernetes Publisher 81568ad465 Merge pull request #117625 from skitt/intstr-fromint32-cli
CLI: use new intstr functions

Kubernetes-commit: 8cb4ff16fb843b16fc1657919c5af6ee13f047ec
2023-05-24 22:59:06 +00:00
Kubernetes Publisher 7c3f5b1d9e Merge pull request #118240 from Jefftree/bump-kube-openapi
Bump kube openapi

Kubernetes-commit: f99589b4f52a39a73a0a15449f9adb817a8865b8
2023-05-24 22:59:05 +00:00
Jefftree 8a524d62cc Update vendor
Kubernetes-commit: 4373ae05f345b5d85672bdeefe26e1f69d185086
2023-05-24 18:55:36 +00:00
Keita Mochizuki f118a887e5 Fix: Restricted profile comply with PSS (#117543)
* restricted profile comply with PSA v1.27

* add test case

* Reflect review comments

* Reflect review comments 2

* Reflect review comments 3

Kubernetes-commit: 0813904404034fd760d8e7e1e3ca5444610a7fa8
2023-05-24 20:16:49 +09:00
Arda Güçlü a9dd2e4bec Preserve code blocks in templates.Normalizer (#118029)
* Preserve code blocks in templates.Normalizer

Currently, if templates.LongDesc function is invoked multiple times
for a string including a code block, this code block is converted to
invalid code block.

The reason of this issue is that blackfriday package, which templates package uses, relies on
4 * indentation to detect code blocks. This PR always preserves
4 * indentation in code blocks to always detect it code blocks in also
post invocations.

* Add indentations to test for code blocks

* Use strings.repeat for repetition

Kubernetes-commit: 0bff705acd8982e34b937116eb2016c9d6e4c4a6
2023-05-24 09:20:49 +03:00
Kubernetes Publisher fc910923c7 Merge pull request #114053 from brianpursley/fix-update-translations
hack/update-translations.sh: Improve backslash handling

Kubernetes-commit: 12386e2de1a30d2db385e59f4c5ce759b4c17039
2023-05-23 20:12:23 +00:00
minherz 0c921b2f35 Support JSONPath condition without value
Extend current JSONPath condition logic to return from wait on "any" value.
Change parsing JSONPath input to support the syntax without value.
Match any simple or complex (object or array) values.

Kubernetes-commit: 9d3e55ec431f3f595a7739fcc592602f7cc1d69b
2023-05-21 19:03:24 -07:00
Devesh Goyal 03e1b53324 Update k8s.po
Fixed typo mistake

Kubernetes-commit: 0789bbe9f7acdaf0f2c203aef1da292358842f09
2023-05-21 19:33:33 +05:30
Kubernetes Publisher 390b8f40c5 Merge pull request #117952 from atiratree/fix-kubectl-plugin-tests
fix false positive kubectl plugin unit tests

Kubernetes-commit: bb67eb5bd237334d6d0343aa382b351002653404
2023-05-18 10:54:55 +00:00
Kubernetes Publisher 4bd3f1b03d Merge pull request #117818 from vihangm/inMemDescribers
Add all describers to the exported DefaultObjectDescriber

Kubernetes-commit: 2a50ef677ebf0729f176e852d0ad16950e122f6e
2023-05-17 21:59:15 +00:00
Vihang Mehta d3fd4ea37b Sort and limit to the describers the return (string, error)
Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>

Kubernetes-commit: 885f3d7a7dfe4eb09bef86bbeb49499ec3ff2bae
2023-05-17 16:36:46 +00:00
Kubernetes Publisher c200494599 Merge pull request #118036 from skitt/docker-distribution-2.8.2
Bump docker/distribution to 2.8.2

Kubernetes-commit: 02f4d643eae2e225591702e1bbf432efea453a26
2023-05-17 05:58:59 +00:00
Kubernetes Publisher 718239a52a Merge pull request #117753 from humblec/mitchelle
dependencies: update gh/mitchellh/go-wordwrap

Kubernetes-commit: d91fd5138ecc8adff94a98f2e6ce35937d0182d0
2023-05-16 18:13:31 +00:00
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