Wojciech Tyczynski
7403564366
Remove Codec from ContentConfig.
2016-07-08 13:53:09 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
k8s-merge-robot
32eccd413f
Merge pull request #25562 from gtank/certificates-api-v9
...
Automatic merge from submit-queue
TLS bootstrap API group (alpha)
This PR only covers the new types and related client/storage code- the vast majority of the line count is codegen. The implementation differs slightly from the current proposal document based on discussions in design thread (#20439 ). The controller logic and kubelet support mentioned in the proposal are forthcoming in separate requests.
I submit that #18762 ("Creating a new API group is really hard") is, if anything, understating it. I've tried to structure the commits to illustrate the process.
@mikedanese @erictune @smarterclayton @deads2k
```release-note-experimental
An alpha implementation of the the TLS bootstrap API described in docs/proposals/kubelet-tls-bootstrap.md.
```
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel )]()
2016-06-28 13:25:22 -07:00
George Tankersley
34506faf97
kubectl: add certificates group
2016-06-28 12:05:40 -07:00
k8s-merge-robot
e32b871637
Merge pull request #26771 from kargakis/use-pod-namespacer
...
Automatic merge from submit-queue
kubectl: fix sort logic for logs
@kubernetes/kubectl
2016-06-27 21:33:59 -07:00
k8s-merge-robot
81c8fe37e6
Merge pull request #26598 from janetkuo/3rd-party-error-logs
...
Automatic merge from submit-queue
Add more information when throwing errors in discoverying 3rd party resources
#26425
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel )]()
2016-06-25 09:25:58 -07:00
Piotr Szczesniak
1818b5b3fc
Added hpa/v1 generator to kubectl autoscale
2016-06-10 09:26:35 +02:00
Michail Kargakis
886014b1a3
kubectl: fix sort logic for logs
...
Use a separate sorting algorithm for kubectl logs that sorts from older
to newer instead of the other way that ActivePods is doing.
2016-06-07 10:52:42 +02:00
k8s-merge-robot
421c16addd
Merge pull request #25894 from brendandburns/thirdparty-watch
...
Automatic merge from submit-queue
Fix third party
Fixes https://github.com/kubernetes/kubernetes/issues/25421
Fixes https://github.com/kubernetes/kubernetes/issues/25422
@AdoHe @sjenning @caesarxuchao @lavalamp
@kubernetes/sig-api-machinery
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel )]()
2016-06-04 15:42:41 -07:00
Brendan Burns
328a8392b1
Fix third party
2016-06-02 10:24:14 -07:00
Janet Kuo
4615d1e24c
Add more information when throwing errors in discoverying 3rd party resources
2016-06-01 13:18:50 -07:00
k8s-merge-robot
0a6a52b19d
Merge pull request #26597 from caesarxuchao/fix-26425
...
Automatic merge from submit-queue
retry GetThirdPartyGroupVersions
GetThirdPartyGroupVersions() may return a "NotFound" error if a thirdparty group is deleted in the interim between the group-discovery and the resource-discovery. This is causing e2e flakes in all tests that run kubectl, because test/e2e/thirdparty.go is creating/deleting thirdparty groups.
Fix #26425
The e2e flakes will have the following pattern:
1. the test is calling kubectl
2. error message is `Error from server: the server could not find the requested resource`
3. in the apiserver log, you should see `GET /apis/company.com/v1: (518.944µs) 404 [[kubectl/v1.3.0 (linux/amd64) kubernetes/ae28564] 104.154.110.118:46043]`
For detail see [here](https://github.com/kubernetes/kubernetes/issues/26425#issuecomment-222844523 )
cc @janetkuo @brendanburns
2016-06-01 00:02:43 -07:00
Chao Xu
7cea7ccd8d
retry GetThirdPartyGroupVersions
2016-05-31 17:14:24 -07:00
Piotr Szczesniak
22dc21d703
Removed metrics api group
2016-05-31 09:48:39 +02:00
Michail Kargakis
3cbb6b0104
kubectl: move printObjectSpecificMessage in factory
2016-05-28 18:33:58 +02:00
k8s-merge-robot
e543bd6452
Merge pull request #26007 from smarterclayton/watch_opt
...
Automatic merge from submit-queue
Additional optimizations to the encode/decode paths
Builds on top of #25983 with a number of other optimizations.
2016-05-28 06:27:00 -07:00
Eric Chiang
323e804f39
add rbac for tests and kubectl
2016-05-25 14:25:56 -07:00
k8s-merge-robot
39f0c6ba25
Merge pull request #24719 from bprashanth/kubectl_tls
...
Automatic merge from submit-queue
Add a kubectl create secret tls command
A somewhat hasty implementation that enables progress along: https://github.com/kubernetes/kubernetes/issues/20176#issuecomment-177409516 , https://github.com/kubernetes/kubernetes/issues/24669 , https://github.com/kubernetes/kubernetes/issues/20176#issuecomment-198142836 if associated parties have spare cycles. @kubernetes/kubectl
<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/24719 )
<!-- Reviewable:end -->
2016-05-22 09:40:42 -07:00
Clayton Coleman
c6961d6fd6
Remove runtime.Typer, reduce to ObjectKinds(1) (3)
...
Remove the unnecessary variants, which avoids allocations in several
core paths.
2016-05-21 23:55:42 -04:00
Janet Kuo
4332472bde
Add 'kubectl set image'
2016-05-18 21:23:17 -07:00
Prashanth Balasubramanian
daa8e29c5b
Add a kubectl create secret tls command
2016-05-16 22:38:56 -07:00
jianhuiz
6f8fc60d06
describe for clusters
2016-05-16 16:34:08 -07:00
jianhuiz
586eea0691
add get/create/delete for clusters
2016-05-16 16:34:08 -07:00
k8s-merge-robot
b8f1682695
Merge pull request #24090 from AdoHe/expose_rc
...
Automatic merge from submit-queue
fix expose multi protocols issue
Please refer #23882 for more detail. @bprashanth @bgrant0607 ptal.
<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/24090 )
<!-- Reviewable:end -->
2016-05-14 07:15:58 -07:00
Matt Liggett
f5e8d41431
Finish implementing policy API.
...
Registry implementation and addition to the master.
2016-05-13 17:27:58 -07:00
k8s-merge-robot
0c2641d4ea
Merge pull request #19946 from janetkuo/kubectl-rollout-status
...
Automatic merge from submit-queue
Add `kubectl rollout status`
## Pull Request Guidelines
1. Please read our [contributor guidelines](https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md ).
1. See our [developer guide](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md ).
1. Follow the instructions for [labeling and writing a release note for this PR](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes ) in the block below.
```release-note
Implement `kubectl rollout status` that can be used to watch a deployment's rollout status
```
Addresses #17168 ; depends on #19882 (the "Add kubectl rollout" commit).
See [proposal](https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/deploy.md#deployment-version ).
cc @bgrant0607 @nikhiljindal @ironcladlou @kargakis @kubernetes/sig-config @kubernetes/kubectl @madhusudancs
<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/19946 )
<!-- Reviewable:end -->
2016-05-12 06:28:49 -07:00
AdoHe
ad97cddb3e
fix expose multi protocols issue
2016-05-12 00:07:07 -04:00
k8s-merge-robot
ac50a70992
Merge pull request #25459 from errm/misspell
...
Automatic merge from submit-queue
Corrects some misspellings in comments
This should help to make
https://goreportcard.com/report/k8s.io/kubernetes#misspell
look a little nicer.
2016-05-11 19:18:30 -07:00
Ed Robinson
afdbad078a
Corrects some misspellings in comments
...
This should help to make
https://goreportcard.com/report/k8s.io/kubernetes#misspell
look a little nicer.
2016-05-11 08:16:13 +01:00
Janet Kuo
67becccda0
Add kubectl rollout status
2016-05-10 13:49:39 -07:00
Phillip Wittrock
680b2b9d09
Kubectl support for validating nested objects with different ApiGroups (e.g. Lists containing objects in different api groups). Closes #24089
2016-05-09 19:38:40 -07:00
k8s-merge-robot
601e09852c
Merge pull request #23590 from kargakis/timeout-logs-attach
...
Automatic merge from submit-queue
kubectl: more sophisticated pod selection for logs and attach
Trying to get the logs or attach to an object other than a pod
will poll forever if that object has no replicas. This commit adds
a 20s timeout for polling.
@kubernetes/kubectl @deads2k @fabianofranz
2016-05-08 10:51:00 -07:00
Michail Kargakis
a25088fe15
kubectl: more sophisticated pod selection for logs and attach
2016-05-02 15:56:36 +02:00
Michail Kargakis
dbc1e356d3
kubectl: remove dead factory code
2016-05-02 11:03:44 +02:00
Clayton Coleman
fdb110c859
Fix the rest of the code
2016-04-29 17:12:10 -04:00
Maciej Szulik
a3b4447305
Move internal types of job from pkg/apis/extensions to pkg/apis/batch
2016-04-25 11:03:54 +02:00
Prashanth Balasubramanian
0ac10c6cc2
PetSet type, apps apigroup
2016-04-20 18:49:31 -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
Brendan Burns
be6c5b332b
Add third party support to kubectl
2016-03-31 10:53:32 -07:00
k8s-merge-robot
76369c42be
Merge pull request #22939 from resouer/util-sub-dir
...
Auto commit by PR queue bot
2016-03-23 03:34:33 -07:00
Kris
4d404ded1a
Moving adapters to their own packages
2016-03-14 14:22:34 -07:00
harry
f19d59cf35
Move flag into sub pkg
2016-03-14 21:30:38 +08:00
Jordan Liggitt
d008283942
Tolerate multiple registered versions in a single group
2016-03-12 12:49:41 -05:00
Madhusudan.C.S
dfc62b56cc
Enable kubectl autoscale for replica sets.
...
Also add some tests for it.
2016-03-10 15:05:54 -08:00
Maciej Szulik
de83631768
Added job/v1 generator to kubectl run
2016-03-10 19:56:57 +01:00
k8s-merge-robot
f046d6c83e
Merge pull request #22420 from AdoHe/kubectl_swagger_cache
...
Auto commit by PR queue bot
2016-03-07 15:18:56 -08:00
AdoHe
893e36c61d
fix kubectl swagger cache bug
2016-03-04 18:59:40 -05:00
deads2k
f8f45df578
make kubectl logs work for replication controllers
2016-03-03 11:17:50 -05:00
k8s-merge-robot
739285b146
Merge pull request #21265 from stevekuznetsov/skuznets/new-sa
...
Auto commit by PR queue bot
2016-03-01 01:14:06 -08:00
Kris
e664ef922f
Move restclient to its own package
2016-02-29 12:05:13 -08:00
k8s-merge-robot
e089e841b1
Merge pull request #21593 from fabianofranz/split_bind_flags
...
Auto commit by PR queue bot
2016-02-27 16:10:19 -08:00
Steve Kuznetsov
e5b696ee43
added 'kubectl create sa' to create serviceaccounts
2016-02-26 10:27:37 -05:00
deads2k
2b84d58b6d
add a PriorityRESTMapper that can choose particular group/version of a resource
2016-02-25 07:35:23 -05:00
k8s-merge-robot
95354490c1
Merge pull request #21318 from kargakis/record-command-factory-method-tweak
...
Auto commit by PR queue bot
2016-02-22 08:11:57 -08:00
Fabiano Franz
59ea2b1e59
Split factory#BindFlags
2016-02-19 20:41:16 -02:00
Eric Tune
175addf2a3
Implemented Batch client
2016-02-19 09:20:56 -08:00
Paul Morie
51a9c2c9ba
Add kubectl create configmap
2016-02-18 21:24:21 -05:00
Michail Kargakis
55f402c5a6
kubectl: use the factory properly for recording commands
2016-02-17 12:16:19 +01:00
Piotr Szczesniak
d2f11521cb
Implemented Autoscaling client
2016-02-15 21:39:00 +01:00
k8s-merge-robot
ee33ed2cf5
Merge pull request #20981 from madhusudancs/labelselector-error-string-fix
...
Auto commit by PR queue bot
2016-02-14 03:14:46 -08:00
Madhusudan.C.S
293793cf0d
Allow replica set to be exposed as a service and add kubectl command tests for replica sets.
2016-02-10 16:20:08 -08:00
Madhusudan.C.S
525d7a7732
Fix the label selector to selector conversion error string.
...
The message as it is framed right now does not make any sense for the
end users of our system. It might even lead to confusion. So this is
attempt to make the error message less confusing.
2016-02-10 09:43:30 -08:00
Madhusudan.C.S
ed7ad6dcf3
Make deployments work.
2016-02-08 21:27:49 -08:00
Madhusudan.C.S
518f08aa7c
Move Deployments to ReplicaSets and switch the Deployment selector to the new LabelSelector.
...
Update the Deployments' API types, defaulting code, conversions, helpers
and validation to use ReplicaSets instead of ReplicationControllers and
LabelSelector instead of map[string]string for selectors.
Also update the Deployment controller, registry, kubectl subcommands,
client listers package and e2e tests to use ReplicaSets and
LabelSelector for Deployments.
2016-02-08 21:27:38 -08:00
Clayton Coleman
664d25ba5a
Take GVK in SwaggerSchema()
...
This is needed for the legacy OpenShift API group (oapi) which is also
group: "", version: "v1", but needs to return a different swagger
schema. Will in the future be replaced by group defaulting.
2016-02-06 21:24:33 -05:00
Daniel Smith
f973af25fa
Merge pull request #20747 from caesarxuchao/internalclientset
...
rename release_1_2 to internalclientset
2016-02-05 15:49:08 -08:00
Chao Xu
184440f8ef
rename release_1_2 to internalclientset
2016-02-05 14:02:28 -08:00
AdoHe
714d12cf72
kubectl add show-labels flag to make it more readable
2016-02-04 02:08:44 -05:00
k8s-merge-robot
16aa40cc33
Merge pull request #20035 from janetkuo/record-command
...
Auto commit by PR queue bot
2016-02-03 20:19:08 -08:00
k8s-merge-robot
65ebe19164
Merge pull request #20584 from caesarxuchao/release_1_2
...
Auto commit by PR queue bot
2016-02-03 19:46:27 -08:00
Chao Xu
f9f5736b01
grep sed
2016-02-03 13:06:07 -08:00
Janet Kuo
5088d0e147
Record kubectl commands
2016-02-03 10:19:05 -08:00
Janet Kuo
442c75045a
Add kubectl rollout undo
2016-02-02 14:20:01 -08:00
Michail Kargakis
21c2b836ed
kubectl: add rollout pause/resume subcommands
2016-02-02 10:33:55 +01:00
Janet Kuo
8fb86a3d3b
Add kubectl rollout history
2016-02-01 15:32:43 -08:00
Clayton Coleman
2fd38a7dc0
Break kubectl from assuming details of codecs
...
Most of the logic related to type and kind retrieval belongs in the
codec, not in the various classes. Make it explicit that the codec
should handle these details.
Factory now returns a universal Decoder and a JSONEncoder to assist code
in kubectl that needs to specifically deal with JSON serialization
(apply, merge, patch, edit, jsonpath). Add comments to indicate the
serialization is explicit in those places. These methods decode to
internal and encode to the preferred API version as previous, although
in the future they may be changed.
React to removing Codec from version interfaces and RESTMapping by
passing it in to all the places that it is needed.
2016-01-22 13:27:26 -05:00
nikhiljindal
2ad642d370
Merge registered and latest and move to apimachinery
2016-01-21 14:42:21 -08:00
Michail Kargakis
08d8843a9c
kubectl: Support exposing deployments
2016-01-15 17:02:24 +01:00
Chao Xu
6a104ee46c
move SwaggerSchema to DiscoveryClient
2016-01-13 10:11:53 -08:00
Matt Liggett
c6e9ad066e
Initial node drain implementation for #3885 .
...
It cordons (marks unschedulable) the given node, and then deletes every
pod on it, optionally using a grace period. It will not delete pods
managed by neither a ReplicationController nor a DaemonSet without the
use of --force.
Also add cordon/uncordon, which just toggle node schedulability.
2016-01-06 17:28:18 -08:00
Chao Xu
2b5b708b70
Refactor the API registration and installation
2015-12-23 22:44:25 -08:00
k8s-merge-robot
7c43797e61
Merge pull request #17516 from kargakis/tighten-generator-validation
...
Auto commit by PR queue bot
2015-12-19 18:36:18 -08:00
k8s-merge-robot
b12f6b341f
Merge pull request #18599 from smarterclayton/abstract_explain
...
Auto commit by PR queue bot
2015-12-19 04:34:32 -08:00
k8s-merge-robot
649855128d
Merge pull request #18627 from caesarxuchao/oneline-fix
...
Auto commit by PR queue bot
2015-12-19 00:50:31 -08:00
Michail Kargakis
71934b7643
kubectl: Validate flag usage against generators
...
This commit moves the generators into separate buckets and creates
separate calls for each one group. This helps in providing just the
necessary generators to each generator command.
Validation of flags against generators is also added so that flags
that are not meant to be used with a specific generator will result
in error.
2015-12-18 15:09:53 +01:00
Clayton Coleman
151b4e5958
Tweak explain messages and abstract client
2015-12-18 00:27:22 -05:00
Abhishek Shah
6f63875165
Reverting 18442
2015-12-17 16:57:29 -08:00
k8s-merge-robot
5c4479f542
Merge pull request #18442 from deads2k/gv-restmapper-10
...
Auto commit by PR queue bot
2015-12-17 06:06:43 -08:00
k8s-merge-robot
8ceb947b63
Merge pull request #18346 from soltysh/issue17363
...
Auto commit by PR queue bot
2015-12-16 21:25:52 -08:00
k8s-merge-robot
5a579a2555
Merge pull request #16028 from derekwaynecarr/make_cmd
...
Auto commit by PR queue bot
2015-12-16 08:41:59 -08:00
deads2k
41b78ad2b6
find partial resource matches
2015-12-16 10:19:31 -05:00
Chao Xu
5ba4f836f8
some small fix
2015-12-15 12:00:48 -08:00
derekwaynecarr
5e0948586c
Add kubectl create [SUBCOMMAND] pattern
2015-12-14 13:43:45 -05:00
deads2k
d0aaf13920
use constants for group names
2015-12-14 10:04:10 -05:00
Wojciech Tyczynski
960808bf08
Switch to versioned ListOptions in client.
2015-12-14 14:26:09 +01:00
Maciej Szulik
34c72552a5
Updated kubectl help info with resource names
2015-12-10 16:04:44 +01:00
deads2k
cf58201ff4
update client cache to key on groupversion
2015-12-10 07:41:34 -05:00
k8s-merge-robot
637a33924c
Merge pull request #18004 from jiangyaoguo/print-absolute-time-when-watch-event
...
Auto commit by PR queue bot
2015-12-08 22:58:12 -08:00
k8s-merge-robot
ec1ba7438f
Merge pull request #17796 from deads2k/gv-object-typer
...
Auto commit by PR queue bot
2015-12-07 12:34:55 -08:00
deads2k
66eecb963a
update more kubectl bits for groupversion
2015-12-07 09:01:44 -05:00
deads2k
f764e0099c
Update ObjectTyper to GroupVersion
2015-12-07 08:35:05 -05:00
jiangyaoguo
7153ff80ff
print absolute time when watch event
2015-12-05 13:52:53 +08:00
Wojciech Tyczynski
6dcb689d4e
Simplify List() signature in clients.
2015-12-03 09:54:07 +01:00
Wojciech Tyczynski
8343c8ce6c
Pass ListOptions to List() methods.
2015-12-01 15:00:36 +01:00
deads2k
1ac6d8afd3
update reaper, scaler, describer for GroupKind
2015-11-30 09:22:39 -05:00
k8s-merge-robot
5f8743ea7b
Merge pull request #17108 from kargakis/fix-editor-env
...
Auto commit by PR queue bot
2015-11-26 03:53:53 -08:00
deads2k
8679925847
update RESTMapping API to be properly typed
2015-11-25 14:02:37 -05:00
deads2k
5c4fb5bcbe
make RESTMapper.KindFor
2015-11-25 14:02:37 -05:00
kargakis
523b6ec7e3
edit: Make environment variables composable
...
It also adds support for KUBE_EDITOR and GIT_EDITOR which were already
advertised in the edit usage message.
2015-11-25 11:23:23 +01:00
k8s-merge-robot
3e56ce6490
Merge pull request #17327 from deads2k/gv-restmapper
...
Auto commit by PR queue bot
2015-11-24 19:08:49 -08:00
Janet Kuo
c0c02c95c4
kubectl run to produce deployment and job
2015-11-24 10:21:31 -08:00
deads2k
5077e9b644
make register.GroupVersion use GroupVersion
2015-11-24 09:45:36 -05:00
k8s-merge-robot
4fd6b6df06
Merge pull request #17316 from deads2k/gv-ClientForVersion
...
Auto commit by PR queue bot
2015-11-24 06:24:28 -08:00
k8s-merge-robot
6d2b92a0be
Merge pull request #17269 from janetkuo/autoscale-deployments
...
Auto commit by PR queue bot
2015-11-21 22:23:23 -08:00
deads2k
a87d927588
update client.Config to use GroupVersion
2015-11-21 08:29:26 -05:00
deads2k
303bcad398
use groupversion in RESTMapping
2015-11-16 09:22:11 -05:00
Janet Kuo
8e99bae7ec
Support autoscale deployments
2015-11-13 23:33:55 -08:00
kargakis
4fdb6d1331
logs: Use resource builder
2015-11-05 14:54:55 +01:00
kargakis
4befdf5b49
Make CanBeExposed and CanBeAutoscaled composable
2015-10-24 20:07:35 +02:00
Fabiano Franz
312d53d9c9
Expose attachable pod discovery to factory
2015-10-23 17:28:41 -02:00
deads2k
2ea025aedd
fix missing error handling
2015-10-21 14:37:47 -04:00
Janet Kuo
8105aa44a0
Implement kubectl autoscale
2015-10-19 09:59:22 -07:00
Chao Xu
9a812bd0c5
grep sed ExperimentalClient
2015-10-13 13:22:22 -07:00
Chao Xu
80f213c376
"experimental" -> "extensions"
2015-10-09 15:14:03 -07:00
hurf
e1b88c6942
Integrate convertion tool to kubectl
...
Added 'convert' subcommand to kubectl to convert config files
between different API versions.
2015-10-09 10:15:30 +08:00
Brendan Burns
afea127a3e
Move the default schema cache to the home directory
2015-09-28 16:26:48 -07:00
Chao Xu
ae1293418b
move experimental/v1 to experimental/v1alpha1;
...
use "group/version" in many places where used to expect "version" only.
2015-09-24 15:32:11 -07:00
Maciej Szulik
48775319d9
Reaper and scaler for jobs
2015-09-23 13:06:34 +02:00
Muhammed Uluyol
f855e75805
Correctly do swagger validation with experimental.
...
Before we tried both groups, first api then experimental. If
experimental failed, the error message would be discarded and the
message for api would be shown. This commit changes this behavior so
that we detect which api group we should be using and only show the
error for that group.
2015-09-17 22:54:56 -04:00
k8s-merge-robot
426d4a2477
Merge pull request #13945 from caesarxuchao/kube-api-prefix
...
Auto commit by PR queue bot
2015-09-16 18:43:55 -07:00
Chao Xu
9bef5ff99d
register experimental apis as apis/experimental/..
...
mark --api-version as deprecated
2015-09-15 11:25:01 -07:00
feihujiang
98689a99ec
Limit the type for kubectl expose command
2015-09-15 11:17:04 +08:00
Brendan Burns
9ba13ff361
Address comments
2015-09-11 13:55:16 -07:00
Brendan Burns
d9e1a00a14
Add caching for swagger schemas
2015-09-10 21:18:52 -07:00
Timothy St. Clair
2b7e758c3c
Fixes the experimental api, which appeared to be completely broken.
...
Fix for rebase with nikhiljindal/deploymentController
2015-09-03 21:56:45 -05:00
Marcin Wielgus
55cd0d565e
Kubectl describe for experimental HorizontalPodAutoscaler
2015-08-26 16:28:50 +02:00
Janet Kuo
5823ef771b
Make --validate default on and shows how to turn if off
2015-08-25 03:18:32 -07:00
Eric Paris
7162baa4b8
Drop some of our flag stuff which isn't needed
2015-08-20 15:01:36 -07:00
Eric Paris
bcf912667b
Use pflag functions instead of ours.
2015-08-20 15:00:55 -07:00
Saad Ali
d42864b0ad
Merge pull request #12112 from JanetKuo/update-kubectl-get-pods-running
...
Hide terminated pods in 'kubectl' Printer by default
2015-08-19 12:51:18 -07:00
Muhammed Uluyol
7c58f94edc
Create an experimental client cache.
...
Previously, we would initialize the experimental client at factory creation
time. This is problematic because the clientConfig loader has values populated
from the command-line flag parsing, and these are not populated until after
Factory creation. Introduce an ExperimentalClientCache to create (and reuse)
ExperimentalClients.
2015-08-18 14:25:38 -07:00
Janet Kuo
44a7a52a94
Hide failed/succeeded pods in 'kubectl get pods' by default
2015-08-18 13:47:19 -07:00
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Brendan Burns
99b8df1812
Add field based sorting to the kubectl command line.
2015-08-12 16:51:36 -07:00
Muhammed Uluyol
fab367230f
Add experimental API support to kubectl
2015-08-11 16:49:55 -07:00
Muhammed Uluyol
01807c1fac
Make ClientCache public
2015-08-11 16:47:57 -07:00
Kris Rousey
565189f5b8
Correcting all go vet errors
2015-08-11 13:55:37 -07:00
Marek Grabowski
5f9cefc1d8
Merge pull request #12441 from vlajos/typofixes-vlajos-20150807
...
typofix - https://github.com/vlajos/misspell_fixer
2015-08-10 16:33:52 +02:00
Veres Lajos
9f77e49109
typofix - https://github.com/vlajos/misspell_fixer
2015-08-08 22:31:48 +01:00
Brendan Burns
e42d6aa255
Add --restart support to kubectl run
2015-08-07 13:20:09 -07:00
Eric Paris
7cbb52ce04
Use the pflag StringSlice instead of implementing it ourselves
...
Saves code and makes our code easier to read because we just use normal
[]string instead of custom type.
2015-08-06 19:16:13 -04:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
nikhiljindal
242910e57c
kubectl expose should extract ports from service
2015-07-24 15:17:48 -07:00
nikhiljindal
c849730116
Fixing the error message
2015-07-16 23:33:16 -07:00
nikhiljindal
496f30a92f
Introduce a new service generator that leaves service port unnamed
2015-07-16 20:40:40 -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
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
Janet Kuo
682734bcc7
Implement 'kubectl get ... -o wide'
2015-06-30 14:06:47 -07:00
feihujiang
878a72228f
Provide more helpful error when using unsupported api version
2015-06-29 15:32:54 +08:00
Anastasis Andronidis
b06ef70057
Print resource labels as columns
2015-06-22 00:44:51 +02:00
Jeff Lowdermilk
f31191224b
kubectl negotiates apiversion to use based on client,server supported
2015-06-16 10:12:39 -07:00
feihujiang
37abe11f8a
kubetcl create --validate crashes when no apiVersion or kind is provided
2015-06-09 10:38:43 +08:00
Daniel Smith
67f53d2eff
Make kubectl work inside a container in k8s
2015-06-03 12:48:07 -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
Masahiro Sano
8ce64ec69e
add --all-namespaces flag to request across all namespaces
2015-05-22 23:25:12 +09:00
kargakis
ac652d16e6
expose: Re-use labels in case none was specified
2015-05-15 11:54:41 +02: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
deads2k
19784dbc4f
remove auth-path from kubeconfig
2015-05-11 10:40:23 -04:00
kargakis
93dc839b19
Load input object for increased safety
2015-05-08 03:17:54 +02:00
kargakis
c9e79a3c28
Setup generators in factory
2015-05-05 12:00:13 +02: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
Eric Paris
a17a26643b
Update kube to support new pflag/cobra
2015-04-29 11:26:30 -04:00
kargakis
e6ee32a6c6
Fix getting services in expose cmd
2015-04-28 14:45:05 +03:00
Tim Hockin
6694eff020
Use pflags word separators to make - and _ equiv.
2015-04-27 15:10:52 -07:00
Jeff Lowdermilk
97e4549170
Merge pull request #6680 from deads2k/deads-change-kubeconfig-chain
...
change kubeconfig loading chain
2015-04-16 13:57:31 -07:00
deads2k
de4be5422c
change kubeconfig loading order
2015-04-16 13:05:09 -04:00
Dan Mace
bd7b719944
Make default impls private
2015-04-15 16:50:08 -04:00
Dan Mace
312ccad3c1
Use narrowly scoped interfaces for client access
...
Use custom narrowly scoped interfaces for client access from the
RollingUpdater and Resizer. This allows for more flexible downstream
integration and unit testing without imposing a burden to implement
the entire client.Interface for just a handful of methods.
2015-04-15 14:28:59 -04:00
deads2k
e7baa94404
allow selective removal of kubeconfig override flags
2015-04-13 13:14:23 -04:00
Clayton Coleman
92a68ad7bf
The versioned printer should be initialized with the mapping apiversion
...
VersionedPrinter handles fallback when multiple different APIVersions
are present if multiple arguments are passed (for instance, both Kube
resources at v1beta3 and a third party's API objects which are only
at v1). The cmd PrinterForMapping should always include the current
object's "mapping version" as a fallback in the event the preferred
API version does not map to the actual object.
2015-04-09 15:45:06 -04:00
deads2k
6344cf3c3a
refactor to move kubectl.cmd.Factory to kubect/cmd/util
2015-04-07 14:43:50 -04:00