Upgrade image automation to v1alpha2 APIs #1333
Unanswered
stefanprodan
asked this question in
Show and tell
Replies: 1 comment
-
|
Your first line has a typo "from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the v0.13 release of
fluxwe have promoted the image automation APIs fromv1alpha1tov1alpha2, this new version comes with breaking changes.API changes
For
ImageRepositoryandImagePolicythere are no changes to the specification besides the version bump fromimage.toolkit.fluxcd.io/v1alpha1toimage.toolkit.fluxcd.io/v1alpha2.For
ImageUpdateAutomation,v1alpha2rearranges the API types to provide for future extension. Here are the differences, and where eachv1alpha1field goes:v1alpha1fieldv1alpha2.spec.checkout.spec.git.checkout, and optionalgitRepositoryRefis now.spec.sourceRefbranchis nowref, and optional.spec.commit.spec.git.commitauthorNameandauthorEmailnowauthor.nameandauthor.email.spec.push.spec.git.pushFor more details, see the
v1alpha2API spec documentation.Upgrade procedure
Upgrade the Flux CLI
Upgrade your Flux CLI to v0.13 by downloading the binary from GitHub or using Homebrew:
Upgrade the Flux components
Run bootstrap:
After the upgraded, the image-automation-controller will start logging errors like:
Update the manifests in Git
Clone the repo locally and change the version of all your
ImageRepository,ImagePolicy,ImageUpdateAutomationmanifests:Rewrite your
ImageUpdateAutomationv1alpha1 manifests to v1alpha2:From:
To:
Commit and push the manifests change to Git, then tell flux to pull and apply changes with:
Finally verify that the image update automation is working again:
Beta Was this translation helpful? Give feedback.
All reactions