Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Support both new fluxcd and original annotations #2219

Merged
merged 1 commit into from
Aug 1, 2019

Conversation

squaremo
Copy link
Member

@squaremo squaremo commented Jul 3, 2019

The new prefix for annotations is fluxcd.io; but, many files will
use flux.weave.works, and we don't want to suddenly not understand
the policies in those.

This commit adds support for interpreting and updating policies as
annotations with either prefix. When updating, if an annotation uses
the old prefix, that will be retained; otherwise, the new prefix is
used.

This change is backward-compatible, but we may want to keep it back until we're releasing other "decoupling" changes.

Fixes #2217.

@squaremo squaremo added this to the decouple-from-weavecloud milestone Jul 8, 2019
@hiddeco hiddeco force-pushed the decouple/annotation-domain branch from 4d5d195 to 1f0162f Compare August 1, 2019 15:03
The new prefix for annotations is `fluxcd.io`; but, many files will
use `flux.weave.works`, and we don't want to suddenly not understand
the policies in those.

This commit adds support for interpreting and updating policies as
annotations with either prefix. When updating, if an annotation uses
the old prefix, that will be retained; otherwise, the new prefix is
used.
@hiddeco hiddeco force-pushed the decouple/annotation-domain branch from 1f0162f to cc7c63f Compare August 1, 2019 15:26
@hiddeco
Copy link
Member

hiddeco commented Aug 1, 2019

Getting this in to finish #2249 with the new annotation domain (and to support updates of existing annotations).

@hiddeco hiddeco merged commit c2427f5 into master Aug 1, 2019
@hiddeco hiddeco deleted the decouple/annotation-domain branch August 1, 2019 15:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support alternative fluxcd.io annotations
2 participants