Clayton Coleman
38c7eded99
Prepare for content-type negotiation
...
Combine the fields that will be used for content transformation
(content-type, codec, and group version) into a single struct in client,
and then pass that struct into the rest client and request. Set the
content-type when sending requests to the server, and accept the content
type as primary.
Will form the foundation for content-negotiation via the client.
2016-01-26 17:44:30 -05:00
Avesh Agarwal
bec2d678b9
Fix panic when sort-by is used with kubectl get.
2016-01-26 13:58:24 -05:00
Janet Kuo
591269c99c
Surface available/unavailable pods in deployment describer
2016-01-25 14:30:15 -08:00
Jordan Liggitt
d7f547b4c2
Make label/annotate commands fall back to update on patch compute failure
2016-01-25 11:57:34 -05:00
k8s-merge-robot
d7d601b2fc
Merge pull request #18876 from erictune/dynamic-job
...
Auto commit by PR queue bot
2016-01-25 08:06:22 -08:00
Clayton Coleman
f9c48c864d
Don't add 'error: ' to messages if already there
2016-01-23 00:41:36 -05:00
Eric Tune
53ee76fe1a
Support Work Queue jobs with variable parallelism
...
When job.spec.completions is nil, only
one task needs to succeed for the job to succeed,
and parallelism can be scaled freely during runtime.
Added tests.
Release Note:
This causes two minor changes to the API.
First, unset parallelism previously was defaulted to be
equal to completions. Now it always defaults to 1 if unset.
Second, having parallelism=N and completions unset would previously
be defaulted to 1 completion and N parallelism.
(this is not something we expect people to do, though)
Now, no defaulting occurs in that case, and the job's
behavior is different (any completion causes success).
2016-01-22 14:57:51 -08:00
Zach Loafman
62726c4ab8
Revert "kubectl: Make scaling smarter"
2016-01-22 14:52:38 -08:00
Clayton Coleman
33085c0cf2
Update tests to handle codec changes
2016-01-22 13:27:26 -05:00
Clayton Coleman
2fd38a7dc0
Break kubectl from assuming details of codecs
...
Most of the logic related to type and kind retrieval belongs in the
codec, not in the various classes. Make it explicit that the codec
should handle these details.
Factory now returns a universal Decoder and a JSONEncoder to assist code
in kubectl that needs to specifically deal with JSON serialization
(apply, merge, patch, edit, jsonpath). Add comments to indicate the
serialization is explicit in those places. These methods decode to
internal and encode to the preferred API version as previous, although
in the future they may be changed.
React to removing Codec from version interfaces and RESTMapping by
passing it in to all the places that it is needed.
2016-01-22 13:27:26 -05:00
Clayton Coleman
fb4ea845f1
resource_printer was not leveraging runtime interfaces
...
In general, everything in kubectl/* needs to be ignorant of api/* unless
it deals with a concrete type - this change forces resource_printer to
accept interface abstractions (that are already part of kubectl).
2016-01-22 13:27:25 -05:00
Zach Loafman
68771fe26a
Merge pull request #18169 from kargakis/smarter-scaling
...
kubectl: Make scaling smarter
2016-01-22 10:24:51 -08:00
Nikhil Jindal
cd2e0c490e
Merge pull request #19674 from nikhiljindal/latestAndRegistered
...
Merge registered and latest and move to apimachinery
2016-01-21 17:19:49 -08:00
Alex Mohr
9546909929
Merge pull request #19366 from ironcladlou/noop-zero-replicas
...
Support rolling update to 0 desired replicas
2016-01-21 15:08:20 -08:00
nikhiljindal
2ad642d370
Merge registered and latest and move to apimachinery
2016-01-21 14:42:21 -08:00
Alex Mohr
359c684d57
Merge pull request #19698 from kargakis/expose-deployments
...
kubectl: Support exposing deployments
2016-01-21 14:26:14 -08:00
k8s-merge-robot
7f25a4f662
Merge pull request #18997 from mqliang/env-variable
...
Auto commit by PR queue bot
2016-01-21 03:03:19 -08:00
k8s-merge-robot
03ecde1277
Merge pull request #17535 from mesosphere/jdef_abspath_breaks_proxies
...
Auto commit by PR queue bot
2016-01-20 21:46:47 -08:00
Janet Kuo
183b7f4d6d
Add kubectl rollout
2016-01-20 16:17:42 -08:00
Dan Mace
eb778217ad
Support rolling update to 0 desired replicas
...
Support a desired replica count of 0 for the new RC. Users sometimes
want to roll out a new "inactive" template with the intent of scaling
it up manually later.
2016-01-20 09:21:13 -05:00
James DeFelice
75f487f7bf
AbsPath should be compatible with proxy-prefixes:
...
- replace Config.Prefix with .Host and .APIPath
- Request .path promoted to .pathPrefix, .baseURL holds required prefix
2016-01-20 00:31:58 +00:00
k8s-merge-robot
d5dde09e10
Merge pull request #19465 from thockin/docs-nit
...
Auto commit by PR queue bot
2016-01-16 13:32:36 -08:00
k8s-merge-robot
4cd20f54fc
Merge pull request #19460 from bprashanth/kubectl_desc_ing
...
Auto commit by PR queue bot
2016-01-16 12:55:54 -08:00
k8s-merge-robot
3816c1798f
Merge pull request #19411 from eparis/boolflag-def-val
...
Auto commit by PR queue bot
2016-01-16 06:23:48 -08:00
Michail Kargakis
08d8843a9c
kubectl: Support exposing deployments
2016-01-15 17:02:24 +01:00
Eric Paris
aad4b4477d
Make "BoolFlag" booleans not require =true
2016-01-14 09:07:00 -05:00
k8s-merge-robot
2655e1f767
Merge pull request #19361 from tombenner/add_current_context
...
Auto commit by PR queue bot
2016-01-14 01:09:12 -08:00
k8s-merge-robot
36dc6eab34
Merge pull request #19300 from caesarxuchao/move-SwaggerSchema-to-disocovery
...
Auto commit by PR queue bot
2016-01-13 23:20:08 -08:00
mqliang
640ce23930
make env variable parsing more robust
2016-01-14 10:30:15 +08:00
k8s-merge-robot
c059dfdb9b
Merge pull request #18712 from pmorie/config-kubectl
...
Auto commit by PR queue bot
2016-01-13 13:51:29 -08:00
Chao Xu
6a104ee46c
move SwaggerSchema to DiscoveryClient
2016-01-13 10:11:53 -08:00
Chao Xu
144b5acd08
move ServerVersion to DiscoveryClient
2016-01-13 10:11:52 -08:00
David Oppenheimer
8ac484793d
Comment out calls to httptest.Server.Close() to work around
...
https://github.com/golang/go/issues/12262 . See #19254 for
more details. This change should be reverted when we upgrade
to Go 1.6.
2016-01-11 23:02:11 -08:00
Tom Benner
52739bc82b
Add kubectl config current-context
2016-01-11 21:54:24 -08:00
Tim Hockin
5002b784f9
Clarify --external-ip in kubectl expose docs
...
Also fix a couple minor punctuation issues.
2016-01-10 23:29:57 -08:00
Prashanth Balasubramanian
99af2da6c0
Fix kubectl describe ingress
2016-01-10 19:05:49 -08:00
Matt Liggett
c6e9ad066e
Initial node drain implementation for #3885 .
...
It cordons (marks unschedulable) the given node, and then deletes every
pod on it, optionally using a grace period. It will not delete pods
managed by neither a ReplicationController nor a DaemonSet without the
use of --force.
Also add cordon/uncordon, which just toggle node schedulability.
2016-01-06 17:28:18 -08:00
Paul Morie
9c18067e60
Add kubectl support for ConfigMap
2016-01-06 09:03:39 -05:00
k8s-merge-robot
356487c951
Merge pull request #18101 from brendandburns/kubectl6
...
Auto commit by PR queue bot
2015-12-29 12:43:42 -08:00
k8s-merge-robot
500493a3ac
Merge pull request #18925 from caesarxuchao/refactor-registration
...
Auto commit by PR queue bot
2015-12-24 15:19:36 -08:00
k8s-merge-robot
21c01c05e3
Merge pull request #18902 from deads2k/gv-partial
...
Auto commit by PR queue bot
2015-12-24 01:42:59 -08:00
Chao Xu
2b5b708b70
Refactor the API registration and installation
2015-12-23 22:44:25 -08:00
Brendan Burns
4123a61df7
Add the client side bits of kubectl export
2015-12-22 10:41:59 -08:00
Brendan Burns
b6ca92127d
Merge pull request #16980 from jackgr/force_apply
...
Implement conflict detection in strategic merge patch
2015-12-22 10:33:35 -08:00
k8s-merge-robot
6815cbf742
Merge pull request #15210 from brendandburns/docs
...
Auto commit by PR queue bot
2015-12-21 07:58:46 -08:00
deads2k
20f9c2c545
find partial resource matches
2015-12-21 09:26:06 -05:00
Michail Kargakis
e894dcc8ff
kubectl: Make scaling smarter
...
Skip updating resources that already meet the desired replica count.
This change has an impact in both kubectl scale and kubectl delete in
that reapable resources that already have the desired replicas (number
provided via --replicas for scale, or zero for delete) won't be updated
again and a "already scaled" message will be printed (in case of scale).
2015-12-21 10:07:21 +01:00
k8s-merge-robot
439d7a721e
Merge pull request #18878 from janetkuo/delete-job-pod
...
Auto commit by PR queue bot
2015-12-20 16:25:32 -08:00
k8s-merge-robot
7c43797e61
Merge pull request #17516 from kargakis/tighten-generator-validation
...
Auto commit by PR queue bot
2015-12-19 18:36:18 -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
649855128d
Merge pull request #18627 from caesarxuchao/oneline-fix
...
Auto commit by PR queue bot
2015-12-19 00:50:31 -08:00
k8s-merge-robot
00c754108f
Merge pull request #18165 from fabianofranz/fixes_get_show_all
...
Auto commit by PR queue bot
2015-12-18 20:01:20 -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
0fecf965b4
Change how one-of blocks are validated
...
I took a hard look at error output and played until I was happier. This now
prints JSON for structs in the error, rather than go's format.
Also made the error message easier to read.
Fixed tests.
2015-12-18 09:42:14 -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
Michail Kargakis
71934b7643
kubectl: Validate flag usage against generators
...
This commit moves the generators into separate buckets and creates
separate calls for each one group. This helps in providing just the
necessary generators to each generator command.
Validation of flags against generators is also added so that flags
that are not meant to be used with a specific generator will result
in error.
2015-12-18 15:09:53 +01:00
Clayton Coleman
151b4e5958
Tweak explain messages and abstract client
2015-12-18 00:27:22 -05:00
Janet Kuo
7a4643f123
When reaping jobs, ignores its pod not found error
2015-12-17 18:57:22 -08:00
Abhishek Shah
6f63875165
Reverting 18442
2015-12-17 16:57:29 -08:00
Eric Tune
1965fe1824
Rerun hack/update-codecgen.sh
2015-12-17 13:51:33 -08:00
Eric Tune
1752cf22d4
Merge pull request #17940 from soltysh/job_deadline
...
Added ActiveDeadlineSeconds to jobs
2015-12-17 13:11:13 -08:00
Fabiano Franz
717896eae3
Fixes get --show-all
2015-12-17 18:35:54 -02:00
k8s-merge-robot
674e24a16e
Merge pull request #18617 from mqliang/OSImage
...
Auto commit by PR queue bot
2015-12-17 08:50:48 -08:00
k8s-merge-robot
5c735ee68d
Merge pull request #18616 from mqliang/MaxUnavailable
...
Auto commit by PR queue bot
2015-12-17 08:18:39 -08:00
Maciej Szulik
327c104460
Added ActiveDeadlineSeconds to jobs, allowing failing a job after
...
exceeding allowed time.
2015-12-17 15:26:42 +01:00
deads2k
9fda7f1812
update StatusDetails to handle Groups
2015-12-17 09:14:12 -05:00
k8s-merge-robot
5c4479f542
Merge pull request #18442 from deads2k/gv-restmapper-10
...
Auto commit by PR queue bot
2015-12-17 06:06:43 -08:00
k8s-merge-robot
bf5f69bf44
Merge pull request #18501 from feihujiang/printHowToReAttachToSession
...
Auto commit by PR queue bot
2015-12-17 01:02:01 -08:00
k8s-merge-robot
8ceb947b63
Merge pull request #18346 from soltysh/issue17363
...
Auto commit by PR queue bot
2015-12-16 21:25:52 -08:00
Jeff Lowdermilk
6adf227879
Merge pull request #18583 from jsravn/fix-rolling-update-rollback
...
Fix rolling-update rollback from an unavailable rc
2015-12-16 14:26:55 -08:00
k8s-merge-robot
5a579a2555
Merge pull request #16028 from derekwaynecarr/make_cmd
...
Auto commit by PR queue bot
2015-12-16 08:41:59 -08:00
deads2k
41b78ad2b6
find partial resource matches
2015-12-16 10:19:31 -05:00
k8s-merge-robot
e309583ff1
Merge pull request #18473 from smarterclayton/change_runtime_object
...
Auto commit by PR queue bot
2015-12-16 04:24:22 -08:00
k8s-merge-robot
0be54ae771
Merge pull request #18507 from feihujiang/supportRemoveFlagForKubectlRun
...
Auto commit by PR queue bot
2015-12-16 01:19:26 -08:00
Chao Xu
5ba4f836f8
some small fix
2015-12-15 12:00:48 -08:00
Clayton Coleman
8f203a28f1
Change runtime.Object signature
2015-12-15 13:36:25 -05:00
deads2k
6e33403abf
update CodecFor for GroupVersion
2015-12-15 10:56:00 -05:00
k8s-merge-robot
a581f04106
Merge pull request #18332 from hurf/fix_time_test
...
Auto commit by PR queue bot
2015-12-15 05:06:26 -08:00
k8s-merge-robot
3680268c52
Merge pull request #18353 from deads2k/gv-use-constants
...
Auto commit by PR queue bot
2015-12-15 03:25:09 -08:00
k8s-merge-robot
b5387da0d7
Merge pull request #17669 from WeixuZhuang/describ
...
Auto commit by PR queue bot
2015-12-15 01:45:38 -08:00
k8s-merge-robot
414ebd2ddb
Merge pull request #17991 from krousey/errorstatus
...
Auto commit by PR queue bot
2015-12-14 20:18:19 -08:00
James Ravn
e5a558c35f
Fix rolling-update rollback from an unavailable rc
...
Rolling back from a broken update with only one replica fails with a
timeout in the existing code.
The problem is the scale down logic does not consider unavailable
replicas in the old replication controller when calculating how much to
scale down by. This leads to an obvious problem with a single replica
when min unavailable is 1.
The fix is to allow scaling down all unavailable replicas in the old
controller, while still maintaining the min unavailable invariant.
2015-12-14 19:35:08 +00:00
derekwaynecarr
5e0948586c
Add kubectl create [SUBCOMMAND] pattern
2015-12-14 13:43:45 -05:00
deads2k
d0aaf13920
use constants for group names
2015-12-14 10:04:10 -05:00
Wojciech Tyczynski
960808bf08
Switch to versioned ListOptions in client.
2015-12-14 14:26:09 +01:00
k8s-merge-robot
7e942bf9b3
Merge pull request #18384 from deads2k/gv-clientcache
...
Auto commit by PR queue bot
2015-12-14 02:25:49 -08:00
feihujiang
9ab06cfa62
Support remove flag for kubectl run command
2015-12-14 16:16:43 +08:00
k8s-merge-robot
51e8c2e5f8
Merge pull request #17841 from mqliang/constant
...
Auto commit by PR queue bot
2015-12-13 23:40:27 -08:00
k8s-merge-robot
266ab4a796
Merge pull request #18487 from smarterclayton/guard_encode_decode
...
Auto commit by PR queue bot
2015-12-13 23:08:18 -08:00
k8s-merge-robot
9723ff7ffd
Merge pull request #12043 from derekwaynecarr/describe_node
...
Auto commit by PR queue bot
2015-12-13 18:24:59 -08:00
k8s-merge-robot
c458cd7bb7
Merge pull request #18379 from deads2k/gv-newobject
...
Auto commit by PR queue bot
2015-12-13 13:33:16 -08:00
k8s-merge-robot
47d2f41680
Merge pull request #18370 from deads2k/gv-interfacesfor
...
Auto commit by PR queue bot
2015-12-13 10:27:17 -08:00
mqliang
a21dd8a32b
replace OsImage to OSImage
2015-12-12 15:53:34 +08:00
mqliang
9d21b6dc85
pkg/set MaxUnavailable as 1
2015-12-12 12:04:11 +08:00
Jeff Lowdermilk
9c49cdaa6e
Merge pull request #18276 from thockin/airplane_validation_pt6
...
Validation cleanup parts 5 & 6 together
2015-12-11 13:34:37 -08:00
Jeff Lowdermilk
e53acfe19c
Merge pull request #17111 from munnerz/multi-rolling-update
...
Allow rolling-update of a single container in multi-container pods
2015-12-11 13:08:13 -08:00
deads2k
ec87d74ecb
update InterfacesFor to use GroupVersion
2015-12-11 13:45:41 -05:00
derekwaynecarr
9cdeb4cb20
describe nodes improvements
2015-12-11 13:09:49 -05:00
feihujiang
3a3421b742
Print how to reattch to seesion when session ends
2015-12-11 17:00:56 +08:00