Unable to Ignore Differences of a single Object in an Array #24877
Unanswered
joshwright10
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a process which will allow external tooling to create a Sync Window for an AppProject so that engineers and developers can simply add a "1h" Window to Pause the sync for their application while they troubleshoot an issue on the live cluster.
The process works well, but the declarative nature of GitOps wipes out my out of band Sync Window created by the REST API before it has a chance to be useful.
I have tried adding an
ignoreDifferences
option to Argo at the System level and App level, but I can't get it to just ignore specific objects in the.spec.syncWindows[]
array.For example, I have tried the following:
This is what the JSON looks like from a GET request to the REST API.
I would expect that the
ignoreDifferences
would simply ignore the object in the array where thedescription
is "Created by Automation" and sync as normal.However, Argo CD is instead syncing the AppProject and removing the Sync Window that I created using the REST API.
Is it possible to Ignore just a single object in an array based on a value in that array object?
I expected that this item in the array would
Beta Was this translation helpful? Give feedback.
All reactions