Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move API v1alpha1 to v1alpha2 #132

Merged
merged 2 commits into from
Apr 21, 2021
Merged

Move API v1alpha1 to v1alpha2 #132

merged 2 commits into from
Apr 21, 2021

Conversation

squaremo
Copy link
Member

@squaremo squaremo commented Apr 19, 2021

The image automation part of the API has changed structure (see [1]),
and had a version bump from v1alpha1 to v1alpha2. Since the types
here are also in image.toolkit.fluxcd.io, there will be less
complication if they also get a version bump even though they aren't
changing.

For the automation types, leaving the old version v1alpha1
definitions in place leads to Kubernetes trying to upgrade objects and
dropping most fields (which have changed location), so they have been
removed. That would not happen with the types here, but for
consistency I am removing the old API version here too.

[1] fluxcd/image-automation-controller#139

NB This will not work for a live system at present; applying the CRD gives the error:

The CustomResourceDefinition "imagerepositories.image.toolkit.fluxcd.io" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions

Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @squaremo

@hiddeco hiddeco force-pushed the v1alpha2 branch 2 times, most recently from 707bf36 to 55ccd3e Compare April 21, 2021 13:41
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hiddeco

squaremo and others added 2 commits April 21, 2021 15:58
The image automation part of the API has changed structure (see [1]),
and had a version bump from `v1alpha1` to `v1alpha2`. Since the types
here are also in `image.toolkit.fluxcd.io`, there will be less
complication if they also get a version bump even though they aren't
changing.

[1] fluxcd/image-automation-controller#139

Signed-off-by: Michael Bridgen <[email protected]>
Signed-off-by: Hidde Beydals <[email protected]>
@hiddeco hiddeco merged commit ae2cf55 into main Apr 21, 2021
@hiddeco hiddeco deleted the v1alpha2 branch April 21, 2021 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants