zhengjiajin
611c90c65d
unit test for kubectl config unset
2017-03-25 17:44:57 +08:00
shiywang
917a0b6f1b
fix kubectl config return 0 on error
2017-03-16 08:34:51 +08:00
AdoHe
8ebc6e91f8
print warning when delete current context
2017-03-12 22:29:11 +08:00
juanvallejo
b9d0c76dfd
config set cluster api value
2017-03-02 14:01:25 -05:00
Clayton Coleman
651188d687
generated: bazel
2017-02-23 00:28:32 -05:00
Clayton Coleman
2aa4abb73b
Refactor commands to use new factory method
2017-02-23 00:28:32 -05:00
deads2k
d3da1d102d
deprecate and disconnect --output-version
2017-02-16 13:23:59 -05:00
Dr. Stefan Schimanski
44ea6b3f30
Update generated files
2017-01-29 21:41:45 +01:00
Dr. Stefan Schimanski
79adb99a13
pkg/api: move Semantic equality to k8s.io/apimachinery/pkg/api/equality
2017-01-29 21:41:45 +01:00
Brendan Burns
25ba561702
Extract strings for translation for the kubectl config family.
2017-01-27 20:31:49 -08:00
Dr. Stefan Schimanski
2b8e938128
Update generated files
2017-01-24 20:56:03 +01:00
Dr. Stefan Schimanski
82826ec273
pkg/util/flag: move to k8s.io/apiserver
2017-01-24 20:56:03 +01:00
deads2k
335ef747d6
mechanical
2017-01-23 10:03:55 -05:00
deads2k
cdb2934bbc
remove kubernetes copy of clientcmd types
2017-01-19 07:39:19 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Kubernetes Submit Queue
748e8f6b1c
Merge pull request #39540 from pwittrock/kubectldocs
...
Automatic merge from submit-queue (batch tested with PRs 39673, 39536, 39617, 39540, 39686)
Improve kubectl help with examples.
```release-note
NONE
```
2017-01-10 20:38:19 -08:00
Phillip Wittrock
dc2fffe5d4
Improve kubectl help with examples.
2017-01-06 13:35:43 -08:00
Jeff Grafton
20d221f75c
Enable auto-generating sources rules
2017-01-05 14:14:13 -08:00
Mike Danese
161c391f44
autogenerated
2016-12-29 13:04:10 -08:00
Mike Danese
c87de85347
autoupdate BUILD files
2016-12-12 13:30:07 -08:00
Kubernetes Submit Queue
15bbd11bbf
Merge pull request #35967 from saturnism/patch-2
...
Automatic merge from submit-queue
Append newline to the "deleted context ... " and "deleted cluster" message
**What this PR does / why we need it**: Append newline to the "deleted context ... " message.
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #35966
**Special notes for your reviewer**:
**Release note**:
```release-note
NONE
```
2016-11-18 08:28:12 -08:00
Ray Tsang
846cd2d66a
Append newline to the "deleted context ... " and "deleted cluster ..." message
2016-11-17 12:30:45 -05:00
Klaus Ma
fec8793b5f
Set non-zero exit code on failures for kubectl.
2016-11-12 07:40:54 -05:00
juanvallejo
988e747649
update default run function for sub-commands
...
This patch updates parent commands of sub-commands to exit with a usage
error and exit code 1 on an invalid (non-sub-command) argument.
2016-10-31 10:08:12 -04:00
Mike Danese
3b6a067afc
autogenerated
2016-10-21 17:32:32 -07:00
Fabiano Franz
f6d1ac72a0
Use our own normalizers for cmd examples and descriptions
2016-10-17 11:49:55 -02:00
Harry Zhang
eb81ef6023
Merge string flag into util flag
2016-10-11 23:28:59 -04:00
guangxuli
d8331735a2
clean up the tmp Cert data
...
use function os.Remove to remove file
2016-09-27 23:17:47 +08:00
Kubernetes Submit Queue
bb51525d0d
Merge pull request #31212 from YuPengZTE/printf
...
Automatic merge from submit-queue
It is better to add "\n" in printf
<!-- Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->
**What this PR does / why we need it**:
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
**Special notes for your reviewer**:
**Release note**:
<!-- Steps to write your release note:
1. Use the release-note-* labels to set the release note state (if you have access)
2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`.
-->
```release-note
```
2016-09-10 10:48:47 -07:00
Kubernetes Submit Queue
e24aff0711
Merge pull request #29821 from alexbrand/config-cluster
...
Automatic merge from submit-queue
Add get/delete cluster, delete context to kubectl config
Fixes #29794 by adding `get-clusters`, `delete-cluster` and `delete-context` actions to `kubectl config`.
2016-08-26 11:44:46 -07:00
YuPengZTE
83cdfba0e0
It is better to add "\n" in printf
...
Signed-off-by: YuPengZTE <yu.peng36@zte.com.cn>
2016-08-26 11:58:26 +08:00
Daniel Smith
f1fd638962
fix register.go files up + add test import
2016-08-11 17:06:54 -07:00
Eric Chiang
974473c45f
kubectl config set-crentials: add arguments for auth providers
...
This PR adds `--auth-provider` and `--auth-provider-arg` flags to the
`kubectl config set-credentials` sub-command.
2016-08-04 16:23:40 -07:00
Andrey Kurilin
91cace347d
Fix various typos in kubectl
2016-08-02 19:51:51 +03:00
abrand
20ae1b87cc
Fix error msg in kubectl config get-contexts
2016-08-01 17:27:15 -04:00
abrand
82c700c896
Add get/delete cluster, delete context to kubectl
2016-08-01 17:04:13 -04:00
k8s-merge-robot
af1891ca03
Merge pull request #28531 from dims/fix-issues-28314
...
Automatic merge from submit-queue
Add custom-columns and custom-template-file to --help text
2016-07-13 06:09:25 -07:00
k8s-merge-robot
2da247ffbc
Merge pull request #26977 from joe2far/fix-help-strings
...
Automatic merge from submit-queue
Make kubectl help strings consistent
2016-07-07 00:12:22 -07:00
Davanum Srinivas
09fee66783
Add custom-columns and custom-template-file to --help text
...
Fixes #28314
2016-07-06 09:02:50 -04:00
Angus Salkeld
e0ce987f4e
Add command "kubectl config get-contexts"
...
Note: Context is not a runtime object (doesn't have Kind and Version) so
we can't use the resource_printer
2016-07-05 11:24:00 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
joe2far
25b4341dc7
Make kubectl help strings consistent
2016-06-29 12:50:24 +01: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
CJ Cullen
86293810af
Move ModifyConfig (and some related functions) into the clientcmd pkg.
2016-05-07 18:15:18 -07:00
AdoHe
6958db9c16
fix config view output bug
2016-04-28 23:04:57 -04:00
petervo
4f9d3ace5d
kubectl: Allow []byte config fields to be set by the cli
...
Allows []byte config fields such as 'certificate-authority-data'
to be set using `kubectl config set` commands.
2016-04-22 15:53:24 -07:00
k8s-merge-robot
acf9492cb1
Merge pull request #23660 from goltermann/vetclean
...
Automatic merge from submit-queue
Additional go vet fixes
Mostly:
- pass lock by value
- bad syntax for struct tag value
- example functions not formatted properly
2016-04-12 06:22:16 -07:00
goltermann
696423e044
Vet fixes, mostly pass lock by value errors.
2016-04-06 11:27:40 -07:00
Fabiano Franz
9ddacfa25f
Mark filename flags for completions
2016-04-01 16:14:36 -03:00
k8s-merge-robot
4af38b52b9
Merge pull request #22736 from resouer/fix-util-dev
...
Auto commit by PR queue bot
2016-03-22 19:54:58 -07:00
harry
b0900bf0d4
Refactor diff into sub pkg
2016-03-21 20:21:39 +08:00
harry
bc422f077a
Refactor bool_flag into sub pkg
2016-03-21 14:50:57 +08:00
nikhiljindal
593b78f925
Deprecating --api-version flag
2016-03-11 10:12:44 -08:00
AdoHe
9cc668f7c6
update commented examples just remove $
2016-02-29 09:41:09 -05:00
deads2k
49529a0aa5
clear env var check for unit test
2016-02-05 14:21:49 -05:00
Jeff Lowdermilk
734a8c0602
Change kubectl help/examples to use jsonpath instead of template
2016-01-28 16:10:48 -08:00
k8s-merge-robot
03ecde1277
Merge pull request #17535 from mesosphere/jdef_abspath_breaks_proxies
...
Auto commit by PR queue bot
2016-01-20 21:46:47 -08:00
James DeFelice
75f487f7bf
AbsPath should be compatible with proxy-prefixes:
...
- replace Config.Prefix with .Host and .APIPath
- Request .path promoted to .pathPrefix, .baseURL holds required prefix
2016-01-20 00:31:58 +00:00
k8s-merge-robot
3816c1798f
Merge pull request #19411 from eparis/boolflag-def-val
...
Auto commit by PR queue bot
2016-01-16 06:23:48 -08:00
Eric Paris
aad4b4477d
Make "BoolFlag" booleans not require =true
2016-01-14 09:07:00 -05:00
Tom Benner
52739bc82b
Add kubectl config current-context
2016-01-11 21:54:24 -08:00
deads2k
2ee3dfe415
update testapi to eliminate redundant fields
2015-12-07 15:54:26 -05:00
deads2k
66eecb963a
update more kubectl bits for groupversion
2015-12-07 09:01:44 -05:00
Paul Morie
1cb58baf2f
Refactor map field handling for clientcmd.LoadFromFile
2015-11-14 09:44:31 -05:00
k8s-merge-robot
18c74de9a8
Merge pull request #16986 from pmorie/gce-sc
...
Auto commit by PR queue bot
2015-11-10 11:15:27 -08:00
Daniel Smith
241551e36e
set-gen example
2015-11-03 15:14:51 -08:00
Paul Morie
75b1e6ec44
Fix panic bringing up e2e cluster when kubeconfig is empty
2015-11-03 11:19:36 -05:00
Janet Kuo
4d92268212
Better error handling for output format when "kubectl config view"
2015-11-02 16:25:52 -08:00
Brendan Burns
44a16834d8
Merge pull request #14087 from brendandburns/kubectl
...
Move the default schema cache to the home directory
2015-09-30 11:30:32 -07:00
Brendan Burns
afea127a3e
Move the default schema cache to the home directory
2015-09-28 16:26:48 -07:00
hurf
c4dc056105
Improve message from kubectl config
...
1.use Fprintf instead of Printf
2.output simple success messages
3.lowercase all error messages
2015-09-23 16:10:21 +08:00
tummychow
78ce5da988
Move util.StringSet into its own package
...
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
Chao Xu
9fc79e9d99
refactor testapi and test scripts to prepare for multiple API groups.
2015-09-04 18:01:32 -07:00
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07: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
Kris Rousey
565189f5b8
Correcting all go vet errors
2015-08-11 13:55:37 -07:00
Veres Lajos
9f77e49109
typofix - https://github.com/vlajos/misspell_fixer
2015-08-08 22:31:48 +01:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
deads2k
c5ef83b29b
relativize paths in kubeconfig files
2015-07-30 14:57:38 -04:00
deads2k
55f574c267
switch kubeconfig types to internal map[string]*struct
2015-07-30 14:57:38 -04:00
Mike Danese
aea3403734
make use-context return error when context does not exist
2015-06-30 19:08:55 -07:00
fabianofranz
fae27669aa
Fixes kubectl config set-credentials examples
2015-06-22 17:34:04 -03:00
Mike Danese
401d3c43fd
remove removed flags from usage examples
2015-06-09 12:56:58 -07:00
James DeFelice
4b8995f009
parse apiserver prefix from client config host spec, with unit test
2015-06-04 20:20:19 +00:00
deads2k
19784dbc4f
remove auth-path from kubeconfig
2015-05-11 10:40:23 -04:00
deads2k
6498fc1fda
remove cmd respect for auth-path
2015-05-08 16:33:33 -04: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
nikhiljindal
dcc368c781
Removing more references to v1beta1 from pkg/
2015-04-24 00:45:17 -07:00
Jeff Lowdermilk
fa6ce7b7bf
Add a --raw flag to kubectl config view
...
Defaults to false, unless --flatten is specified. Default behavior
(--raw=false) is that byte data (Client{Certificate,Key}data,
CertificateAuthorityData) is redacted for a more human-readable view.
Useful for manually inspecting files that have embeded data.
2015-04-23 09:19:45 -07:00
deads2k
d24b672aa0
allow multiple changes in kubeconfig modifyconfig
2015-04-17 16:02:36 -04:00
deads2k
de4be5422c
change kubeconfig loading order
2015-04-16 13:05:09 -04:00
deads2k
bac5cbbe82
add flattening and minifying options to config view
2015-04-14 10:23:10 -04:00
Daniel Smith
f591873af7
Add DeepCopy! Also-- optimize conversion for []byte
2015-04-10 13:26:46 -07:00
deads2k
b2e3f2185e
make kubectl config behave more expectedly
2015-04-09 15:43:57 -04:00
Jeff Lowdermilk
ca6f1a1bc7
Merge pull request #6476 from deads2k/deads-fix-kubeconfig-serialization
...
fix kubeconfig serialization
2015-04-09 09:41:26 -07:00
deads2k
6344cf3c3a
refactor to move kubectl.cmd.Factory to kubect/cmd/util
2015-04-07 14:43:50 -04:00
deads2k
06c9dbd32f
add example for default view serialization
2015-04-07 08:07:24 -04:00
deads2k
5c4b6583e4
fix kubectl config view to respect serialization formats
2015-04-07 08:07:24 -04:00
Tamer Tas
6d84838c0f
Refactor kubectl/cmd/config/getConfigFromFileOrDie
2015-04-06 22:50:07 +03:00
deads2k
8555ed3ede
allow any number of kubeconfig files
2015-03-17 08:49:34 -04: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
6e704d174d
Simplify generating kubeconfig with embeded cert data
2015-03-03 12:18:07 -08:00
Jeff Lowdermilk
8cfe099af1
Revert "fix kubectl config view to respect serialization formats"
2015-02-24 12:06:24 -08:00
Clayton Coleman
76926ec314
Merge pull request #4660 from deads2k/deads-make-default-display-yaml
...
fix kubectl config view to respect serialization formats
2015-02-24 07:56:57 -08:00
deads2k
6358bf2e30
add example for default view serialization
2015-02-24 08:54:03 -05:00
Eric Paris
d508395828
Change all cobra commands to use the example section
...
This will output the examples in their own section, rather than as part
of the 'long' synposis.
2015-02-20 16:41:31 -05:00
deads2k
2b25c48b1f
fix kubectl config view to respect serialization formats
2015-02-20 14:28:23 -05:00
deads2k
885d88f274
prevent default merging when specifying a specific kubeconfig for config view
2015-02-20 09:27:34 -05:00
Jordan Liggitt
abb38cf793
Let .kubeconfig populate ca/cert/key data, and basic-auth username/password in client configs
2015-02-19 11:29:42 -05:00
deads2k
941461044b
guard against unexpected type during config manipulation
2015-02-13 13:15:47 -05:00
deads2k
2dcaab75f5
allow dots in config set
2015-02-13 13:11:42 -05:00
Jeff Lowdermilk
5a702ad123
Allow --output formatting of kubectl config view, make merge default
2015-02-05 10:44:16 -08:00
deads2k
affa85fab0
add flag to manage $KUBECONFIG files
2015-02-03 16:12:02 -05:00
fabianofranz
de14a6ff08
Fix typos
2015-02-02 14:25:00 -02:00
deads2k
05bc508a13
make all kubectl config set-* easier to use
2015-01-26 15:16:54 -05:00
Andrew Seidl
6dee1d7fa4
Fix typos in user-facing strings
2015-01-18 01:32:34 -06:00
deads2k
b51a717f6e
add kubectl config
2015-01-13 16:19:57 -05:00