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
Jie Shen
5b17a56c1b
Use utils.net to parse ports instead of atoi ( #89120 )
...
Kubernetes-commit: 363bb3914296d5330dce29631fb6003c335cfcf7
2020-04-22 06:49:46 +00: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
gosoon
d47103fdcc
kubectl: fix the Scheduled eventTime is <unknown> when use kubectl describe pod xxx
...
Kubernetes-commit: 798f677aaca0b28f22c09ba6b536c84bec6f5d2f
2020-04-17 19:58:27 +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
zhouya0
9e97ec383e
Fix kubectl describe job event test nil pointer
...
Kubernetes-commit: a576a3c7070c9aeb1da1878e0ca956190979f03a
2020-03-27 19:07:18 +08: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
Jordan Liggitt
b0aa950238
github.com/googleapis/gnostic v0.4.1
...
Kubernetes-commit: 93c7b24562d80959f45c308e7412456a410b9b25
2020-03-31 17:18:56 -04:00
Julian V. Modesto
1cfa7c66b3
Ensure diff doesn't persist patches
...
Kubernetes-commit: 9c0320f1bfd8edfb11c283b3fd422dc6e49360c5
2020-04-02 17:14:17 -04:00
zhouya0
ff83e52b28
Add kubectl describe CSINode test coverage
...
Kubernetes-commit: 991547edb6bc5d9302034fbb94b97204ea951348
2020-03-31 12:15:20 +08:00
zhouya0
6bc21dccc3
Fix kubectl describe CSINode nil pointer error
...
Kubernetes-commit: 55c455e61f6f1e52337e04eeb4ebd41668ffef17
2020-03-30 17:10:40 +08: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
Julian V. Modesto
87fc988437
Set field manager for kubectl diff --server-side.
...
Bonus: check diff only dry-runs without persisting.
Co-authored-by: Takahiro HATORI <tahatori@zlab.co.jp>
Kubernetes-commit: bacc2c49605f608d3f919109e0c37ebf6e1d7036
2020-03-02 14:06:50 -05:00
Jordan Liggitt
cfef71236e
client-go: update expansions callers
...
Kubernetes-commit: d8abacba40a63395cc064452b09a244555536fca
2020-03-06 16:29:23 -05:00
Jordan Liggitt
0c62c9a83a
client-go dynamic client: add context to callers
...
Kubernetes-commit: b7c2faf26c2a25427794478c6265e6d55e8acb5a
2020-03-06 10:17:41 -05:00
Jordan Liggitt
1de89515de
client-go dynamic client: update DeleteOptions callers
...
Kubernetes-commit: b19dc3a474e840340cb357f5ea9f4e575bad888d
2020-03-06 10:20:40 -05:00
Julian V. Modesto
5afacb6c84
Add context and options to scale client
...
Kubernetes-commit: da3c3432d8361f315e7f562563e68316b10b9a2d
2020-02-26 18:39:57 -05:00
Mike Danese
15efe80aa3
more artisanal fixes
...
Most of these could have been refactored automatically but it wouldn't
have been uglier. The unsophisticated tooling left lots of unnecessary
struct -> pointer -> struct transitions.
Kubernetes-commit: 76f85943787a5901a34a314a935712177edd2db0
2020-03-01 09:34:30 -08:00
Mike Danese
96c320d500
automated refactor
...
Kubernetes-commit: c58e69ec791e4dd8a1298d5c2cc0649cf9176f67
2020-03-01 09:24:42 -08:00
zhouya0
3422a4e85e
Show kubectl describe ingress error
...
Kubernetes-commit: 773b890b059ffe9956c8de4b7f0214b802888390
2020-03-02 16:08:17 +08:00
Lee Verberne
c3d84a9e1c
Add kubectl debug alpha command
...
This first version of `kubectl alpha debug` is an import of the existing
kubectl-debug plugin, which supports adding ephemeral containers to
running pods. This attempts to follow patterns used by other kubectl
commands such as run, exec and scale.
Kubernetes-commit: e5b655938e55e0404545ff73e9239593a27a3272
2020-01-31 15:29:31 +01:00
Brian Pursley
4f87593204
Changed kubectl cluster-info dump to not display "Cluster info dumped to standard output" message when output is stdout
...
Kubernetes-commit: 6de140567b37f6f41404237860a1c17e45e45296
2020-03-03 09:18:16 -05:00
Maciej Szulik
ed686e3fbe
Wire --filename flag to exec
...
Kubernetes-commit: 9dac1699bfdb0ff2b8bcfd76c42815b033b3cce0
2020-02-24 14:35:37 +01:00
David Eads
257e232d28
update override behavior for kubectl --tls-server-name
...
Kubernetes-commit: 9dcbc0bf909a794cf77a801bfd29e306791b1e24
2020-03-03 13:16:50 -05:00
Suresh Kumar Ponnusamy
55c8634c3c
Support TLS Server Name overrides in kubeconfig file
...
Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
Kubernetes-commit: 37c81ed79ac6836bce4b96f888aa407dc18d747c
2019-08-28 10:51:14 +05:30
Maciej Szulik
e034e09126
Squash pkg/describe/versioned/ into pkg/describe/
...
Kubernetes-commit: 02cd65d7bb5e4aea84a4f466186bcbbe604c4b27
2020-03-03 13:06:26 +01:00
Maciej Szulik
f2e2579863
Hide kubectl.kubernetes.io/last-applied-configuration in describe
...
Kubernetes-commit: c77b297babc6b21b71f2a449c4cce95af9f6b89e
2020-03-03 12:54:00 +01:00
Maciej Szulik
e576e735d4
Deprecate --generator flag from kubectl create commands
...
Kubernetes-commit: be6ac856f13b994251b3c8e54b2251cf75c6847d
2020-02-28 11:58:53 +01:00
inductor
1c28e1461d
update generated file
...
Kubernetes-commit: 0c74a260c97c2c3f838c2e119312e9c74822ef0c
2020-02-06 10:27:49 +09:00
inductor
78e76a0871
update test data
...
Kubernetes-commit: 0a8df4352563e28e5797a38ccda6f20052cd08bf
2020-01-14 11:23:22 +09:00
Rob Scott
9212fa917c
Adding IngressClass to networking/v1beta1
...
Co-authored-by: Christopher M. Luciano <cmluciano@us.ibm.com>
Kubernetes-commit: 132d2afca0794b4bcaedb6dbbefe4e9d66e80239
2020-02-24 21:20:45 -08:00
drfish
5aa1be61e1
Staticcheck: vendor/k8s.io/kubectl/pkg/cmd/exec|config|certificates
...
Kubernetes-commit: a14ceeb2c00d8048ce05ad199c919bdab6fb6954
2020-01-23 14:03:11 +08:00
James Munnelly
15819eb467
Add signerName field to CSR resource spec
...
Signed-off-by: James Munnelly <james.munnelly@jetstack.io>
Kubernetes-commit: a983356caa9876079eafc5e8dd7806473022e958
2019-12-18 02:19:06 +00:00
Julian V. Modesto
5db847388b
Hide deprecated --server-dry-run for kubectl apply
...
Kubernetes-commit: 7b214c96b01bf34345d4d7d82fcf5a85fd8318dd
2020-02-28 16:19:51 -05:00
zhouya0
77be642341
fix kubectl create deployment image name
...
Kubernetes-commit: 5db45e12d545c69176ead8a4e866ab303776ed5e
2019-12-26 14:42:00 +08:00
Julian V. Modesto
b6cbb3bd6c
Clean up --dry-run values.
...
- Clean up --dry-run values in tests, docs, and scripts
- Fix --dry-run for auth reconcile and add a test
Kubernetes-commit: d97169f59ad11f2d2ffd8ef14446bbec5ffc881b
2020-02-13 16:28:22 -05:00
Brian Pursley
04c3dd17ff
Default grace period to 0 when --force is used to delete an object
...
Kubernetes-commit: 0f31bef94c46b735bb7b1fe2a7d49d58fb93ed11
2020-02-24 09:30:56 -05:00
Cornelius Weig
e54c7dba6a
Add documentation around plugins
...
Documentation is added in several areas:
1. `kubectl plugin` now prints a note that plugins are best discovered
with krew.dev and how to install it.
2. The kubectl book now has a new section about plugins, featuring
- a very brief introduction to the kubectl plugin mechanism
- a section about krew
Kubernetes-commit: ed0e0350854e34bad65de4db44c0f661a5851870
2020-02-26 14:50:50 +01:00
zhouya0
de11036690
Fix kubectl describe ingress annotations not sorted
...
Kubernetes-commit: 0acaf5c3e93cc3422aca47eeea96e9ef553ac35c
2020-02-21 11:02:40 +08:00
Odin Ugedal
6db3ac62f1
Add util function to merge resource lists
...
Kubernetes-commit: 51bff87b18d6482f7383fb2151c7e483a1641ca7
2019-12-14 20:33:35 +01:00
Odin Ugedal
8f16a43328
Add "kubectl describe node" resource tests
...
Kubernetes-commit: 28f8e52f320595fd434a2699850e57bc297474a4
2019-12-14 13:24:18 +01:00
Odin Ugedal
d62698570f
Add huge page usage stats to kubectl describe node
...
Kubernetes-commit: 439a862bba60f05fb21338bfa02e547428c6ce0c
2019-07-25 22:14:35 +02:00
zhouya0
d23f51983a
Add init containers to dump info
...
Kubernetes-commit: a024ac14ef14da1c972edc6589de81405f17bc76
2020-02-19 20:47:34 +08:00
Julian V. Modesto
d3af7e0862
Remove deprecated rolling-update command
...
Kubernetes-commit: 932500c0151a4f0926cf07e63068248540b22f90
2020-02-11 23:27:01 -05:00
Julian V. Modesto
9c1c5e4f10
Add --dry-run to more kubectl commands.
...
- delete
- taint
- replace
Kubernetes-commit: a9ec444d743940fd93b31313a6f3f857e5c5f048
2020-02-18 18:08:25 -05:00
zhouya0
dcc99c8f57
optimize kubectl version help info
...
Kubernetes-commit: f85e079147b65fe444ee60b9c302173ae169990a
2020-02-19 16:45:37 +08:00
Julian V. Modesto
9c04919f3b
Error if --local and --dry-run=server are passed
...
Kubernetes-commit: 5fcd9c7c7ec432dd27e770e49e0e6872335c765d
2020-02-13 16:44:14 -05:00
Hidetake Iwata
0f70b0c27b
Fix example of kubectl config set-credentials
...
Kubernetes-commit: 0368a7d5f7acea476f4adcd85ea037cfe24ccd3f
2020-02-12 21:11:24 +09:00
Olivier Lemasle
e7018f8673
kubectl cluster-info dump: use file extension according to output format
...
Kubernetes-commit: d6fcc224f17f2fe4bb45e731ea3d50a26539fc54
2019-08-28 11:51:39 +02:00
Julian V. Modesto
f9460c5333
Use --dry-run=client,server in kubectl.
...
- Support --dry-run=server for subcommands apply, run, create, annotate,
expose, patch, label, autoscale, apply set-last-applied, drain, rollout undo
- Support --dry-run=server for set subcommands
- image
- resources
- serviceaccount
- selector
- env
- subject
- Support --dry-run=server for create subcommands.
- clusterrole
- clusterrolebinding
- configmap
- cronjob
- job
- deployment
- namespace
- poddisruptionbudget
- priorityclass
- quota
- role
- rolebinding
- service
- secret
- serviceaccount
- Remove GetClientSideDryRun
Kubernetes-commit: 13b80b48cd02b8263d910f2423a1f5b92cdf7644
2020-01-30 20:23:33 -05:00
Maciej Szulik
e10402e591
Don't show flags in api-versions help
...
Kubernetes-commit: 8ff6b24c5736d7b2ce31319ae950a806f2325327
2020-02-12 18:31:05 +01:00
gavinfish
275513cb52
Staticcheck: vendor/k8s.io/kubectl/pkg/scale|describe/versioned|cmd/top|cmd/util/editor|cmd/top
...
Kubernetes-commit: f4940cf55fd7c2787b370464d491a764c4febd78
2020-01-21 10:13:10 +08:00
zhouya0
94b91c1d51
fix kubectl drain ignore daemonsets and others
...
Kubernetes-commit: e3c8add683a095f1bffef1b0ca413f1e42be7fe0
2020-01-19 14:28:53 +08:00
zhouya0
9c14935e27
Add kubectl diff exit code doc
...
Kubernetes-commit: 527e66fc2829917444d874771142fdd834feb8d6
2020-02-04 17:22:23 +08:00
Brian Pursley
09eaf230cc
Fixed code formatting issues discovered by verify-gofmt
...
Kubernetes-commit: 78248d0c2aaca258b4210446dc38c096e83a1eb6
2020-02-04 10:11:18 -05:00
Brian Pursley
445baa99d2
Added 'No resources found' message to describe and top pod commands
...
Kubernetes-commit: e70a630dac6c0158a5f9bb571223ed5759096dc1
2020-01-24 10:42:08 -05:00
Odin Ugedal
4e367c0f16
Add error check in kubectl proxy on server setup
...
If "NewServer" returns an error, it will result in a nil pointer
dereference segfault.
A simple way to test the behavior is to prefix the server url with a
colon, ":".
Kubernetes-commit: 1e50bc2d094410f3848b4dbc5f0442440d8f7d77
2019-07-26 20:06:46 +02:00
Mike Danese
29cd24b6cc
generated: run refactor
...
Kubernetes-commit: 25651408aeadf38c3df7ea8c760e7519fd37d625
2020-02-08 12:30:21 -05:00
Mike Danese
71d8052cb0
generated: run refactor
...
Kubernetes-commit: 3aa59f7f3077642592dc8a864fcef8ba98699894
2020-02-07 18:16:47 -08:00
Brian Pursley
1777c19079
Fixed code formatting issues discovered by verify-gofmt
...
Kubernetes-commit: 2d21f16c38e704eaaa42d7d583ddd103c16d0d6b
2020-02-04 10:16:06 -05:00
Brian Pursley
e9f1eb93f4
Fixed problem in unit test where error expected/actual comparison was not being performed
...
Kubernetes-commit: 97185e97529ef7c006f26bb3190805ad28f15ffe
2020-02-03 12:17:51 -05:00
Brian Pursley
b69c2a4389
Removed unneeded newline (moved to end of directory not found message)
...
Kubernetes-commit: 48ee18b516b267ba062a1dd00a21e7ae10ecd805
2020-01-28 20:51:24 -05:00
Brian Pursley
346cf3d4f4
Ignore empty or blank string in path when listing plugins
...
Kubernetes-commit: f60c0af97710a5dca6f55f3c4a1480412ad50ec8
2020-01-28 17:04:31 -05:00
Naoki Oketani
5e85c16f12
`kubectl create clusterrolebinding` creates rbac.authorization.k8s.io/v1 object
...
Kubernetes-commit: 901d7de5566e9a5e6f99c7ce6f93339cc0d5a3ce
2019-12-04 19:12:10 +09:00
wojtekt
4f3723dc40
Register conversions for kubectl testing types
...
Kubernetes-commit: ea140f5e1a1a297e251cc28a40e2bbf77dfd02e4
2020-01-09 14:16:33 +01:00
Tim Allclair
6fca42a14a
Ensure testing credentials are labeled as such
...
Kubernetes-commit: 9d3670f3586c98c02cdca93b7c98dd91fc0b87bd
2020-02-04 10:36:05 -08:00
Michal Fojtik
cbb6f76ae7
kubectl: allow to preselect interesting container in logs
...
Kubernetes-commit: 439f93c91b81eee29f2aa5c4cf6fff911e26e684
2020-02-04 13:14:43 +01:00
Antoine Pelisse
4c36396b35
kubectl-diff: Return non-1 errors on kubectl failures
...
Currently, diff AND kubectl can return 1 errors either when diff finds
differences, or when kubectl fails something. It also prints an ugly
error when diff finds a differences, since 1 is treated as an error.
Two things this PR does:
1. If diff returns 1, then do not treat it as an error, and exit with
exit code 1. It no longer prints the ugly error.
2. Kubectl errors are +1'd so that they never return 1 which shouldn't
be considered an error.
We need to update the documentation accordingly, to mention that
`KUBECTL_EXTERNAL_DIFF` programs must also follow the convention of
using one as their exit code for changes detected.
Kubernetes-commit: f2b21f08d95291212ba8987aa9d446c02a96089a
2020-01-21 13:52:41 -08:00
Julian V. Modesto
c0b11fa131
Extend --dry-run to support string values.
...
* Extend --dry-run to support string values for dry run strategies
'client', 'server', and 'none'
* Ensure --dry-run is set and accessed via cmdutil
* Deprecate --dry-run (unset), --dry-run=true, and --dry-run=false
Kubernetes-commit: af52beda260257e81cc9e19e9e5108b682ee93d6
2019-12-15 18:29:27 -05:00
Mike Danese
4524edecce
cleanup req.Context() and ResponseWrapper
...
Kubernetes-commit: 968adfa99362f733ef82f4aabb34a59dbbd6e56a
2020-01-27 18:52:27 -08:00
Mike Danese
5252eb1dd9
refactor
...
Kubernetes-commit: d55d6175f8e2cfdab0b79aac72046a652c2eb515
2020-01-27 18:19:44 -08:00
Maciej Szulik
c6c7c0dfb8
Remove kubectl run generators
...
Kubernetes-commit: 82f97775b7c2317a8ca45e616a09e447da987ab2
2020-01-09 17:09:51 +01:00
Maciej Szulik
72f1da0b87
Fix kubectl taint's Complete parsing
...
Kubernetes-commit: 6972d6f33af6b04a9f436fc0858b27d3b9249ea2
2020-01-21 14:36:16 +01:00
Philipp Stehle
78fe2274ad
Fix describe of statefulset prints pointer not value
...
Kubernetes-commit: 772dbbc7d78c909fa68fc5218886a2b517c94ca2
2019-12-03 14:33:31 +01:00
Julian V. Modesto
a3f7877cd1
Support DryRun in cli-runtime REST Helper.
...
- Move TestSupportsDryRun to cli-runtime
- Move TestDryRunVerifier to cli-runtime
- Add OpenAPI schema for testdata to cli-runtime
- Use Helper.DryRun and DryRunVerifier for Apply
- Add WithOptions methods to Helper
Kubernetes-commit: 6bea0e469bcfe4967cbf2656a998d60e0b684747
2019-12-18 22:00:34 -05:00
wojtekt
060be6d24d
Immutable field and validation
...
Kubernetes-commit: e612ebfdff22e4bd27ad8345f7c82f074bfedf26
2019-11-26 13:29:26 +01:00
Antoine Pelisse
104e4d1e7a
Improve error message when diff binary is not in PATH
...
Kubernetes-commit: c1a4cd9c75b4ed476ec3ed1b27a785dd1685a6e3
2020-01-17 16:17:41 -08:00
martinkaburu
50f26dd951
fix apply --prune to check cli specified namespace
...
Kubernetes-commit: f2518347f3dbe36586367c94aa98d5096f74a742
2019-11-25 23:21:43 +03:00
Name Surname
b21179860f
Fix kubectl top sort-by cpu and sort-by memory options
...
Kubernetes-commit: 824af9e3072d9d68071fec291ac3f5f89362e4ab
2019-09-04 16:28:21 +02:00
yuzhiquan
baaee7d515
cleanup(kubectl taint): fix Errorf and comment error, and remove unnecessary bool flag
...
Kubernetes-commit: 87e8137c18ab27308617e83a18fde5de3edc64d7
2019-12-17 19:41:18 +08:00
Maciej Szulik
51c0d83068
Allow embedding logs command
...
Kubernetes-commit: 925be295fb09655ae668842e42aab2ea919c5ef2
2020-01-13 14:54:54 +01:00
Christian Huffman
f9e7f47c2e
Included CSINode describer
...
Kubernetes-commit: 1b63219c5eccdbef1d19c1c4dab40f2b46672dbd
2019-11-14 08:27:42 -05:00
whalecold
18810c4eb5
Fix(kubectl): the field of history controllerrevision will be covered by daemonset
...
Kubernetes-commit: 5b2cc9c2fd69d766e05c2cf476e9a9a344005155
2019-12-12 23:14:47 +08:00
zhouya0
cbbf8d8bf6
fix kubectl annotate local error
...
Kubernetes-commit: 568edf72ec1fc10368a19be8184b201265e6c39e
2020-01-08 17:10:08 +08:00
zhouya0
65d1aa5d00
fix apply set last applied namespace
...
Kubernetes-commit: 4291a03e39559d10eab0253f9cd431d6a375e235
2019-12-20 16:09:49 +08:00
Michael Gugino
a17d91f9f5
kubectl: remove unreachable code
...
This code cannot be reached and causes some external linters
to fail.
Kubernetes-commit: 46fd8fce45cfbbe5681a44872602da6daea80cf6
2019-10-23 11:20:40 -04:00
Sally O'Malley
8eb193a6c1
silence usage when pass bad cmd options
...
Kubernetes-commit: 35dea07ad6d17ce6b7185621753cce468c8cbc97
2019-12-28 10:43:33 -05:00
danielqsj
4b914450ab
unify alias of api errors under pkg and staging
...
Kubernetes-commit: 5bc0e26c1902e7e28abfc828de19a2dbb3e492c2
2019-11-12 16:26:59 +08:00
hbceylan
f0cc26a729
fix kubectl run help image name
...
Kubernetes-commit: 5b4a7744fad614732de87e032f5d4dba743fddf9
2019-12-23 21:49:37 +00:00
Sean Sullivan
2598a9eb6d
Adds PreProcessor and PostProcessor functions for modifying apply behavior
...
Kubernetes-commit: 79bc63fb4b79caea4b141d318b11a0892ca14c95
2019-12-17 14:58:54 -08:00
Sean Sullivan
641631dfad
Moves visitedUids and visitedNamespaces (used for pruning) into ApplyOptions
...
Kubernetes-commit: 4e45421f610eb881a03c0d82fca038788db12b08
2019-12-17 14:19:00 -08:00
Sean Sullivan
42da131431
Move patch functionality for apply into its own file.
...
Kubernetes-commit: 670369f2a4a7a7d9dad3a1ae1a334317a135f6c7
2019-12-16 16:41:49 -08:00
Sean Sullivan
65d873e277
Moved prune functionality into its own file.
...
Kubernetes-commit: e38e320222a1f44373ab3eaea8713f4772b26f6b
2019-12-16 16:13:39 -08:00
Sean Sullivan
dfcc649b05
Refactored some apply printing functionality; removed unneeded count and objs variables
...
Kubernetes-commit: 07cb2fda5dada5c5145216bcab90e38426cf68e8
2019-12-16 15:21:57 -08:00
Sean Sullivan
dd819b3425
Created GetObjects() method for ApplyOptions and integrated into apply
...
Kubernetes-commit: 02af4c9be20db201f2a2069816e97004a96bf760
2019-12-16 13:56:52 -08:00
Sean Sullivan
395bc6fc90
Changes Visit() to Infos() in apply to keep slice of objects
...
Kubernetes-commit: 2103ea4ddedc59d14322fd0fc34c8a9928256551
2019-12-16 13:00:33 -08:00
Anish Shah
3c43664ced
Refactor `kubectl proxy` command to have similar design pattern as other kubectl commands.
...
Few days ago I watched this kubectl code base tour on Youtube
(https://www.youtube.com/watch?v=uz8TS3V9qqY ). It talks about a design
pattern that almost every command follows. But I found out that
`kubectl proxy` command does not follow this pattern. So, I'm
refactoring this command to use similar design pattern as other kubectl
commands.
Kubernetes-commit: 0bd41a300f12b1dbaec19fc94b868f91640542df
2019-09-21 10:52:42 -07:00
Haosdent Huang
08def252f7
fix static check in kubectl/pkg/cmd/annotate.
...
Kubernetes-commit: 303c1a40bcee81fe14845d2af9dae2073f86ec52
2019-12-08 23:25:50 +08:00
Naoki Oketani
fe07b19cb4
Fix a bug in port-forward: named port not working with service
...
Kubernetes-commit: 73c1ab71e27eee0066ba637575e60093952f3ff1
2019-11-22 02:59:26 +09:00
zhouya0
0833d7cba2
kubectl change podSecurityPolicy group
...
Kubernetes-commit: 7947b6ce6d8a498000d81b68fa674f88b1d7680a
2019-11-18 15:00:33 +08:00
Arjun Naik
fa550e796d
Adds tests
...
Signed-off-by: Arjun Naik <arjun@arjunnaik.in>
Kubernetes-commit: 8ab226263a18fa16afdb6fd14da63544095a8937
2019-12-10 18:09:08 +01:00
Ivan Glushkov
3af9a45dfd
Adds the algorithm implementation for the Configurable HPA
...
Kubernetes-commit: 27ffe439b61aaee196190749f1191d9957c86ca1
2019-10-14 19:33:09 +04:00
Michael Gugino
ebda9f6262
kubectl/drain: add option skip-wait-for-delete-timeout
...
Currently, some circumstances may cause waitForDelete to
never succeed after the pod has been marked for deletion.
In particular, Nodes that are unresponsive and have
pods with local-storage will not be able to
successfully drain.
We should allow drain to ignore pods that have a
DeletionTimestamp older than a user-provided age.
This will allow controllers utilizing kubectl/drain
to optionally account for a pod that cannot be
removed due to a misbehaving node.
Kubernetes-commit: da53044abdf8c8a9771a5c3dfd861f0c4ec78c40
2019-11-23 20:00:06 -05:00
Sally O'Malley
6d309ed99e
When running `kubectl drain` in dry-run, list warnings and pods that would be deleted.
...
Kubernetes-commit: 909300b8be909c48a68900c407de03be95555409
2019-09-12 14:31:09 -04:00
Nan Yu
656f993514
Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus
...
Kubernetes-commit: 1fb0dd4ec5134014e466509163152112626d52c3
2019-12-03 11:22:23 -08:00
Michael Gugino
feccbe3c28
kubectl/drain: add disable-eviction option
...
Currently, if eviction is supported during a drain operation,
eviction is always used.
This commit allows the user to specify disabling eviction.
This is particularly useful when you wish to ignore
PodDisruptionBudgets after a normal drain has failed for
some time.
Kubernetes-commit: 6c1d587d5142b95e6c169a198a086332a7e4d8ad
2019-11-23 11:18:52 -05:00
Christian Huffman
fc490f462d
Included FSType in CSI volumes
...
Kubernetes-commit: bbae978d4a0885a6135afb713e252ec4fa41a277
2019-11-14 11:18:40 -05:00
Michael Gugino
fe592e7f80
kubectl/drain: Add context support
...
This commits allows specifying a context.Context
in the Helper type. This context is utilized to
cancel waitForDelete.
Kubernetes-commit: 8682e902f5487e04b893da7230125db0d7ae66b4
2019-11-23 13:58:59 -05:00
Jordan Liggitt
1d31df4756
fixup kubectl test
...
Kubernetes-commit: deb75da17bb1fa95e5b56fb1207ba247cd9953dd
2019-11-26 13:13:38 -05:00
Jordan Liggitt
74e4737411
Switch TableGenerator/TableConvertor interfaces to metav1
...
Kubernetes-commit: 36eb250cbb441984260ded6f7abeb796974031c3
2019-11-26 13:13:25 -05:00
Sally O'Malley
de3d4fcc02
don't error if set-resources patch is empty
...
Kubernetes-commit: ecd1c0747272ab908daa64b0f4b2b18a8cb18362
2019-11-20 19:22:18 -05:00
zhouya0
6d82c82d12
add test coverage with kubectl get components
...
Kubernetes-commit: 07806d4300c5f410194c0dcd2da86c40bef42e1b
2019-11-25 17:57:56 +08:00
Wojciech Tyczynski
24d21a0ee4
Fix kubectl conversions
...
Kubernetes-commit: bfa4188123ed334d4f5dda3a79994cadf663d8f2
2019-11-17 18:35:55 +01:00
Jordan Liggitt
25e7825a5b
Fix --resource-version handling in kubectl
...
Kubernetes-commit: 0ac8345d3a4c5ee38fd3fc2c40976ba876d815e7
2019-11-14 09:24:42 -05:00
Maciej Szulik
dfa60c7722
Drop job from scale description
...
Kubernetes-commit: c3964927f758be88a65f833595a0b0d5456ce729
2019-10-23 12:25:42 +02:00
Rob Scott
56eaaf1668
Promoting EndpointSlices to beta
...
Kubernetes-commit: a7e589a8c689d1a6c0c21d47c5e6c97267822875
2019-10-25 14:59:10 -07:00
Rob Scott
4118a67aeb
Splitting IP address type into IPv4 and IPv6 for EndpointSlices
...
Kubernetes-commit: 0fa9981e0106d7f0d6f9c88fc49d4cdf779c95c1
2019-11-06 22:46:04 -08:00
Jack Kleeman
1f00e044fd
Fix incorrect message on describe netpol
...
When I describe network policies, it often tells me that pods are
isolated for egress connectivity because the policy that applies to them
has no egress rules. However, this would only lead to isolation if there
is an explicitly set egress policy type. Otherwise, the policy allows
egress traffic. The same applies if you have explicitly set an egress
type only, describe will incorrectly report isolated ingress traffic.
This PR fixes this by inferring the applicable direction for the policy
based on the PolicyTypes, and then if a policy doesn't apply eg to
egress, we print 'Not affecting egress traffic'
Kubernetes-commit: 7753bfa3a418d95795420d03193732e024456466
2019-10-22 17:43:03 +01:00
wojtekt
7f6186e3c1
Eliminate couple unnecessary conversions
...
Kubernetes-commit: 067d173266303c5c9a4281e962d3662c34a78053
2019-11-12 14:19:14 +01:00
louisgong
ae926dc56e
fix kubectl diff panic
...
Kubernetes-commit: 4f13f2739a3a33c7ed4b86b98054972c0fde4579
2019-11-09 20:34:51 +08:00
Clayton Coleman
4ca8f5ecfe
test: kubectl unit tests should be using codecs without conversion
...
Tests are also refactored to use the simpler RESTClient code path.
Kubernetes-commit: 8a9b8c87c40ee65751828d9dd02f4f642588f0ce
2019-11-03 15:20:10 -05:00
Ted Yu
eb7c1bf189
Only put un-filtered pod in podDeleteList
...
Kubernetes-commit: 65c2f61806468d25795516d6077ce0c31c83adcd
2019-10-30 09:55:34 -07:00
Maciej Szulik
89d9f2ef29
Set TypeSetter in get print flags, like we do everywhere else
...
Kubernetes-commit: 626b9081fbee1eeae3f96a99f40da6c665d5753f
2019-10-31 18:25:46 +01:00
ritho
b0cd1c2290
Do some Kubectl optimizations suggested by the golangci linter
...
The tool golangci-lint gives a bunch of warnings. This PR solves the easier/less controversial ones, so the code is simpler and a little bit more optimal, since it removes some if conditions.
Kubernetes-commit: cd2adbe760641f844d84d411f9adcf17fb6982ff
2019-06-04 01:25:43 -05:00
clarklee92
87db492820
Modify the status code number to HTTP status semantics
...
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
Kubernetes-commit: f86f5ee14ef3c8adf9855ce16dcc57beca949719
2019-11-06 00:45:35 +08:00
Mike Danese
fc0d402286
support URI SANs in local signer
...
Kubernetes-commit: 6a004d0c18818f79d7c294091f071706aac2d912
2019-11-04 08:08:59 -08:00
Sean Sullivan
3ec9685c39
Rename test/data directory to testdata
...
Kubernetes-commit: 4ce97d6c48ae4735463f020430dd20539a03e8c5
2019-10-31 13:40:02 -07:00
Sean Sullivan
7965551001
Moves kubectl get subcommand to staging
...
Kubernetes-commit: 2a3f28863baa804a05d35c3958a107f9210b4c9e
2019-10-29 15:51:00 -07:00
Pablo Mercado
6b77b0790a
Kubectl certificate signing: fix certificate deny message ( #84400 )
...
* add certificate deny flag message
* bring back NewCertificateOptions with operation parameter
Kubernetes-commit: e528c2f2925d61fa7a12313a895af5a312d36dd6
2019-10-27 03:24:33 +00:00
Ted Yu
587c053a55
Add note on the applicability of --grace-period
...
Kubernetes-commit: abc9a9f8369c220ee3a1de2e1917edef3d7d680e
2019-10-24 16:07:02 -07:00
Jan Chaloupka
6fd1ff2fb0
Require exact match when calling Get method within fake clientset
...
`Get` method within the fake clientset returns an object that would not be normally returned when using the real clientset. Reproducer:
```go
package main
import (
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
)
func main () {
cm := &v1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{Namespace: metav1.NamespaceSystem, Name: "cm"},
}
client := fake.NewSimpleClientset(cm)
obj, err := client.CoreV1().ConfigMaps("").Get("", metav1.GetOptions{})
if err != nil {
panic(err)
}
fmt.Printf("obj: %#v\n", obj)
}
```
stored under `test.go` of `github.com/kubernetes/kubernetes` (master HEAD) root directory and ran:
```sh
$ go run test.go
obj: &v1.ConfigMap{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"cm", GenerateName:"", Namespace:"kube-system", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Data:map[string]string(nil), BinaryData:map[string][]uint8(nil)}
```
As you can see fake clientset with a "test" configmap is created. When getting the object through the clientset back, I intentionally set the object name to an empty string. I would expect to get an error saying config map "" was not found. However, I get "test" configmap instead.
Reason for that is inside implementation of `filterByNamespaceAndName` private function:
```go
func filterByNamespaceAndName(objs []runtime.Object, ns, name string) ([]runtime.Object, error) {
var res []runtime.Object
for _, obj := range objs {
acc, err := meta.Accessor(obj)
if err != nil {
return nil, err
}
if ns != "" && acc.GetNamespace() != ns {
continue
}
if name != "" && acc.GetName() != name {
continue
}
res = append(res, obj)
}
return res, nil
}
```
When `name` is empty, `name != "" && acc.GetName() != name` condition is false and thus `obj` is consider as a fit.
[1] https://github.com/kubernetes/client-go/blob/master/testing/fixture.go#L481-L493
Kubernetes-commit: d32c76fc03381784516c47cb1bf62ef932189afa
2019-09-17 17:52:28 +02:00
Sean Sullivan
c6a8c8a72e
Removes duplicate TabWriter. Several updates to reference the one remaining TabWriter in cli-runtime.
...
Kubernetes-commit: 958d7d3b6e74b8648fb897ce09f52049eb9823a1
2019-10-17 13:32:40 -07:00
David Eads
3fa753054c
add option to skip verifying kubelet certificates for logs
...
Kubernetes-commit: f0931cbf48cb4f170177d42c1a3c75b9d8792c52
2019-10-23 14:33:37 -04:00
Ivan Shvedunov
6bf46a2bba
Fix crash in kubectl drain
...
When there's a pod that can't be evicted/deleted, and apiserver
connection breaks at a wrong moment, kubectl can panic due
to nil pointer dereference. This PR also improves drain tests
to avoid confusing panics with fatal errors.
Kubernetes-commit: 37226f8e8306475895d7e68eb52c57e57f00ee28
2019-10-11 22:12:26 +03:00
Michael Gugino
ff5adba11b
Add timeout info to kubectl drain logging
...
Kubernetes-commit: 0088a9e6a8c47b2710fc49b82a912861cda8a554
2019-10-21 15:21:26 -04:00
Michael Gugino
e09feee202
kubectl drain: avoid leaking goroutines
...
Recently, kubectl drain has been refactored to be consumeable
as a library. Currently, if a pod cannot be evicted due
to PDBs, we will leak a goroutine.
This commit ensures the goroutine always exists.
Related-bug: https://github.com/kubernetes/kubernetes/issues/81333
Kubernetes-commit: 0e8998a040efe5dd82592911e739fe2e2258cfa3
2019-10-15 15:24:27 -04:00
Niclas Ladd
72381882b1
Add a new --sort-by flag to kubectl api-resources command
...
Kubernetes-commit: cf492e95ebbe5f58c5988ddb69ff58c823c96ac1
2019-10-07 10:17:34 -07:00
wojtekt
e55208d067
Add information from Lease to kubectl describe node
...
Kubernetes-commit: b44f8948a4ec4105ce3e989132199dd6757c65e4
2019-10-14 12:53:38 +02:00
Mikalai Radchuk
a38258b351
Adds --prefix flag to the kubectl log command
...
Kubernetes-commit: 8cadd185d67e84dd186728669d6e72e9e415db70
2019-09-04 16:23:02 +01:00
Ted Yu
91465db998
Improve 'No resource limits' message
...
Kubernetes-commit: 3553de332e9367a9126937c5840da00f8001f2a0
2019-10-10 14:31:17 -07:00
Sally O'Malley
56a4f6edaa
kubectl: remove usage info from bad flag error msg
...
Kubernetes-commit: e36dc3adb4045373eefc002e4afe5298ec715ce9
2019-09-01 10:22:13 -04:00
tanjunchen
588a48c6ab
remove the repeat word in documents
...
Kubernetes-commit: de3cf23414efb2eb4d94e821996cd4c93e6534e4
2019-10-04 15:32:48 +08:00
fang duan
28ba3d4e95
Fix help text in kubectl top -h
...
close https://github.com/kubernetes/kubernetes/issues/82843
[heapster deprecation timeline](https://github.com/kubernetes-retired/heapster/blob/master/docs/deprecation.md )
Kubernetes-commit: 13a37abb8bca75e7cad8952da1145bd980aa05a1
2019-09-27 23:05:02 +08:00
Ted Yu
04c0c6e8db
Prune should respect namespace
...
Kubernetes-commit: 88e2f8e04fa310e848f07d0a2ab801aa0917e408
2019-09-25 16:43:08 -07:00
Ted Yu
b89bb29485
Remove unnecessary traversal of pod.Status.Conditions
...
Kubernetes-commit: 936ae632a0b6e1a83f1729aeff736baebbc4e68c
2019-09-24 10:47:34 -07:00
ZP-AlwaysWin
da06ecc74b
Fix bug The statefulset have duplicate revision after resource was updated
...
Kubernetes-commit: e081d1dca65e738a2541023968251e58b9abf656
2019-09-12 22:26:09 +08:00
wojtekt
52d3bfc415
Minor cleanup of jsonFallbackEncoder
...
Kubernetes-commit: cd24a0e5fa7af1bd921386cf80c90cd535954e6c
2019-09-22 13:50:05 +02:00
Lantao Liu
7c6594395c
Fix kubectl panic when handling invalid error.
...
Kubernetes-commit: 12d944b860e4872085fa1155590c7fcef58e6bb8
2019-09-19 21:48:50 -07:00
ZP-AlwaysWin
b3895b0e0e
fix kubectl run --generator=xxx bug
...
Kubernetes-commit: 860845b58216fa7fa058bacd06b4be5caefa6251
2019-09-15 14:27:33 +08:00
ZP-AlwaysWin
a376c2df78
replace 200 with http.StatusOK
...
Kubernetes-commit: cfa77048f9b7fa96bad4eebb059cf60acc9dfd29
2019-09-12 22:35:19 +08:00
Han Kang
010c893f0a
remove pkg/version and some of redundant copies of it
...
Change-Id: Ia58367c1b1274bfb49c8a4784051463abaf795de
Kubernetes-commit: 866ea74326fba45241cbccd3ca4624b68ba7022f
2019-09-10 14:42:55 -07:00
David Symonds
deabbd435b
Fix description of diff flags.
...
Running `diff -u` produces a unified diff. It isn't related to Unicode.
Also, `diff -N` treats _absent_ files as empty, not new files.
Kubernetes-commit: 0af2dedd96e973f4ed59af0cc325a70ca0b9100a
2019-05-22 13:34:30 +10:00
haoshuwei
4dd9f90e6e
fix some missing errors return statements
...
Signed-off-by: haoshuwei <haoshuwei24@gmail.com>
Kubernetes-commit: c4fe8f11b200d0a97e8ce447e5af592b5c4870d0
2019-09-09 13:54:14 +08:00
caiweidong
521a90f087
add apigroup to the data source when using kubectl describe pvc
...
Kubernetes-commit: 9157df47e8db6e10edcd398294e6a4c04b3572e9
2019-09-08 15:03:26 +08:00
Sally O'Malley
9555357d5c
fix indentation with 'kubectl describe node'
...
Kubernetes-commit: 4ce16254f7b89324dcbb43de70d0d95cb9ce5865
2019-09-06 16:57:42 -04:00
draveness
a61556981e
feat: remove deprecated include uninitialized flag
...
Kubernetes-commit: f18f86ad9a16335e44b2799a419f51c9b606526b
2019-07-19 10:01:17 +08:00
Eric Ernst
84f773a30b
kubectl: take pod overhead into account
...
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
Kubernetes-commit: 7922d73f98aa8cc41bb27c3a819c0092bf753bc9
2019-08-25 23:55:56 -07:00
Rob Scott
743417d981
Adding kubectl support for EndpointSlice
...
Kubernetes-commit: ab1943e00bff372c362ba1a04353cb000c07d0ea
2019-08-20 14:44:08 -07:00
Maciej Szulik
b567e802b1
Move kubectl cp back to k/k
...
Kubernetes-commit: ab1c56ae87780a390bd31d50558e4e44bca551dc
2019-08-28 19:01:25 +02:00
Matthias Bertschy
dfd6b3033e
startupProbe: API changes
...
Kubernetes-commit: e4d26f845e1e11ec75ce3a395ff0fc691347f3cf
2019-08-07 10:21:48 +02:00
Antoine Pelisse
4574b365f9
Rename --experimental-* flags to --* for server-side apply
...
Kubernetes-commit: a3f4e6e933d3292b3921cdc7b60d7ae019ca1580
2019-08-26 09:09:40 -07:00
Maciej Szulik
e82cbf6bec
Remove kubectl log
...
Kubernetes-commit: 6939e77277808672864b6ae43916e44bbcbe4752
2019-05-20 11:36:43 +02:00
Lee Verberne
c5bce989ce
Update kubectl polymorphic logs helper for ephemeral containers
...
This also updates the test to check there were actual actions that
weren't expected.
Kubernetes-commit: 66d077882854bc407f27a4ecd47deb157fe7a47d
2019-08-27 09:35:16 +00:00
Khaled Henidak(Kal)
2ba69fae1d
phase 2: api types + defaulting + validation + disabled fields handling
...
Kubernetes-commit: 5e8ccda71cc676e070cd0f5d7b6990b8ebc24c1f
2019-08-23 17:25:59 +00:00
Antoine Pelisse
440d570248
Improve error message on server-side apply conflicts
...
Kubernetes-commit: a890331115340280bb1878c8baa46670cd6f0814
2019-08-26 10:37:42 -07:00
Lee Verberne
6246fac472
Print ephemeral containers in kubectl describe
...
Kubernetes-commit: a25ad6d36f4a2e72cd35df2ca27c323a3e99b77e
2019-08-01 05:31:56 +00:00
Lee Verberne
8408ed1e0b
Allow kubectl to attach to an ephemeral container
...
Kubernetes-commit: 5bd8a045d651005cd8cb1d34d835fdb487651325
2018-04-13 16:55:15 +02:00
knight42
16cef1b254
test(scale): fix tests
...
Kubernetes-commit: 92c4c2ec72d949c15b5d7c45d91f8e9385873d2f
2019-08-22 17:51:10 +08:00
knight42
8f0927a4b0
fix: patch the Scale subresource if no precondition was given
...
Kubernetes-commit: c02d141b134d4dee17f7b1e87a65d13ae93d80a3
2019-08-13 10:50:25 +08:00
Tim Allclair
f6a4bcd4ac
Delete duplicate resource.Quantity.Copy()
...
Kubernetes-commit: 49f50484b898f55c1db1e25b2a9c2bb76fb45a5d
2019-08-19 17:23:14 -07:00
Justin SB
75fdf29ade
Add tests for newly exposed drain code
...
Kubernetes-commit: 4bba4449ae41a7889ad29da4bd1704ae8d19d126
2019-08-19 16:22:04 -04:00
Justin SB
3989dccd8b
Make drain library more reusable
...
Move more functionality from the kubectl cmd to a package with
fewer dependencies.
Kubernetes-commit: c74f2f6a72bf6fe2718d1e386e4e08747f34fe7b
2019-07-11 13:28:25 -04:00
zouyee
90d15aea78
convert EndpointNamespace showing string rather than pointer
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
Kubernetes-commit: 96928b9f8b6df751815fe49007cfc73272cc1cdb
2019-08-18 11:37:26 +08:00
j-griffith
5a1a4bbf82
Add DataSource to PVC describe
...
Kubernetes-commit: 5cc2ea777efaa72dce83ea8c79f73846d1924bfa
2019-04-11 14:14:00 -06:00
AllenZMC
7f06f2436c
fix typos in create_namespace.go
...
Kubernetes-commit: e9da014de9f5a1a717c885d2b5108d0a39acacc1
2019-08-06 20:45:12 +08:00
Sean Sullivan
47bc52d240
Unexport kubectl cmd profiling
...
Kubernetes-commit: 2621e6a0d61fccdb50df3ec90a84de4ebc3b5de5
2019-08-02 11:46:13 -07:00
Sean Sullivan
315ba50222
Update .golint_failures to reflect code move to staging
...
Kubernetes-commit: 4e64aaf27e66218571542446498cc47db5df95ff
2019-08-01 15:38:06 -07:00
Sean Sullivan
1cba7858ad
Update test data to reflect code move to staging
...
Kubernetes-commit: 58b59ae4e07f9d3718271a43740a4de9508d8688
2019-08-01 15:17:53 -07:00
Sean Sullivan
1483769081
Update gofmt
...
Kubernetes-commit: e2cae2344486af198f8ab38e4dd97d4f24dfd190
2019-08-01 13:14:06 -07:00
Sean Sullivan
d35a876e3f
Update BUILD files reflecting code move to staging
...
Kubernetes-commit: dc743f7edd1b0104f09ef7dcc1e31c712f850843
2019-08-01 13:12:31 -07:00
Sean Sullivan
5b48717f2d
Update import statements to reflect code move
...
Kubernetes-commit: acece3c2964115a4f29a43e368ad5de59dbbc258
2019-08-01 11:10:05 -07:00