Commit Graph

3 Commits

Author SHA1 Message Date
Michael Bridgen 5d62547abc Port to conditions helpers
This commit rewrites the controller code so it uses the conditions
helpers from fluxcd/pkg/runtime/conditions.

It needs the fluxcd/source-controller/api module from the
reconcilers-dev branch, otherwise they will disagree on the methods in
fluxcd/pkg/apis/meta. Hence, variations on

    go get github.com/fluxcd/source-controller{,api}@reconcilers-dev

until I got both ./go.mod and ./api/go.mod to use modules from the
branch.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-09-09 12:19:02 +01:00
Michael Bridgen c829c590c9 Bump pkg/apis/meta and pkg/runtime to RCs
Signed-off-by: Michael Bridgen <michael@weave.works>
2021-09-08 16:45:40 +01:00
Michael Bridgen 5b9631327f Graduate v1alpha2 API to v1beta1
This does the following:

 - copies the type definitions from v1alpha2 to v1beta1
 - changes the "stored" version to v1beta1
 - gives the CRD a conversion strategy of None, meaning just rewrite the version
 - switches the controller to use v1beta1
 - moves the generated documentation to v1beta1

This effectively rebadges the v1alpha2 version of this part of the
image API to v1beta1. The v1alpha2 version is left in place; there are
no conversion issues, as with v1alpha1->v1alpha2. The CRD specifies
that converting between v1alpha2 and v1beta1 just means changing the
version (i.e., the schema and semantics are the same).

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-06-28 11:26:59 +01:00