Commit Graph

893 Commits

Author SHA1 Message Date
Dawn Chen
0a369fead6 Include PodStatus.Message and PodStatus.Reason when kubectl describe pods 2015-06-24 23:07:20 -07:00
Maxwell Forbes
e44f61993b Merge pull request #9304 from jsdir/master
Show resource limits with describe
2015-06-24 16:44:53 -07:00
Daniel Smith
689a3ee7a2 Make UI work through kubectl proxy (again)
Fixes #10115.
2015-06-24 13:54:14 -07:00
Daniel Smith
ddbe4c914f Fix proxy rewriting 2015-06-24 13:54:14 -07:00
akramer
5f44175dc4 Fixing spacing in documentation comments
There was some ugly spacing in the 'kubectl exec' documentation comments, I've fixed it and wrapped it to 80 chars.
2015-06-24 13:50:30 -07:00
Maxwell Forbes
060cb43785 Merge pull request #10134 from brendandburns/gongysh2004-nodeport
Fix the warning when you create an externalized service
2015-06-24 13:21:27 -07:00
Jeff Lowdermilk
838ddba1d9 Merge pull request #10188 from fabianofranz/fix_kubectl_set_credentials_example
Fixes wrong "kubectl config set-credentials" examples
2015-06-23 17:11:40 -07:00
Jeff Lowdermilk
5e25827919 Merge pull request #10204 from caesarxuchao/pr/9754/head
Continue on #9754, Improvements to the guestbook README, switch to .yaml files
2015-06-23 09:44:06 -07:00
Chao Xu
59b654c996 fix tests for 22f1b07858 2015-06-22 17:10:09 -07:00
fabianofranz
fae27669aa Fixes kubectl config set-credentials examples 2015-06-22 17:34:04 -03:00
Jeff Lowdermilk
d0fc0d884d Merge pull request #9876 from andronat/9631_labelcolumn
Printing resource labels as columns
2015-06-22 11:55:26 -07:00
Anastasis Andronidis
b06ef70057 Print resource labels as columns 2015-06-22 00:44:51 +02:00
Anastasis Andronidis
101739a6be Added Reason in PodStatus 2015-06-21 17:05:34 +02:00
Satnam Singh
b964f3c911 Merge pull request #9739 from bprashanth/sno
Fix kubectl stop rc with sequence numbers
2015-06-19 15:30:26 -07:00
Satnam Singh
b05bd0c59f Merge pull request #10105 from caesarxuchao/fix-9287
exclude the port number when checking a request in "kubectl proxy"
2015-06-19 15:16:38 -07:00
Brendan Burns
f0ff1927f1 Fixup port printing. 2015-06-19 15:10:22 -07:00
gong yong sheng
3a598eba0e Use NodePort instead Port, firewalls install firewall. 2015-06-19 14:48:43 -07:00
Prashanth Balasubramanian
9ed9bd1c4f Add a generation number to the object meta of all objects, and status of rcs 2015-06-19 14:32:08 -07:00
Eric Paris
f40fce4598 kubectl log->logs in bash completions
The kubectl log command switched to logs. But the bash completions code
was still looking for a singular
2015-06-19 16:00:58 -04:00
Chao Xu
9449a61b1a exclude the port number when checking a request in "kubectl proxy" 2015-06-19 11:00:01 -07:00
Satnam Singh
a3ffb05004 Merge pull request #9972 from smarterclayton/split_versioned_object
Split AsVersionedObjects so it can be reused
2015-06-19 08:04:23 -07:00
Chao Xu
5d89dda9a8 respect --api-version in the output of "kubectl cluster-info" 2015-06-18 16:51:10 -07:00
Satnam Singh
424d09fb97 Merge pull request #9907 from RichieEscarez/9404_controller
Changed "controller" to "replication controller"
2015-06-18 14:33:49 -07:00
Mike Danese
3de11e2fa8 reenable patch serverside using strategic-merge-patch 2015-06-18 12:06:46 -07:00
Satnam Singh
b86ed2356c Merge pull request #10028 from andronat/small_wrong_printing_in_tests
Changed printing in a test file
2015-06-18 11:04:07 -07:00
Satnam Singh
3505fb48a3 Merge pull request #9803 from satnam6502/execessive
Improve error output of kubectl update
2015-06-18 10:29:27 -07:00
Anastasis Andronidis
64d984ae2e changed printing in a test file 2015-06-18 18:34:07 +02:00
Piotr Szczesniak
1ba909098e Merge pull request #9936 from piosz/kubectl_v1
Migrated kubectl cluster-info to v1.
2015-06-18 11:19:29 +02:00
Satnam Singh
d69e0b5eb6 Improve error output of kubectl update 2015-06-17 15:55:03 -07:00
Clayton Coleman
f3aa8f4196 Pod IP should be described with Pods 2015-06-17 16:45:11 -04:00
Clayton Coleman
1707c5d28c Split AsVersionedObjects so it can be reused 2015-06-17 16:33:53 -04:00
RichieEscarez
eb44b3c830 Qualified all references to "controller" so that references to "replication controller" are clear. fixes #9404
Also ran hacks/run-gendocs.sh
2015-06-17 08:48:59 -07:00
Piotr Szczesniak
2b19c002cb Migrated kubectl cluster-info to v1.
Addresses #7018

Also fixed the case when kubernetes.io/name label is not defined
(another fix for #9875)
2015-06-17 15:21:05 +02: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
Brendan Burns
1dd18673ec Merge pull request #9762 from jlowdermilk/negotiate-api-version
kubectl negotiates api version to use based on client,server supported versions
2015-06-16 11:18:08 -07:00
Jeff Lowdermilk
f31191224b kubectl negotiates apiversion to use based on client,server supported 2015-06-16 10:12:39 -07:00
Fabio Yeon
72082624e5 Merge pull request #9522 from brendandburns/friction
Add a better message if the user doesn't specify a resource type.
2015-06-15 19:53:54 -07:00
Fabio Yeon
0453f9ea9d Merge pull request #9705 from hurf/label4describe
Add label support for kubectl describe
2015-06-15 19:33:09 -07:00
Brendan Burns
c6a910c0b8 Merge pull request #9650 from hurf/podns_describe_node
display pod namespace while describe node
2015-06-12 15:59:46 -07:00
Abhi Shah
86b6150fb0 Merge pull request #9287 from brendandburns/kubectl
Add some XSRF protection to kubectl proxy.
2015-06-12 13:51:08 -07:00
Victor HU
eb473676ce display pod namespace while describe node 2015-06-12 15:30:11 +08:00
hurf
fa0efe3927 Add label support for kubectl describe
Add -l option to kubectl describe command, allow it return
multiple results filtered by label selector.
2015-06-12 15:08:28 +08:00
Abhi Shah
87d0208d83 Merge pull request #9504 from derekwaynecarr/describe_ns
Add namespace describer
2015-06-11 10:26:03 -07:00
Brendan Burns
4aeee94603 Add some XSRF protection to kubectl proxy. 2015-06-10 20:55:33 -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
Brendan Burns
b259c873b7 Add a better message if the user doesn't specify a resource type. 2015-06-09 15:04:56 -07:00
Mike Danese
401d3c43fd remove removed flags from usage examples 2015-06-09 12:56:58 -07:00
derekwaynecarr
5b005fa30b Add namespace describer 2015-06-09 15:52:44 -04:00
krousey
687e866d80 Merge pull request #9418 from mikedanese/kubectl-version-err
kubectl should error if versionless yaml is passed to resource builder
2015-06-09 11:55:48 -07: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
Mike Danese
627b2f9a24 kubectl should use UnstructuredJSONScheme to decode version and kind, as it throws errors if either are missing] 2015-06-08 11:51:37 -07:00
krousey
8ce921ed33 Merge pull request #9357 from mikedanese/kubectl-kind-err
improve kubectl error message when an object with no kind is passed to the resource builder
2015-06-08 11:34:43 -07:00
krousey
49a6b629f8 Merge pull request #9171 from jdef/parse_prefix_from_server
parse apiserver prefix from client config host spec
2015-06-08 10:17:41 -07:00
Anastasis Andronidis
bf87f0ec68 Print multiple validation errors 2015-06-08 14:06:20 +02:00
Mike Danese
7b7d8ccb77 print various errors which is useful when ContinueOnError is set on the Resource struct 2015-06-06 15:47:01 -07:00
Quinton Hoole
6ff203e9da Merge pull request #9280 from caesarxuchao/make-v1-preferred
Make v1 the preferred api version
2015-06-05 15:23:14 -07:00
Mike Danese
c9bd90a5df Merge pull request #9032 from andronat/fix_7843
Decrease columns and refactor get pods layout
2015-06-05 15:06:53 -07:00
Kris Rousey
6e83eb2636 Updating docs/ to v1 2015-06-05 14:09:49 -07:00
Chao Xu
e6ffa5bf67 make the meaning of a test in get_test.go clearer 2015-06-05 13:59:30 -07:00
Anastasis Andronidis
68d9313d69 Refactor get pods layout 2015-06-05 22:28:17 +02:00
Quinton Hoole
2c54be808e Merge pull request #9302 from brendandburns/fix
Add messages to indicate that opening an external firewall may be necessary.
2015-06-05 12:37:19 -07:00
Quinton Hoole
8b01ecb53a Merge pull request #9024 from markturansky/recyc_controllers
PersistentVolumeRecycler controller
2015-06-05 11:39:08 -07:00
Brendan Burns
380790a8e2 Add messages to indicate that opening an external firewall may be necessary. 2015-06-04 22:31:52 -07:00
Jason Sommer
cea5aaa9d1 Show resource limits with describe
Signed-off-by: Jason Sommer <jsdirv@gmail.com>
2015-06-04 23:49:28 -05:00
Chao Xu
8a4dffdcee fix 2015-06-04 17:19:41 -07:00
Chao Xu
5a54a0118d fix 2015-06-04 16:35:24 -07:00
Quinton Hoole
fc80fd6860 Merge pull request #9233 from lavalamp/no-ro-nonbreaking
Allow kubectl proxy to proxy everything
2015-06-04 16:22:07 -07:00
Chao Xu
1605fc7347 fix unit tests 2015-06-04 15:09:47 -07:00
James DeFelice
4b8995f009 parse apiserver prefix from client config host spec, with unit test 2015-06-04 20:20:19 +00:00
markturansky
2829fadfad PV Recycling API 2015-06-04 15:39:34 -04: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
Brian Grant
e7788771d6 Merge pull request #9030 from brendandburns/kubectl
Add a custom timeout flag for stop/delete.
2015-06-03 21:14:50 -07:00
Chao Xu
ca72165b20 remove most references to api.PreV1Beta3 2015-06-03 20:09:03 -07:00
Daniel Smith
1bab36f772 Fix 'kubectl proxy' to allow the /metrics page to be proxied, without breaking the previous proxy behavior 2015-06-03 18:31:45 -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
Brendan Burns
ab0c9b8e1e Add a custom timeout flag for stop/delete. Also try to be smarter about setting the timeout. 2015-06-03 11:21:30 -07:00
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
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
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
8fe43514ea Merge pull request #8591 from GoogleCloudPlatform/revert-8564-revert-8404-messageEmptyKind
Revert "Revert "Enhance error message from kubectl when 'kind' is emp…
2015-05-21 09:47:34 -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
Clayton Coleman
0a28e50511 Revert "Revert "Enhance error message from kubectl when 'kind' is empty"" 2015-05-20 17:32:23 -04: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
Clayton Coleman
633c56f8c0 Revert "Enhance error message from kubectl when 'kind' is empty" 2015-05-20 10:32:56 -04:00
feihujiang
6c8a1cdb17 Enhance error message from kubectl when 'kind' is empty
Enhance error message from kubectl when 'kind' is empty

Enhance error message
2015-05-20 15:23:47 +08:00
Nikhil Jindal
fadc76422a Merge pull request #8437 from caesarxuchao/kubectl_run-container-doc
update the docs for kubectl-run-container to v1beta3
2015-05-18 16:41:14 -07:00
Chao Xu
013130f150 update the docs for kubectl-run-container to v1beta3 2015-05-18 13:29:24 -07:00
Prashanth Balasubramanian
4200033c0a Add a simple master benchmark and a wrapper to run it. 2015-05-15 17:30:17 -07:00
Prashanth B
6144b49139 Merge pull request #8336 from brendandburns/kubectl
Add a test for status message generation.
2015-05-15 17:06:21 -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
Brendan Burns
a197b24fb7 Add a test for status message generation. Fix a bug in reason message handling. 2015-05-15 20:45:16 +01: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
Victor Marmol
75c9228ea2 Merge pull request #8249 from kargakis/stop-fix
stop: Check for error when resizing rcs
2015-05-14 12:56:14 -07:00
kargakis
1c5309cc16 stop: Check for error when resizing rcs 2015-05-14 16:49:43 +02:00
Clayton Coleman
aec4196741 Merge pull request #8173 from brendandburns/kubectl
Fix a bug where IgnoreErrors was inverted.
2015-05-14 10:18:12 -04:00
markturansky
0191574f7e Bi-directional bind between pv.Spec.ClaimRef and pvc.Spec.VolumeName 2015-05-13 14:05:21 -04: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
Nikhil Jindal
d75bd8bf2a Merge pull request #7101 from liggitt/service_account
ServiceAccounts
2015-05-12 10:23:41 -07:00
Derek Carr
c1158fa696 Merge pull request #7969 from smarterclayton/rest_fixes
Fixes to apiserver for subresources and naming
2015-05-12 10:57:34 -04:00
Derek Carr
a11819e4a6 Merge pull request #8057 from kargakis/rework-resize
resize: Use Resize method
2015-05-12 10:17:31 -04:00
Piotr Szczesniak
962f10ee58 Merge pull request #7771 from piosz/load_generator
Implemented first version of load test
2015-05-12 09:24:19 +02:00
Victor Marmol
43029345f9 Merge pull request #7973 from dchen1107/podstatus
Add kubectl log --previous support to view last terminated container log
2015-05-11 17:08:45 -07: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
Jordan Liggitt
53d55f4192 Add ServiceAccount API type, client 2015-05-11 17:18:05 -04:00
Jordan Liggitt
6e1e7dbb24 Add ServiceAccountToken SecretType 2015-05-11 17:18:05 -04:00
Clayton Coleman
964bc8afda Verify namespace is not set on root objects 2015-05-11 15:51:04 -04:00
kargakis
69a96f3ea1 resize: Use Resize method 2015-05-11 21:12:49 +02:00
Piotr Szczesniak
12e44ff8a9 Added label kubernetes.io/name to cluster services
The label specifies service name which is displayed in kubectl cluster-info
2015-05-11 19:35:53 +02:00
Nikhil Jindal
2cc8696425 Merge pull request #7919 from brendandburns/kubectl
Fix validation by moving it into the resource builder.
2015-05-11 10:20:14 -07:00
Dawn Chen
ecaf0874b2 Introduce --previous option to kubectl log 2015-05-11 10:14:22 -07:00
Nikhil Jindal
9c0fdc7afd Merge pull request #8039 from nak3/delete-status
Delete status from displayable resources
2015-05-11 10:11:42 -07:00
Eric Paris
630aed6db1 Merge pull request #8016 from nak3/delete-empty-first-column-lines
Use template to get first column in __kubectl_parse_get()
2015-05-11 10:01:13 -05:00
Piotr Szczesniak
aa116e2033 Implemented first version of load test
As for now it creates a bunch of Replication Controllers and play with them

Partially addresses #3139
2015-05-11 16:40:59 +02:00
deads2k
19784dbc4f remove auth-path from kubeconfig 2015-05-11 10:40:23 -04:00
Clayton Coleman
2e3c40b5c2 Merge pull request #7774 from kargakis/load-object-for-more-safety
expose: Load input object for increased safety
2015-05-11 10:16:20 -04:00
Kenjiro Nakayama
c13f457885 Use template to get first column in __kubectl_parse_get() 2015-05-10 23:32:24 +09:00
Kenjiro Nakayama
5a0acecc54 Delete status from displayable resources 2015-05-10 19:28:02 +09:00
Shawn Smith
555ff0d1bc Use Fprintf 2015-05-10 13:14:05 +09:00
Brendan Burns
7f11585972 Fix validation by moving it into the resource builder.
Also always print an error for unknown field.
2015-05-08 14:00:33 -07:00
deads2k
6498fc1fda remove cmd respect for auth-path 2015-05-08 16:33:33 -04:00
Eric Paris
d28660ae49 Remove useless bash conditional
bash just returns the last return code, why are we testing and then
doing the same?
2015-05-08 12:22:07 -04:00
kargakis
93dc839b19 Load input object for increased safety 2015-05-08 03:17:54 +02:00
Abhi Shah
7b1e9adb47 Merge pull request #7620 from brendandburns/fix
Support recovery from in the middle of a rename.
2015-05-07 16:04:26 -07:00
Cesar Wong
d954c31b22 Update Exec and Portforward client to use pod subresource 2015-05-07 14:25:14 -04:00
Brendan Burns
63cbc715dd Support recovery from in the middle of a rename. 2015-05-07 10:39:15 -07:00
Brendan Burns
c9e33e197d Add support for --rollback. 2015-05-06 10:21:35 -07:00
Jeff Lowdermilk
c1ae69da14 Merge pull request #7705 from bprashanth/rollingupdate_2
Reliable updates in rollingupdate
2015-05-05 09:23:25 -07:00
kargakis
c9e79a3c28 Setup generators in factory 2015-05-05 12:00:13 +02:00
Prashanth Balasubramanian
faa65cbd20 More reliable updates in rollingupdate 2015-05-04 15:29:30 -07:00
Robert Bailey
93a781ff66 Merge pull request #7722 from eparis/minor-bash-fixes
Minor bash update found by shellcheck.net
2015-05-04 13:03:26 -07:00
Victor Marmol
90de73ac7a Merge pull request #7536 from rjnagal/node
Add --hostport to run-container.
2015-05-04 12:55:12 -07:00
Clayton Coleman
dd8184247e Merge pull request #7629 from caesarxuchao/new-fix-7260-7491
Change the order the different versions of API are registered
2015-05-04 15:01:59 -04:00
Clayton Coleman
82b939760e Merge pull request #7699 from kargakis/make-expose-generic
expose: Create objects in a generic way
2015-05-04 15:01:37 -04:00
Eric Paris
87613eee87 Minor bash update found by shellcheck.net 2015-05-04 14:52:50 -04:00
Wojciech Tyczynski
72f9e940a8 Merge pull request #7694 from nak3/bash-comp-add-label
Add kubectl_label to custom functions in bash completion
2015-05-04 15:11:41 +02:00
kargakis
fa42901798 expose: Create objects in a generic way 2015-05-04 14:21:24 +02:00