Commit Graph

658 Commits (52e5df7ebbc47bbfc0da5f42d10a24d0da72f882)

Author SHA1 Message Date
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 ce3a6a666d Show terminating pods in get/describe 2015-06-01 19:24:01 -04: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
derekwaynecarr b69f1ff5bd Name is a required parameter for kubectl run, default-name is not 2015-06-01 14:05:05 -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 233ce46b83 Merge pull request #8923 from caesarxuchao/TerminationToTerminated
Update ContainerState.Termination to ContainerState.Terminated
2015-05-29 14:51:09 -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
Chao Xu 2f6e5e2e08 Update ContainerState.Termination to ContainerState.Terminated in pkg/api/types.go and pkg/api/v1/types.go 2015-05-28 17:18:24 -07:00
Tim Hockin 4318ca5a8b Rename 'portal IP' to 'cluster IP' most everywhere
This covers obvious transforms, but not --portal_net, $PORTAL_NET and
similar.
2015-05-28 16:10:44 -07: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
Tim Hockin 0dab399b6a Merge pull request #8948 from jlowdermilk/proxy-help
update/fix kubectl proxy example in help string
2015-05-28 15:29:11 -07:00
Tim Hockin 32859c3954 Merge pull request #8778 from kargakis/show-pod-number
Show pods number when describing services
2015-05-28 14:59:02 -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
BC Broussard 581f4613c8 Fix NodePort in kubectl describe service 2015-05-28 12:09:31 -07:00
kargakis 93669a6bb5 Show pods number when describing services 2015-05-28 11:24:47 +02: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
Wojciech Tyczynski ff8c772fe0 Increase timeout for deleting RC in e2e tests. 2015-05-25 11:51:11 +02:00
Justin Santa Barbara 9255770068 Fix a few occurences of old language (e.g. visibility -> ServiceType) 2015-05-22 19:14:28 -04:00
Justin Santa Barbara 7346cc8042 Add ServiceType = NodePort; wire everything up 2015-05-22 19:14:28 -04:00
Justin Santa Barbara e49ad95462 Mark PublicIPs as deprecated & rename to DeprecatedPublicIPs in the latest API
We need to keep them in the API so that we can round-trip between versions.
2015-05-22 19:14:27 -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
Clayton Coleman dcbe815825 Merge pull request #8671 from kargakis/bump-timeout-back
bump timeout back to previous time
2015-05-22 12:57:55 -04:00
Jeff Lowdermilk e1936d57f8 Make rolling-update actually parse filenames from stdin 2015-05-22 09:44:00 -07:00
kargakis d2d1e5bf48 bump timeout back to previous time 2015-05-22 17:05:24 +02:00
Masahiro Sano c2514a7524 print namespace with name in single column if withNamespace specified 2015-05-22 23:25:12 +09:00
Masahiro Sano 8ce64ec69e add --all-namespaces flag to request across all namespaces 2015-05-22 23:25:12 +09:00
markturansky bcd3c5a80f fixed PV describe 2015-05-22 08:40:43 -04:00
Chao Xu bda5e4376e in docs, update "minions" to "nodes" 2015-05-21 09:59:40 -07:00