k3s/test
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
..
e2e Merge pull request #49168 from crimsonfaith91/apps-v1beta2 2017-08-07 17:05:24 -07:00
e2e_federation Merge pull request #36197 from jianhuiz/federation-job-controller 2017-08-07 16:15:01 -07:00
e2e_node Merge pull request #49914 from yguo0905/shared-pid-ns 2017-08-07 10:59:04 -07:00
fixtures Flag support in kubectl plugins 2017-07-18 15:35:40 -03:00
images Fix typo in test/images/port-forward-tester/Makefile 2017-08-02 14:56:23 -07:00
integration Fix printer hack to get a versioned client 2017-08-06 15:30:13 +02:00
kubemark Fix bug in command retrying in kubemark 2017-07-24 17:18:50 +02:00
list
soak Fix code implicitly casting clientsets to getters 2017-08-06 15:30:13 +02:00
utils Fix printer hack to get a versioned client 2017-08-06 15:30:13 +02:00
BUILD
OWNERS Add sig-testing OWNERS_ALIASES 2017-07-25 11:05:18 -07:00
test_owners.csv Remove traces of go2idl 2017-08-03 09:33:58 +02:00
test_owners.json remove deprecated flags LowDiskSpaceThresholdMB and OutOfDiskTransitionFrequency 2017-07-20 13:23:13 -07:00