kubernetes/pkg
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
..
admission Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
api Support for both map-based and set-based selectors in extensions/v1beta1.Scale 2016-03-09 17:54:17 -08:00
apimachinery add prioritized RESTMapper to registered 2016-02-25 07:35:23 -05:00
apis Support for both map-based and set-based selectors in extensions/v1beta1.Scale 2016-03-09 17:54:17 -08:00
apiserver Mark generic top level prefix proxy deprecated 2016-03-04 17:39:08 +08:00
auth Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
capabilities
client Merge pull request #22559 from krousey/discbreak 2016-03-06 12:47:07 -08:00
cloudprovider AWS: If we have no subnets, bail out early 2016-03-06 09:41:29 -05:00
controller Support for both map-based and set-based selectors in extensions/v1beta1.Scale 2016-03-09 17:54:17 -08:00
conversion Merge pull request #22393 from eparis/blunderbuss 2016-03-02 18:51:56 -08:00
credentialprovider Revert "Set timeout for accessing credential provider's URL" 2016-03-04 12:37:30 -08:00
fieldpath Change runtime.Object signature 2015-12-15 13:36:25 -05:00
fields move parse or die logic to selector.go 2015-12-17 19:59:46 +08:00
genericapiserver Merge pull request #22393 from eparis/blunderbuss 2016-03-02 18:51:56 -08:00
healthz
httplog httplog is not a CloseNotifier 2015-12-20 21:59:59 -05:00
hyperkube
kubectl Merge pull request #22420 from AdoHe/kubectl_swagger_cache 2016-03-07 15:18:56 -08:00
kubelet Merge pull request #22521 from wojtek-t/support_go_16_in_gofmt 2016-03-08 13:14:45 -08:00
kubemark Increase MaxPods in Kubemark 2016-03-02 16:21:16 +01:00
labels Support for both map-based and set-based selectors in extensions/v1beta1.Scale 2016-03-09 17:54:17 -08:00
master Support for both map-based and set-based selectors in extensions/v1beta1.Scale 2016-03-09 17:54:17 -08:00
metrics Move isMasterNode function to api/helpers 2016-03-01 12:12:38 +01:00
probe Log response body when http probe fails. 2016-02-25 13:29:06 -08:00
proxy Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
quota Add resource quota for ConfigMap 2016-03-02 09:59:51 -05:00
registry Support for both map-based and set-based selectors in extensions/v1beta1.Scale 2016-03-09 17:54:17 -08:00
runtime Set runtime OWNERS 2016-03-04 23:59:34 -05:00
securitycontext Rename PodSecurityPolicy fields 2016-03-03 11:49:48 -08:00
serviceaccount generate fake client for release_1_2 2016-02-17 16:10:02 -08:00
ssh Rewritte util.* -> wait.* wherever reasonable 2016-02-07 12:02:20 +01:00
storage Merge pull request #21310 from wojtek-t/require_versioner 2016-02-26 15:44:59 -08:00
types Create Unix UID/GID types 2016-02-24 11:22:02 -05:00
ui Set kubernetes-dashboard as the default UI addon 2016-02-05 13:36:37 +01:00
util kubectl: set maxUnavailable to 1 if both fenceposts resolve to zero 2016-03-07 13:03:41 +01:00
version Change repository references to https://github.com/kubernetes/kubernetes 2016-01-22 10:23:14 -05:00
volume update mountpath of volume after migration 2016-03-07 18:00:06 +08:00
watch Rewritte util.* -> wait.* wherever reasonable 2016-02-07 12:02:20 +01:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00