Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support both new fluxcd and original annotations #2219
The new prefix for annotations is
This commit adds support for interpreting and updating policies as
This change is backward-compatible, but we may want to keep it back until we're releasing other "decoupling" changes.
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.