Commit Graph

422 Commits (1845ca88fc1937850f01b0134f6b769f49aa21af)

Author SHA1 Message Date
Brian Grant 785740a0f8 Merge pull request #9164 from brendandburns/fix
Fix a bug in kubectl exec handling.
2015-06-02 20:24:55 -07:00
Brendan Burns 911e3e9594 Fix a bug in kubectl exec handling. 2015-06-02 19:45:51 -07:00
Filip Grzadkowski 98115facfd Revert "Gracefully delete pods from the Kubelet" 2015-06-02 23:40:05 +02:00
Brian Grant 6508c04f24 Merge pull request #9112 from kargakis/expose-nits
expose: Better error formatting and generic flag message
2015-06-02 13:10:52 -07:00
kargakis 0fba4820f5 expose: Better error formatting and generic flag message
Re error formatting:
$ osc expose svc frontend --port=5432 --generator='service/v2' --name=test

Before:
error: generator %!!(MISSING)q(<nil>) not found.
see 'osc expose -h' for help.

Now:
error: generator "services/v2" not found.
see 'openshift cli expose -h' for help.
2015-06-02 13:06:21 +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
Eric Tune 1f526a5f89 Merge pull request #9027 from jlowdermilk/kubectl-deprecate-minion
Stop supporting the minion alias for nodes in kubectl
2015-06-01 10:26:51 -07: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
Rohit Jnagal 99c9c54c05 Merge pull request #8983 from jlowdermilk/update-patch
Disable --patch for kubectl update
2015-05-29 16:30:16 -07:00
Jeff Lowdermilk 0c44be833d Stop supporting the minion alias for nodes in kubectl 2015-05-29 15:40:47 -07:00
Rohit Jnagal 11268baa92 Merge pull request #8804 from kargakis/expose-default-name-param
expose: Use separate parameters for default and custom name
2015-05-29 11:21:09 -07:00
Jeff Lowdermilk 90a5b8c845 Disable --patch for kubectl update 2015-05-29 09:31:49 -07:00
Anastasis Andronidis 9cb0eaf01a Fixed get's help message 2015-05-29 11:31:16 +02:00
Tim Hockin d355154181 Merge pull request #8556 from kargakis/label-parsing-fix
label: Invalidate empty or invalid value labels
2015-05-28 15:54:14 -07:00
Tim Hockin 081ab3abac Merge pull request #8853 from caesarxuchao/HostToNodeName
update PodSpec.Host to PodSpec.NodeName
2015-05-28 15:50:12 -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
Jeff Lowdermilk 75314718eb update/fix kubectl proxy example in help string 2015-05-28 13:59:39 -07:00
kargakis 6c85040cef expose: Use separate parameters for default and custom name 2015-05-28 11:03:16 +02:00
kargakis fb63ab63bb label: Invalidate empty or invalid value labels 2015-05-28 10:47:36 +02:00
Tim Hockin eab1ceccd4 Merge pull request #8628 from jlowdermilk/delete-not-found
Delete fails on notfound errors.
2015-05-27 16:26:41 -07:00
Tim Hockin ffabf17ed4 Merge pull request #8604 from brendandburns/kubectl
Make exec more consistent with the rest of the kubectl commands.
2015-05-27 16:23:59 -07:00
Jeff Lowdermilk 3cf4d9b2e6 Delete fails on notfound errors.
If deleting multiple resources, command will continue on error and
report not found resources at the end.
2015-05-27 16:02:54 -07:00
Brendan Burns 2ec4b409e1 Make exec more consistent with the rest of the kubectl commands. 2015-05-27 15:47:32 -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
Saad Ali ee82d469c6 Merge pull request #8679 from jlowdermilk/rolling-update-stdin
Make rolling-update actually parse filenames from stdin
2015-05-26 18:55:12 -07:00
Cesar Wong cb872e9243 Rename 'kubectl log' to 'kubectl logs' 2015-05-26 08:28:16 -04:00
Justin Santa Barbara 973c2e4819 Add Type to ServiceSpec: ClusterIP or LoadBalancer 2015-05-22 19:14:21 -04:00
Justin Santa Barbara 3884d5fc59 Add LoadBalancer status to ServiceStatus
This will replace publicIPs
2015-05-22 18:27:05 -04:00
Dawn Chen cc6a31354e Merge pull request #8169 from kargakis/expose-use-resource-builder
expose: Use resource builder
2015-05-22 12:29:24 -07:00
Dawn Chen 8a14296145 Merge pull request #7024 from kazegusuri/all_namespace
Allow kubectl to handle all namespace
2015-05-22 10:15:30 -07:00
Clayton Coleman 3f66321e13 Merge pull request #8618 from kargakis/resize-enable-slash-syntax
resize: Enable resource type/name syntax
2015-05-22 13:05:25 -04:00
Jeff Lowdermilk e1936d57f8 Make rolling-update actually parse filenames from stdin 2015-05-22 09:44:00 -07:00
Masahiro Sano 8ce64ec69e add --all-namespaces flag to request across all namespaces 2015-05-22 23:25:12 +09:00
Chao Xu bda5e4376e in docs, update "minions" to "nodes" 2015-05-21 09:59:40 -07:00
Dawn Chen fdb44a9ad2 Merge pull request #8602 from caesarxuchao/rC-to-rc
in docs, update replicationController to replicationcontroller
2015-05-21 09:49:35 -07:00
Dawn Chen 49bf1ec0a1 Merge pull request #8573 from deads2k/fix-check-err
tolerate fatals without newlines
2015-05-21 09:34:58 -07:00
kargakis 6424a2bc63 resize: Enable resource type/name syntax
Also don't allow more than one objects in commands it makes sense
2015-05-21 17:39:01 +02:00
Chao Xu 5b8b5a0844 in docs, update replicationController to replicationcontroller 2015-05-20 17:31:15 -07:00
kargakis 30958f892d expose: Use resource builder
Plus:
* Rename flag --service-name to --name
* Some refactoring
2015-05-20 23:55:07 +02:00
kargakis 99655b342f Reduce reaper poll interval and wait while resizing
When reaping a replication controller that handles an arbitrary amount of replicas, missing an interval means that `kubectl stop|delete` have to wait 3 more seconds to finish which seems more expensive from a user pov than a GET per 100ms.

Also I think `kubectl resize` should wait for all replicas to spin up before exiting. Feels more safe to know that your replication controller status is up to date.
2015-05-20 20:49:29 +02:00
deads2k cd817aebd8 tolerate fatals without newlines 2015-05-20 13:15:49 -04:00
Chao Xu 013130f150 update the docs for kubectl-run-container to v1beta3 2015-05-18 13:29:24 -07: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
Jeff Lowdermilk a5bc6bdaf3 Merge pull request #8166 from kargakis/labels-for-object
expose: Re-use labels in case none was specified
2015-05-15 11:35:52 -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
Brendan Burns ea3852ec69 Fix a bug where IgnoreErrors was inverted.
Also make an error message a little more verbose.
2015-05-13 16:26:01 +01:00
Nikhil Jindal c2fecff3d5 Merge pull request #8067 from piosz/kubectl
Added label kubernetes.io/name to cluster services
2015-05-12 17:09:22 -07:00