Commit Graph

1337 Commits (7c660bc240223654403e11d299c84e53155af0f2)

Author SHA1 Message Date
Chao Xu 6f0f87b629 make kubectl explain work for extensions API 2015-10-19 10:21:56 -07:00
Janet Kuo 8105aa44a0 Implement kubectl autoscale 2015-10-19 09:59:22 -07:00
k8s-merge-robot cadb6c06be Merge pull request #14161 from feihujiang/letKubectlExecFollowDashRule
Auto commit by PR queue bot
2015-10-19 08:58:37 -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
feihujiang a456b4c424 Remove useless codes about Minion kind 2015-10-19 19:29:45 +08:00
k8s-merge-robot 75c977d200 Merge pull request #15596 from zhengguoyong/alias_util_errors_packagename
Auto commit by PR queue bot
2015-10-19 02:35:37 -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
k8s-merge-robot 80838ff86a Merge pull request #15454 from feihujiang/describePodsShowCommandAndArgs
Auto commit by PR queue bot
2015-10-18 02:03:39 -07:00
eulerzgy f8f9afb874 alias local packagename for pkg/util/errors 2015-10-18 09:37:46 +08:00
k8s-merge-robot d3ca12f61b Merge pull request #15053 from smarterclayton/stdin_once
Auto commit by PR queue bot
2015-10-17 00:03:32 -07:00
k8s-merge-robot d41737eff2 Merge pull request #15689 from caesarxuchao/default-ns-componentstatus
Auto commit by PR queue bot
2015-10-16 20:56:38 -07:00
Clayton Coleman 7f6f85bd7b Fix attach, which was broken during the refactor
The new e2e test catches the break in attach (no e2e test
exposed this codepath before).
2015-10-16 20:33:51 -04:00
Clayton Coleman e9a465d635 Make kubectl run attach behave like docker run
Have stdin closed by default, can be left open with --leave-stdin-open.
Add e2e tests for the behavior.
2015-10-16 20:33:51 -04:00
Chao Xu 262825f13d make componenetstatus root scoped 2015-10-16 10:24:31 -07:00
Wojciech Tyczynski d51965bf00 Autogenerate files. 2015-10-16 10:20:02 +02:00
Piotr Szczesniak f3e0bb0d41 Merge pull request #15706 from jszczepkowski/hpa-beta-util
HorizontalPodAutoscaler and Scale subresource APIs graduated to beta.
2015-10-16 09:50:27 +02:00
Piotr Szczesniak 4b983584a8 Merge pull request #15597 from caesarxuchao/annotate-patch
let kubectl annotate use patch instead of replace
2015-10-16 07:29:22 +02:00
Piotr Szczesniak c261325319 Merge pull request #15651 from caesarxuchao/label-patch
let kubectl label use PATCH instead of PUT
2015-10-16 07:29:13 +02:00
Jerzy Szczepkowski df732f061a HorizontalPodAutoscaler API: removal of ResourceConsumption target, introduction of CPU request utilization & other cleanups. 2015-10-16 07:15:50 +02:00
Eric Tune 13ae9a4d46 Merge pull request #15520 from mikedanese/dne
Move job to generalized label selector
2015-10-15 13:59:22 -07:00
Eric Tune d4475e3d49 Merge pull request #15232 from deads2k/refactor-logs
refactor kubectl logs to be composeable
2015-10-15 13:56:58 -07:00
Chao Xu b5a3ab67da let kubectl label use PATCH instead of PUT 2015-10-15 12:18:54 -07:00
Mike Danese a7a54cac74 move job to generalized label selector 2015-10-15 07:42:58 -07:00
k8s-merge-robot 4c8e6f47ec Merge pull request #15394 from JanetKuo/kubectl-proxy-api-prefix
Auto commit by PR queue bot
2015-10-15 05:12:30 -07:00
k8s-merge-robot 081f05c207 Merge pull request #14575 from soltysh/jobs_podtemplate_not_pointer
Auto commit by PR queue bot
2015-10-15 03:28:19 -07:00
Marek Grabowski 09160d8671 Merge pull request #15499 from JanetKuo/kubectl-get-funky
Format flattened output in kubectl
2015-10-15 09:33:26 +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 f47c2be539 Change kubectl proxy --api-prefix default to allow /apis/ 2015-10-14 15:49:52 -07:00
Chao Xu d0d260fd03 let kubectl annotate use patch instead of replace 2015-10-14 11:14:02 -07:00
deads2k f0aa606632 refactor kubectl logs to be composeable 2015-10-14 13:22:59 -04:00
k8s-merge-robot 11c735cefa Merge pull request #15581 from JanetKuo/remove-sorting-printer-debug-message
Auto commit by PR queue bot
2015-10-14 09:02:32 -07:00
Maciej Szulik 98fa29adfd Make PodTemplateSpec for Job not a pointer, since it's a required field 2015-10-14 11:37:11 +02:00
Wojciech Tyczynski 647aa1bc8c Unify per-resource List for unversioned client 2015-10-14 08:37:57 +02:00
Janet Kuo b9c8b76b6b address comments 2015-10-13 18:48:27 -07:00
Janet Kuo f39fe2056d Keep Flatten() and format output earlier in kubectl get 2015-10-13 18:48:27 -07:00
Dawn Chen 0e0ae670ad Merge pull request #15488 from caesarxuchao/experimental-extensions-client
Move from "Experimental" to "Extensions"
2015-10-13 16:54:37 -07:00
Janet Kuo d7d24dc8d4 Remove sorting-printer's debug message 2015-10-13 16:48:58 -07:00
Dawn Chen d6c43f48d1 Merge pull request #15473 from feihujiang/removeShorthandForClientInKubectlVersion
Remove shorthand for client flag in kubectl version
2015-10-13 16:24:08 -07:00
Chao Xu 493d2b6920 grep sed Experimental() 2015-10-13 13:22:54 -07:00
Chao Xu 9a812bd0c5 grep sed ExperimentalClient 2015-10-13 13:22:22 -07:00
Chao Xu 9aa163aa88 grep sed ExperimentalInterface 2015-10-13 13:22:22 -07:00
Dawn Chen e4c910a35a Merge pull request #15362 from wojtek-t/refactor_test_objects
Refactor test objects to a separate package
2015-10-13 11:52:47 -07:00
k8s-merge-robot 2dec0826f7 Merge pull request #15351 from caesarxuchao/fix-14584-1
Auto commit by PR queue bot
2015-10-13 02:19:43 -07:00
Wojciech Tyczynski 3d88a63b5d Refactor test objects to a separate package 2015-10-13 10:15:11 +02:00
Avesh Agarwal 8e4a8b7260 Addresses issue #6596.
Removes ForTesting_ReferencesAllowBlankSelfLinks.
Fixes controller's persistentvolumes unit tests.
2015-10-12 19:21:48 -04:00
Dawn Chen 6fa8ceda60 Merge pull request #14536 from wulonghui/wulonghui-patch-3
Update rollback process
2015-10-12 16:04:59 -07:00
Dawn Chen 3a45a5ca92 Merge pull request #15270 from brendandburns/custom
Fix the custom columns printer and the sorting printer for v1.List objects
2015-10-12 14:41:00 -07:00
Chao Xu fe7b85f6ea run goimports 2015-10-12 13:33:13 -07:00
Chao Xu 8654227c08 run grep-sed 2015-10-12 13:33:13 -07:00
Chao Xu 58ed8fd6fe run goimports 2015-10-12 13:33:13 -07:00
Chao Xu 654ceb6e5a run grep-sed 2015-10-12 13:33:13 -07:00
Chao Xu cbb3deb182 run goimports 2015-10-12 13:31:45 -07:00
Chao Xu 50a2c4c643 grep-sed 2015-10-12 13:31:45 -07:00
Dawn Chen 075c3a2c71 Merge pull request #15061 from kargakis/fix-dry-run-in-expose
Fix dry run in expose
2015-10-12 12:53:04 -07:00
Dawn Chen 149ca1ec49 Merge pull request #14618 from smarterclayton/refactor_exec
Refactor exec to make attach useful without a client.Config
2015-10-12 11:44:34 -07:00
feihujiang 6290aee8b8 Remove shorthand for client flag in kubectl version 2015-10-13 02:02:54 +08:00
feihujiang 42c38030be Fix describe pods doesn't show command and args 2015-10-12 05:29:52 +08:00
feihujiang 4f38e8a745 Let kubectl exec follow dash rule 2015-10-12 01:29:07 +08:00
k8s-merge-robot 02ec1fb33c Merge pull request #13885 from smarterclayton/websocket_exec
Auto commit by PR queue bot
2015-10-10 09:52:01 -07:00
k8s-merge-robot fa557f6101 Merge pull request #15409 from caesarxuchao/extension/v1beta1
Auto commit by PR queue bot
2015-10-10 09:03:43 -07:00
kargakis 4b23bf602d expose: Minor cleanup 2015-10-10 16:16:41 +02:00
kargakis 083c5bebbd expose: --dry-run should dump the object
Also make some tests use --dry-run and compare generated objects
against expected
2015-10-10 16:15:17 +02:00
k8s-merge-robot 615ae5b04a Merge pull request #15335 from mikedanese/ds-cleanup
Auto commit by PR queue bot
2015-10-09 18:59:55 -07:00
Chao Xu 7c9f4cc42f experimental. -> extensions. 2015-10-09 15:49:10 -07:00
Chao Xu 80f213c376 "experimental" -> "extensions" 2015-10-09 15:14:03 -07:00
Chao Xu 67f316dd19 apis/experimental->apis/extensions 2015-10-09 15:04:41 -07:00
Clayton Coleman 3f1b18fbba Refactor exec to make attach useful without a client.Config
The current executor structure is too dependent on client.Request
and client.Config. In order to do an attach from the server, it needs
to be possible to create an Executor from crypto/tls#TLSConfig and to
bypassing having a client.Request.

Changes:

* remotecommand.spdyExecutor - handles upgrading a request to SPDY and getting a connection
* remotecommand.NewAttach / New - moved to exec / portforward / attach since they handle requests
* Remove request.Upgrade() - it's too coupled to SPDY, and can live with the spdyExecutor
* Add request.VersionedParams(runtime.Object, runtime.ObjectConvertor) to handle object -> query transform
2015-10-09 14:36:46 -04:00
Clayton Coleman 554ce403e4 Prevent attach from being served by default via the proxy 2015-10-09 14:33:40 -04:00
k8s-merge-robot 2f90f660c1 Merge pull request #11368 from hurf/ctl_convert
Auto commit by PR queue bot
2015-10-09 08:57:30 -07:00
Mike Danese 6fe7edc5ea simplify DaemonReaper by using NodeSelector 2015-10-09 08:17:49 -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
hurf e1b88c6942 Integrate convertion tool to kubectl
Added 'convert' subcommand to kubectl to convert config files
between different API versions.
2015-10-09 10:15:30 +08:00
k8s-merge-robot 86fdc3f85c Merge pull request #15240 from mikedanese/job-fix-1
Auto commit by PR queue bot
2015-10-08 16:58:06 -07:00
Mike Danese 73f7242027 rename JobStatus.Unsuccessful => JobStatus.Failed, JobStatus.Successful => JobStatus.Succeeded 2015-10-08 10:41:22 -07:00
wulonghui cbd10dbf36 Update rollback process 2015-10-08 10:49:09 +08:00
Brendan Burns 51b0def44f Fix the custom column and sorting printers for v1.List 2015-10-07 19:42:19 -07:00
jackgr ef3f64612e Add calls to set annotation for kubectl apply 2015-10-07 17:15:56 -07:00
jackgr 703a3e19aa Add the kubectl apply command. 2015-10-07 17:14:51 -07:00
k8s-merge-robot b0d748efb0 Merge pull request #14461 from JanetKuo/kubectl-api-group-cmd
Auto commit by PR queue bot
2015-10-07 07:29:10 -07:00
Derek Carr 87fe1f4af8 Merge pull request #13939 from pmorie/pod-sc-minimal
Add PodSecurityContext and backward compatibility tests
2015-10-07 09:56:58 -04:00
Janet Kuo 57388f9f94 Support kubectl group/resource name 2015-10-06 13:12:32 -07:00
k8s-merge-robot 239790a045 Merge pull request #15110 from mikedanese/ds-reaper-fix
Auto commit by PR queue bot
2015-10-05 22:28:51 -07:00
Paul Morie 227dd82119 Add PodSecurityContext and backward compatibility tests 2015-10-05 21:05:27 -04:00
Alex Robinson cae6b7cf61 Merge pull request #14607 from erictune/jobs-get-fix
kubectl get jobs printing fix
2015-10-05 17:03:25 -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
Mike Danese 334b551166 use unconditional update and check error of update in DaemonSet reaper 2015-10-05 14:15:19 -07:00
Janet Kuo 1f35cf2e5b Fix get with List 2015-10-05 11:44:57 -07:00
deads2k 05e84fafbe move HasConflicts to shareable location 2015-10-05 14:37:57 -04:00
Eric Tune b4ca15dfce Print namespace when asked for job.
Also print multiple containers if there happen to be multiple.
2015-10-05 10:32:14 -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
CJ Cullen 1b841d26e7 Merge pull request #14996 from thockin/wait-poll
add wait.PollImmediate() and retool wait tests
2015-10-02 16:39:42 -07:00
k8s-merge-robot 7007481f00 Merge pull request #14917 from nikhiljindal/deploymentController
Auto commit by PR queue bot
2015-10-02 13:18:49 -07:00
Tim Hockin 1973d233e8 add wait.PollImmediate() and retool wait tests 2015-10-02 11:44:26 -07:00
k8s-merge-robot e330b1197e Merge pull request #14459 from bprashanth/l7_ingress_resource_refactor
Auto commit by PR queue bot
2015-10-02 10:20:48 -07:00
k8s-merge-robot 7f9c18d646 Merge pull request #14819 from mesosphere/sttts-add-kubectl-bind-address
Auto commit by PR queue bot
2015-10-02 08:05:57 -07:00
k8s-merge-robot e4164638c4 Merge pull request #14732 from jszczepkowski/hpa-api-fix
Auto commit by PR queue bot
2015-10-01 18:52:59 -07:00
k8s-merge-robot 2516086771 Merge pull request #14764 from timstclair/kubectl
Auto commit by PR queue bot
2015-10-01 17:10:10 -07:00
nikhiljindal c6deb442f9 Adding events to deployment 2015-10-01 16:38:08 -07:00
k8s-merge-robot d50810a1db Merge pull request #14831 from deads2k/allow-yaml-patch
Auto commit by PR queue bot
2015-10-01 08:48:45 -07:00
Wojciech Tyczynski 7f9df8c062 Merge pull request #14721 from zhengguoyong/err_value
add log err value
2015-10-01 09:37:36 +02:00
Wojciech Tyczynski b7dbbdbc09 Merge pull request #14890 from timothysc/user_error
Fix for unit test failures on user
2015-10-01 09:36:44 +02:00
Nikhil Jindal 7adb463dd0 Merge pull request #14199 from nikhiljindal/deploymentDescribe
Adding a DeploymentDescriber to kubectl
2015-09-30 21:34:24 -07:00
k8s-merge-robot 888f08377e Merge pull request #14671 from ironcladlou/rolling-rollback-fix
Auto commit by PR queue bot
2015-09-30 20:56:05 -07:00
Timothy St. Clair 7955d428de Fix for unit test failures 'unexpected error: user: Current not implemented on linux/amd64'
running on Fedora 20 'go version go1.4.2 linux/amd64'
2015-09-30 20:33:34 -05:00
Brendan Burns 44a16834d8 Merge pull request #14087 from brendandburns/kubectl
Move the default schema cache to the home directory
2015-09-30 11:30:32 -07:00
deads2k 8b063a34b0 allow yaml as argument to patch 2015-09-30 11:58:42 -04:00
Dr. Stefan Schimanski 3650899b29 Add --address to kubectl proxy 2015-09-30 15:53:52 +02:00
Brendan Burns e827934d78 Merge pull request #12677 from andronat/kubectl_doc_cmd
A new command to read types' description from Swagger - kubectl explain
2015-09-29 19:35:37 -07:00
k8s-merge-robot 66e25b48b0 Merge pull request #14636 from feihujiang/fixMinorBugsInKubectlCommand
Auto commit by PR queue bot
2015-09-29 19:31:40 -07:00
Prashanth Balasubramanian 99b0e051fc Kubectl printer 2015-09-29 18:51:24 -07:00
Tim St. Clair 4dc9df91d8 Fix race condition in kubectl run --attach 2015-09-29 15:02:38 -07:00
Dan Mace 6db9601772 Support asymmetric rolling rollbacks
Improve the rolling updater rollback/abort function by making it aware
of the original replicas annotation: if the rollback target has the
original replica count recorded, prefer it over the desired annotation
since the update from old to new could have been asymmetrical.

For example, when scaling from 5 to 10, aborting should scale back to 5.
2015-09-29 09:00:02 -04:00
Jerzy Szczepkowski a5194c5ff4 HorizontalPodAutoscaler.Status kept by value, not by pointer.
HorizontalPodAutoscaler.Status kept by value, not by pointer. Fixes #14567.
2015-09-29 14:25:46 +02:00
eulerzgy b1be6bc8ea add log err value 2015-09-29 17:09:25 +08:00
Brendan Burns afea127a3e Move the default schema cache to the home directory 2015-09-28 16:26:48 -07:00
nikhiljindal c651c1ae30 Updating the semantics of MaxSurge and unavailability 2015-09-28 14:51:26 -07:00
nikhiljindal 153c57ffc8 Adding a DeploymentDescriber to kubectl 2015-09-28 14:21:24 -07:00
Wojciech Tyczynski 5994e1d425 Merge pull request #14658 from mwielgus/describe_fix
Fix terminated pod printing in kubectl describe
2015-09-28 17:00:30 +02:00
Marcin Wielgus 62da43eef2 Fix terminated pod printing in kubectl describe 2015-09-28 16:54:12 +02:00
feihujiang e31bc89232 Fix minor bugs in kubectl command 2015-09-28 13:58:31 +08:00
Anastasis Andronidis e8b9dde623 new kubectl explain command 2015-09-26 14:25:53 +03:00
Brian Grant b90797d941 Merge pull request #14406 from hurf/config_message
Improve message from kubectl config
2015-09-25 11:01:34 -07: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
Eric Tune 43b37204ec Merge pull request #14502 from deads2k/tolerate-missing-sortby
don't fatal on missing sorting flag
2015-09-24 14:09:42 -07:00
deads2k dd7ed11fc1 don't fatal on missing sorting flag 2015-09-24 12:53:33 -04:00
Maciej Szulik 48775319d9 Reaper and scaler for jobs 2015-09-23 13:06:34 +02:00
hurf c4dc056105 Improve message from kubectl config
1.use Fprintf instead of Printf
2.output simple success messages
3.lowercase all error messages
2015-09-23 16:10:21 +08:00
Mike Danese 2313c9ada0 move daemonset describe to experimental 2015-09-22 09:13:42 -07:00
k8s-merge-robot 8f831ec9fd Merge pull request #14306 from mikedanese/fix
Auto commit by PR queue bot
2015-09-21 21:42:56 -07:00
Mike Danese 2e8c87e309 dereference pointer before printing in the describer 2015-09-21 13:55:19 -07:00
Clayton Coleman c2e90cd154 Support extended pod logging options
Increase the supported controls on pod logging. Add validaiton to pod
log options. Ensure the Kubelet is using a consistent, structured way to
process pod log arguments.

Add ?sinceSeconds=<durationInSeconds>, &sinceTime=<RFC3339>, ?timestamps=<bool>,
?tailLines=<number>, and ?limitBytes=<number>
2015-09-21 15:39:32 -04:00
k8s-merge-robot c2f76e4ce7 Merge pull request #14106 from jszczepkowski/hpa-api
Auto commit by PR queue bot
2015-09-19 22:23:06 -07:00
k8s-merge-robot 434b768822 Merge pull request #13277 from uluyol/sv-detect-group
Auto commit by PR queue bot
2015-09-18 01:31:43 -07:00
Muhammed Uluyol f855e75805 Correctly do swagger validation with experimental.
Before we tried both groups, first api then experimental. If
experimental failed, the error message would be discarded and the
message for api would be shown. This commit changes this behavior so
that we detect which api group we should be using and only show the
error for that group.
2015-09-17 22:54:56 -04:00
Daniel Martí 586cb9126a Move pkg/util.Time to pkg/api/unversioned.Time
Along with our time.Duration wrapper, as suggested by @lavalamp.
2015-09-17 17:51:27 -07:00
Kris f4ad00d9ae Moving Status object to a common package 2015-09-17 14:09:53 -07:00
Clayton Coleman bf2decce81 Add NotReadyAddresses to Endpoints
In many cases clients may wish to view not ready addresses for endpoints
in order to do set membership prior to a pod being ready. For instance,
a pod that uses the service endpoints to connect to other pods under
the same service, but does not want to signal ready before it has
contacted at least a minimal number of other pods.

This is backwards compatible with old servers and clients. There is
an additional cost in size of endpoints before services ramp up, which
will add minor CPU and memory use for services that have a significant
number of pods which have not become ready.
2015-09-17 09:41:56 -04:00
Jerzy Szczepkowski 7fcf7f1177 Cleanups in HorizontalPodAutoscaler API.
Cleanups in HorizontalPodAutoscaler API: renamed Min/MaxCount to Min/MaxReplicas as Replicas is the proper name used in other objects.
2015-09-17 14:16:43 +02:00
k8s-merge-robot b342591032 Merge pull request #13604 from JanetKuo/kubectl-edit
Auto commit by PR queue bot
2015-09-17 03:00:33 -07:00
k8s-merge-robot 2e255b5fcd Merge pull request #13977 from JanetKuo/kubectl-scale-rc-pd
Auto commit by PR queue bot
2015-09-17 01:52:33 -07:00
Mike Danese 77a06cbf05 Merge pull request #13183 from mikedanese/daemon_kubectl
Add daemonset support to kubectl
2015-09-16 19:02:36 -07:00
k8s-merge-robot 426d4a2477 Merge pull request #13945 from caesarxuchao/kube-api-prefix
Auto commit by PR queue bot
2015-09-16 18:43:55 -07:00
feihujiang ba38a8764b Remove useless codes about minion 2015-09-16 14:22:53 +08:00
Janet Kuo 5a608446ba pull "kubectl edit" from openshift upstream 2015-09-15 19:16:23 -07:00
Mike Danese 54b0faf39a rebase onto head 2015-09-15 18:13:28 -07:00
Ananya Kumar 30f5b93d2f Add Kubectl support for Daemon 2015-09-15 18:11:12 -07:00
Janet Kuo 3aad8cabbd Better error handling when scaling a rc 2015-09-15 18:04:04 -07:00
Chao Xu 9bef5ff99d register experimental apis as apis/experimental/..
mark --api-version as deprecated
2015-09-15 11:25:01 -07:00
Maciej Szulik 1b46bc010a Job clients, printer and describer 2015-09-15 13:54:51 +02:00
k8s-merge-robot b8e938b795 Merge pull request #13184 from feihujiang/limitTypesForExposeCommand
Auto commit by PR queue bot
2015-09-15 01:21:19 -07:00