k3s/pkg
Eric Tune 875755f992 Added Selector Generation to Job.
Added selector generation to Job's
strategy.Validate, right before validation.
Can't do in defaulting since UID is not known.

Added a validation to Job to ensure that the generated
labels and selector are correct when generation was requested.
This happens right after generation, but validation is in a better
place to return an error.

Adds "manualSelector" field to batch/v1 Job to control selector generation.
Adds same field to extensions/__internal.  Conversion between those two
is automatic.

Adds "autoSelector" field to extensions/v1beta1 Job.  Used for storing batch/v1 Jobs
    - Default for v1 is to do generation.
    - Default for v1beta1 is to not do it.
    - In both cases, unset == false == do the default thing.

Release notes:
Added batch/v1 group, which contains just Job, and which is the next
version of extensions/v1beta1 Job.

The changes from the previous version are:
- Users no longer need to ensure labels on their pod template are unique to the enclosing
  job (but may add labels as needed for categorization).
- In v1beta1, job.spec.selector was defaulted from pod labels, with the user responsible for uniqueness.
  In v1, a unique label is generated and added to the pod template, and used as the selector (other
  labels added by user stay on pod template, but need not be used by selector).
- a new field called "manualSelector" field exists to control whether the new behavior is used,
  versus a more error-prone but more flexible "manual" (not generated) seletor.  Most users
  will not need to use this field and should leave it unset.

Users who are creating extensions.Job go objects and then posting them using the go client
will see a change in the default behavior.  They need to either stop providing a selector (relying on
selector generation) or else specify "spec.manualSelector" until they are ready to do the former.
2016-02-25 09:28:07 -08:00
..
admission rename release_1_2 to internalclientset 2016-02-05 14:02:28 -08:00
api Added Selector Generation to Job. 2016-02-25 09:28:07 -08:00
apimachinery add prioritized RESTMapper to registered 2016-02-25 07:35:23 -05:00
apis Added Selector Generation to Job. 2016-02-25 09:28:07 -08:00
apiserver Strip version when encoding discovery API objects at endpoints that exist since release 1.1 2016-02-19 15:05:20 -08:00
auth
capabilities
client add prioritized RESTMapper to registered 2016-02-25 07:35:23 -05:00
cloudprovider Merge pull request #17913 from jtblin/jtblin/17912-pick-public-subnets 2016-02-24 23:48:15 -08:00
controller Deployment: preserve availability when maxUnavailability is not 100% 2016-02-25 13:30:06 +08:00
conversion
credentialprovider Unqualified host:port pairs are valid Docker auth fields 2016-02-18 13:18:34 -05:00
fieldpath
fields
genericapiserver Adding hostname to groups discovery information 2016-02-18 11:58:11 -08:00
healthz
httplog
hyperkube
kubectl Added Selector Generation to Job. 2016-02-25 09:28:07 -08:00
kubelet Merge pull request #20940 from pwittrock/volume-sync 2016-02-25 02:29:31 -08:00
kubemark rename release_1_2 to internalclientset 2016-02-05 14:02:28 -08:00
labels implement Node affinity and NodeSelector 2016-02-04 01:53:14 +00:00
master Introduce RESTOptions to configure per-resource storage 2016-02-22 16:28:28 +01:00
metrics Update SchedulerMetrics 2016-02-15 16:52:41 +01:00
probe fix a few go-vet errors 2016-02-09 13:20:31 -08:00
proxy Push responsibility for bridge-nf-call-iptables to kubelet network plugins 2016-02-23 09:34:59 -06:00
registry Added Selector Generation to Job. 2016-02-25 09:28:07 -08:00
runtime Merge pull request #20351 from krousey/dynamic_client 2016-02-19 10:00:54 -08:00
securitycontext Revert "Deprecate HostConfig at container start" 2016-02-05 12:50:35 -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 #21223 from hongchaodeng/fix 2016-02-22 07:41:45 -08:00
types
ui Set kubernetes-dashboard as the default UI addon 2016-02-05 13:36:37 +01:00
util Merge pull request #21185 from fabianofranz/fix_spdy_roundtripper_verify_hostname 2016-02-25 04:45:12 -08:00
version
volume Merge pull request #21364 from pwittrock/macdu 2016-02-22 10:09:03 -08:00
watch Rewritte util.* -> wait.* wherever reasonable 2016-02-07 12:02:20 +01:00