k3s/test/e2e
Madhusudan.C.S fe26381c90 Support for both map-based and set-based selectors in extensions/v1beta1.Scale
Here are a list of changes along with an explanation of how they work:
1. Add a new string field called TargetSelector to the external version of
   extensions Scale type (extensions/v1beta1.Scale). This is a serialized
   version of either the map-based selector (in case of ReplicationControllers)
   or the unversioned.LabelSelector struct (in case of Deployments and
   ReplicaSets).
2. Change the selector field in the internal Scale type (extensions.Scale) to
   unversioned.LabelSelector.
3. Add conversion functions to convert from two external selector fields to a
   single internal selector field. The rules for conversion are as follows:
   i.   If the target resource that this scale targets supports LabelSelector
        (Deployments and ReplicaSets), then serialize the LabelSelector and
        store the string in the TargetSelector field in the external version
        and leave the map-based Selector field as nil.
   ii.  If the target resource only supports a map-based selector
        (ReplicationControllers), then still serialize that selector and
	store the serialized string in the TargetSelector field. Also,
	set the the Selector map field in the external Scale type.
   iii. When converting from external to internal version, parse the
        TargetSelector string into LabelSelector struct if the string isn't
	empty. If it is empty, then check if the Selector map is set and just
	assign that map to the MatchLabels component of the LabelSelector.
   iv.  When converting from internal to external version, serialize the
        LabelSelector and store it in the TargetSelector field. If only
	the MatchLabel component is set, then also copy that value to
	the Selector map field in the external version.
4. HPA now just converts the LabelSelector field to a Selector interface
   type to list the pods.
5. Scale Get and Update etcd methods for Deployments and ReplicaSets now
   return extensions.Scale instead of autoscaling.Scale.
6. Consequently, SubresourceGroupVersion override and is "autoscaling"
   enabled check is now removed from pkg/master/master.go
7. Other small changes to labels package, fuzzer and LabelSelector
   helpers to piece this all together.
8. Add unit tests to HPA targeting Deployments and ReplicaSets.
9. Add an e2e test to HPA targeting ReplicaSets.
2016-03-09 17:54:17 -08:00
..
cleanup
testing-manifests e2e: change the tests to use versioned image nginx:1.7.9 2016-02-24 16:54:40 -08:00
addon_update.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
autoscaling_utils.go Support for both map-based and set-based selectors in extensions/v1beta1.Scale 2016-03-09 17:54:17 -08:00
cadvisor.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
cluster_size_autoscaling.go CustomMetric support in autoscaling utils 2016-03-04 15:50:55 +01:00
cluster_upgrade.go Remove hack/e2e-internal/e2e-upgrade.sh. 2016-03-09 14:14:04 -08:00
configmap.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
container_probe.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
daemon_restart.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
daemon_set.go Merge pull request #22172 from gmarek/register 2016-03-07 02:07:43 -08:00
dashboard.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
density.go Merge pull request #22281 from wojtek-t/increase_qps_limits 2016-03-05 21:27:57 -08:00
deployment.go Improve deployment error logs 2016-03-03 11:44:04 -08:00
dns.go Specify hostname, subdomain via annotation on podspec. 2016-03-04 13:28:33 -08:00
docker_containers.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
downward_api.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
downwardapi_volume.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
e2e.go Add a simple clusterapi-tester, improve e2e logging. 2016-03-03 10:01:01 -08:00
e2e_test.go
empty_dir.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
empty_dir_wrapper.go Disambiguate emptydir wrapper test 2016-03-02 09:00:16 -05:00
es_cluster_logging.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
etcd_failure.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
events.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
example_cluster_dns.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
example_k8petstore.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
examples.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
expansion.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
framework.go Merge pull request #18672 from bprashanth/netexec 2016-03-08 06:10:02 -08:00
garbage_collector.go fix pod garbage collection test 2016-03-08 12:21:41 -08:00
generated_clientset.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
google_compute.go
horizontal_pod_autoscaling.go Support for both map-based and set-based selectors in extensions/v1beta1.Scale 2016-03-09 17:54:17 -08:00
host_path.go minimal hostPath fix 2016-03-02 17:22:45 -05:00
ingress.go Ingress https E2E 2016-03-06 17:21:15 -08:00
ingress_utils.go Ingress https E2E 2016-03-06 17:21:15 -08:00
initial_resources.go CustomMetric support in autoscaling utils 2016-03-04 15:50:55 +01:00
job.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
kibana_logging.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
kubectl.go deflake rc logs test 2016-03-07 09:30:08 -05:00
kubelet.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
kubelet_etc_hosts.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
kubelet_perf.go Make kubelet-perf 100 pod/node test work with registered master 2016-03-09 16:05:04 +01:00
kubelet_stats.go Merge pull request #22404 from yujuhong/dump_mem 2016-03-05 00:38:56 -08:00
kubeproxy.go Merge pull request #18672 from bprashanth/netexec 2016-03-08 06:10:02 -08:00
limit_range.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
load.go Explicitly set request for latency pods 2016-03-03 08:29:47 +01:00
log_size_monitoring.go Fix log gatherer 2016-02-15 15:11:38 +01:00
mesos.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
metrics_grabber_test.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
metrics_util.go Add CONNECT to ignoredVerbs for readLatencyMetrics. 2016-03-07 11:31:22 -08:00
monitoring.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
namespace.go Add e2e tests to verify more resources are deleted 2016-03-02 23:34:45 -05:00
networking.go Move net e2e helpers to util.go for reuse 2016-03-05 17:09:24 +00:00
nodeoutofdisk.go Merge pull request #22459 from jayunit100/disruptivediskannot 2016-03-04 21:17:52 -08:00
pd.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
persistent_volumes.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
pods.go Merge pull request #22241 from Random-Liu/recover-back-off-behaviour 2016-03-05 00:05:15 -08:00
portforward.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
pre_stop.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
privileged.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
prompush.go
proxy.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
rc.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
reboot.go Merge pull request #21882 from gmarek/throttle 2016-03-01 06:38:06 -08:00
replica_set.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
resize_nodes.go Merge pull request #21882 from gmarek/throttle 2016-03-01 06:38:06 -08:00
resource_quota.go Add resource quota for ConfigMap 2016-03-02 09:59:51 -05:00
resource_usage_gatherer.go Workaround hanging proxies in resource gatherer 2016-02-26 14:23:53 +01:00
restart.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
scheduler_predicates.go Merge pull request #22275 from gmarek/flake 2016-03-05 17:54:29 -08:00
secrets.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
security_context.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
service.go Merge pull request #22203 from bprashanth/network_flake 2016-03-03 15:20:12 -08:00
service_accounts.go Merge pull request #21882 from gmarek/throttle 2016-03-01 06:38:06 -08:00
service_latency.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
serviceloadbalancers.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
ssh.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
ubernetes_lite.go Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
util.go Support for both map-based and set-based selectors in extensions/v1beta1.Scale 2016-03-09 17:54:17 -08:00
volumes.go Decouple webserver from storage tests 2016-03-06 14:53:52 -05:00