Commit Graph

79 Commits (044e0a92aa373e28a8bae891c0abe075c4e211bf)

Author SHA1 Message Date
nikhiljindal c849730116 Fixing the error message 2015-07-16 23:33:16 -07:00
nikhiljindal 496f30a92f Introduce a new service generator that leaves service port unnamed 2015-07-16 20:40:40 -07:00
Zach Loafman 5dbe90f0ba Merge pull request #10493 from krousey/namespace
Unify command line namespace resolution
2015-07-01 19:33:44 -07:00
nikhiljindal 274792d7bb Stop exposing v1beta3 by default 2015-07-01 14:38:02 -07:00
Kris Rousey ffa764d60b Unify command line namespace resolution
This change allows the namespace in kubeconfig to be overridden by
specifying the namespace in the spec file. If namespace is explicitly
provided in the command line flags and the spec file has a different
namespace, this will cause an error.
2015-07-01 12:59:17 -07:00
Janet Kuo 682734bcc7 Implement 'kubectl get ... -o wide' 2015-06-30 14:06:47 -07:00
Alex Robinson 68bbf6c129 Merge pull request #10447 from feihujiang/helpfulErrorForUnsupportedVersion
Provide more helpful error when using unsupported api version
2015-06-29 15:00:58 -07:00
Alex Robinson 10a0dc9aae Merge pull request #9928 from jlowdermilk/version-negotiate-tests
Unittest for #9762
2015-06-29 13:34:13 -07:00
feihujiang 878a72228f Provide more helpful error when using unsupported api version 2015-06-29 15:32:54 +08:00
feihujiang b41b53122a Add source in “error from server” message when using kubectl 2015-06-25 14:20:09 +08:00
Anastasis Andronidis b06ef70057 Print resource labels as columns 2015-06-22 00:44:51 +02:00
Satnam Singh d69e0b5eb6 Improve error output of kubectl update 2015-06-17 15:55:03 -07:00
Jeff Lowdermilk 57a6355807 Unittest for #9762
Started looking at refactoring of the kubectl Factory, which
caused me to experience all 5 stages of grief. There are some options
for improving, but it probably warrants a proposal with some discussion/
feedback. In the meantime this tests `NegotiateVersion` in isolation.
2015-06-16 20:04:51 -07:00
Jeff Lowdermilk f31191224b kubectl negotiates apiversion to use based on client,server supported 2015-06-16 10:12:39 -07:00
Anastasis Andronidis 62c766d58d Add tests 2015-06-10 16:09:43 +02:00
Anastasis Andronidis b7c485ee9a make CheckErr testable 2015-06-10 16:09:42 +02:00
krousey ff474e5d7e Merge pull request #9376 from feihujiang/createValidateCrash
kubetcl create --validate crashes when no apiVersion or kind is provided
2015-06-09 09:59:42 -07:00
feihujiang 37abe11f8a kubetcl create --validate crashes when no apiVersion or kind is provided 2015-06-09 10:38:43 +08:00
Anastasis Andronidis bf87f0ec68 Print multiple validation errors 2015-06-08 14:06:20 +02:00
Chao Xu 080da97e1c fix a comment 2015-06-04 10:35:10 -07:00
Brian Grant 656fa7bea1 Merge pull request #9225 from caesarxuchao/add-v1-tests-general
Add v1 tests
2015-06-03 22:18:21 -07:00
Brian Grant c92b4255b3 Merge pull request #9217 from caesarxuchao/add-v1-tests-to-pkg/kubectl/cmd
add v1 tests to kubectl/cmd/*
2015-06-03 22:16:44 -07:00
Chao Xu 6b81c064ed change v1beta3 to v1 in test cases 2015-06-03 17:50:22 -07:00
Chao Xu 8885025d25 add v1 tests to tests in kubectl/cmd/* 2015-06-03 13:57:54 -07:00
Daniel Smith 67f53d2eff Make kubectl work inside a container in k8s 2015-06-03 12:48:07 -07:00
Filip Grzadkowski 98115facfd Revert "Gracefully delete pods from the Kubelet" 2015-06-02 23:40:05 +02:00
Clayton Coleman 72ee028cab Gracefully delete pods from the Kubelet
This commit wires together the graceful delete option for pods
on the Kubelet.  When a pod is deleted on the API server, a
grace period is calculated that is based on the
Pod.Spec.TerminationGracePeriodInSeconds, the user's provided grace
period, or a default.  The grace period can only shrink once set.
The value provided by the user (or the default) is set onto metadata
as DeletionGracePeriod.

When the Kubelet sees a pod with DeletionTimestamp set, it uses the
value of ObjectMeta.GracePeriodSeconds as the grace period
sent to Docker.  When updating status, if the pod has DeletionTimestamp
set and all containers are terminated, the Kubelet will update the
status one last time and then invoke Delete(pod, grace: 0) to
clean up the pod immediately.
2015-06-01 19:23:59 -04:00
Kris f4e2c738f6 Delete deprecated API versions
pkg/service:

There were a couple of references here just as a reminder to change the
behavior of findPort. As of v1beta3, TargetPort was always defaulted, so
we could remove findDefaultPort and related tests.

pkg/apiserver:

The tests were using versioned API codecs for some of their encoding
tests. Necessary API types had to be written and registered with the
fake versioned codecs.

pkg/kubectl:

Some tests were converted to current versions where it made sense.
2015-05-29 17:17:35 -07:00
Jeff Lowdermilk 90a5b8c845 Disable --patch for kubectl update 2015-05-29 09:31:49 -07:00
Chao Xu 9c1153322e update PodSpec.Host to PodSpec.NodeName in /pkg/api/types.go and /pkg/api/v1beta3/types.go 2015-05-28 14:10:06 -07:00
Anastasis Andronidis 9e3a540940 rename resize to scale 2015-05-27 19:08:06 +02:00
Anastasis Andronidis d4a47bdb9e rename run-container to run in kubectl 2015-05-27 19:07:17 +02:00
Anastasis Andronidis 5eae2378d6 Warn for every _ flag user or cmd defined
also renames all global _ flags to -
2015-05-27 11:23:52 +02:00
Justin Santa Barbara 973c2e4819 Add Type to ServiceSpec: ClusterIP or LoadBalancer 2015-05-22 19:14:21 -04:00
Masahiro Sano 8ce64ec69e add --all-namespaces flag to request across all namespaces 2015-05-22 23:25:12 +09:00
deads2k cd817aebd8 tolerate fatals without newlines 2015-05-20 13:15:49 -04:00
Jeff Lowdermilk 46bd6f298a Merge pull request #8237 from smarterclayton/continue_on_error
Make ContinueOnError actually work
2015-05-15 12:57:29 -07:00
Clayton Coleman a47716e66d Make ContinueOnError actually work
In resource.Builder ContinueOnError() should actually do so.

Reorganized util.CheckErr() to make it display bulk errors more
effectively and be more reusable. Clarified that CheckErr is not
specific to kubectl in Godoc. Changed the "Error: " prefix to
"error: " to more closely match Unix conventions.
2015-05-15 14:26:14 -04:00
kargakis ac652d16e6 expose: Re-use labels in case none was specified 2015-05-15 11:54:41 +02:00
Jeff Lowdermilk ac87ed6516 Merge pull request #8064 from deads2k/death-to-auth-path
eliminate auth-path
2015-05-11 15:41:41 -07:00
deads2k 19784dbc4f remove auth-path from kubeconfig 2015-05-11 10:40:23 -04:00
kargakis 93dc839b19 Load input object for increased safety 2015-05-08 03:17:54 +02:00
kargakis c9e79a3c28 Setup generators in factory 2015-05-05 12:00:13 +02:00
Eric Paris 6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Eric Paris a17a26643b Update kube to support new pflag/cobra 2015-04-29 11:26:30 -04:00
kargakis e6ee32a6c6 Fix getting services in expose cmd 2015-04-28 14:45:05 +03:00
Tim Hockin 6694eff020 Use pflags word separators to make - and _ equiv. 2015-04-27 15:10:52 -07:00
Jeff Lowdermilk 97e4549170 Merge pull request #6680 from deads2k/deads-change-kubeconfig-chain
change kubeconfig loading chain
2015-04-16 13:57:31 -07:00
deads2k de4be5422c change kubeconfig loading order 2015-04-16 13:05:09 -04:00
Dan Mace bd7b719944 Make default impls private 2015-04-15 16:50:08 -04:00