Commit Graph

355 Commits (61ec392b545c494fed3f4280c186964294e263f7)

Author SHA1 Message Date
k8s-merge-robot 17325ef6ef Merge pull request #20501 from piosz/hpa-ga
Auto commit by PR queue bot
2016-02-18 06:52:39 -08:00
laushinka 7ef585be22 Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
Clayton Coleman 778fb1798b Don't print reason or message if they are empty on pods
For running pods they are typically empty and convey no value. Don't
print images twice.
2016-02-16 23:26:59 -05:00
k8s-merge-robot dada47eb2f Merge pull request #21179 from smarterclayton/cant_replace_cluster_resource
Auto commit by PR queue bot
2016-02-16 04:45:43 -08:00
k8s-merge-robot 47acbd62ec Merge pull request #21099 from deads2k/extend-patch
Auto commit by PR queue bot
2016-02-15 14:49:02 -08:00
Piotr Szczesniak d9705940d6 Fixed and added tests 2016-02-15 21:39:00 +01:00
k8s-merge-robot 53d9f9ecab Merge pull request #20814 from deads2k/restmapper-errors
Auto commit by PR queue bot
2016-02-13 15:53:22 -08:00
k8s-merge-robot 060f8f4db7 Merge pull request #20802 from aveshagarwal/master-allnamespaces-issue
Auto commit by PR queue bot
2016-02-13 15:25:15 -08:00
k8s-merge-robot 19c8d73cac Merge pull request #18077 from soltysh/stop_deployment
Auto commit by PR queue bot
2016-02-12 22:47:04 -08:00
Clayton Coleman d23c531869 Can't replace a generic resource that is cluster scoped
It should be allowed to invoke kubectl replace with a JSON file that has
no resource version set.  Namespaced resources were working correctly,
but cluster resources were silently failing to lookup the current state
of the object to get the resource version because we weren't using
NamespaceIfScoped(). Added a failing test.
2016-02-12 16:20:37 -05:00
Janet Kuo 2874f30c05 Enable Deployments by default 2016-02-12 12:29:14 -08:00
deads2k 9f003f7db3 allow patch to handle multiple types 2016-02-12 11:12:09 -05:00
Maciej Szulik b929424135 Scale deployments fall-back to regular deployment update 2016-02-12 10:17:35 +01:00
Avesh Agarwal c0e1623be2 Fix kubectl get error when both all-namespaces and namespace are provided.
As per kubectl get help, --namespace should be ignored with all-namespaces,
but kubectl get pods --all-namespaces --namespace=<name-space> gives
following error:

"the namespace from the provided object "default" does not match the
namespace "". You must pass '--namespace=default' to perform this
operation."

This commit fixes this error issue.
2016-02-11 17:06:04 -05:00
derekwaynecarr 06f26189f0 Update kubectl create subcommand to use printer flags 2016-02-11 15:37:47 -05:00
Maciej Szulik 0ea31b56ed Adding reaper for deployments 2016-02-11 19:02:32 +01:00
deads2k deb4d3ccca type RESTMapper errors to better handle MultiRESTMapper errors 2016-02-11 11:45:05 -05:00
k8s-merge-robot 09314f97f6 Merge pull request #20944 from janetkuo/move-deployment-example
Auto commit by PR queue bot
2016-02-11 02:37:31 -08:00
Madhusudan.C.S 293793cf0d Allow replica set to be exposed as a service and add kubectl command tests for replica sets. 2016-02-10 16:20:08 -08:00
Janet Kuo ddd983286b Move deployment example to docs/user-guide 2016-02-10 10:46:12 -08:00
Madhusudan.C.S e7a9f30936 Address review comments. 2016-02-09 15:50:01 -08:00
Madhusudan.C.S ed7ad6dcf3 Make deployments work. 2016-02-08 21:27:49 -08:00
k8s-merge-robot b45a94bc78 Merge pull request #20765 from janetkuo/remove-podtemplate-key
Auto commit by PR queue bot
2016-02-06 00:44:47 -08:00
k8s-merge-robot 939927fe90 Merge pull request #20277 from deads2k/pin-generator
Auto commit by PR queue bot
2016-02-05 23:41:30 -08:00
Janet Kuo bb0c5fea0e Fix test failure 2016-02-05 17:26:07 -08:00
k8s-merge-robot 5066e507ae Merge pull request #20194 from derekwaynecarr/fix_hack_test_cmd
Auto commit by PR queue bot
2016-02-05 14:39:00 -08:00
Daniel Smith b278c6acd9 Merge pull request #20565 from kubernetes/revert-20000-disable-flaky
Revert "Disable flaky test."
2016-02-05 14:01:07 -08:00
Daniel Smith 24b8125bb1 Revert "Disable flaky test." 2016-02-03 10:15:38 -08:00
Janet Kuo 442c75045a Add kubectl rollout undo 2016-02-02 14:20:01 -08:00
k8s-merge-robot 8bab0022ad Merge pull request #20000 from erictune/disable-flaky
Auto commit by PR queue bot
2016-02-02 11:29:34 -08:00
Alex Robinson 1903c4eb51 Merge pull request #19605 from aveshagarwal/master-sort-by-panic
Fix panic when sort-by is used with kubectl get.
2016-01-30 10:48:56 -08:00
k8s-merge-robot 7912682595 Merge pull request #20226 from smarterclayton/fix_extract_list
Auto commit by PR queue bot
2016-01-29 17:15:30 -08:00
Daniel Smith 22b43d8f82 Determinisitically get kubectl proxy port 2016-01-28 16:07:08 -08:00
deads2k ec2008d948 pin the run command to produce a job 2016-01-28 12:55:36 -05:00
Clayton Coleman 71a13f7f4b ExtractList should handle v1.RawExtension correctly
Also fixes CustomColumnPrinter to pass decoder in, and ensures a test
case tests the combined path.
2016-01-27 15:30:21 -05:00
k8s-merge-robot 603931f237 Merge pull request #20038 from caesarxuchao/remove-cmd-unused
Auto commit by PR queue bot
2016-01-26 22:18:25 -08:00
derekwaynecarr c906e9c90a hack/test-cmd.sh did not run any admission control 2016-01-26 21:28:05 -05:00
Avesh Agarwal bec2d678b9 Fix panic when sort-by is used with kubectl get. 2016-01-26 13:58:24 -05:00
Chao Xu bc2a9736dc remove duplicated tests 2016-01-22 15:40:42 -08:00
Eric Tune 7944fa01ec Disable flaky test. 2016-01-22 09:55:39 -08:00
Michail Kargakis 08d8843a9c kubectl: Support exposing deployments 2016-01-15 17:02:24 +01:00
Paul Morie 9c18067e60 Add kubectl support for ConfigMap 2016-01-06 09:03:39 -05:00
gmarek 79b6f13be0 Increase timeout for waiting for kubectl proxy in test-cmd 2016-01-05 11:22:15 +01:00
k8s-merge-robot cf7fd487d7 Merge pull request #18883 from feihujiang/fixCommentsInTestCmdScript
Auto commit by PR queue bot
2016-01-04 21:02:59 -08:00
feihujiang a8639280c7 Fix wrong commends in test-cmd.sh 2015-12-29 14:10:21 +08:00
Brendan Burns 4123a61df7 Add the client side bits of kubectl export 2015-12-22 10:41:59 -08:00
k8s-merge-robot b12f6b341f Merge pull request #18599 from smarterclayton/abstract_explain
Auto commit by PR queue bot
2015-12-19 04:34:32 -08:00
k8s-merge-robot 3c3a24e1d4 Merge pull request #18694 from thockin/airplane_validation_pt7
Auto commit by PR queue bot
2015-12-19 03:57:53 -08:00
k8s-merge-robot 9e8233fc3c Merge pull request #17398 from janetkuo/deployment-controller-informer
Auto commit by PR queue bot
2015-12-18 19:13:32 -08:00
Eric Tune f15b2e32a7 Merge pull request #16422 from hurf/created_by
Display controllers along with type when describing a pod
2015-12-18 13:44:07 -08:00
Tim Hockin 43ed74748e Clean up and document validation strings
Also add a detail string for Required and Forbidden.  Fix tests.
2015-12-18 09:40:50 -08:00
Clayton Coleman 151b4e5958 Tweak explain messages and abstract client 2015-12-18 00:27:22 -05:00
Janet Kuo 32d153093e Fix deployment tests failures; change ResyncPeriod 2015-12-17 19:29:54 -08:00
derekwaynecarr 5e0948586c Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
k8s-merge-robot 8d19fabe08 Merge pull request #18001 from ixdy/test-cmd-version
Auto commit by PR queue bot
2015-12-02 08:17:00 -08:00
Michail Kargakis f8c85e5e85 Fix test-cmd flake 2015-12-01 11:39:46 +01:00
Jeff Grafton a7ee6d394b Print out kubectl version in test-cmd 2015-11-30 15:15:23 -08:00
k8s-merge-robot 140df5f809 Merge pull request #17220 from kargakis/kubectl-scale-deployments
Auto commit by PR queue bot
2015-11-30 04:19:58 -08:00
k8s-merge-robot 3136acad8b Merge pull request #14623 from linzichang/fixup-cassandra
Auto commit by PR queue bot
2015-11-25 04:57:14 -08:00
Michail Kargakis 99fc35880b kubectl: Support scaling deployments
This commit adds support for using kubectl scale to scale deployments. Makes use of the
deployments/scale endpoint instead of updating deployment.spec.replicas directly.
2015-11-25 11:26:40 +01:00
Janet Kuo c0c02c95c4 kubectl run to produce deployment and job 2015-11-24 10:21:31 -08:00
k8s-merge-robot 6d2b92a0be Merge pull request #17269 from janetkuo/autoscale-deployments
Auto commit by PR queue bot
2015-11-21 22:23:23 -08:00
Andy Goldstein f9a018d454 Add missing kube_flags to kubectl scale in hack/test-cmd.sh 2015-11-20 15:28:14 -05:00
Janet Kuo 8e99bae7ec Support autoscale deployments 2015-11-13 23:33:55 -08:00
Zichang Lin 51dd067f5f Update cassandra example according to config best practices 2015-11-10 14:19:22 +08:00
Janet Kuo 37f35d9342 Make kubectl apply create resources if not found 2015-11-08 22:47:40 -08:00
Janet Kuo a6a64820d7 Make generation of the apply annotation optional 2015-11-06 15:08:50 -08:00
hurf ce35bb4208 Remove trace of "kubectl stop"
Remove doc and use of "kubectl stop" since it's deprecated.
2015-10-30 14:12:20 +08:00
hurf 29a0fe9032 Display controllers along with type when describing a pod
There're more controllers than replication controller, the patch
displays annotation item with key "kuberntetes.io/created-by" in
the form of "Controllers: type/name".
2015-10-30 11:16:46 +08:00
k8s-merge-robot 3850579313 Merge pull request #16207 from janetkuo/kubectl-apply-tests
Auto commit by PR queue bot
2015-10-27 20:29:17 -07:00
Daniel Smith 6219b50280 Merge pull request #16160 from kargakis/windows-fixes-for-edit
edit: Windows fixes
2015-10-27 15:44:26 -07:00
Jerzy Szczepkowski 154923221f Merge pull request #15951 from kargakis/factory-expose-method
Make CanBeExposed and CanBeAutoscaled composable
2015-10-27 11:04:40 +01:00
Jerzy Szczepkowski bbee6cfcd7 Merge pull request #15461 from kargakis/relax-exposing-multiport-objects
expose: Enable exposing multiport objects
2015-10-27 10:25:54 +01:00
Janet Kuo 4281497869 Test that kubectl apply update annotation only if apply is already called 2015-10-26 15:21:34 -07:00
kargakis 4befdf5b49 Make CanBeExposed and CanBeAutoscaled composable 2015-10-24 20:07:35 +02:00
kargakis 73713ce268 edit: Windows fixes
Contains the following fixes for Windows users of kubectl edit:
* Defaults to notepad as the default Windows editor
* Uses CRLF line endings
* Ensures a file lock is freed
2015-10-24 17:06:49 +02:00
Janet Kuo f5adda3d81 Fixed the error for kubectl edit multiple resources 2015-10-22 22:35:15 -07:00
Janet Kuo 8105aa44a0 Implement kubectl autoscale 2015-10-19 09:59:22 -07:00
k8s-merge-robot 77207d75e1 Merge pull request #15667 from JanetKuo/kubectl-watch-list
Auto commit by PR queue bot
2015-10-19 06:28:35 -07:00
kargakis 7d0e691520 expose: Enable exposing multiport objects
The generated service will inherit all the ports from the exposed object.
2015-10-19 11:25:14 +02:00
Janet Kuo 33b9235312 Better error handling for watching a list of resources specified in a file 2015-10-14 16:38:03 -07:00
Janet Kuo c2eef6b3d6 Use default www-prefix when proxy in test-cmd and fix some related bugs 2015-10-14 15:49:52 -07:00
Janet Kuo f47c2be539 Change kubectl proxy --api-prefix default to allow /apis/ 2015-10-14 15:49:52 -07:00
Chao Xu a503e5301a add a test to check if patch works with resourceVersion as a precondition 2015-10-13 10:41:09 -07:00
Dawn Chen 72f85e0641 Merge pull request #15354 from JanetKuo/test-kubectl-list-with-validate
Enable validate when test kubectl with List
2015-10-12 13:54:21 -07:00
Dawn Chen d802138c1f Merge pull request #15325 from caesarxuchao/fix-15181-retry-test-cmd
Adding a retry function in test-cmd.sh
2015-10-12 13:18:49 -07:00
Dawn Chen b07e29b03c Merge pull request #14789 from JanetKuo/fix-e2e-test-flake-kubectl-proxy
Use random ports when doing kubectl proxy in testing
2015-10-12 11:46:24 -07:00
Chao Xu 12bcea336a add a retry function in test-cmd.sh 2015-10-12 10:04:12 -07:00
Janet Kuo 001899e394 Enable validate when test kubectl with List 2015-10-11 20:56:15 -07:00
k8s-merge-robot d94307b71e Merge pull request #15042 from JanetKuo/test-loop-add-rclist-svclist
Auto commit by PR queue bot
2015-10-10 10:57:24 -07:00
Janet Kuo 5d08dcf837 Use random ports when doing kubectl proxy in testing 2015-10-09 15:52:59 -07:00
Chao Xu cc4ec80ec7 in scripts, experimental/v1alpha1->extensions/v1beta1 2015-10-09 15:19:13 -07:00
Janet Kuo ee0ce32736 Add test for kubectl support of ReplicationControllerList and ServiceList 2015-10-09 09:36:23 -07:00
k8s-merge-robot 0fb7c80edf Merge pull request #14888 from JanetKuo/kubectl-get-list
Auto commit by PR queue bot
2015-10-09 00:03:01 -07:00
Alex Robinson 48c6b7ea96 Merge pull request #14728 from kargakis/truncate-inherited-service-names
expose: Truncate service names
2015-10-05 16:29:14 -07:00
Janet Kuo 1f35cf2e5b Fix get with List 2015-10-05 11:44:57 -07:00
kargakis 989806d9ec expose: Truncate service names
In case the generated service inherits the exposed object's name (the user didn't specify
a name via --name), truncate it up to the maximum length for a valid service name
2015-10-05 10:39:42 +02:00
Janet Kuo b10e86038e Loop three types of files for each "multiple resources" test 2015-10-02 13:24:15 -07:00
Janet Kuo 7a2a5b021c Add test of kubectl support for multiple resources 2015-10-01 14:36:17 -07:00
deads2k 8b063a34b0 allow yaml as argument to patch 2015-09-30 11:58:42 -04:00
Chao Xu ae1293418b move experimental/v1 to experimental/v1alpha1;
use "group/version" in many places where used to expect "version" only.
2015-09-24 15:32:11 -07:00
Janet Kuo 5a608446ba pull "kubectl edit" from openshift upstream 2015-09-15 19:16:23 -07:00
Jeff Lowdermilk ebc0b02b7d Merge pull request #13613 from eparis/rework-doc-generation
Rework automatic doc generation
2015-09-15 17:35:47 -07:00
feihujiang 98689a99ec Limit the type for kubectl expose command 2015-09-15 11:17:04 +08:00
Chao Xu f734a6f038 register experimental/v1 in test-cmd.sh and test-integration.sh 2015-09-11 17:34:32 -07:00
Eric Paris 9cf7bb6b4f Automatically clean up KUBE_TEMP
kube::util:ensure-temp-dir claims that it will automatically clean it
up. But it obviously doesn't. Since we cannot add multiple trap in bash
add a function that lets us trap and clean up KUBE_TEMP even if someone
already set a trap.
2015-09-11 18:58:49 -04:00
Daniel Martí c054b20148 Avoid using two periods in templates
Since $id_field already starts with a period, .$id_field would result in the
following in Go 1.5:

error: error parsing template {{range.items}}{{..metadata.name}}:{{end}}, template: output:1: unexpected . after term "."

Apparently, Go 1.4 allowed this. Unnecessary anyway.
2015-09-10 11:44:14 -07:00
Dai Zuozhuo 2e2ef3e830 change -o template to -o go-template=... 2015-09-05 22:30:47 +08:00
Dan Mace da5e4d7bd5 Rolling updater availability enhancements
Enhance the rolling updater to support maintaining minimum pod
availability for the duration of the update process.
2015-09-01 12:54:08 -04:00
Anastasis Andronidis 10747841a0 move type documentation from tags to comments 2015-08-22 03:24:35 +02:00
Saad Ali 489e75e073 Merge pull request #12202 from daizuozhuo/kubectl
add jsonpath to kubectl
2015-08-20 14:31:45 -07:00
Clayton Coleman 9267f829eb Update tests to prepare for graceful deletion
For cases where we want to immediately cleanup the pod, start using
gracePeriod 0 in test cases.
2015-08-19 22:20:29 -04:00
Dai Zuozhuo b61a905b19 add jsonpath to kubectl 2015-08-20 08:57:24 +08:00
Saad Ali 14eadcccac Merge pull request #12521 from feihujiang/kubectlScaleAcceptFileNameParam
Kubectl scale command accepts a filename param
2015-08-19 15:00:26 -07:00
Robert Bailey 08e6a43c1d Revert "Merge pull request #9165 from smarterclayton/graceful"
This reverts commit 4f856b595d, reversing
changes made to d78525a83b.

Conflicts:
	pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Clayton Coleman 89f1f3b1b8 Alter graceful deletion to not use TTL
Avoid TTL by deleting pods immediately when they aren't
scheduled, and letting the Kubelet delete them otherwise.

Ensure the Kubelet uses pod.Spec.TerminationGracePeriodSeconds
when no pod.DeletionGracePeriodSeconds is available.
2015-08-18 09:08:43 -04:00
Clayton Coleman b842a7dd15 Revert "Revert "Gracefully delete pods from the Kubelet""
This reverts commit 98115facfd.
2015-08-18 08:57:02 -04:00
feihujiang 1e10a7cc59 Kubectl scale command accepts a filename param 2015-08-13 14:26:25 +08:00
feihujiang 0110f3176b Kubectl patch command accepts a filename param 2015-08-13 11:13:31 +08:00
feihujiang 73b694e6c1 kubectl describe <kind> work with no arguments
Add describe_resource_assert to test describe <kind> with no object arg
2015-08-10 14:08:38 +08:00
Eric Paris 7715290bbd Convert hack/ from --flag_name= to --flag-name= 2015-08-07 11:00:13 -04:00
derekwaynecarr 577f2fa0a5 LimitRange documentation should be under admin 2015-08-05 10:26:52 -04:00
Mike Danese cf4cb1a6a3 Merge pull request #10474 from kargakis/scale-multiple-controllers
Enable scaling multiple controllers
2015-07-31 14:51:43 -07:00
kargakis 0e796ca09a Enable scaling multiple controllers 2015-07-31 10:24:59 +02:00
Clayton Coleman 5df2188d3d hack/test-cmd.sh can fail when ~/.kube/config exists
Use the KUBE_TEMP dir for HOME
2015-07-30 00:47:50 -04:00
Mike Danese c0acfbcd4b Merge pull request #11421 from nikhiljindal/exposeServcPort
Updating kubectl expose to extract ports from the service being cloned
2015-07-24 17:16:31 -07:00
nikhiljindal 242910e57c kubectl expose should extract ports from service 2015-07-24 15:17:48 -07:00
Prashanth Balasubramanian be0bfa97cc Fix resource aliasing flake 2015-07-24 11:15:38 -07:00
Tim Hockin 1c3233a1d4 Remove v1beta3 2015-07-23 17:21:27 -07:00
Vish Kannan 136d53466a Merge pull request #10892 from nikhiljindal/beta1
Removing references to pre v1beta3 apis in code
2015-07-23 17:05:43 -07:00
nikhiljindal 496f30a92f Introduce a new service generator that leaves service port unnamed 2015-07-16 20:40:40 -07:00
Tim Hockin f330a43329 fix test-cmd from file moves 2015-07-14 17:59:59 -07:00
Tim Hockin 43e315d686 Fix test-cmd after file moves 2015-07-14 15:57:41 -07:00
derekwaynecarr c8ad995462 LimitRange example improvements, detailed README 2015-07-10 11:07:54 -04:00
nikhiljindal fc4da6844e removing references to pre v1beta3 apis 2015-07-08 13:51:43 -07:00
nikhiljindal 274792d7bb Stop exposing v1beta3 by default 2015-07-01 14:38:02 -07:00
Chao Xu 7f89a29aad add "kubectl patch". It will replace "kubectl udpate --patch" in the future 2015-06-29 16:36:45 -07:00
Alex Robinson 764d34d363 Merge pull request #10468 from caesarxuchao/add-cmd-replace
Add command "kubectl replace"
2015-06-29 16:06:33 -07:00
Anastasis Andronidis 697e07f864 Correctly parse multiple resources from files
Refactored how files, directories and stdin are handled. Every file must pass
through the FileVisitor and then streamed through StreamVisitor. FileVisitor
takes care of opening/closing files and StreamVisitor is parsing multiple
resources.
2015-06-29 23:11:46 +02:00
Chao Xu 9b3d42c090 Add command "kubectl replace". "kubectl update" is still supported as an alias.
"kubectl replace --patch" is NOT supported. It's moved to "kubectl patch" as a separate command in another commit.
2015-06-29 12:14:24 -07:00
Robert Bailey 91589143a3 Merge pull request #10370 from mikedanese/no-more-machines
remove --machines and related deprecated flags from code and docs
2015-06-26 10:54:01 -07:00
Robert Bailey 508f7f1697 Merge pull request #10358 from caesarxuchao/add-force-update
Add --force to `kubectl update`
2015-06-26 10:49:04 -07:00
Mike Danese 1e130e0794 remove --machines from code and docs 2015-06-25 18:29:11 -07:00
Chao Xu ef5de91fd7 add "--force" flag to "kubectl update";
update relevant tests
2015-06-25 17:16:20 -07:00
Daniel Smith 5eb5b4a130 Test kubectl proxy in test-cmd.sh 2015-06-24 13:54:15 -07:00
Chao Xu 59b654c996 fix tests for 22f1b07858 2015-06-22 17:10:09 -07:00
Prashanth Balasubramanian 9ed9bd1c4f Add a generation number to the object meta of all objects, and status of rcs 2015-06-19 14:32:08 -07:00
Jeff Lowdermilk 1a7d811b4a Add a test to test-cmd.sh for update --patch 2015-06-18 12:06:46 -07:00
Daniel Smith 97ebc1aad9 improve output of kube_get_url 2015-06-09 15:26:09 -07:00
Chao Xu 5a54a0118d fix 2015-06-04 16:35:24 -07:00