k3s/pkg/api
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
..
endpoints Use hashutil to hold hash tools 2016-01-06 22:28:58 +08:00
errors Clean up and document validation strings 2015-12-18 09:40:50 -08:00
install Support the subresource of service proxy 2016-02-18 15:16:05 +08:00
meta add a PriorityRESTMapper that can choose particular group/version of a resource 2016-02-25 07:35:23 -05:00
pod Move port utility out of endpoints controller 2015-12-15 18:54:08 +01:00
resource Add or subtract from zero should not lose format 2016-02-04 13:16:47 -05:00
rest Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
testapi Fix test and reorder initialization of groups 2016-02-19 09:22:05 -08:00
testing Added Selector Generation to Job. 2016-02-25 09:28:07 -08:00
unversioned allow disambiguation of resouces 2016-02-25 07:35:23 -05:00
util "experimental" -> "extensions" 2015-10-09 15:14:03 -07:00
v1 Restore service port validation compatibility with 1.0/1.1 2016-02-23 21:27:44 -05:00
validation Restore service port validation compatibility with 1.0/1.1 2016-02-23 21:27:44 -05:00
context.go New etcd client modifications part 1 (context support) 2015-10-12 08:45:49 -05:00
context_test.go rewrite go imports 2015-08-05 17:30:03 -07:00
conversion.go conversion: add default conversion for {string,bool} ptr to {string,bool} 2016-02-01 16:01:19 -08:00
conversion_test.go Move conversion.Scheme to runtime 2016-01-30 14:12:40 -05:00
copy_test.go Switch API objects to not register per version codecs 2016-01-22 01:10:21 -05:00
deep_copy_generated.go Merge pull request #21182 from vishh/repoTagsRename 2016-02-19 08:56:09 -08:00
deep_copy_test.go Switch API objects to not register per version codecs 2016-01-22 01:10:21 -05:00
doc.go Cleanup the content of deprecated V1beta1 2015-11-06 13:42:51 +08:00
generate.go rewrite go imports 2015-08-05 17:30:03 -07:00
generate_test.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
helpers.go implement Node affinity and NodeSelector 2016-02-04 01:53:14 +00:00
helpers_test.go implement Node affinity and NodeSelector 2016-02-04 01:53:14 +00:00
mapper.go eliminate mixed case from RESTMapper 2016-02-08 15:33:31 -05:00
meta.go Change runtime.Object signature 2015-12-15 13:36:25 -05:00
meta_test.go Change runtime.Object signature 2015-12-15 13:36:25 -05:00
node_example.json Updating scripts to use v1 instead of v1beta3 2015-07-01 00:23:16 -07:00
pod_example.json Updating scripts to use v1 instead of v1beta3 2015-07-01 00:23:16 -07:00
ref.go Change runtime.Object signature 2015-12-15 13:36:25 -05:00
ref_test.go Change runtime.Object signature 2015-12-15 13:36:25 -05:00
register.go Support the subresource of service proxy 2016-02-18 15:16:05 +08:00
replication_controller_example.json Merge pull request #10604 from nikhiljindal/v1 2015-07-01 15:54:17 -07:00
requestcontext.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
resource_helpers.go Make default format right for nil values 2016-02-15 13:55:33 -05:00
resource_helpers_test.go Make default format right for nil values 2016-02-15 13:55:33 -05:00
serialization_proto_test.go Add protobuf preparation objects, guarded by proto tag 2015-12-05 18:15:48 -05:00
serialization_test.go Applied comments from the review 2016-02-18 14:18:39 +01:00
types.generated.go Merge pull request #21182 from vishh/repoTagsRename 2016-02-19 08:56:09 -08:00
types.go Restore service port validation compatibility with 1.0/1.1 2016-02-23 21:27:44 -05:00