Di Xu
1c715d51c4
some code change
...
fix wrong required flags
disable the addition of [flags] to the usage, use customized useline
fix function rename
2017-12-25 16:23:38 +08:00
ymqytw
b776df8a20
move i18n to kubectl/util
2017-08-16 12:27:36 -07:00
Clayton Coleman
0daee3ad22
Use the UpgradeAwareProxy in `kubectl proxy`
...
Requires a separate transport that is guaranteed not to be HTTP/2 for
exec/attach/portforward, because otherwise the Go client attempts to
upgrade us to HTTP/2 first.
2017-08-04 12:48:21 -04:00
Clayton Coleman
fa009f3914
Ensure proxy server code is logically distinct
2017-08-04 12:48:17 -04:00
Roberto J Rojas
e24384643e
kubectl: fixes issues #45736 and #45737
...
Adds long description from #45902
2017-05-22 18:57:11 -04:00
Suyog Barve
f3a7ac4311
allow kubectl proxy to handle specified reject methods and default to allow all
2017-04-29 21:10:52 -05:00
Kubernetes Submit Queue
0afab578d8
Merge pull request #44952 from CaoShuFeng/proxy_reject_path
...
Automatic merge from submit-queue
Log warning when invalid dir passed to kubectl proxy --www
**Release note**:
```
Log warning when invalid directory is passed to `kubectl proxy --www`
```
2017-04-28 14:00:20 -07:00
Cao Shufeng
3cfaf3049b
Log warning when invalid dir passed to kubectl proxy --www
2017-04-26 17:53:54 +08:00
bruceauyeung
ab4029c85b
Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn>
...
rename variables to make sure that they conform to golang variable name convention
2017-04-25 15:07:01 +08:00
Brendan Burns
79f51923d3
Extract a bunch more strings from kubectl
2017-04-06 20:12:50 -07:00
Brendan Burns
d9c4a289a6
Extract strings for translation.
2017-02-06 22:32:01 -08:00
Denis Andrejew
be404a074f
fix typo in `kubectl proxy` command line help
...
fixed port from 8011 to 8001 (the default) because in that particular line no specific port is specified and thus the default is going to be used.
2016-11-29 11:54:48 +00:00
Fabiano Franz
f6d1ac72a0
Use our own normalizers for cmd examples and descriptions
2016-10-17 11:49:55 -02:00
AdoHe
b2280a646a
update various commands to adapt the new Factory interface
2016-10-13 21:01:14 +08:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Michael Rubin
760b04e294
Use dedent for the kubectl commands
...
The one side effect is that for the "kubectl help" commands a newline
is prepended to output, which will alter the yaml output.
Here we use dedent to format the code to match the output.
hack/update-generated-docs.sh has been run and the affected files have
been added.
Note: for describe.go we added a period to the end of an output message.
2016-06-26 22:51:14 -07:00
AdoHe
9cc668f7c6
update commented examples just remove $
2016-02-29 09:41:09 -05:00
Janet Kuo
f47c2be539
Change kubectl proxy --api-prefix default to allow /apis/
2015-10-14 15:49:52 -07:00
Dr. Stefan Schimanski
3650899b29
Add --address to kubectl proxy
2015-09-30 15:53:52 +02:00
Peeyush Agarwal
05e069d038
Use bash comments in kubectl examples
...
Comments in kubectl examples should use bash comments, not Go comments.
So, replaces // by # for example strings.
2015-08-12 19:56:23 +00:00
Stef Walter
f6da3fdbe1
kubectl: Add proxy --unix-socket=/file/path option
...
Proxies on a TCP port are accessible outside the current security
context (eg: uid). Add support for having the proxy listen on a
unix socket, which has permissions applied to it.
We make sure the socket starts its life only accessible by the
current user using Umask.
This is useful for applications like Cockpit and other tools which
want the help of kubectl to handle authentication, configuration and
transport security, but also want to not make that accessible to
all users on a multi-user system.
2015-08-06 11:56:47 +02:00
Mike Danese
17defc7383
run gofmt on everything we touched
2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
Jeff Lowdermilk
f71a662dc6
Make `kubectl proxy` support picking a random port
2015-07-27 09:56:33 -07:00
Brendan Burns
4aeee94603
Add some XSRF protection to kubectl proxy.
2015-06-10 20:55:33 -07:00
Kris Rousey
6e83eb2636
Updating docs/ to v1
2015-06-05 14:09:49 -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
Jeff Lowdermilk
75314718eb
update/fix kubectl proxy example in help string
2015-05-28 13:59:39 -07: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
deads2k
6344cf3c3a
refactor to move kubectl.cmd.Factory to kubect/cmd/util
2015-04-07 14:43:50 -04:00
Tamer Tas
b39e31d8a3
Remove cmd from kubectl/cmd/factory
2015-03-18 14:23:14 +02:00
Jeff Lowdermilk
a5746c9a0e
Fix md generation for kubectl docs
...
Display usage string, not long help, as code, remove angle brackets from
output (.md interprets as tags and hides).
2015-03-11 16:42:40 -07:00
Jeff Lowdermilk
cd7d78b696
Make kubectl commands return errors and centralize exit handling
2015-03-10 10:19:43 -07:00
Brendan Burns
f505a33998
Differentiate between server error messages and client error messages in kubectl
2015-03-07 11:39:23 +01:00
MikeJeffrey
e5459c8802
Clean up kubectl help for auto-gen'd kubectl.md
2015-02-10 12:02:05 -08:00
Jimmi Dyson
f4a9b62d06
Configurable API prefix for kubectl proxy
2015-02-10 13:58:46 +00:00
Jeff Lowdermilk
d46ae5d841
Refactor kubectl/cmd helpers into pkg/kubectl/cmd/util
...
Allows helpers to be used by config commands.
2015-02-05 09:39:42 -08:00
Jimmi Dyson
e2baf049c0
kubectl proxy: make static prefix configurable
2015-02-04 15:57:21 +00:00
Jeff Lowdermlk
6e98ce34ca
Fix kubectl proxy
...
Port flag was being ignored. Fixed now.
2015-01-28 15:07:00 -08:00
Clayton Coleman
8a4f225941
Make expandResourceShortcuts part of RESTMapper on client
2015-01-09 11:59:11 -05:00
deads2k
480635bb72
Revert "Revert "add kubeconfig types""
...
This reverts commit 02dbad7094
.
2015-01-08 09:42:30 -05:00
Brendan Burns
02dbad7094
Revert "add kubeconfig types"
2015-01-07 12:39:37 -08:00
deads2k
0e688dc271
add kubeconfig file
2015-01-07 13:09:10 -05:00
deads2k
2dbfb80349
add utility for binding flags and building api server clients
2014-11-26 07:50:51 -05:00
Michal Fojtik
0c76c44972
Make getKubeConfig public to allow it for external consumption
2014-11-11 16:02:39 +01:00
fabianofranz
c43637b73c
Extract several kubectl helpers from cmd/cmd.go
2014-11-10 15:09:32 -02:00
alex
fb2b15a797
Replace custom proxy with httputil.ReverseProxy for kubecfg/kubectl.
...
Fixes #1149 - kubecfg proxy "411 Length Required" error on POST/PUT.
2014-10-21 18:52:18 +01:00
Sam Ghods
4b220f8b0a
kubectl: kubecfg rewrite for better modularity and improved UX
2014-10-15 15:29:54 -07:00