k3s/pkg
Kubernetes Submit Queue 0967f9560a Merge pull request #49168 from crimsonfaith91/apps-v1beta2
Automatic merge from submit-queue

StatefulSet scale subresource

**What this PR does / why we need it**: This PR implements scale subresource for StatefulSet.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #46005

**Special notes for your reviewer**:

**Release note**:

```release-note
StatefulSet uses scale subresource when scaling in accord with ReplicationController, ReplicaSet, and Deployment implementations.
```
**Feature Checklist**:
- [x] Introduce Registry interface for storage purpose
- [x] Introduce `ScaleREST New(), Get() and Update()` utility functions
- [x] Create a `ScaleREST` object at `NewREST()` and return it
- [x] Enable scale subresource by adding `/scale` field to the storage map

**Testing Checklist**:
- Unit testing
  - [x] Modify `newStorage()` to call `NewStorage()`, and change all unit tests accordingly
  - [x] Add unit tests for `ScaleREST Get() and Update()` utility functions
  - [x] Add missing unit test for `ShortNames`

- Manual testing
  - [x] Verify existence of the subresource using `kubectl proxy` command
  - [x] Modify the subresource using `curl` via `POST`

- e2e testing
  - [x] Add e2e tests using `RESTClient`
2017-08-07 17:05:24 -07:00
..
api Add MicroTime to DeepEquals overrides 2017-08-04 14:02:53 +02:00
apimachinery/tests
apis Merge pull request #49751 from janetkuo/conversion-gen-apps 2017-08-07 12:56:10 -07:00
auth
bootstrap/api
capabilities
client Update generated code 2017-08-06 15:32:28 +02:00
cloudprovider Merge pull request #50206 from FengyunPan/add-debug 2017-08-07 13:52:00 -07:00
controller Merge pull request #49524 from k82cn/k8s_49522 2017-08-07 13:51:54 -07:00
conversion
credentialprovider
features Added taints node by condition feature flag. 2017-07-31 19:30:34 +08:00
fieldpath
fields
generated kube-gen: fixup moved tests 2017-08-04 08:03:15 +02:00
hyperkube
kubeapiserver Move remaining cert helper functions to client-go/util/cert 2017-08-03 13:17:07 -07:00
kubectl Merge pull request #49603 from zhangxiaoyu-zidif/fix-errorf-for-get-test 2017-08-07 13:52:08 -07:00
kubelet Merge pull request #49885 from dashpole/ignore_udp 2017-08-07 12:56:05 -07:00
kubemark Merge pull request #40050 from mtaufen/standalone-mode 2017-07-25 12:14:43 -07:00
labels
master Add metav1.MicroTime to exceptions in tag tests 2017-08-04 12:47:23 +02:00
printers Update generated code 2017-08-06 15:32:28 +02:00
probe update godep 2017-07-20 11:03:49 -07:00
proxy Merge pull request #49300 from tklauser/syscall-to-x-sys-unix 2017-08-03 04:02:12 -07:00
quota
registry implement statefulset scale subresource 2017-08-07 12:17:46 -07:00
routes
runtime
security allowPrivilegeEscalation: modify api types & add functionality 2017-07-24 12:52:41 -04:00
securitycontext allowPrivilegeEscalation: modify api types & add functionality 2017-07-24 12:52:41 -04:00
serviceaccount Move remaining cert helper functions to client-go/util/cert 2017-08-03 13:17:07 -07:00
ssh
types
util Merge pull request #49300 from tklauser/syscall-to-x-sys-unix 2017-08-03 04:02:12 -07:00
version
volume Merge pull request #49300 from tklauser/syscall-to-x-sys-unix 2017-08-03 04:02:12 -07:00
watch
BUILD generated innocuous change 2017-07-21 14:29:59 -07:00
OWNERS