hurf
35cac3c4e7
Deprecate kubectl stop command
...
Added deprecation warning for stop.
2015-07-29 17:19:18 +08:00
Janet Kuo
0e42d0699a
Add '-o name' to mutations
2015-07-27 14:06:53 -07:00
Jeff Lowdermilk
f71a662dc6
Make `kubectl proxy` support picking a random port
2015-07-27 09:56:33 -07:00
Mike Danese
c0acfbcd4b
Merge pull request #11421 from nikhiljindal/exposeServcPort
...
Updating kubectl expose to extract ports from the service being cloned
2015-07-24 17:16:31 -07:00
nikhiljindal
242910e57c
kubectl expose should extract ports from service
2015-07-24 15:17:48 -07:00
Clayton Coleman
0b5410f30f
Exec should be easier to reuse as a command
...
We have a few use cases where we want to have shortcut commands
for common behavior. In these cases, we want to default commands
with a simpler syntax, so being able to reuse Exec from code but
not share the same arguments is useful.
In this case, we're introducing 'rsh' which tries to run exec -itp --
bash.
2015-07-24 18:14:28 -04:00
Mike Danese
52282b1a36
Merge pull request #11300 from mwielgus/kubectl_replace_tempfile
...
Dump stdin to a temporary file in kubectl replace --force
2015-07-24 11:23:25 -07:00
Mike Danese
15fcb84e0d
Merge pull request #10743 from hurf/get_help_fix
...
Fix hits in help strings of kubectl get command
2015-07-24 11:09:48 -07:00
Mike Danese
ae1c8e55ef
Merge pull request #11737 from thockin/cleanup-remove-v1beta3
...
Remove v1beta3
2015-07-24 10:25:56 -07:00
Mike Danese
823e5d45c3
Merge pull request #10841 from liggitt/delete_all
...
Default --ignore-not-found to true for delete --all
2015-07-24 09:26:35 -07:00
Dan Mace
d044208b38
Rolling updater enhancements
...
Add an UpdateAcceptor interface to the rolling updater which supports
injecting code to validate the first replica during scale-up. If the
replica is not accepted, the deployment fails. This facilitates canary
checking so that many broken replicas aren't rolled out during an update.
Make the rolling update scale amount configurable as a percent of the replica
count; a negative value changes the scale direction to down/up to support
in-place deployments.
2015-07-24 08:53:50 -04:00
Jordan Liggitt
85fd52126d
Default --ignore-not-found to true for delete --all
2015-07-23 18:08:15 -07:00
Tim Hockin
1c3233a1d4
Remove v1beta3
2015-07-23 17:21:27 -07:00
Marcin Wielgus
866bd7b4e5
Dump stdin to a temporary file in kubectl replace --force
2015-07-23 15:22:23 +02:00
nikhiljindal
c849730116
Fixing the error message
2015-07-16 23:33:16 -07:00
Brian Grant
5540917094
Merge pull request #11366 from davidopp/doc1
...
Move docs/services-firewalls.md into docs/user-guide/ and make small
2015-07-16 22:48:13 -07:00
Brian Grant
cb58e8e43b
Merge pull request #11350 from thockin/munge-check-kubectl-dash-f
...
Add munger to verify kubectl -f targets
2015-07-16 22:46:37 -07:00
nikhiljindal
496f30a92f
Introduce a new service generator that leaves service port unnamed
2015-07-16 20:40:40 -07:00
Tim Hockin
f7512d007b
Add munger to verify kubectl -f targets, fix docs
2015-07-16 15:39:45 -07:00
David Oppenheimer
fd2c3695e3
Move docs/services-firewalls.md into docs/user-guide/ and make small
...
wording changes to api.md
2015-07-16 13:21:14 -07:00
Eric Tune
2e848ed707
Merge pull request #10585 from caesarxuchao/fix-alias
...
Add boundary check before accessing os.Args[1]
2015-07-15 15:00:09 -07:00
Tim Hockin
fe89298c09
Fix load-balancer firewall messages
2015-07-14 21:07:46 -07:00
hurf
4f9c486308
Fix hits in help strings of kubectl get command
...
Removed duplicated 'nodes (no)', added 'secret' for resource type.
Use actual long resource name to avoid confusion.
2015-07-15 09:43:51 +08:00
hurf
6dd8a1dfa4
Add a better help message for kubectl describe
...
When resource type isn't given in the command, print the possible
resource types. Also added the resource type description in help
strings.
2015-07-14 16:22:42 +08:00
Tim Hockin
2d8c9d6c5e
Merge pull request #10913 from feihujiang/fixSmallNitsForPortForwardCommand
...
Fix small nits for kubectl port-forward command
2015-07-13 12:55:34 -07:00
Brendan Burns
7620041ed4
Fix a small typo.
2015-07-13 09:38:40 -07:00
Zach Loafman
ca21fca74a
Fix TestRunExposeService
...
No longer emits "you will also need to explicitly open a firewall"
after #10974 .
Fixes #11105
2015-07-13 06:48:58 -07:00
Brendan Burns
a8f02e5472
Automatically open a firewall when creating a GCE load balancer.
2015-07-10 14:35:29 -07:00
Chao Xu
48679d21d2
add boundary check before access os.Args
2015-07-09 16:15:42 -07:00
Joe Beda
0426ab3290
Update list of resources for 'kubectl get' help output.
2015-07-09 08:59:32 -07:00
Joe Beda
c15953662e
Fix up alignment of columns w/ namespaces.
...
Fixes #10842
All issues for types that use "extra lines" for extended information. Two issues fixed: (1) When namespaces are listed an extra column isn't inserted for extra lines and (2) trailing tabs aren't inserted when label columns are specified.
This code should probably move to a more explicit model of putting data into "cells".
The test for this hits https://github.com/golang/go/issues/6416 and so I introduced a "LineDelimiter" writer filter to make white space more visible.
2015-07-09 08:59:32 -07:00
Janet Kuo
524e70d501
Make "age" of pod print example static
2015-07-08 11:26:13 -07:00
feihujiang
eca0ae08c5
Fix small nits for kubectl port-forward command
2015-07-08 15:53:53 +08:00
Jeff Lowdermilk
229cbd472d
Update kubectl describe help to document prefix matching behavior
2015-07-07 16:57:37 -07:00
Brendan Burns
988aa6fdf6
Move things into a 'kube-system' namespace.
2015-07-06 15:08:23 -07:00
Yu-Ju Hong
4d86127098
Merge pull request #10644 from erictune/noslash
...
NAMESPACE in own column: kubectl --all-namespaces
2015-07-06 11:40:02 -07:00
Yu-Ju Hong
04018f9ca2
Merge pull request #10619 from andronat/rename_REASON
...
Rename REASON column to STATUS for kubectl get
2015-07-06 11:39:16 -07:00
Yu-Ju Hong
d5ae8192fc
Merge pull request #10654 from nikhiljindal/getToPostClient
...
Updating kubectl to use POST instead of GET for port-forward and exec
2015-07-06 10:54:27 -07:00
Eric Tune
88fa471d06
NAMESPACE in own column: kubectl --all-namespaces
2015-07-02 22:23:52 -07:00
Nikhil Jindal
91fc591e5e
Merge pull request #10598 from feihujiang/nameInsteadOfID
...
Using NAME to replace ID in help string
2015-07-02 15:26:24 -07:00
Nikhil Jindal
09a57fadfb
Merge pull request #10532 from feihujiang/outputErrorWhenUsingDescribeForNonexist
...
Output error when using kubectl describe for a nonexisting resource
2015-07-02 11:07:19 -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
b38d8b18a5
Updating kubectl to use POST instead of GET
2015-07-01 17:07:24 -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
Zach Loafman
9e23ad7102
Merge pull request #10510 from mikedanese/kubectl-context-err
...
make use-context return error when context does not exist
2015-07-01 12:01:24 -07:00
Anastasis Andronidis
7480077f2b
Rename REASON column to STATUS for kubectl get
...
Fixes #10560
2015-07-01 17:38:27 +02:00
Zach Loafman
b42cac69cb
Merge pull request #10519 from JanetKuo/kubectl-c
...
Enable -c for kubectl logs container arg
2015-07-01 08:36:38 -07:00
feihujiang
70036069ee
Using NAME to replace ID in help string
2015-07-01 15:35:08 +08:00
Mike Danese
aea3403734
make use-context return error when context does not exist
2015-06-30 19:08:55 -07:00
Janet Kuo
682734bcc7
Implement 'kubectl get ... -o wide'
2015-06-30 14:06:47 -07:00
Janet Kuo
62b488359f
Enable -c for kubectl logs container arg
2015-06-30 13:25:54 -07:00
feihujiang
55db7ec369
Output error when using kubectl describe for a nonexisting resource
2015-06-30 14:12:58 +08:00
Chao Xu
7f89a29aad
add "kubectl patch". It will replace "kubectl udpate --patch" in the future
2015-06-29 16:36:45 -07:00
Alex Robinson
764d34d363
Merge pull request #10468 from caesarxuchao/add-cmd-replace
...
Add command "kubectl replace"
2015-06-29 16:06:33 -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
Chao Xu
9b3d42c090
Add command "kubectl replace". "kubectl update" is still supported as an alias.
...
"kubectl replace --patch" is NOT supported. It's moved to "kubectl patch" as a separate command in another commit.
2015-06-29 12:14:24 -07:00
feihujiang
878a72228f
Provide more helpful error when using unsupported api version
2015-06-29 15:32:54 +08:00
Robert Bailey
f9db614f95
Merge pull request #10234 from mikedanese/rolling-update-weird
...
Detect if replicas have been defaulted in rolling-update and use old replica count
2015-06-26 12:54:35 -07:00
Robert Bailey
508f7f1697
Merge pull request #10358 from caesarxuchao/add-force-update
...
Add --force to `kubectl update`
2015-06-26 10:49:04 -07:00
Chao Xu
ef5de91fd7
add "--force" flag to "kubectl update";
...
update relevant tests
2015-06-25 17:16:20 -07:00
Maxwell Forbes
03121c2536
Merge pull request #10252 from akramer/patch-1
...
Fixing spacing in documentation comments
2015-06-25 15:09:41 -07:00
Mike Danese
0c8f71aa0b
make rolling update check if the replication controller has been defaulted
2015-06-25 12:29:21 -07:00
Maxwell Forbes
d90895adfd
Merge pull request #10221 from feihujiang/addSourceForErrorFromServerMessage
...
Add source in “error from server” message when using kubectl
2015-06-25 10:56:46 -07:00
feihujiang
b41b53122a
Add source in “error from server” message when using kubectl
2015-06-25 14:20:09 +08: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
Anastasis Andronidis
b06ef70057
Print resource labels as columns
2015-06-22 00:44:51 +02: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
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
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
Satnam Singh
d69e0b5eb6
Improve error output of kubectl update
2015-06-17 15:55:03 -07: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
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
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
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
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
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
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
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
Brendan Burns
380790a8e2
Add messages to indicate that opening an external firewall may be necessary.
2015-06-04 22:31:52 -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
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
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
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
Derek Carr
a11819e4a6
Merge pull request #8057 from kargakis/rework-resize
...
resize: Use Resize method
2015-05-12 10:17:31 -04: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
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
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
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
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
Kenjiro Nakayama
c3485ca85c
Add kubectl_label to custom functions of bash completion
2015-05-04 20:57:56 +09:00
Filip Grzadkowski
be2b2466f3
Merge pull request #7076 from eparis/bash-5-kubectl-required-flags
...
annotate required flags for bash_completions
2015-05-04 13:26:11 +02:00
Rohit Jnagal
9cbfb0c3f9
Add --hostport to run-container.
...
This helps as a starting point to show a single-machine container.
Its easier to use this as an example to show where host port mapping breaks and move on to
services.
2015-05-01 23:45:03 +00:00
Chao Xu
4787c66214
Register the API versions to the DefaultRESTMapper in the order of preferred versions first.
...
This makes kubectl sends requests to URLs in the format defined by the latest API version.
2015-05-01 15:14:15 -07:00