Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: Add ignore-resources-tracking annotation to ignore resources update #18343
feat: Add ignore-resources-tracking annotation to ignore resources update #18343
Changes from 13 commits
78644c9
a22404e
5157dce
782621e
62dc5dc
e0acf88
ba861c1
a0fe22a
7128bb0
5f70557
d9f7dfa
140c3d8
cfa2baa
b1fe0b9
e51e61a
295eab3
0cc1287
0d94782
9da4335
b3abf14
06589c5
c29e0fb
e4b3837
bec8ffe
d5313a1
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that the code is written, I think it will be much easier for users to have the same terminology with the existing feature. wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@agaudreault I think
AnnotationApplyResourcesUpdate
is more logical to me.AnnotationIgnoreResourceUpdates
seems the invert of what we are doing and therefore we need to flip our logic if we rename it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition should not change. If a resource does not have a hash, that means the annotation was not there (or not true), therefore we should not ignore updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I misunderstood your intention. So you want is the dependent object set
argocd.argoproj.io/apply-resources-update=true
and then use the existing ignore resources config to skip refresh. I will update the PR.