Antoine Pelisse
1bf99e2e4e
Create `kubectl rollout restart deployment/$deployment` to do a rolling restart
2019-04-06 21:14:40 -07:00
Kubernetes Prow Robot
be8a9b9637
Merge pull request #74422 from liggitt/client-version-methods
...
Remove deprecated versionless client interface methods
2019-02-26 12:44:24 -08:00
Kubernetes Prow Robot
fc1e528c4a
Merge pull request #72678 from rmohr/cr-autoscale
...
Add Custom Resource support to "kubectl autoscale"
2019-02-26 11:05:09 -08:00
Jordan Liggitt
d1e865ee34
Update client callers to use explicit versions
2019-02-26 08:36:30 -05:00
Kubernetes Prow Robot
1ddfd8ff73
Merge pull request #67573 from m1kola/52218_watching_selectors
...
Allows to combine the `-f` and `-l` flags in kubectl logs
2019-02-25 18:47:45 -08:00
Roman Mohr
c9479990b3
Add Custom Resource support to "kubectl autoscale"
...
Generalize the autoscsale command to simply let the dynamic client check
if a scale subresource is registered for the supplied type. This allows
using the autoscale command for built in types as well as custom
resources.
2019-02-07 12:28:59 +01:00
Maciej Szulik
0a04bbbd92
Rename AttachableLogsForObjectFunc -> AttachablePodForObjectFunc to better reflect its purpose
2019-02-04 13:18:02 +01:00
Mikalai Radchuk
2a230cc119
Allows to read from multiple logs simultaneously
...
Which makes possible to combile the `-f` and `-l` flags in kubectl logs
2019-01-20 13:50:22 +00:00
Jordan Liggitt
fd9e9b01b1
Remove uses of extensions/v1beta1 clients
2018-12-19 11:18:53 -05:00
Pingan2017
c3bb1c4601
support statefulset in kubectl autoscale command
2018-11-16 10:42:39 +08:00
Sean Sullivan
1e161bb329
kubectl: change legacyscheme codecs to direct codecs (no conversion)
2018-10-31 15:24:22 -07:00
Sean Sullivan
d5865240c5
kubectl: fixes expose bug for workload without selectors
2018-10-30 19:27:10 -07:00
Clayton Coleman
5e905f1f5f
Move versioned generators into their own package
...
pkg/kubectl has a lot of files. Move everything generator related
into pkg/kubectl/generate (generic) or pkg/kubectl/generate/versioned
(type specific).
Move the DescriberFn and GeneratorFn out of kubectl/cmd/util and into
the respective versioned packages, along with tests.
2018-10-16 12:54:40 -04:00
k8s-ci-robot
060218a862
Merge pull request #69412 from tossmilestone/scheduler-factory-test
...
Refactor scheduler factory test
2018-10-15 13:52:41 -07:00
He Xiaoxi
a96a390d92
Refactor scheduler factory test
...
Use `k8s.io/client-go/kubernetes/fake.Clientset` as the fake k8s client.
Signed-off-by: He Xiaoxi <xxhe@alauda.io>
2018-10-12 14:39:08 +08:00
Sean Sullivan
5f8f607c27
kubectl: copy pod utils into util/podutils package
2018-10-11 10:49:52 -07:00
Sean Sullivan
2a9115211a
kubectl remove references to internal version of resources
2018-09-28 10:34:53 -07:00
k8s-ci-robot
a71d96b796
Merge pull request #69178 from seans3/polymorphic-helpers-fix
...
kubectl remove internal version references in polymorphichelpers
2018-09-28 10:08:08 -07:00
Sean Sullivan
52e25446cb
kubectl remove internal version references in polymorphichelpers
2018-09-27 13:51:00 -07:00
Sean Sullivan
71e60225a0
kubectl remove internal version of resource for rollout pause/resume
2018-09-27 10:26:35 -07:00
k8s-ci-robot
4215774643
Merge pull request #68634 from seans3/remove-internal-version
...
Replace internal version of resource with external version for tests
2018-09-27 06:06:30 -07:00
Sean Sullivan
4e8e2705b0
Changes to be more consistent about import aliases and group/kind
2018-09-26 13:42:25 -07:00
Sean Sullivan
d73583552c
Remove unused client in rollout status
2018-09-26 13:12:35 -07:00
k8s-ci-robot
bcbc4f7337
Merge pull request #68661 from seans3/attachable-fix
...
Remove unused internal version of Pod resource
2018-09-25 19:23:39 -07:00
Sean Sullivan
49852289de
Replace internal version of resource with external version for tests
2018-09-24 11:12:36 -07:00
Sean Sullivan
16a4060eb5
Remove unused internal version of Pod resource
2018-09-13 22:38:07 -07:00
Mikalai Radchuk
ecbc78993d
Removes support of internal types from logsForObject
2018-08-25 13:43:52 +03:00
Maciej Szulik
5b55e1f8ed
Create cli-runtime staging repository
2018-08-21 17:08:30 +02:00
Kubernetes Submit Queue
4fff352371
Merge pull request #67316 from m1kola/67314_fix_regression
...
Automatic merge from submit-queue (batch tested with PRs 66920, 67316, 67363, 67528, 66963). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md ">here</a>.
Fixes regression in kubectl logs: the --all-containers=true option didn't work
**What this PR does / why we need it**:
Fixes regression introduced in #66398 and adds unit tests for logging with `--all-containers=true`. See #67314 for more details.
**Which issue(s) this PR fixes**:
Fixes #67314
**Special notes for your reviewer**:
I didn't cover cases with `coreinternal.PodList` and `coreinternal.Pod` in tests, because it doesn't look like we need them: I didn't manage to find any callers of the `logsForObjectWithClient` and `logsForObject` functions, so, probably, we can remove them. I'll double check and try to do that separately once this PR is merged.
**Release note**:
```release-note
NONE
```
/sig cli
2018-08-17 10:37:09 -07:00
Mikalai Radchuk
89dd809ee3
Adds tests for --all-containers=true
...
Fixes regression in kubectl logs --all-containers=true
2018-08-13 08:23:10 +01:00
Tomas Nozicka
4d7747a5a3
Update Bazel
2018-08-10 09:55:41 +02:00
Tomas Nozicka
3d4a02abb5
Rename Until to UntilWithoutRetry and move to using context so it's
...
cancelable
2018-08-10 09:55:41 +02:00
David Eads
608bf0de1f
update polymorphichelpers for external types
2018-08-02 08:54:29 -04:00
juanvallejo
9120557466
update attach to use external objs
2018-08-01 10:44:43 -04:00
David Eads
5ba07364ee
fix logs command to be generic for all resources again
2018-07-20 15:10:44 -04:00
Mengqi Yu
60630eb38e
add tests for polymorphichelpers pkg
2018-07-18 00:37:00 -07:00
Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
Guoliang Wang
cf86cb77eb
Move unrelated methods from the factory to helper
2018-05-24 11:42:26 +08:00
juanvallejo
b6db623799
move rollbacker from the factory
2018-05-23 10:44:01 -04:00
juanvallejo
fb0794976a
move Pauser and Resumer from the factory
2018-05-23 10:27:20 -04:00
juanvallejo
5f5e3a59c0
move more CanBeExposed from factory_client_access
2018-05-23 10:27:20 -04:00
David Eads
043f66b86e
remove portsforobject from factory
2018-05-22 09:09:55 -04:00
David Eads
087140aee9
move updatepodspecforobject out of factory
2018-05-21 17:56:33 -04:00
juanvallejo
f3a46cf626
move additional methods from factory
2018-05-18 11:49:02 -04:00
David Eads
eabfcfaa2b
start splitting polymorphic functions out of the factory
2018-05-17 08:55:31 -04:00