Antoine Pelisse
a0460a5238
dry-run: Create class to find if a type is a CRD
...
Finding out if a Group-version-kind is a CRD is useful, since we want to
detect dry-run ability differently for CRDs.
2018-10-10 08:56:09 -07:00
Antoine Pelisse
ae735282ad
Create a method to check dryRun is supported
...
We don't want to run dryRun requests against servers that don't support
dry-run, since they might ignore the flag and just persist the unwanted
changes.
This creates a new method that checks in the OpenAPI if the dryRun
parameter can be used.
2018-10-10 08:55:33 -07:00
Davanum Srinivas
65da81f42e
Fix up test cases
...
Change-Id: Ib9245f78dbfb88f1f37a26ca64bf80d3f78d7497
2018-10-10 10:24:09 -04:00
Sean Sullivan
54a73630f1
kubectl factory client access: Moves remaining internal references into callers
2018-10-09 13:34:30 -07:00
k8s-ci-robot
830e09cc96
Merge pull request #46517 from goblain/cli-port-forward-listen
...
port-forward listen on address
2018-10-09 12:38:55 -07:00
k8s-ci-robot
137193faaf
Merge pull request #69448 from seans3/env-resolve-fix
...
kubectl env resolve: copy core fieldpath and resource dependencies into kubectl
2018-10-09 11:25:43 -07:00
k8s-ci-robot
637ba154c8
Merge pull request #65189 from juanvallejo/jvallejo/path-fixes-cmd-copy
...
fix paths w shortcuts when copying from pods
2018-10-09 10:14:28 -07:00
juanvallejo
e55a28d169
fix paths w shortcuts when copying from pods
...
Addresses an issue where copying from a remote location containing path
shortcuts (podName:../../../tmp/foo) causes an index out of range panic.
2018-10-09 10:27:54 -04:00
WanLinghao
5958baa163
improve decription of command 'kubectl create clusterrole'
2018-10-09 15:50:30 +08:00
Sean Sullivan
50c5b379b7
kubectl env resolve: copy core fieldpath and resource dependencies into kubectl
2018-10-08 14:50:20 -07:00
k8s-ci-robot
d4c4871852
Merge pull request #69413 from seans3/rollback-fix
...
kubectl rollback: remove legacyscheme dependency
2018-10-08 13:02:19 -07:00
Mikalai Radchuk
a19e84e001
Allows to use named ports in the kubectl portforward
2018-10-08 20:58:22 +01:00
Radek Pieczonka
4643c6e95e
port-forward listen on address
...
adds an address flag to kubectl port-forward to allow to bind to a different ip then localhost
2018-10-07 22:18:18 +02:00
Maciej Szulik
add731dff1
Manual changes to package visibility and test dependencies
2018-10-06 18:44:05 +02:00
Maciej Szulik
1d9617d8e1
Generated changes
2018-10-06 18:44:05 +02:00
Maciej Szulik
55d5df8a36
React to moves
2018-10-06 18:44:05 +02:00
Maciej Szulik
33adf367f9
Move each kubectl command to a separate directory
2018-10-06 18:44:05 +02:00
Christoph Blecker
97b2992dc1
Update gofmt for go1.11
2018-10-05 12:59:38 -07:00
k8s-ci-robot
fecb5edf8a
Merge pull request #66266 from wking/kubectl-drain-drop-backOff
...
kubectl: Drop backOff from DrainOptions
2018-10-04 19:34:34 -07:00
k8s-ci-robot
5800937698
Merge pull request #69398 from seans3/run-test-fix
...
kubectl run test: remove legacyscheme dependency and cleanups
2018-10-04 15:59:29 -07:00
k8s-ci-robot
34e2688835
Merge pull request #69404 from seans3/fake-test-fix
...
kubectl fake test factory: replace legacyscheme with kubectl scheme
2018-10-04 13:40:20 -07:00
k8s-ci-robot
f7df7f8a25
Merge pull request #69335 from seans3/set-tests-fix
...
kubectl set tests: remove testapi core dependency
2018-10-04 13:40:10 -07:00
Sean Sullivan
95ec1f79b9
kubectl rollback: remove legacyscheme dependency
2018-10-04 13:13:32 -07:00
k8s-ci-robot
686f29fbc4
Merge pull request #66301 from wking/kubectl-drain-drop-typer
...
kubectl: Drop typer from DrainOptions
2018-10-04 12:28:57 -07:00
k8s-ci-robot
5589c5b3cb
Merge pull request #69401 from seans3/helpers-test-fix
...
kubectl helpers test: remove core dependencies
2018-10-04 10:09:55 -07:00
k8s-ci-robot
7136a3e4b2
Merge pull request #67880 from chenyb4/kubectl_openapi
...
Add kubectl openapi doc import comment
2018-10-04 01:05:15 -07:00
k8s-ci-robot
2d1ef05ad1
Merge pull request #69295 from deads2k/kbuectl-13-wait-false
...
allow condition value to specified for kubectl wait
2018-10-03 21:32:12 -07:00
Sean Sullivan
fa727c809e
kubectl fake test factory: replace legacyscheme with kubectl scheme
2018-10-03 15:38:28 -07:00
k8s-ci-robot
6cef8d7ce0
Merge pull request #69339 from seans3/apply-test-fix
...
kubectl apply test: remove core testapi dependency
2018-10-03 15:21:50 -07:00
Sean Sullivan
b4d513b1f9
kubectl helpers test: remove core dependencies
2018-10-03 14:15:52 -07:00
Sean Sullivan
443dafd494
kubectl run test: remove legacyscheme dependency and cleanups
2018-10-03 13:35:45 -07:00
k8s-ci-robot
af92d13de2
Merge pull request #69361 from seans3/get-test-fix
...
kubectl get test: remove testapi dependencies and cleanups
2018-10-03 10:38:25 -07:00
k8s-ci-robot
3c20dc71b0
Merge pull request #69345 from seans3/validation-test-fix
...
kubectl validation test: remove unused testapi dependency
2018-10-03 10:38:06 -07:00
Sean Sullivan
d7f44e0eea
kubectl apply test: remove core testapi dependency
2018-10-03 10:27:28 -07:00
Sean Sullivan
69c0fb74df
kubectl set tests: remove testapi core dependency
2018-10-02 22:40:43 -07:00
Sean Sullivan
b49a7a3193
kubectl get test: remove testapi dependencies and cleanups
2018-10-02 22:20:26 -07:00
Sean Sullivan
9e2b995b54
kubectl validation test: remove unused testapi dependency
2018-10-02 13:09:29 -07:00
Sean Sullivan
fcdc129257
kubectl drain/cmd test: remove testapi dependency
2018-10-02 13:04:29 -07:00
David Eads
122529b97d
allow condition value to specified for kubectl wait
2018-10-01 13:43:10 -04:00
k8s-ci-robot
23e3ab83b6
Merge pull request #69174 from seans3/config-view-fix
...
kubectl small fix for config view to replace legacyscheme with kubect…
2018-09-28 14:33:38 -07:00
k8s-ci-robot
821d9fea48
Merge pull request #69182 from seans3/apply-test-fix
...
kubectl replaced reference to internal version of Deployment with ext…
2018-09-28 11:18:43 -07:00
k8s-ci-robot
7c024284ef
Merge pull request #69172 from seans3/test-small-fix
...
kubectl replace legacyscheme with kubectl scheme in two tests
2018-09-28 04:20:48 -07:00
k8s-ci-robot
8fd28eface
Merge pull request #69167 from apelisse/kubectl-diff
...
Move `diff` command from alpha sub-command to root cmd
2018-09-27 20:52:11 -07:00
k8s-ci-robot
a59474f756
Merge pull request #69132 from seans3/rollout-pause-resume-fix
...
kubectl remove internal version of resource for rollout pause/resume
2018-09-27 20:52:02 -07:00
Sean Sullivan
75210763bd
kubectl replaced reference to internal version of Deployment with external version
2018-09-27 16:00:16 -07:00
k8s-ci-robot
e5964b3fcc
Merge pull request #69162 from apelisse/kubectl-dry-run-diff
...
Use dry-run patch to get the merged version of the object
2018-09-27 14:41:53 -07:00
Sean Sullivan
a20ba98b87
kubectl replace legacyscheme with kubectl scheme in two tests
2018-09-27 13:58:31 -07:00
Sean Sullivan
6e990b715b
kubectl small fix for config view to replace legacyscheme with kubectl scheme
2018-09-27 13:20:10 -07:00
Antoine Pelisse
e1eadc5031
Move diff
command to root rather than alpha
...
New command is now `kubectl diff` rather than `kubectl alpha diff` since
it's moving out of alpha soon, and will be using dry-run apply to
produce the diff rather than the custom merge logic.
2018-09-27 13:11:43 -07:00
Antoine Pelisse
2d3f7795c8
Use dry-run patch to get the merged version of the object
2018-09-27 13:06:12 -07:00
k8s-ci-robot
34860dafe2
Merge pull request #69150 from soltysh/issue69144
...
Fix panic in kubectl rollout commands
2018-09-27 11:07:56 -07:00
Sean Sullivan
71e60225a0
kubectl remove internal version of resource for rollout pause/resume
2018-09-27 10:26:35 -07:00
k8s-ci-robot
96965705a1
Merge pull request #69121 from seans3/editoptions-small-fix
...
Replaces dependency on internal version of resource with external ver…
2018-09-27 09:51:38 -07:00
k8s-ci-robot
63930183e0
Merge pull request #69119 from seans3/diff-small-fix
...
Replace internal reference of last-applied-config with external refer…
2018-09-27 09:51:29 -07:00
k8s-ci-robot
53fe9e2a30
Merge pull request #69118 from seans3/apply-small-fix
...
Replace internal dependency on last-applied-configuration with extern…
2018-09-27 09:51:20 -07:00
k8s-ci-robot
2588ad5f36
Merge pull request #69089 from soltysh/kubectl_issue539
...
Deduplicate list of directories
2018-09-27 09:51:06 -07:00
Maciej Szulik
96d01da215
Fix panic in kubectl rollout commands
2018-09-27 15:10:52 +02:00
Maciej Szulik
8555b53191
Deduplicate list of directories
2018-09-27 13:32:41 +02:00
Pingan2017
8593c02665
fix panic: kubectl rollout undo
2018-09-27 19:16:38 +08:00
k8s-ci-robot
f008365bbe
Merge pull request #68806 from seans3/legacy-scheme-update
...
Move legacyscheme (internal version) to kubectl scheme (external vers…
2018-09-26 19:22:14 -07:00
k8s-ci-robot
b637ae6515
Merge pull request #68851 from seans3/rollout-cleanup
...
Remove unused client in rollout status
2018-09-26 18:11:24 -07:00
k8s-ci-robot
71186a69a6
Merge pull request #67890 from WanLinghao/top_no_headers
...
add flag `--no-headers` to `kubectl top ...`
2018-09-26 15:53:19 -07:00
Sean Sullivan
fe8a261cd6
Replaces dependency on internal version of resource with external version
2018-09-26 14:56:32 -07:00
k8s-ci-robot
ea09a3b40c
Merge pull request #68525 from apelisse/kubectl-diff-simplify-interface
...
kubectl-diff: Simplify interface
2018-09-26 14:42:35 -07:00
Sean Sullivan
7863e7c4ba
Replace internal reference of last-applied-config with external reference for diff
2018-09-26 14:33:33 -07:00
Sean Sullivan
947034e7f7
Replace internal dependency on last-applied-configuration with external dependency
2018-09-26 14:19:14 -07:00
Sean Sullivan
eadb6b18ac
More cleanup
2018-09-26 13:12:35 -07:00
Sean Sullivan
d73583552c
Remove unused client in rollout status
2018-09-26 13:12:35 -07:00
k8s-ci-robot
1886e09041
Merge pull request #67929 from charrywanganthony/label_dryrun
...
fix the output of dryrun when label the same value as original
2018-09-26 06:08:44 -07:00
k8s-ci-robot
f815e3925a
Merge pull request #68698 from seans3/replace-fix
...
Replace internal version Encoder with external version Encoder
2018-09-25 22:57:44 -07:00
k8s-ci-robot
98748d1a1b
Merge pull request #68697 from seans3/editoptions-fix
...
Replace internal version Encoder with external version Encoder
2018-09-25 22:57:35 -07:00
k8s-ci-robot
3a933224f9
Merge pull request #68696 from seans3/autoscale-fix
...
Replace internal version resources with external version resources
2018-09-25 22:57:25 -07:00
k8s-ci-robot
b042219432
Merge pull request #68695 from seans3/expose-fix
...
Replace internal version Encoder with external version Encoder
2018-09-25 21:46:36 -07:00
k8s-ci-robot
b442c25325
Merge pull request #68694 from seans3/create-fix
...
Replace internal version Encoder with external version Encoder
2018-09-25 19:24:18 -07:00
k8s-ci-robot
cc04abca19
Merge pull request #68681 from dlespiau/instrument-kubectl
...
Add go profile instrumentation to kubectl
2018-09-25 19:24:08 -07:00
k8s-ci-robot
1f08d955cd
Merge pull request #68659 from seans3/drain-test-fix
...
Replace internal version of resource in drain test with external version
2018-09-25 18:12:54 -07:00
k8s-ci-robot
807d942f19
Merge pull request #68637 from seans3/legacy-scheme-fix
...
Remove legacyscheme by adding ParameterCodec to kubectl scheme
2018-09-25 18:12:26 -07:00
Chao Wang
013168c668
fix the output of dryrun when label the same value as original
2018-09-25 17:59:26 +08:00
W. Trevor King
ab993e346c
kubectl: Drop backOff from DrainOptions
...
The property was added in b73fae6c
(Fix kubectl drain for statefulset
and use eviciton for drain if possible, 2016-10-20, #35483 ), but
b358b2df
(make drain retry forever and use new timeout,
2016-11-28, #37604 ) removed the last consumer.
2018-09-24 15:06:01 -07:00
Sean Sullivan
446fbd51e3
More specific import aliases
2018-09-24 11:39:33 -07:00
Sean Sullivan
219246eaad
Replace internal version of resource in drain test with external version
2018-09-24 11:35:21 -07:00
k8s-ci-robot
170dcc2ea0
Merge pull request #68754 from bradhoekstra/optional-service-env-variables
...
kubelet: Make service environment variables optional
2018-09-24 10:59:32 -07:00
Brad Hoekstra
a596030cb3
Update bazel
2018-09-22 00:10:08 -04:00
Brad Hoekstra
42da186b62
Address review comments
2018-09-21 20:06:32 -04:00
Sean Sullivan
8d67edfc41
Replace internal version Encoder with external version Encoder for autoscale.
2018-09-20 13:51:37 -07:00
Sean Sullivan
4ad673ce41
Replace internal version Encoder with external version encoder for create and create_test.
2018-09-20 13:49:06 -07:00
Sean Sullivan
3ccfb2dc4c
Updated PodExecOptions to external version
2018-09-19 13:25:18 -07:00
Sean Sullivan
0ecc544a79
Change service from internal version to external version
2018-09-18 16:05:23 -07:00
Sean Sullivan
7a2a987ee4
Move legacyscheme (internal version) to kubectl scheme (external version)
2018-09-18 14:24:47 -07:00
Damien Lespiau
5d634e7db6
Add go profile instrumentation to kubectl
...
This commit adds two new global options to kubectl: --profile and
--profile-output, writing out go profiles to disk to debug interesting and
unexpected kubectl behaviour.
As an example, here is how to capture a block file, eg. for how long are we
blocked on I/O and where?
$ kubectl get nodes --profile=mutex -v6
$ go tool pprof -png ./profile.pprof > out.png
$ google-chrome out.png
Fixes : #68679
2018-09-18 18:28:43 +01:00
ravisantoshgudimetla
452615c53f
Fix drain for evicting terminal DS pods and pods with local storage
2018-09-17 23:01:48 -04:00
Brad Hoekstra
ac8799a80d
kubelet: Make service environment variables optional
2018-09-17 16:27:36 -04:00
Sean Sullivan
3fa346e744
Replace internal version Encoder with external version Encoder
2018-09-14 15:34:16 -07:00
Sean Sullivan
731b985184
Replace internal version Encoder with external version Encoder
2018-09-14 15:24:18 -07:00
Sean Sullivan
84ef7a3649
Replace internal version Encoder with external version Encoder
2018-09-14 14:55:00 -07:00
Sean Sullivan
ce65602410
Remove legacyscheme by adding ParameterCodec to kubectl scheme
2018-09-13 14:37:30 -07:00
Sean Sullivan
9bacee8878
Small fix to remove dependency on internal version of resource
2018-09-13 14:16:07 -07:00
Antoine Pelisse
0db6249740
kubectl-diff: Simplify interface
...
The current interface is kind of clunky and not super easy to use, since
you have to specify parameters to specify which versions to diff. Also
the default isn't the most useful setting.
Change the interface by removing all the parameters and force only one
useful use-case, that is: diffing what's currently live against
what would be live if applied.
2018-09-11 15:53:29 -07:00
Kubernetes Submit Queue
92ad24cc4d
Merge pull request #68132 from soltysh/deprecate_run
...
Automatic merge from submit-queue (batch tested with PRs 63011, 68089, 67944, 68132). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md .
Start deprecating all generators in run except for run-pod/v1
**What this PR does / why we need it**:
This was discussed during SIG-CLI meetings over several past months. The direction is that we want to move away from `kubectl run` because it's over bloated and complicated for both users and developers. We want to mimic `docker run` with `kubectl run` so that it *only* creates a pod, and if you're interested in other resources `kubectl create` is the intended replacement.
This PR starts with deprecating all of the generator except for the pod one.
/assign @juanvallejo
/sig cli
/milestone v1.12
**Release note**:
```release-note
Deprecate kubectl run generators, except for run-pod/v1
```
2018-09-04 10:24:47 -07:00
Maciej Szulik
2c4917db86
Start deprecating all generators in run except for run-pod/v1
2018-09-04 11:24:20 +02:00