-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Annotations strategy #24
Comments
I like the idea and totally makes sense to me. Plus making it easier to manage the logic :) Additionally, we might think of storing the serialized json in the resource itself, similarly to what kubernetes does with
If we store the last updated version of the referring to the resourceVersion, this could greatly simplify the procedure. For example:
Since 124 != 123 - trigger update |
This would also be a good idea for when we implement TPRs (#21). We would already have the format we require set up and implementation should be really easy. |
I was wondering if we should rather use Looking at other projects I think it makes to target |
I moved the discussion about using alpha annotations to #42 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
We'll support several annotations from the beginning, some of them are supposed to be deprecated soon, others will be added over time as new requirements come up.
@justinsb throw in an idea where we store JSON as the value of an annotation which can then be used to encode more complicated data in order to support more advanced but less common use cases.
We could design our annotations around a single annotation holding JSON. This would be the source of truth for our controller. Keys can be added over time to support new features (CNAME, TTL, provider specific stuff). Though, normally one would use the simpler annotations using plain text values (e.g.
external-dns/hostname: foo
) but internallyexternal-dns
would convert the simpler annotations to the source-of-truth-struct before processing.This way, most users could just use the simple annotations that are exposed but more adavanced users could directly set the JSON based annotation to have access to everything that
external-dns
provides.This can also help with solving backwards-incopatible changes and with rolling out new versions. New features could be made available solely via some keys in the JSON before being promoted to top-level annotations if they prove to be useful.
@justinsb @ideahitme @iterion Any thoughs?
The text was updated successfully, but these errors were encountered: