Commit Graph

3445 Commits

Author SHA1 Message Date
Patrick Ohly cde3c070a1 dependencies: update to ginkgo v2.6.1, gomega v1.24.2
Ginkgo v2.5.0 adds support for a "timeline": a full description of what happened
while a specific test ran, including failures, timeouts, and log output.

Ginkgo v2.6.0 adds ReportBeforeSuite which we need for
https://github.com/kubernetes/kubernetes/issues/114313.

Kubernetes-commit: f3ef4004317c1a12d84021be29dd5f92badc8eff
2022-11-02 09:07:12 +01:00
Brian Pursley 41407b14e8 kubectl apply: Deprecate --prune-whitelist in favor of --prune-allowlist
Changes in kubectl apply --prune to support k8s Inclusive Naming Initiative:
* Deprecated the --prune-whitelist flag.
* Deprecated the PruneWhitelist field on ApplyFlags struct.
* Removed PruneWhitelist field (not used anywhere) from ApplyOptions struct.
* Added --prune-allowlist flag.
* Added PruneAllowlist field on ApplyFlags struct.
* Added unit tests for prune with allowlist

This commit also fixes a bug where the command would fail if you specified
the sameGVK multiple times for --allow-whitelist. Now it only attempts to
prune the unique set of allowed GVKs.

Kubernetes-commit: f7ebf4d8852d4500f24100ca9a4ca665efc1fada
2022-10-30 20:50:19 -04:00
Kubernetes Publisher f0a2aee8eb Merge pull request #109525 from jonyhy96/feat-wait
feat: make jsonpath wait logics consistent with condition

Kubernetes-commit: 526650fc137b2e68267182b1b5116aa566be51e5
2022-10-30 20:29:03 +00:00
David Leadbeater 8e2918ab8b Escape terminal special characters in kubectl (#112553)
* Escape terminal special characters in kubectl

* Add escaping for kubectl alpha events

Kubernetes-commit: dad0e937c0f76344363eb691b2668490ffef8537
2022-10-30 16:29:24 +00:00
Kubernetes Publisher b01e72070f Merge pull request #112002 from ardaguclu/apiresources-restgetter
(kubectl apiresources): Use restclientgetter instead cmdutil.Factory

Kubernetes-commit: 90f50488c7b1ab810dd98061d196568e61c47adb
2022-10-30 16:29:22 +00:00
Kubernetes Publisher 74b38cf5e3 Merge pull request #111990 from ardaguclu/remove-v1beta1-csr
(kubectl certificates): Remove certificates/v1beta1 client usage

Kubernetes-commit: 93ebccb2a79db69a0d0c1e06519271ca0ef66bf4
2022-10-30 16:29:20 +00:00
Kubernetes Publisher 6a94e99926 Merge pull request #113423 from sss-ng/bugfix/fix-cmd-test
fixed kubectl test that passes when it should fail on changed test input

Kubernetes-commit: 367f01f62d1a6ca149c317f97a958dd5c6e74af1
2022-10-28 16:39:00 +00:00
Kubernetes Publisher dda6c2b2dd Merge pull request #113367 from pohly/dep-ginkgo-gomega
dependencies: update to gomega v1.23.0 and ginkgo v2.4.0

Kubernetes-commit: 9e8558158478f622104afd0328883577756bff9f
2022-10-28 16:38:56 +00:00
weikhor 992e246451 Clean up testing code of kubectl cmd section
Kubernetes-commit: 69b0b731e9dcfaa3960581165e4550758b0403c6
2022-10-27 22:18:42 -04:00
Sam Snarr e25bbbc6e1 fixed test to fail when you change the `expectPluginArgs` so that it is different than `args`
Kubernetes-commit: 45fc1f0d93b996b0bc84cdcaec47ff60b8c21b4d
2022-10-27 22:18:42 -04:00
Sean Sullivan 7efcc7e0ac Fixes prune for server-side applied objects
Kubernetes-commit: 21393f1b1d859cecdcc9aeee01f7dbf9aab71120
2022-10-25 21:59:31 +00:00
Patrick Ohly 5cb9c8fd4a dependencies: update to gomega v1.23.0 and ginkgo v2.4.0 and dependencies
Gomega adds support for formatting extensions and StopTrying in matchers.
Ginkgo enhances DeferCleanup.

This also triggered an update of other dependencies.

Kubernetes-commit: e6ad2f2f23449c9d24606b864c4737dc66a7427e
2022-10-24 13:43:15 +02:00
Kubernetes Publisher 5d7596905e Merge pull request #112693 from aimuz/fix-GO-2022-0969
Fixed CVE-2022-27664 Bump golang.org/x/net to v0.1.1-0.20221027164007-c63010009c80

Kubernetes-commit: 6cb473b6c4f1239d411e0a50a1cdf9c4c092c42a
2022-10-28 08:39:19 +00:00
aimuz 4e55ca8a90 Fixed (CVE-2022-27664) Bump golang.org/x/net to v0.1.1-0.20221027164007-c63010009c80
Fixed https://pkg.go.dev/vuln/GO-2022-0969

Signed-off-by: aimuz <mr.imuz@gmail.com>

Kubernetes-commit: 78c704d4f60d54996d483d49c23c6aac82f28dc9
2022-10-28 10:07:56 +08:00
Kubernetes Publisher 182c1bcbee Merge pull request #105867 from VilledeMontreal/feature/compPlugins
Shell completion for plugins

Kubernetes-commit: 797536fc76854a856bc1d1156c2355705af461ca
2022-10-26 01:16:57 +00:00
William, Yeh 729f491d6f kubectl displays seccomp profile for pod and container
Kubernetes-commit: a4dac224e7ef5d4c1a50b5c6a5f89c39f3115381
2022-10-23 21:53:05 -04:00
Kubernetes Publisher b344c7d2de Merge pull request #112546 from oscr/the-the
grammar: replace all occurrences of "the the" with "the"

Kubernetes-commit: bf14677914cd7cef75deeb3ba136febe194d6ef4
2022-10-19 20:28:21 +00:00
Kubernetes Publisher abd5295393 Merge pull request #113024 from alexzielenski/explain-output-openapiv3
kubectl explain openapiv3 template foundations

Kubernetes-commit: 33bc8750fb97657d3cd995bd4b32857947f1dac1
2022-10-19 08:28:12 +00:00
Kubernetes Publisher d7084fd62c Merge pull request #112966 from LJTian/master
Update GO address link

Kubernetes-commit: 21049c2a1234ae3eea57357ed4329ed567a2dab3
2022-10-18 12:30:17 +00:00
Alexander Zielenski c9325dd23a unit test v2 explain package
update

Kubernetes-commit: 0cf7240f313f831a7411abc878b7d7309e445487
2022-10-17 13:59:17 -07:00
Kubernetes Publisher 043a21c55c Merge pull request #113106 from pohly/dep-ginkgo-gomega
dependencies: update to gomega v1.22.1 and ginkgo v2.3.1

Kubernetes-commit: 4216ad3542ff5defcfdb303945772a8e1663a7f6
2022-10-17 20:37:06 +00:00
Kubernetes Publisher 65805ae280 Merge pull request #112714 from PuneetPunamiya/split-describe-command
Refactors describe command to split flags from options

Kubernetes-commit: 162aaf77f281658aa3823e69e2636936bcbe179a
2022-10-17 08:28:04 +00:00
George Aristy d592485b4b fix OldReplicaSets
Kubernetes-commit: a4c6696c456819e58e6215c95b6ece17819a5751
2022-10-15 21:00:45 -04:00
Arda Güçlü 6b1e3be978 rollout restart: Change error message to more descriptive
`rollout restart` command calculates patches according to the
`kubectl.kubernetes.io/restartedAt` annotation whose time format is
RFC3339. That is sufficient for users. However, if automated scripts
execute `rollout restart` in multiple times within second, commands fails
by returning an error "empty patch".

This PR changes error message to more descriptive format to warn users
that rollout restart does not work subsequent execution within second.

Kubernetes-commit: fb3d9e3ac9d244047efa411e9e6ae162692ad79e
2022-10-13 11:45:42 +03:00
Alexander Zielenski 9cd0ccd733 add `KUBECTL_EXPLAIN_OPENAPIV3` envar to gate new explain implementation
update

Kubernetes-commit: 2f16cd4aeabda5dd6d5398a3592400bc249fdb17
2022-10-12 08:37:41 -07:00
Alexander Zielenski 7f1795f661 openapi v3 basic renderer
Kubernetes-commit: a9c093b16560a9ed50668250fd24889e503f2d8f
2022-10-17 13:58:42 -07:00
Patrick Ohly 1efdfa88b9 dependencies: update to gomega v1.22.1 and ginkgo v2.3.1
This adds support for timeouts and intermediate reports in Eventually and
Consistently.

Kubernetes-commit: d1dbf7ae3e223d5d93d0b3d875e4f03ff38e6de0
2022-10-07 17:19:09 +02:00
PuneetPunamiya 768d721977 Refactors describe command to split flags from options
Signed-off-by: Puneet Punamiya ppunamiy@redhat.com

Kubernetes-commit: 568f55a82bf0e375d215ee04d4bf7b916a74a715
2022-09-23 12:16:43 +05:30
Kubernetes Publisher 92206a7303 Merge pull request #112988 from alexzielenski/update-kube-openapi
update kube-openapi

Kubernetes-commit: 353e00796ef4c1e8fcea1cb51bcc62fc3acac3c8
2022-10-15 04:32:46 +00:00
Kubernetes Publisher 5592f5001b Merge pull request #111096 from brianpursley/api-resources-categories
Add categories to kubectl api-resources wide output and add --categories flag

Kubernetes-commit: afbce897a9c7956fd3219b64abacf46fa5d3e6aa
2022-10-15 00:23:02 +00:00
Kubernetes Publisher cc14c9d641 Merge pull request #113037 from pacoxu/fsnotify-v1.6.0
update fsnotify to v1.6.0

Kubernetes-commit: 542ec977054c16c7981606cb1590cc39154ddf01
2022-10-14 08:48:21 +00:00
Alexander Zielenski e2205712e6 update kube-openapi
hack/pin-dependency.sh k8s.io/kube-openapi 172d655c2280350c77cf05962948fc67ff043492
hack/update-vendor.sh

Kubernetes-commit: f622dd918ab5d3bc902a8c625a0a89b21e8afe43
2022-10-13 19:51:22 -07:00
Kubernetes Publisher bb0ea31cc8 Merge pull request #113011 from jpmcb/cobra-1.6.0
Bumps cobra from 1.5.0 to 1.6.0

Kubernetes-commit: 79b4f1e77ae98ede37fd117f36158e88116a8a15
2022-10-13 21:40:32 +00:00
Paco Xu 518a57615c update fsnotify to v1.6.0
Kubernetes-commit: 3fee9d27355afe64dec7fa264e1faf209712f169
2022-10-13 13:14:43 +08:00
John McBride 3f304cc18a Bumps cobra from 1.5.0 to 1.6.0
- Upgrades mousetrap license to latest Apache 2.0

Signed-off-by: John McBride <jpmmcbride@gmail.com>

Kubernetes-commit: dfb55ba48a3d7bcf8efad080de822c57a3d8670f
2022-10-12 14:53:32 +00:00
Kubernetes Publisher 7ef9a004b2 Merge pull request #112989 from ameukam/bump-golang.org/x/text-to-v0.3.8
Bump golang.org/x/text to v0.3.8

Kubernetes-commit: 054d86feb42b67bb13608d9aa9a7c986750da753
2022-10-12 04:29:41 +00:00
Arnaud Meukam 725636b63e Bump golang.org/x/text to v0.3.8
Signed-off-by: Arnaud Meukam <ameukam@gmail.com>

Kubernetes-commit: 0d19690a54e480923e8222ce79566e6879667a1f
2022-10-11 23:30:39 +02:00
Kubernetes Publisher b30069c8b5 Merge pull request #112875 from pohly/update-yaml
dependencies: update to sigs.k8s.io/yaml v1.3.0

Kubernetes-commit: 93d1c43b491a39740297cf1e76782b99d8739865
2022-10-06 16:32:02 +00:00
Patrick Ohly d36da37d17 dependencies: update to sigs.k8s.io/yaml v1.3.0
No particular benefit and no relevant changes, it's just to stay up-to-date and
to avoid having to pull that in when merging
https://github.com/kubernetes/kubernetes/pull/111023 which indirectly depends
on the newer release.

Kubernetes-commit: 9b93cc663a102b6e36f07eecc7b6e32225f39295
2022-10-05 11:14:23 +02:00
Kubernetes Publisher 82a9434798 Merge pull request #112753 from flant/who-am-i-error
Add more accurate error message for WhoAmI command

Kubernetes-commit: e0e03027e01a0d96163b328d2667a25b54952116
2022-09-29 18:58:39 +00:00
Kubernetes Publisher 90682f9d52 Merge pull request #112731 from pacoxu/blackfriday-v2
upgrade Blackfriday to v2 and re-implement render

Kubernetes-commit: 8d1ba6a0861d4c11336d2a9895c3800d9fc795c4
2022-09-29 18:58:37 +00: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
Paco Xu e0b132cd00 add unit test for normalizer rendering markdown
Kubernetes-commit: 9d2be187e550604879ad33d99379550b6fbebc3b
2022-09-27 14:06:40 +08:00
Paco Xu 8402e4686d implement blackfriday render using v2
Kubernetes-commit: baedc1cd3201421a3c90f30876c1a6ae0b0df927
2022-09-26 16:56:20 +08:00
Paco Xu 71a32787d6 pin github.com/russross/blackfriday/v2 to v2.1.0
Kubernetes-commit: 65cb35f931ee5e0ec88a72fe3b53f87e9ab988e6
2022-09-26 13:52:58 +08:00
Kubernetes Publisher 32199482fb Merge pull request #112673 from dims/update-to-latest-k8s.io/utils-sep-22
Update to latest k8s.io/utils to pick up changes

Kubernetes-commit: 722e02408ed1d0d1fc5b7304e2ad8c23125aa2b4
2022-09-22 20:08:56 +00:00
Davanum Srinivas f91199275b Update to latest k8s.io/utils to pick up changes
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Kubernetes-commit: 4e7e7cdd3ce7cd0cec806298c2b7705ea240369c
2022-09-22 07:14:21 -04:00
Kubernetes Publisher ddcafd21d5 Merge pull request #112613 from dims/update-github.com/go-openapi/jsonreference-to-drop-github.com/PuerkitoBio/purell
Update github.com/go-openapi/jsonreference to drop github.com/PuerkitoBio/purell

Kubernetes-commit: 299e65cdc5799b982b6af69858c14bfe41463540
2022-09-21 15:18:34 +00:00