Paco Xu
89470f4910
kubectl apply: warning that in future release, prune will ignores no-namespaced resource if -n is not empty
...
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
Kubernetes-commit: f3b49adadf2182ba0a7fb930e6340da725053520
2022-11-09 07:43:03 +08:00
Kubernetes Publisher
22d0d86955
Merge pull request #111795 from lojies/addnamespaceforkubectlrollback
...
Remove specific command suggestion from kubectl rollout undo error message
Kubernetes-commit: 3c025280c9d8f7db36ae5cafacdc457698a2fcca
2022-11-09 02:01:10 +00:00
Kubernetes Publisher
008de8b458
Merge pull request #113444 from weikhor/test_kubectl_clean_up
...
Clean up testing code of kubectl cmd section
Kubernetes-commit: 89ad7b37c5f0e52a970ad29b05b8cec6c1c3095c
2022-11-08 22:03:41 +00:00
Kubernetes Publisher
af66de2262
Merge pull request #113116 from brianpursley/allowlist
...
kubectl apply: Deprecate --prune-whitelist in favor of --prune-allowlist
Kubernetes-commit: bbbb79712cb6b0a72b2695f21a95ad7bb4cc45e6
2022-11-08 22:03:39 +00:00
Marly Puckett
9cebc60d68
Update redacting functionality to redact all sensitive info in config when printing with view ( #109189 )
...
* Add RedactSecrets function
* Move RedactSecrets method to existing RawBytesData case
* Update TestRedactSecrets to use new pattern of os.CreateTemp()
Kubernetes-commit: e721272d10dd6c4d85ff613182ba0eaddcec9272
2022-11-08 18:06:48 +00:00
Kubernetes Publisher
eb11cdd1f9
Merge pull request #113664 from laphets/kubectl-empty-ingress-backend-fix
...
Fix kubectl describe ingress when default backend is empty
Kubernetes-commit: e3d7cb5bc53bd5db8a8bfe90fe77d8d78a5ded14
2022-11-08 14:01:00 +00:00
Kubernetes Publisher
3814a9af80
Merge pull request #112905 from alexzielenski/kubectl-apply-csa-migration
...
kubectl: `apply --server-side` managed fields migration
Kubernetes-commit: 2f837dc113ba35f84e7012a6d1b06b075b349353
2022-11-08 08:47:02 +00:00
Kubernetes Publisher
5abcdd61ff
Merge pull request #113688 from dashpole/update_utils
...
Update k8s.io/utils to fix util tracing panic
Kubernetes-commit: fa2e203a6bde89a84443ee9813e1f27aa31326a9
2022-11-08 08:46:59 +00:00
Kubernetes Publisher
468f34ae94
Merge pull request #113636 from marckhouzam/feat/compBashDesc
...
Enable shell completion descriptions for bash
Kubernetes-commit: 56a0823730b9c4dafe06a18bd8de027b40d1971c
2022-11-08 08:46:57 +00:00
David Ashpole
47de534351
update k8s.io/utils to fix util tracing panic
...
Kubernetes-commit: 3f1511c8e9a64cf60821036aa1fc3ec9d58a2931
2022-11-07 19:30:21 +00:00
Wenqing Luo
6a7dccd04b
Fix kubectl describe ingress when default backend is empty
...
Kubernetes-commit: 653edeb507c3caafd0e81f6cef0a44425ef8782c
2022-11-07 10:11:28 -06:00
Marc Khouzam
4cdd516e3b
Enable shell completion descriptions for bash
...
Cobra provides support for completion descriptions for bash.
It was turned off because of a bug with certain bash menu options which
have been fixed by Cobra 1.3.0.
Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com>
Kubernetes-commit: d72926d4915133550e41de1252fe2a4aa0aa3745
2022-11-04 16:57:24 -04:00
Kubernetes Publisher
4be4703aaa
Merge pull request #112261 from brianpursley/k-108630-2
...
kubectl run: deprecate unused / nonuseful flags
Kubernetes-commit: 3e8c848cfce00a9ac80a0b2a44dbc671891a33ef
2022-11-04 08:36:01 +00:00
Kubernetes Publisher
6020929e34
Merge pull request #113146 from alexzielenski/explain-output-plaintext
...
kubectl explain --output plaintext
Kubernetes-commit: b0cbf71f5c443460679052ca0cf4800e9d61ab5b
2022-11-04 04:29:30 +00:00
Alexander Zielenski
4f1b2184e0
add kubectl server-side apply migrate managedfields
...
in discussion with SIG, there is a strong interest in keeping the last-applied-configuration around for a bit longer as other tools transition for of it. This is OK since SSA maintains the annotation on kubectl's behalf on the server-side if it exists
migrate client-side-apply fields to SSA when --serverside-side is used
https://github.com/kubernetes/kubernetes/issues/107980
https://github.com/kubernetes/kubernetes/issues/108081
https://github.com/kubernetes/kubernetes/issues/107417
https://github.com/kubernetes/kubernetes/issues/112826
add test to make sure only one apply is needed after migration
Kubernetes-commit: 33b9552e708154c20144c7aca921ad239527fb2f
2022-11-03 20:14:37 -07:00
Brian Pursley
c6025a8904
kubectl/pkg/cmd/run: deprecate flags
...
The --cascade flag, has no practical effect when used, so it is being deprecated.
The following flags, which are unused and ignored by kubectl run,
have been deprecated:
--filename
--force
--grace-period
--kustomize
--recursive
--timeout
--wait
Kubernetes-commit: 09804a198c64f0a738ede28e0b2cb045d16980fc
2022-11-03 23:11:12 -04:00
Alexander Zielenski
3371c3ccee
use discovery client from factory in explain v2
...
was making my own which was uncached
Kubernetes-commit: dca025f37c7d40388f6869fc3d04b8f4fab8d122
2022-11-03 18:59:09 -07:00
Kubernetes Publisher
19f8631311
Merge pull request #109505 from zigarn/no-error-reannotate
...
Do not raise an error proposing to use '--overwrite' when annotating with the same value
Kubernetes-commit: d96e052d981537ae9d2376ee6ac73f3ae6817f69
2022-11-04 00:29:40 +00:00
Kubernetes Publisher
fb69b58abb
Merge pull request #106242 from thockin/revive-copy-lb-status-type-to-ingress
...
Copy LoadBalancerStatus from core to networking
Kubernetes-commit: 818b13544f6421cd414d648637db48c9271b0bb7
2022-11-03 08:34:54 +00:00
Kubernetes Publisher
c9ff82cf2f
Merge pull request #103177 from arkbriar/support_cancelable_exec_stream
...
Support cancelable SPDY executor stream
Kubernetes-commit: 3cf75a2f760b8093f7c97f26b4b2b059f3777bec
2022-11-03 04:36:02 +00:00
Alexander Zielenski
32f336c7b2
update vendor
...
Kubernetes-commit: a82015b4a245e48db85ce56d14037e7d69a18e90
2022-11-02 20:32:05 -07:00
Alexander Zielenski
ee7b47da7d
add plaintext template
...
Kubernetes-commit: e394364cbd1d5ace0f9cfcf10fa2bc458076d1a4
2022-11-02 20:35:18 -07:00
Alexander Zielenski
8ae416a4e0
add template loading to generator
...
Kubernetes-commit: 88792d9e72ee48bac2f6c7158531579cc0bc6aca
2022-11-02 20:33:11 -07:00
Alexander Zielenski
b0d33eb1b8
refactor generator
...
refactor funcs out of generator
Kubernetes-commit: f37f63ab9fff8c38b4c0df6a7a420d1ed710ffe5
2022-11-02 20:34:12 -07: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
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
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
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