kubernetes/test/e2e/framework
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
..
ginkgowrapper Add a ginkgo wrapper so we can annotate panics 2017-06-12 14:35:37 -07:00
metrics Move the sig-instrumentation test to a dedicated folder 2017-08-07 10:33:03 +02:00
authorizer_util.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
BUILD implement statefulset scale subresource 2017-08-07 12:17:46 -07:00
cleanup.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
deployment_util.go Fix printer hack to get a versioned client 2017-08-06 15:30:13 +02:00
exec_util.go Prepare to introduce websockets for exec and portforward 2017-07-07 18:22:51 -04:00
federation_util.go Add the ability to customize federation system namespace in e2e turn up scripts. 2017-03-24 14:42:50 -07:00
firewall_util.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
framework.go Move the sig-instrumentation test to a dedicated folder 2017-08-07 10:33:03 +02:00
get-kubemark-resource-usage.go Make resource gatherer get data about etcd resource usage in kubemark setup 2017-04-13 15:22:36 +02:00
google_compute.go Tolerate a missing MasterName (for GKE) 2017-07-18 09:55:15 -07:00
ingress_utils.go update import 2017-07-20 11:03:49 -07:00
jobs_util.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
kubelet_stats.go Move the sig-instrumentation test to a dedicated folder 2017-08-07 10:33:03 +02:00
log_size_monitoring.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
metrics_util.go Move the sig-instrumentation test to a dedicated folder 2017-08-07 10:33:03 +02:00
networking_utils.go Migrate api.Registry to testapi.Groups in tests. 2017-07-17 15:05:38 -07:00
nodes_util.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
perf_util.go Logs node e2e perf data to standalone json files 2017-06-12 14:27:56 -07:00
pods.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
pv_util.go Migrate api.Registry to testapi.Groups in tests. 2017-07-17 15:05:38 -07:00
rc_util.go Migrate api.Registry to testapi.Groups in tests. 2017-07-17 15:05:38 -07:00
resource_usage_gatherer.go Fix usage a make(struct, len()) followed by append() 2017-07-31 14:43:29 -04:00
rs_util.go Fix printer hack to get a versioned client 2017-08-06 15:30:13 +02:00
service_util.go Test GCE ILB functionality 2017-07-24 14:13:41 -07:00
size.go Cleanup: replace some hardcoded codes and remove unused functions 2017-04-25 09:38:25 +08:00
statefulset_utils.go implement statefulset scale subresource 2017-08-07 12:17:46 -07:00
test_context.go Modify e2e.go to arbitrarily pick one of zones we have nodes in for 2017-08-07 10:25:42 +02:00
upgrade_util.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
util.go Handled taints on node in batch. 2017-08-07 19:29:39 +08:00
volume_util.go Fix storage tests for multizone test configuration. 2017-08-07 12:15:14 +02:00