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
flux
we have promoted the image automation APIs fromv1alpha1
tov1alpha2
, this new version comes with breaking changes.API changes
For
ImageRepository
andImagePolicy
there are no changes to the specification besides the version bump fromimage.toolkit.fluxcd.io/v1alpha1
toimage.toolkit.fluxcd.io/v1alpha2
.For
ImageUpdateAutomation
,v1alpha2
rearranges the API types to provide for future extension. Here are the differences, and where eachv1alpha1
field goes:v1alpha1
fieldv1alpha2
.spec.checkout
.spec.git.checkout
, and optionalgitRepositoryRef
is now.spec.sourceRef
branch
is nowref
, and optional.spec.commit
.spec.git.commit
authorName
andauthorEmail
nowauthor.name
andauthor.email
.spec.push
.spec.git.push
For more details, see the
v1alpha2
API 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
,ImageUpdateAutomation
manifests:Rewrite your
ImageUpdateAutomation
v1alpha1 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