Amir Mofasser
77e9a6f47f
Add `create ingress` command to `cmd/kubectl`
...
Add `create ingress` unit tests
Move src code to staging dir
Update create command to reflect new API
Replaced deprecated `extensions` api with `networking`
Fix `missing strict dependencies`
Update BUILD
Update BUILD
Fix commit conflict with upstream
Update after review
* Removed obsolete files
* Moved v1beta to v1 api
Fixed gofmt
Fixed deps imports
Merge with PR #94327
Revert changes
Revert go.mod
Revert BUILD
No need to update generated BUILD
Add required deps to BUILD
Update BUILD
Kubernetes-commit: be45584a03aa9f3a3fd73e3d9cc69545da92616e
2020-10-13 16:54:17 +02:00
Sai Harsha Kottapalli
58a00a6dde
Remove the dependency between create quota command and generators
...
Kubernetes-commit: 0222f2d033e8bef5e9b0657cf50e1bcd39b43a57
2020-10-03 03:04:09 +05:30
Christopher Montoro
74d55cc94b
Update the example for kubectl port-forward
...
Clarify that `REMOTE_PORT` is interpreted as identifying a _Service_ port when provided `TYPE` is `service`.
Also, highlight support for specifying a named port as `REMOTE_PORT`.
Kubernetes-commit: 68e8fd5f33647f22a1bd9ff8508003a969036e25
2020-10-07 21:37:03 -04:00
zhouya0
fd930e3995
Clean up nits in delete cascade
...
Kubernetes-commit: f5a035a7e66b25c932a82fc8bc7cde195dd05884
2020-09-25 11:38:28 +08:00
Sally O'Malley
87d74c1a63
clarify help for --api-version: note it's API group/version
...
Kubernetes-commit: 29cd320d89b286c175623a95dd7df8f2cd762c5d
2020-10-05 14:06:32 -04:00
Sally O'Malley
684354b3b1
include APIVersion in output of 'kubectl api-resources'
...
Kubernetes-commit: 068dbb44f39a3ff4c3cfaf82242c91598582ecd4
2020-10-02 09:28:27 -04:00
SataQiu
7a93b067f4
kubectl: improve the warning message when doing kubectl apply to the resource without expected annotation
...
Signed-off-by: SataQiu <1527062125@qq.com>
Kubernetes-commit: 9c163f0a0a97a9bcf10c3f91d2cee02567700d84
2020-07-29 10:39:59 +08:00
wawa0210
c1aa9082c9
Keep the imagePullPolicy of kubectl alpha debug consistent with the default
...
Kubernetes-commit: 6709d4f93855d485f6a809237efbdc1951fbc30a
2020-09-19 11:46:41 +08:00
Sai Harsha Kottapalli
ac26f503e8
fix staticcheck for kubectl pkg files
...
Kubernetes-commit: f6b3c5fb3f78d1d2736fe97326b976783b34f6b7
2020-09-30 15:33:29 +05:30
Ricardo Pchevuzinske Katz
aef03d78a9
Change kubectl clusterinfo to non offensive words
...
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
Kubernetes-commit: ab129349acadb4539cc8c584e4f9a43dd8b45761
2020-09-30 17:59:35 -03:00
Eddie Zaneski
951c0caa13
Add get-users and delete-user to kubectl config
...
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
Kubernetes-commit: 95b189fd8f69812738ba9ea472237ab946863d23
2020-04-03 16:41:46 -06:00
Lee Verberne
9e9322bdd6
Update the use message for kubectl debug
...
The command now supports type syntax similar to `kubectl get`.
Kubernetes-commit: 40904c7a7de4bcb050030eaf53dfb21c3f076ae9
2020-09-23 15:06:16 +02:00
zhouya0
8411619cbf
Support kubectl delete foreground
...
Kubernetes-commit: 383b5f676670d99dc1fba4254ba7f6a81a052ba3
2020-07-23 18:45:59 +08:00
Sai Harsha Kottapalli
abcbb6390c
allow adding annotations to pod when using kubectl run and add tests
...
Kubernetes-commit: 661de7f39eeab6a6977d59f9a24129477f7c5815
2020-07-23 19:37:22 +05:30
Eddie Zaneski
1ac77cf17d
Warn when creating roles with custom verbs kubectl
...
Remove errors when using custom verbs
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
Kubernetes-commit: c9420cd703b9431528e91a78428bb982d3b20b67
2020-06-24 16:20:13 -06:00
renzheng.wang
26aa5c6585
make kubectl/kubeadm completion script support busybox
...
Kubernetes-commit: ff888f3a43abcb48b773e108baa38858220d88e3
2020-04-08 23:03:53 +08:00
Maciej Szulik
62a25b9910
Handle nil elements when sorting, instead of panicking
...
Kubernetes-commit: a2d96fcbac6c4d92565fd0453cb6bc8c3b422bcb
2020-09-09 22:39:46 +02:00
brianpursley
f9c04a0266
Sort kubectl top output when --sort-by and --containers are used together
...
- Changed kubectl top to sort first at the pod level and then at the container level when --sort-by and --containers are used together.
- Refactored printSinglePodMetrics into two separate functions instead of passing in bool to change behavior.
- Refactored MetricsSorters to simplify code.
- Added unit tests to test container sorting.
- Fixed pod sorting unit tests which were not working because it was checking for --sort-by command line flag which was never true.
Kubernetes-commit: 04266b37ded103ddb84a192ec816499904fce1d1
2020-08-06 11:47:09 -04:00
Adrian Moreno
3de8ce8105
portforward: Fix UDP-only ports calculation
...
If a service has both TCP and UDP but the TCP port appears before in the
range loop, it will be considered a UDP-only port and the forwarding
will fail.
Fix that by calculating the difference between UDP ports and TCP ports.
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Kubernetes-commit: 21b598cbe752dc5d2a2bca0e46729c9e72d162a3
2020-09-11 19:50:11 +02:00
zhouya0
3c159f733a
kubectl wait add ignore not found flag
...
Kubernetes-commit: 3d2d95e99dd1219331ef3d32e63b39122a0ef116
2020-05-11 09:19:10 +08:00
Kiyoshi Muranaka
5457c2b27c
Fix index out of range panic for kubectl alpha debug
...
Fix containerNameToRef func to get init containers and ephemeral containers properly.
Set EphemeralContainers in generatePodCopyWithDebugContainer func to nil which means
dropping ephemeral containers from a copy of pod so that it can be created successfully,
otherwise it is rejected by the API server.
Kubernetes-commit: bf3dfaf99942eab20fac1570ca0146d32cb93b57
2020-09-07 02:43:21 +09:00
Gaurav Singh
66f1998dda
kubectl: Use Fprintf
...
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Fix typo
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Change Fprintf to Fprintln
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Use %q instead of %s
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Change %q to %s
Kubernetes-commit: b326948a9a317dbc17c6f32dfeea26e090bde3b0
2020-05-25 18:19:27 -04:00
Eddie Zaneski
ac345319b3
Update kubectl to use new vendored github.com/fvbommel/sortorder dependency
...
The author of this dependency is removing the vanity url and has
instructed users to use the GitHub path.
This updates the dependency to the module-less pin to the v1 module tag.
https://github.com/fvbommel/util/issues/5
https://github.com/fvbommel/util/issues/6
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
Kubernetes-commit: db826b14583be77a1757f7f8aaef864ece627042
2020-09-02 17:52:26 -06:00
Clayton Coleman
8a21d7e297
kubectl: Allow --patch-file to be passed to `kubectl patch`
...
The current structure is limited in the size of the patch it can
accept depending on the shell of the environment (for instance, a
900kb patch cannot be applied in bash 4 on Fedora 32). Allow a user
to specify `--patch-file` to provide a file containing the patch
rather than directly on the command line.
Kubernetes-commit: 6c165083ce4665dbdbc29fbdea03e538e87abaa2
2020-07-29 18:40:55 -04:00
Maciej Szulik
e80cf9ce71
Use temporary directory when creating temporary file in tests
...
Kubernetes-commit: a7529f4cd90ea6f662e1398608eccd86e886026f
2020-07-17 10:41:16 +02:00
Adrian Smith
e8b951b248
Add unit test to kubectl/cmd/run
...
This test verifies that adding the "expose" parameter results in a
service being created for the pod.
Kubernetes-commit: c5c48c96804a6dd47cb8fbac25280f3b456f1cae
2020-06-15 20:25:45 +01:00
Sally O'Malley
ecd37ea662
get: -o yaml, json set ServerPrint false
...
Kubernetes-commit: 01e344feb6368647dc1a48c7a3a27b5852f9b89d
2020-08-12 12:23:23 -04:00
Antoine Pelisse
197a2c448d
Mention background deletion in kubectl delete cascade help
...
Kubernetes-commit: 6b7dea4c03ee5aab41fa5575bd0a45ca195add54
2020-07-22 16:06:50 -07:00
Cornelius Weig
8560c536e9
Link to krew's new project site
...
Kubernetes-commit: 152ee3b57a207abb1279f406b7832abb365e779f
2020-03-01 21:56:56 +01:00
Cornelius Weig
701d4a19e6
Use canonical URL for the krew project
...
Kubernetes-commit: 5a9a28f8ebdee91606afb2ec60757a4b6ed6ca1b
2020-02-26 23:05:28 +01:00
Jordan Liggitt
197605389f
Fix int->string casts
...
Kubernetes-commit: 124a5ddf725c4862520d8619017cac9db7a03522
2020-07-24 11:13:07 -04:00
weihan
a693563834
better understanding of kubectl attach description
...
Kubernetes-commit: 4fc4eb0c91b17a438e4ef56215b275e242433c59
2020-05-11 10:12:48 +08:00
Lee Verberne
63b6f85e5d
kubectl debug: add support for debugging nodes
...
When called with a node target, `kubectl debug` will create a run-once
pod in the target node's namespaces.
Kubernetes-commit: 7e63cc8b9d592abbb8a659205555e67b57080837
2020-04-03 18:36:32 +02:00
Maciej Szulik
c56b1f0b27
Strip .meta.managedFields for kubectl edit command
...
Kubernetes-commit: 9e5c533cb61b0afe50f926dea0e5562fd2cf7ea0
2020-06-09 14:56:57 +02:00
SataQiu
28378371e6
kubectl: fix the bug that kubectl scale does not honor --timeout flag
...
Signed-off-by: SataQiu <1527062125@qq.com>
Kubernetes-commit: 8d37c3b8f24478fe36da23f3ac453767f438e80b
2020-06-06 18:19:47 +08:00
SataQiu
4990be8686
kubectl: fix the bug that kubectl autoscale does not honor --name flag
...
Signed-off-by: SataQiu <1527062125@qq.com>
Kubernetes-commit: 84d177b6d4abab6193dc05302ad54378a0d34aec
2020-06-06 17:35:47 +08:00
Aylei
c73a3aa1bf
Add debug by copy support for kubectl alpha debug command
...
Signed-off-by: Aylei <rayingecho@gmail.com>
Update staging/src/k8s.io/kubectl/pkg/cmd/debug/debug.go
Co-Authored-By: Lee Verberne <lee@verb.is>
Apply suggestions from code review
Co-Authored-By: Lee Verberne <lee@verb.is>
Kubernetes-commit: cfece3edfe8a726fc5dc65ef89b89021316837c7
2020-04-13 01:58:36 +08:00
Aurélien Baumann
bef6c5ee32
Remove the dependency between create clusterrolebinding command and generators
...
Kubernetes-commit: 484361a1d1eb1e7d37569d0bbe7f3a6ca0de986b
2020-05-15 00:07:01 +02:00
Yuvaraj Kakaraparthi
36c221e3cf
kubectl: cannot use --force with --server-side
...
Kubernetes-commit: f93ad0204eeeb21e567df3d5841847373bf7a646
2020-07-06 10:07:26 -07:00
zhouya0
384af9bcb2
Change kubectl list option stdout
...
Kubernetes-commit: abad08d915531a6f8686f58a8cb41395ed77c714
2020-07-01 17:00:25 +08:00
zhouya0
1432c7799a
Support kubectl annotate list
...
Kubernetes-commit: ca1d598e58ab3efe4a6f51aaff8fb9796a0a11d0
2020-06-28 11:30:41 +08:00
Alex Wang
f00cf71393
Promote NonPreempt feature gate to beta ( #91899 )
...
* update nonpreempt featuregate to beta
* update
Kubernetes-commit: 209117413f32ec64e800dc32f69055ef2af75d54
2020-06-30 09:39:05 +00:00
Seth Pollack
b55288a363
add labels to diff command
...
Kubernetes-commit: 75af2fca6125516dff42e9825ceea89367986f78
2020-05-07 14:30:00 -04:00
zhouya0
2b8a7e264f
Remove kubectl run validate replicas logic
...
Kubernetes-commit: 4b82d5ae084719e5ff5e1d6a5036452eb91f4099
2020-06-16 17:01:33 +08:00
zhouya0
c6077ba088
Fix clusterdump info namespaces flag not working
...
Kubernetes-commit: 461fbad4122051f02422191f94b5ce26542b15a6
2020-06-08 14:21:31 +08:00
Naoki Oketani
404318cdbc
Remove --export flag from kubectl get command.
...
Kubernetes-commit: c0562815fada455daf4826f59df895942dad8df0
2020-02-28 17:41:00 +09:00
knight42
0597d045eb
refactor: move kubectl-cp to staging
...
Signed-off-by: knight42 <anonymousknight96@gmail.com>
Kubernetes-commit: 1b32dfdafdcd6cce21415c75385970a9ae5b0f01
2020-06-15 12:20:14 +08:00
knight42
5ee889da0a
feat(port-forward): warn users about UDP port
...
Signed-off-by: knight42 <anonymousknight96@gmail.com>
Kubernetes-commit: ca8da7e2984a92a9c024f8f0e6cac2b9ae87339b
2020-06-01 12:28:01 +08:00
zhouya0
7b9fac0696
Add kubectl apply generate name error message
...
Kubernetes-commit: c91ef266973904c82894492b887deb2a04b6d998
2020-03-10 15:51:41 +08:00
Brian Pursley
b4594b0812
Added kubectl apply check to prevent using --dry-run=server with --force
...
Kubernetes-commit: 99f6dca1a8d1ea64d22a68263c77bcafd6fedc48
2020-04-16 21:23:36 -04:00
Sergey Yedrikov
a2bdd9d806
Fix for kubectl issue 834:
...
"kubectl help api-resources --sort-by" text mentions nodes, not API resources
Kubernetes-commit: e5370afba2842b844699b239f3f14306f9923eb6
2020-03-06 15:26:06 -05:00
Jordan Liggitt
fe32c3454c
Add support for v1 CSRs to kubectl certificate commands
...
Kubernetes-commit: ca234db60151ccffdd4dc8ceb2ec3c69fd83af69
2020-06-04 11:39:02 -04:00
Brian Pursley
683f5c08eb
Added --privileged flag to kubectl run
...
Kubernetes-commit: cd005c1da41e54971319030687cecafec4884868
2020-04-28 16:30:59 -04:00
Maciej Szulik
f5762887af
Fix --save-config for kubectl create commands, where it was missing
...
Kubernetes-commit: 42ee2068384dd47d684121db8f92e593af1f50fc
2020-06-08 14:02:33 +02:00
zhouya0
c825cb5a2f
Support kubectl create deployment with replicas
...
Kubernetes-commit: b6213ed931930eba27b4a53db54b4b4d224a1c59
2020-05-29 14:52:07 +08:00
Jordan Liggitt
695c3d2c06
Make kubectl tolerate other versions of the CSR API
...
Kubernetes-commit: ea6e5e53de03b791c2d30781e29ba9a0c5e0cbf6
2020-06-02 13:53:26 -04:00
Julian V. Modesto
df62cad179
Remove deprecated --server-dry-run.
...
For the beta server-side dry-run feature, `kubectl apply` provided the
`--server-dry-run` flag.
As of 1.18, this flag was deprecated and marked to be removed after 1
release.
Kubernetes-commit: 3e93f9926279db8a4d064d615c4ad7cfdc7ab38b
2020-05-20 16:53:53 -04:00
zhouya0
635dca932f
Fix create deployment port not working
...
Kubernetes-commit: 24766024c17e6090b694b0f57d0b051884a2dac1
2020-05-27 15:56:35 +08:00
Julian V. Modesto
0d395d7c98
Make client-side apply safer
...
- Remove the ServerDryRun field and delegate it entirely to the resource.Helper
- Use resource.Helper for deletions (as in `kubectl apply --force`)
instead of using the pruner's method that uses a dynamic client
- Reduce the resource.Helpers and times we check for server-side dry-run
in apply
Kubernetes-commit: f0eb68c0cfcff6d50d9d5ec278f96820e3cb3f9a
2020-04-02 18:26:32 -04:00
Zhou Peng
27261dabef
[kubectl/pkg/cmd/rollout]: fix typo & tidy imports
...
Signed-off-by: Zhou Peng <p@ctriple.cn>
Kubernetes-commit: ef1deb8b40ca3033309f2ba875560a7a49d3c486
2020-05-25 09:37:18 +08:00
Maciej Szulik
0fc32c9e63
Refactor create deployment and add --port flag
...
Kubernetes-commit: ed1a0e945649095618bd3484c82b58046bcbd60c
2020-05-14 18:34:40 +02:00
Maciej Szulik
731925c63c
Set schedule and image flags required for create cronjob
...
Kubernetes-commit: 9e7ca872b4e2c9c95f7e7c224bc79c1b698789b9
2020-05-14 18:34:27 +02:00
zhouya0
c027f981b2
Fix kubectl create secret docker-registry
...
Kubernetes-commit: bbf41448f6c5494d5adabc4954d7230522b28d2e
2020-05-11 11:05:37 +08:00
Aurélien Baumann
3c8dea227e
Refactor kubectl create deploy: isolate obj construction logic
...
Kubernetes-commit: c43f62c10b55a8722f1cd5c0547307da388d6b23
2020-05-18 11:32:23 +02:00
Brian Pursley
7ed1bb5485
Changed kubectl config set-cluster and set-credentials to support process substitution for filenames
...
Kubernetes-commit: 84d5e664afb809b92c31a4c36acb2baa1fc8649e
2020-05-15 09:22:59 -04:00
zhouya0
2ece9ead67
Fix dry run client ignore namespace
...
Kubernetes-commit: 2f117260fb50926cf0967dfa2817728eb75e1e90
2020-04-26 15:13:20 +08:00
zhouya0
4a94a16b14
Fix kubectl run ignore namespace
...
Kubernetes-commit: b3c830d4bf260c68d4299cd1879dbe9ce9913bc6
2020-05-04 22:35:03 +08:00
Aurélien Baumann
d55dfd5661
Remove the dependency between create deploy command and generators
...
Kubernetes-commit: 0cbb2087dab0791956ac9233d9554399fd472bb5
2020-05-01 18:04:37 +02:00
Davanum Srinivas
445ad1366b
switch over k/k to use klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Kubernetes-commit: 442a69c3bdf6fe8e525b05887e57d89db1e2f3a5
2020-04-17 15:25:06 -04:00
Julian V. Modesto
415a73888a
Set kubectl field manager names
...
Kubernetes-commit: 360c348d0eb5be8c7c9720d5bfda16dbe04e8d15
2020-03-04 22:04:01 -05:00
Maciej Szulik
9f4fb540db
Set appropriate owner references when creating a job from cronjob
...
Kubernetes-commit: b1a068b0fcfeac586df28a8b3d65db33dc3e1aa5
2020-05-13 12:59:49 +02:00
Maciej Szulik
b0e673d0df
Fix create cronjob help message
...
Kubernetes-commit: b2b59527964a3629f5d50e4b724aa027b4c36cc5
2020-05-12 10:35:50 +02:00
张潇
41c5cfa5d2
Kubectl Taint now also accepts short forms for "node","nodes","no"
...
Kubernetes-commit: 8fda1f361c73aafa441e5a8b503cbf2a781fa019
2020-03-02 20:15:34 +08:00
zhouya0
425b3d2e14
Remove *cobra.command from options
...
Kubernetes-commit: 1ef5732c436463f405b8224c6885a50716bfc39b
2020-04-09 12:15:43 +08:00
Maciej Szulik
d727dabb7d
waitForPod should use different exitCondition depending on restart policy
...
Kubernetes-commit: 6f1484256db9579361d218aef7f7960446fd541d
2020-04-24 13:04:42 +02:00
wojtekt
5b27ac0ca2
Fix the flaky kubectl tests at scale
...
Kubernetes-commit: 98058a1b68da3726e1110dc8bba3838459d03b29
2020-04-23 22:05:55 +02:00
gavinfish
454ffd5141
Staticcheck: vendor/k8s.io/pkg/cmd/set|edit
...
Kubernetes-commit: 2b8e60bb21358608cfa46942e0b3210eee263ea8
2020-01-21 11:16:03 +08:00
Maru Newby
2cd642e11a
kubectl: Update run's --restart help to reflect generator removal
...
PR #87077 ensured that only pods would created by `kubectl run`. This
change updates the help text for the `--restart` parameter to no longer
reference the removed job and deployment generators.
Kubernetes-commit: ab8b69b54eed552845c0548a30909f97ceaf0457
2020-04-02 21:30:25 -07:00
Maciej Szulik
6a446d6097
Re-use podAttachTimeout when waiting for pod readiness
...
Kubernetes-commit: c2bb76ebc902ea5172aa56db78d1fb59f4f88bec
2020-04-22 17:01:13 +02:00
knight42
b9bc004f47
fix(kubectl): explain crds with the same resource name with builtin objects
...
Kubernetes-commit: 397f107a0886999e0d45955dfe460112edd9ac5e
2020-03-26 16:07:06 +08:00
Maciej Szulik
e6776b41f6
Fix kubectl version test to tolerate Run error coming from default
...
localhost:8080
Kubernetes-commit: 34865774a89db5f5b8684d5dd1042f6f4c2b21d0
2020-04-17 17:50:24 +02:00
Kazuki Suda
736b43aee9
Fix missing a shorthand for container flag of kubectl alpha debug
...
Kubernetes-commit: fca1027dd6d69ca7c5b3dd54059c29b2c8d04762
2020-03-31 12:15:17 +09:00
Riccardo Piccoli
9fae31af80
Change not found output when getting non namespaced resources
...
Signed-off-by: Riccardo Piccoli <riccardo.piccoli@gmail.com>
Kubernetes-commit: 818f011a2e7e1a05923f06c57ef6089e3a048fba
2020-02-13 17:28:06 +01:00
zhouya0
9d73fd8f3c
Fix kubectl version should print version info
...
Kubernetes-commit: 948f4de2dbba3affca2de460d836158cbde5db78
2020-04-07 15:18:38 +08:00
Lee Verberne
c401716d75
kubectl debug: support different kinds
...
This is a refactor ahead of adding support for supporting `kubectl debug` of nodes.
Kubernetes-commit: 8414d180feb9ddb0d4b9b80ea8e570dcacf98703
2020-04-03 14:31:18 +02:00
tipok
b096826165
fix BusyBox sed
...
BusyBox sed works the same way as GNU sed
Kubernetes-commit: 6885919986250c33af63933d95b30d1896a8dd07
2020-02-28 11:06:30 +01:00
knight42
4e70f2b1a7
fix(kubectl): remove trailing space when completing file path
...
Kubernetes-commit: 2fefd9eea4db910eae2b3b86f4834d0892b659dc
2020-03-25 22:54:33 +08:00
Julian V. Modesto
489b062728
Support kubectl scale --dry-run=server|client
...
Kubernetes-commit: efed958779d564357a9965fccf43f64ee1feb972
2020-03-30 17:33:15 -04:00
Tatsuhiro Tsujikawa
e7bb62301f
Restore the ability to `kubectl apply --prune` without -n flag
...
Before https://github.com/kubernetes/kubernetes/pull/83084 , `kubectl
apply --prune` can prune resources in all namespaces specified in
config files. After that PR got merged, only a single namespace is
considered for pruning. It is OK if namespace is explicitly specified
by --namespace option, but what the PR does is use the default
namespace (or from kubeconfig) if not overridden by command line flag.
That breaks the existing usage of `kubectl apply --prune` without
--namespace option. If --namespace is not used, there is no error,
and no one notices this issue unless they actually check that pruning
happens. This issue also prevents resources in multiple namespaces in
config file from being pruned.
kubectl 1.16 does not have this bug. Let's see the difference between
kubectl 1.16 and kubectl 1.17. Suppose the following config file:
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
creationTimestamp: null
name: foo
namespace: a
labels:
pl: foo
data:
foo: bar
---
apiVersion: v1
kind: ConfigMap
metadata:
creationTimestamp: null
name: bar
namespace: a
labels:
pl: foo
data:
foo: bar
```
Apply it with `kubectl apply -f file`. Then comment out ConfigMap foo
in this file. kubectl 1.16 prunes ConfigMap foo with the following
command:
$ kubectl-1.16 apply -f file -l pl=foo --prune
configmap/bar configured
configmap/foo pruned
But kubectl 1.17 does not prune ConfigMap foo with the same command:
$ kubectl-1.17 apply -f file -l pl=foo --prune
configmap/bar configured
With this patch, kubectl once again can prune the resource as before.
Kubernetes-commit: 7af3b01f24edfde34e42640ee565a5a6bb66ce26
2020-03-27 01:11:36 +00:00
Morten Hauberg
84b55fb518
Remove double `kubectl` from output
...
Kubernetes-commit: 5fe57c61482611361502544f36e9df3d17898449
2020-04-07 12:54:26 +02:00
Sean R. Sullivan
34abefcfa8
Even with build error, kubectl apply should apply all valid resources
...
Kubernetes-commit: 748ad74245778a93a68652cd7e804d6a1e13ad9d
2020-04-03 19:50:25 -07:00
Julian V. Modesto
1cfa7c66b3
Ensure diff doesn't persist patches
...
Kubernetes-commit: 9c0320f1bfd8edfb11c283b3fd422dc6e49360c5
2020-04-02 17:14:17 -04:00
Sean R. Sullivan
26ca5b3402
Fixes problem where kubectl apply stops after first error
...
Kubernetes-commit: b75990cc7bccc5693df34e29745eea0c98d095d1
2020-03-26 13:24:33 -07:00
Marek Siarkowicz
809652a24f
Deprecate heapster related kubelet flags and remove their implementation
...
Heapster is retired since 1.11.
Having kubectl top mention Heapster is confusing for users.
Kubernetes-commit: 6d9fbd2d9f2fa77da20ebdf800d129e70ee7b932
2018-03-02 17:08:11 +01:00
Jordan Liggitt
53a6dfe9f1
Simplify dual or single port logic
...
Kubernetes-commit: dfeb617cc0e6a7b4c595eb5f7e927e9ceec1e18d
2020-03-23 22:04:14 -04:00
Marius Ziemke
a45347152c
fix kubectl port-forward for services with explicit local port
...
Kubernetes-commit: ef2eaa4f8f7ce85478310775a134047a77a8e310
2020-03-08 17:49:18 +01:00
Davanum Srinivas
196f0c117a
Move k8s.io/apiserver/pkg/util/term to k8s.io/component-base/term
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Kubernetes-commit: 1d057da2f73118893b5cc27c15d59ff03beb271e
2020-03-16 16:27:44 -04:00
d-kuro
3cbb4ef3ee
Fix ownerReferences.apiVersion for kubectl create job --from=cronjob
...
Kubernetes-commit: b78ab3515e85bb391e6cadc3374da7ac1992db1f
2020-02-28 14:28:27 +09:00
Brian Pursley
6464f40812
Removed unnecessary _complete call which was silently failing and causing zsh completion to return a nonzero exit code
...
Removed unnecessary _complete and _expand aliases for zsh completion
Kubernetes-commit: 04741b150effc1c963c1d1b6b2a8d9ce2019d375
2020-02-21 09:11:44 -05:00
Brian Pursley
1a80e2e210
Changed kubectl config view to redact token
...
Kubernetes-commit: 6fad4ee5e5f5fa6fbf38e88f165b012fa0ae5795
2020-03-17 15:13:50 -04:00