Commit Graph

1525 Commits (2a83f5d5c7bec68e7419ad8100efdafb4fa040dc)

Author SHA1 Message Date
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
Kris ca7c765f0a Remove APIStatus from the client
Everything that used it also depended on pkg/api/errors. It was a
needless abstraction since it was always an *errors.StatusError.
2015-12-10 13:12:21 -08:00
Tim Hockin 7fb8f60735 Shorten names for better reading 2015-12-10 11:48:19 -08:00
Tim Hockin 87a35047dd Move FieldPath and errors to a sub-package
This makes the naming and reading a lot simpler.
2015-12-10 11:48:16 -08:00
Weixu Zhuang a5a2b94c5f In pkg/kubectl/describe.go function Matches support unordered types matches.
The argument of function need to be matched. It did not support unorder matches.
This is a TODO and I fix it.(line 1763 in pkg/kubectl/describe.go)
I use a map to solve it which could compare two types array's difference.
2015-12-10 09:24:30 -08:00
Maciej Szulik 34c72552a5 Updated kubectl help info with resource names 2015-12-10 16:04:44 +01:00
deads2k cf58201ff4 update client cache to key on groupversion 2015-12-10 07:41:34 -05:00
feisky 0d611416c2 kubectl describe more fields for ingress 2015-12-10 15:12:35 +08:00
Clayton Coleman 1e21054134 Hide common codec methods under helpers
The pending codec -> conversion split changes the signature of
Encode and Decode to be more complicated. Create a stub helper
with the exact semantics of today and do the simple mechanical
refactor here to reduce the cost of that change.
2015-12-09 21:15:02 -05:00
k8s-merge-robot 361405e4b3 Merge pull request #18311 from brendandburns/3rdparty3
Auto commit by PR queue bot
2015-12-09 12:19:38 -08:00
k8s-merge-robot 5f7019ab9d Merge pull request #16877 from anish/iscsi_iface
Auto commit by PR queue bot
2015-12-09 11:52:37 -08:00
k8s-merge-robot f525c2e587 Merge pull request #18268 from tmrts/sort/constants
Auto commit by PR queue bot
2015-12-09 08:44:01 -08:00
deads2k 519b4e80d1 update NewObject for groupversionkind 2015-12-09 08:13:15 -05:00
k8s-merge-robot 637a33924c Merge pull request #18004 from jiangyaoguo/print-absolute-time-when-watch-event
Auto commit by PR queue bot
2015-12-08 22:58:12 -08:00
Anish Bhatt 6e46fa1fd4 Add support for open-iscsi transports.
This enables use of software or hardware transports viz. be2iscsi,
bnx2i, cxgb3i, cxgb4i, qla4xx, iser and ocs. The default transport
(tcp) happens to be called "default".

Use of non-default transports changes the disk path to the following format:
/dev/disk/by-path/pci-<pci_id>-ip-<portal>-iscsi-<iqn>-lun-<lun_id>
2015-12-08 17:28:06 -08:00
hurf fb6ea4385b Use fixed days to test translateTimestamp for months
Use fixed days to avoid days in different months.
2015-12-08 15:53:38 +08:00
Brendan Burns 59bd1d24a2 Fix some typos in third party resource printing 2015-12-07 14:17:55 -08:00
deads2k 2ee3dfe415 update testapi to eliminate redundant fields 2015-12-07 15:54:26 -05:00
k8s-merge-robot ec1ba7438f Merge pull request #17796 from deads2k/gv-object-typer
Auto commit by PR queue bot
2015-12-07 12:34:55 -08:00
deads2k 66eecb963a update more kubectl bits for groupversion 2015-12-07 09:01:44 -05:00
deads2k f764e0099c Update ObjectTyper to GroupVersion 2015-12-07 08:35:05 -05:00
Tamer Tas 5ac372dfce Alphabetize kubectl resource shortcuts list 2015-12-07 06:05:42 +02:00
jackgr b11dec7aec Implement conflict detection in strategic merge patch. 2015-12-06 17:54:32 -08:00
jiangyaoguo 7153ff80ff print absolute time when watch event 2015-12-05 13:52:53 +08:00
mqliang 0fd51b9e72 make 'deployment.kubernetes.io/podTemplateHash' as constant 2015-12-05 11:17:12 +08:00
James Munnelly 61306c2a0f Allow rolling-update of a single container in multi-container pods
Accept codec as parameter to CreateNewControllerFromCurrentController function. Add tests for performing a rolling update on a container in a multi-container pod.
2015-12-04 18:38:55 +00:00
Salvatore Dario Minonne 80575c3093 renaming PodSelector to LabelSelector 2015-12-04 09:49:08 +01:00
Tim Hockin e6df0b1a24 Convert validation to use FieldPath
Before this change we have a mish-mash of ways to pass field names around for
error generation.  Sometimes string fieldnames, sometimes .Prefix(), sometimes
neither, often wrong names or not indexed when it should be.

Instead of that mess, this is part one of a couple of commits that will make it
more strongly typed and hopefully encourage correct behavior.  At least you
will have to think about field names, which is better than nothing.

It turned out to be really hard to do this incrementally.
2015-12-03 08:19:44 -08:00
Wojciech Tyczynski 6dcb689d4e Simplify List() signature in clients. 2015-12-03 09:54:07 +01:00
Marek Grabowski 5d92cb229f Merge pull request #18031 from soltysh/issue17364
Changing ─ (U+2500) to ASCII hyphen in describe command
2015-12-03 09:24:58 +01:00
Brendan Burns 601faebfe3 Add custom-columns to the template flag 2015-12-02 10:40:32 -08:00
k8s-merge-robot e28404b23b Merge pull request #17946 from jhadvig/label_msg
Auto commit by PR queue bot
2015-12-02 04:46:26 -08:00
Maciej Szulik db0df10b9c Changing ─ (U+2500) to ASCII hyphen in describe command 2015-12-01 20:40:51 +01:00
Wojciech Tyczynski 8343c8ce6c Pass ListOptions to List() methods. 2015-12-01 15:00:36 +01:00
k8s-merge-robot 7644d34759 Merge pull request #15775 from mesosphere/sur-k8sm-482-resource-roles
Auto commit by PR queue bot
2015-12-01 05:36:52 -08:00
k8s-merge-robot a836b1e261 Merge pull request #17326 from caesarxuchao/grooupVersion-lastest
Auto commit by PR queue bot
2015-12-01 05:05:40 -08:00
fabioy 3d75105ee5 Fix test failure due to days-in-month check. Issue #17998. 2015-11-30 17:17:52 -08:00
Chao Xu 6e192760e3 refactoring latest.go GroupVersion;
clean up latest.go GroupVersions;
remove latest.GroupMeta.Group;
remove latest.GroupMeta.Version.
2015-11-30 11:30:21 -08:00
jhadvig f55809b5b5 Pod labeling should return correct messages 2015-11-30 17:47:08 +01:00
deads2k 1ac6d8afd3 update reaper, scaler, describer for GroupKind 2015-11-30 09:22:39 -05: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 5f10b70652 Merge pull request #17766 from hurf/doc_nits
Auto commit by PR queue bot
2015-11-27 02:22:41 -08:00
k8s-merge-robot 4ce6a16816 Merge pull request #17709 from ddysher/missing-valid-resources
Auto commit by PR queue bot
2015-11-26 22:49:07 -08:00
k8s-merge-robot b9537245ec Merge pull request #17702 from hurf/logs_cleanup
Auto commit by PR queue bot
2015-11-26 19:13:12 -08:00
k8s-merge-robot 70d2a02959 Merge pull request #17701 from hurf/anno_label
Auto commit by PR queue bot
2015-11-26 15:29:46 -08:00
Clayton Coleman 9d19238f6c Fix tests to pass with changed external types 2015-11-26 11:53:37 -05:00
Clayton Coleman 1d592e4c28 Unversioned types should not use ambiguous go-int
All external types that are not int64 are now marked as int32,
including
IntOrString. Prober is now int32 (43 years should be enough of an initial
probe time for anyone).

Did not change the metadata fields for now.
2015-11-26 11:45:25 -05:00
k8s-merge-robot 5f8743ea7b Merge pull request #17108 from kargakis/fix-editor-env
Auto commit by PR queue bot
2015-11-26 03:53:53 -08:00
k8s-merge-robot fc694ea787 Merge pull request #16725 from wojtek-t/update_ugorji
Auto commit by PR queue bot
2015-11-25 22:14:20 -08:00
deads2k 8679925847 update RESTMapping API to be properly typed 2015-11-25 14:02:37 -05:00
deads2k 5c4fb5bcbe make RESTMapper.KindFor 2015-11-25 14:02:37 -05:00
deads2k 9e9b9f2da3 fix outputversion restmapper 2015-11-25 12:15:48 -05:00
deads2k ed95a6d77f update scheme to use GroupVersion 2015-11-25 12:15:48 -05:00
deads2k e0b7f52633 hack up queryToObject to continue to work as it used to 2015-11-25 12:14:06 -05:00
deads2k 6231404682 update decoder to use GroupVersion 2015-11-25 12:14:06 -05:00
Wojciech Tyczynski 58062bc347 Regenerate files 2015-11-25 12:34:05 +01:00
hurf 8b6ef01667 fix description of -f option of autoscale command
use 'autoscale' instead of 'get form the server'
2015-11-25 19:00:56 +08:00