Commit Graph

423 Commits

Author SHA1 Message Date
Piotr Szczesniak
c06eecf7aa Added colors to output of kubectl clusterinfo
Added warning about trailing slashes

Also I ran godeps as described at
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/devel/development.md

This fixes #5698
2015-03-24 11:46:04 +01:00
Deyuan Deng
4939c1137c Add node describe labels, creationTimestamp 2015-03-23 17:13:45 -04:00
Clayton Coleman
d19aac80ea Merge pull request #5533 from smarterclayton/burn_yaml_with_fire
Burn YAML with fire (kind of)
2015-03-23 13:45:52 -04:00
Saad Ali
f57540c7a0 Merge pull request #5532 from nikhiljindal/event
Adding GetFieldSelector() to client.EventInterface
2015-03-20 15:05:14 -07:00
nikhiljindal
1b87060aec Adding GetFieldSelector() to client.EventInterface 2015-03-20 13:58:23 -07:00
Tim Hockin
4375376e9c Rename Service.ContainerPort to TargetPort in v1b3
Fix all callers and examples.  Part of multi-port service cleanup.
2015-03-20 13:50:06 -07:00
Clayton Coleman
6918a4d32e Replace automatic YAML decoding with opt-in YAML decoding
Base codecs no longer automically handle YAML.  Instead, clients
must convert to JSON first via yaml.ToJSON and runtime.YAMLDecoder.
2015-03-20 00:03:56 -04:00
Clayton Coleman
022c103699 Update RollingUpdater to use resource.Builder
Remove last usage of ResourceFromFile
2015-03-20 00:03:54 -04:00
CJ Cullen
f6d8d5f800 Merge pull request #5522 from fabioy/expose-label.fix
Add "--labels" option to the "expose" kubectl command.
2015-03-19 14:40:15 -07:00
Jeff Lowdermilk
39211af25e Declare kubectl validate flag once 2015-03-18 14:00:19 -07:00
Jeff Lowdermilk
72699606a9 Merge pull request #5541 from deads2k/deads-expose-resolve-local-paths
allow any number of kubeconfig files
2015-03-18 10:46:47 -07:00
Tamer Tas
b39e31d8a3 Remove cmd from kubectl/cmd/factory 2015-03-18 14:23:14 +02:00
Jeff Lowdermilk
faab509a23 Merge pull request #5543 from you-n-g/master
add get available versions commmand
2015-03-17 17:34:33 -07:00
Salvatore Dario Minonne
31ddefc347 Finalize fields.Selector 2015-03-17 22:55:43 +01:00
fabioy
401451c510 Add "--labels" option to the "expose" kubectl command. 2015-03-17 09:47:57 -07:00
Young
97b647207e add get available versions commmand 2015-03-17 13:51:18 +00:00
deads2k
8555ed3ede allow any number of kubeconfig files 2015-03-17 08:49:34 -04:00
Wojciech Tyczynski
e6d188fca8 Remove BoundPod structure 2015-03-17 10:27:41 +01:00
Brian Grant
2f9a41b898 Merge pull request #5233 from brendandburns/labels
Make label and field selector query strings versionable.
2015-03-16 16:01:37 -07:00
Nikhil Jindal
d1dc17120d Merge pull request #4880 from smarterclayton/better_describe
Make Describe functions available to local objects
2015-03-16 12:19:22 -07:00
Clayton Coleman
85d96f9e7a Make describe able to be invoked on local resources
Support a more flexible access mechanism for getting a describer given
only an object.
2015-03-16 00:09:20 -04:00
Dawn Chen
34e9c82c70 Convert RestartPolicy to string for v1beta3.
Fixed #3607 and spiritually support #5475
2015-03-13 18:38:07 -07:00
Ravi Sankar Penta
f6ecec5880 Allow admin user to explicitly unschedule the node
Setting Unschedulable on the node will not touch any existing pods
on the node but will block scheduling of new pods on the node.
2015-03-12 14:27:27 -07:00
Brendan Burns
266234f3b9 Make label and field selector query strings versionable. 2015-03-12 12:24:07 -07:00
Satnam Singh
a3fd0a9fd5 Merge pull request #5284 from piosz/guestbook_bug
Rewrite guestbook example to use kube-dns instead of host:port
2015-03-11 23:14:18 -07:00
Jeff Lowdermilk
a5746c9a0e Fix md generation for kubectl docs
Display usage string, not long help, as code, remove angle brackets from
output (.md interprets as tags and hides).
2015-03-11 16:42:40 -07:00
Nikhil Jindal
9baa261728 Merge pull request #5219 from jlowdermilk/kubectl-err-handling
Make kubectl commands return errors and centralize exit handling
2015-03-11 10:06:52 -07:00
Piotr Szczesniak
4679a37b38 Rewrite guestbook example to use kube-dns instead of host:port
This fixes #5091
2015-03-11 09:51:47 +01:00
Jerzy Szczepkowski
110ab79f05 Added support for labels to "kubectl stop".
Added support for labels and --all to "kubectl stop". Fixes #5178.
2015-03-11 09:43:29 +01:00
Brian Grant
827a92316c Merge pull request #5251 from derekwaynecarr/namespace_lifecycle
Add a NamespacePhase to Namespace
2015-03-10 15:21:07 -07:00
derekwaynecarr
7de138a9bb Add a NamespacePhase to Namespace 2015-03-10 14:11:54 -04:00
Jeff Lowdermilk
cd7d78b696 Make kubectl commands return errors and centralize exit handling 2015-03-10 10:19:43 -07:00
Deyuan Deng
58776da6a4 Add more information to node describe 2015-03-09 18:56:59 -04:00
Daniel Smith
6de2e615cb Merge pull request #5193 from bprashanth/e2e_stop_controller
Properly reap replication controllers in e2e test
2015-03-09 15:38:26 -07:00
Brendan Burns
0ad6e5b48c Fix the test by using an even more bogus tld. 2015-03-09 14:31:39 -07:00
Alex Mohr
37bfb0d7cf Merge pull request #5159 from brendandburns/coverage
Expand test coverage in master.
2015-03-09 13:26:37 -07:00
Prashanth Balasubramanian
0e484f25b1 Properly reap replication controllers in e2e test 2015-03-09 13:08:12 -07:00
Brendan Burns
7c654a3d1b Expand test coverage in master, kubectl/cmd/util, pkg/registry/resourcequota, and api/rest. 2015-03-07 15:24:39 -08:00
Brendan Burns
f505a33998 Differentiate between server error messages and client error messages in kubectl 2015-03-07 11:39:23 +01:00
Brendan Burns
2700871b04 Merge pull request #5013 from smarterclayton/misc_fixup
Small cleanups to a number of client behaviors
2015-03-06 15:41:34 +01:00
Salvatore Dario Minonne
75f2efb500 moving ParseSelector to Parse for labels only. 2015-03-05 22:39:36 +01:00
Tim Hockin
fdea7252a4 Merge pull request #5001 from brendandburns/api3
Embed VolumeSource in v1beta3 and internal.
2015-03-04 09:50:14 -08:00
Eric Tune
662189ebc2 Merge pull request #4967 from jlowdermilk/kubeconfig
Simplify generating kubeconfig with embeded cert data
2015-03-04 08:38:43 -08:00
Clayton Coleman
17f7dd8d6d Only insert outputversion as a preferred mapping type if no error occurs
Some types will be looked up based on their internal type, which is passed
directly to RESTMapping(). RESTMapping() will search the entire version
list if no external types are passed, but OutputVersionMapper was bypassing
that because the default type was always present.

Change OutputVersionMapper to collapse empty versions, and when no external
type is specified, try with the preferred version and then try without.
2015-03-04 10:48:05 -05:00
Clayton Coleman
a97635e643 Use IsListType instead of checking ItemPtr in resourcebuilder 2015-03-04 10:48:05 -05:00
Clayton Coleman
b799e8cd3a Enumerate all versions when looking for an output conversion
Ensures that all objects can be printed, even if they don't
match output-version (because they are only implemented in
a newer API version).
2015-03-04 10:48:05 -05:00
Brendan Burns
fb90b56bf6 Embed VolumeSource in v1beta3 and internal. 2015-03-04 02:25:40 -08:00
Jeff Lowdermilk
6e704d174d Simplify generating kubeconfig with embeded cert data 2015-03-03 12:18:07 -08:00
Satnam Singh
709476cb5b Merge pull request #4657 from piosz/kubectl
Added new command clusterinfo to kubectl
2015-03-03 11:34:17 -08:00
Piotr Szczesniak
e92192d379 Added new command clusterinfo to kubectl
This is first version of the command. It prints IPs of master and cluster
services. Should be improved once generalized labels are implemented #341.

It requires label kubernet.io/cluster-service=true set for cluster services.

Follow up cl after discussion in #4417.
2015-03-03 20:14:24 +01:00
Prashanth Balasubramanian
1970c2d201 Retry resizing replication controllers in kubectl 2015-03-02 20:26:41 -08:00
Mike Danese
25fac68ec4 validate api version in kubectl --patch and --override. 2015-03-02 13:00:45 -08:00
Dawn Chen
93c0052263 Merge pull request #4952 from rjnagal/kubectl
Add capacity information to 'kubectl describe minion'
2015-03-02 13:09:52 -08:00
Rohit Jnagal
c63f4635a4 Add capacity information to 'kubectl describe minion' 2015-03-02 19:51:30 +00:00
Tim Hockin
ea548b8260 Rename type Port to ContainerPort
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-27 21:05:59 -08:00
Brendan Burns
ceac670eae Add a human readable created since column to kubectl. 2015-02-26 22:16:23 -08:00
Brian Grant
3f69112e02 Merge pull request #4766 from mikedanese/remove-util-merge
Remove pkg/util/merge and replace with evanphx/json-patch
2015-02-25 09:22:01 -08:00
Deyuan Deng
f2698e5905 Merge pull request #4267 from rsokolowski/guestbook-doc
Update guestbook example to use replication controller instead of a naked pod.
2015-02-24 15:57:27 -05:00
Jeff Lowdermilk
be124b3cd0 Merge pull request #4786 from GoogleCloudPlatform/revert-4660-deads-make-default-display-yaml
Revert "fix kubectl config view to respect serialization formats"
2015-02-24 12:18:31 -08:00
Vish Kannan
68c4ae7f0c Merge pull request #4776 from brendandburns/log
Prompt the user to select a container if they don't provide one
2015-02-24 12:10:18 -08:00
Jeff Lowdermilk
8cfe099af1 Revert "fix kubectl config view to respect serialization formats" 2015-02-24 12:06:24 -08:00
rsokolowski
635281ebe3 Update guestbook example to use replication controller. 2015-02-24 20:21:13 +01:00
Rohit Jnagal
a0722376ee Merge pull request #4760 from ddysher/kubectl-endpoint-list
kubectl print endpoint list
2015-02-24 10:11:23 -08:00
Rohit Jnagal
590a62ffe5 Merge pull request #4767 from mikedanese/kind-to-type
Rename {Node,Pod}ConditionKind -> {Node,Pod}ConditionType
2015-02-24 10:10:57 -08:00
Clayton Coleman
76926ec314 Merge pull request #4660 from deads2k/deads-make-default-display-yaml
fix kubectl config view to respect serialization formats
2015-02-24 07:56:57 -08:00
Brendan Burns
eefaafc214 Prompt the user to select a container if they don't provide one
and we can't infer it.
2015-02-24 06:50:22 -08:00
deads2k
6358bf2e30 add example for default view serialization 2015-02-24 08:54:03 -05:00
Mike Danese
5267127af1 api: rename conditionkind -> conditiontype 2015-02-23 22:13:21 -08:00
Mike Danese
88e1ab3cbe replace pkg/util/merge with evanphx/json-patch 2015-02-23 20:55:30 -08:00
Deyuan Deng
515314fb8a Fix kubectl print endpoint list 2015-02-23 21:20:10 -05:00
Daniel Smith
650f6cb826 Revert "Multi-port Endpoints" 2015-02-23 13:53:21 -08:00
Tim Hockin
eed36455a7 Merge pull request #4653 from thockin/secret_fixups
Secrets fixups
2015-02-23 13:49:19 -08:00
Daniel Smith
502f040129 Merge pull request #4712 from thockin/plural_30_endpoints
Multi-port Endpoints
2015-02-23 13:48:37 -08:00
Tim Hockin
607b736a3f Rename volume source types to be consistent. 2015-02-23 12:39:57 -08:00
Rohit Jnagal
28dd73dd8c Merge pull request #4667 from endocode/kbeecher/multi-resource
Adds support for multiple resources to kubectl
2015-02-23 10:29:32 -08:00
Rohit Jnagal
33855c2286 Merge pull request #4696 from kazegusuri/rollingupdate-namespace-aware
use default namespace to do rollingupdate
2015-02-23 10:15:03 -08:00
Rohit Jnagal
efc4db280d Merge pull request #4703 from smarterclayton/describe_portal_on_service
Add PortalIP to Service describe
2015-02-23 10:07:51 -08:00
Victor Marmol
3bfc07fcd3 Merge pull request #4697 from ddysher/node-describe-pod
Add pod name to node describe
2015-02-23 08:21:56 -08:00
Victor Marmol
bc564576cf Merge pull request #4704 from smarterclayton/add_svc_shorthand
'svc' is a much clearer shorthand for "Service" than "se"
2015-02-23 08:21:40 -08:00
Tim Hockin
160f288832 Implement multi-port Endpoints
This is a part of multi-port services.
2015-02-22 09:35:12 -08:00
Tim Hockin
e0fd83096c Rename type Port to ContainerPort
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-21 22:26:38 -08:00
Clayton Coleman
36f19f77ec Add PortalIP to Service describe 2015-02-22 01:07:33 -05:00
Clayton Coleman
a8ba77f23b Remove unused flag helpers 2015-02-21 18:25:55 -05:00
Clayton Coleman
35cc1b0c15 Mark old kubectl/resource.go methods as deprecated
Every command should use resource.Builder instead to have consistent
behavior.
2015-02-21 18:22:07 -05:00
Clayton Coleman
09dcec57fb 'svc' is a much clearer shorthand for "Service" than "se" 2015-02-21 18:17:52 -05:00
Deyuan Deng
aec068f7ef Add pod name to node describe 2015-02-21 12:07:09 -05:00
Masahiro Sano
5c1c84f6c0 use default namespace to do rollingupdate 2015-02-21 20:22:26 +09:00
Brendan Burns
86a0193f51 Merge pull request #4311 from kazegusuri/update_nil_label
kubectl label command crashes when a resource has no labels
2015-02-20 15:52:05 -08:00
Brendan Burns
9829128a75 Merge pull request #4580 from thockin/plural_20_endpoints
Part 2 of plural ports: make endpoints a struct
2015-02-20 15:42:19 -08:00
Eric Paris
d508395828 Change all cobra commands to use the example section
This will output the examples in their own section, rather than as part
of the 'long' synposis.
2015-02-20 16:41:31 -05:00
deads2k
2b25c48b1f fix kubectl config view to respect serialization formats 2015-02-20 14:28:23 -05:00
Satnam Singh
1704319edb Merge pull request #4662 from deads2k/deads-global-local-override-merge
prevent default merging when specifying a specific kubeconfig for config view
2015-02-20 09:51:44 -08:00
Karl Beecher
ecbb91cc08 Adds support for multiple resources to kubectl
You can specify multiple resources by name when using the delete, get
and stop commands.
2015-02-20 16:18:57 +01:00
Andy Goldstein
5bd0e9ab05 Add streaming command execution & port forwarding
Add streaming command execution & port forwarding via HTTP connection
upgrades (currently using SPDY).
2015-02-20 09:57:02 -05:00
deads2k
885d88f274 prevent default merging when specifying a specific kubeconfig for config view 2015-02-20 09:27:34 -05:00
Jordan Liggitt
abb38cf793 Let .kubeconfig populate ca/cert/key data, and basic-auth username/password in client configs 2015-02-19 11:29:42 -05:00
Tim Hockin
ae0062d001 Part 2 of plural ports: make endpoints a struct
Includes conversions for v1b[12] and tests and fixups for call sites.
2015-02-18 19:54:15 -08:00
Paul Morie
fb001ada21 Secret API resource 2015-02-18 11:54:56 -05:00
Brendan Burns
62c4187e78 Fix rolling update if namespace is empty. 2015-02-17 20:16:49 -08:00
Jeff Lowdermilk
b786c116b6 Make kubectl stop take -f flag (for filename|url|directory) 2015-02-17 11:27:47 -08:00