pkg/apis
Matt Moore 31649c272a Start to lay the groundwork for Status conversion. (#373)
The backbone of our Condition system is our "happy" condition and
the semantics governing how other subconditions influence that condition.
When looking towards Conversion, it is possible for the set of conditions
to vary between `v1alpha1` and `v1beta1`, but the "happy" condition should
remain consistent across versions.

The main changes:
1. Provide a `ConvertTo` helper for "converting" between `duckv1beta1.Status`
 types in this "lowest common denominator" sense, where we just copy the
 happy condition.
2. When `InitializeConditions()` (plural) is called, seed the initial state
 of sub-conditions from the initial state of the "happy" condition, if True.

This change enables us to completely change the condition space across
versions, while maintaining the consistency of the happy condition.

A couple peripheral changes:
1. Add `context.Context` to the `apis.Convertible` interface.
2. Drop `InitializeCondition()` (singular) from the `ConditionsManager` interface (I don't see any usage outside of this file).
2019-04-09 08:22:59 -07:00
..
duck Start to lay the groundwork for Status conversion. (#373) 2019-04-09 08:22:59 -07:00
istio Add CredentialName into Gateway (#360) 2019-04-02 11:10:56 -07:00
testing Share the common parts of Serving ObjectMeta validation (#367) (#370) 2019-04-07 15:19:57 -07:00
OWNERS Can I has slash approve? (#100) 2018-09-27 15:32:22 -07:00
condition_set.go Start to lay the groundwork for Status conversion. (#373) 2019-04-09 08:22:59 -07:00
condition_set_impl_test.go Start to lay the groundwork for Status conversion. (#373) 2019-04-09 08:22:59 -07:00
condition_set_test.go Move Condition stuff to apis, add a v1beta1 Status. (#361) 2019-04-02 09:51:55 -07:00
condition_types.go Move Condition stuff to apis, add a v1beta1 Status. (#361) 2019-04-02 09:51:55 -07:00
condition_types_test.go Move Condition stuff to apis, add a v1beta1 Status. (#361) 2019-04-02 09:51:55 -07:00
contexts.go Deprecate apis.Immutable and apis.Annotatable. (#368) 2019-04-08 10:26:58 -07:00
contexts_test.go Deprecate apis.Immutable and apis.Annotatable. (#368) 2019-04-08 10:26:58 -07:00
doc.go Add deepcopy-gen for VolatileTime. (#42) 2018-08-09 16:32:03 -07:00
field_error.go ErrInvalidValue support for interface{} (#372) 2019-04-08 18:26:58 -07:00
field_error_test.go ErrInvalidValue support for interface{} (#372) 2019-04-08 18:26:58 -07:00
interfaces.go Start to lay the groundwork for Status conversion. (#373) 2019-04-09 08:22:59 -07:00
kind2resource.go Create a common way for turning GVK into GVR. (#84) 2018-09-21 14:07:21 -07:00
kind2resource_test.go Create a common way for turning GVK into GVR. (#84) 2018-09-21 14:07:21 -07:00
metadata_validation.go Share the common parts of Serving ObjectMeta validation (#367) 2019-04-05 15:38:57 -07:00
metadata_validation_test.go Share the common parts of Serving ObjectMeta validation (#367) 2019-04-05 15:38:57 -07:00
volatile_time.go Move VolatileTime into knative/pkg (#40) 2018-08-09 15:58:51 -07:00
volatile_time_test.go Move VolatileTime into knative/pkg (#40) 2018-08-09 15:58:51 -07:00
zz_generated.deepcopy.go Move Condition stuff to apis, add a v1beta1 Status. (#361) 2019-04-02 09:51:55 -07:00