Kubernetes Submit Queue
6f20321833
Merge pull request #28509 from juanvallejo/jvallejo_update-human-readable-printer-signature
...
Automatic merge from submit-queue
Update HumanResourcePrinter signature w single PrintOptions param
release-note-none
- Makes [HumanReadablePrinter options field non-exported again](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/resource_printer.go#L346-349 )
- Adds test-case for HumanReadablePrinter resource printing with aliases.
- Better formatting for saving resource "kind" aliases
[]()
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/28509 )
<!-- Reviewable:end -->
2016-08-12 07:27:56 -07:00
lixiaobing10051267
254189a5f2
check validation with no apps client in kubectl util factory
2016-08-10 21:20:50 +08:00
Angus Salkeld
bd0b7528b5
Add "create deployment" sub-command
2016-08-08 13:24:30 +10:00
Angus Salkeld
42ca885edb
Add "create service" sub-commands
...
This adds:
create service clusterip
create service nodeport
create service loadbalancer
2016-08-08 12:31:21 +10:00
Kubernetes Submit Queue
7921a9ce67
Merge pull request #25816 from soltysh/scheduledjob_kubectl
...
Automatic merge from submit-queue
ScheduledJob kubectl
@erictune the last part (kubectl) of the ScheduledJob, as usual builds on top of previous PRs, so only last 2 commits matter (the kubectl one and storage leftovers).
```release-note
* Introducing ScheduledJobs as described in [the proposal](https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/scheduledjob.md ) as part of `batch/v2alpha1` version (experimental feature).
```
[]()
2016-08-04 17:36:07 -07:00
juanvallejo
620758c7e9
format resource printing with aliases
2016-08-04 12:01:25 -04:00
Maciej Szulik
b5c68a9015
ScheduledJob kubectl changes
2016-08-03 17:25:37 +02:00
Andrey Kurilin
91cace347d
Fix various typos in kubectl
2016-08-02 19:51:51 +03:00
k8s-merge-robot
0fbd60fa30
Merge pull request #29187 from soltysh/multiversion_kubectl
...
Automatic merge from submit-queue
Create client from API version passed in config or use default
When creating a client read the `GroupVersion` value passed in the `restclient.Config`. If the passed `GroupVersion` does not match current group or is not enabled fallback to default `GroupVersion` for that group.
This PR should allow accessing `ScheduledJob` properly in `batch/v2alpha1`.
@smarterclayton @deads2k @caesarxuchao @lavalamp ptal
2016-08-02 06:10:26 -07:00
Daniel Smith
b712bfd7ac
Revert "Extend all to more resources"
2016-08-01 21:51:57 -07:00
k8s-merge-robot
95b4572e7c
Merge pull request #28955 from dims/roadmap-extend-all
...
Automatic merge from submit-queue
Extend all to more resources
Added more things from the list here:
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/cmd.go#L159
Note, did not add events as it did not seem useful to me. Since
this is just a list of messages generated by the system.
Related to a suggestion in issue #22337
2016-08-01 10:07:01 -07:00
Maciej Szulik
1e496fd8ce
Create client from API version passed in config or use default
...
When creating a client read the GroupVersion value passed in the
restclient.Config. If the passed GroupVersion does not match current
group or is not enabled fallback to default GroupVersion for that group.
2016-07-26 11:54:25 +02:00
maaz khan
5b95524d65
Add support for kubectl create quota command
2016-07-26 11:32:08 +02:00
Davanum Srinivas
ccf4e4d61e
Extend all to more resources
...
Added more things from the list here:
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/cmd.go#L159
Update the devel/kubectl-conventions.md with the rules mentioned by
a few folks on which resources could be added to the special 'all' alias
Related to a suggestion in issue #22337
2016-07-24 21:14:50 -04:00
Wojciech Tyczynski
4d0d115690
Revert "add tokenreviews endpoint to implement webhook"
2016-07-21 09:40:35 +02:00
deads2k
2c4a9f2e8d
interesting changes to add tokenreviews endpoint to implement webhook
2016-07-20 15:11:56 -04:00
k8s-merge-robot
423106ccee
Merge pull request #28512 from smarterclayton/multirestmapper
...
Automatic merge from submit-queue
Implement a RESTMappings method
With the introduction of batch/v1 and batch/v2alpha1, any
MultiRESTMapper that has per groupversion mappers (as a naive discovery
client would create) would end up being unable to call RESTMapping() on
batch.Jobs. As we finish up discovery we will need to be able to choose
prioritized RESTMappings based on the service discovery doc.
This change implements RESTMappings(groupversion) which returns all
possible RESTMappings for that kind. That allows a higher level call to
prioritize the returned mappings by server or client preferred version.
@deads2k
2016-07-15 05:13:55 -07:00
Ivan Shvedunov
5ed881c6c4
Refactor Printer arguments
...
Fixes #21260
2016-07-14 16:23:02 +03:00
Clayton Coleman
c077bac341
Implement a RESTMappings method
...
With the introduction of batch/v1 and batch/v2alpha1, any
MultiRESTMapper that has per groupversion mappers (as a naive discovery
client would create) would end up being unable to call RESTMapping() on
batch.Jobs. As we finish up discovery we will need to be able to choose
prioritized RESTMappings based on the service discovery doc.
This change implements RESTMappings(groupversion) which returns all
possible RESTMappings for that kind. That allows a higher level call to
prioritize the returned mappings by server or client preferred version.
2016-07-13 21:18:53 -04:00
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.
```
[]()
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
[]()
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
[]()
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