-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
directory: false always out of sync (app of apps) #4501
Comments
Yes the default is to not recurse. And we use the |
I marked this works-for-me because just like other kubernetes resources where default value fields are dropped, the application behaves the same way. |
Thanks @jessesuen for replying. Is this documented anywhere? Only i found it difficult to find anything that referenced to what you mentioned. I think in a normal argocd application, there wouldn't be an issue, as the key is dropped then diffed and not cause a sync issue. I guess it would be helpful for the app-of-apps pattern to have some reference on any default values, with a note on the dropping of config resulting in this issue. I just think others might hit similar issues. Happy to add some markdown to the docs if you can guide me as to where you think this would be best placed? Side Note -> this might not be an issue with ApplicationSet as I think one of the goals is to replace the App-of-Apps pattern, but I'm not sure if I can go try that out just yet. |
argoproj/argo-cd#4501 Signed-off-by: Alexis de Talhouët <[email protected]>
i got into same issue, I removed the directory key entirely from child apps, and app-of-apps have below setting: |
I've encountered the same problem on ArgoCD v2.12.6+4dab5bd. |
I asked in slack channel but didn't see any response. As this is an easy 'fix' for now I happy just to open the ticket and see if I have spotted a bug or not.
Checklist:
argocd version
.Describe the bug
I have an application where I am using the
directory
and subrecurse
keys to sync from a directory in git but only at the top level, not to recurse. I wanted to explicitly set the key to false so that I was confident that there would be no recursion to sub directories if they were present, rather than rely on assuming to default being no recursion.What I've found is that, even though the application syncs, the config never takes effect and the application remains OutOfSync in the parent app. See image:
I followed the application specification here to see what the key could be defined as.
To Reproduce
Create an application with a definition that specifies the
directory
andrecurse
key to befalse
. Here is my example of cert-manager with some minor masking:Sync this config across with an App of app pattern. here is my staging example that syncs this to the cluster argocd runs in:
I had the same setup across 3 environment. All 3 are the same, but here's an example screenshot:
The child app sync fine and is healthy. The issue seems to be the parent app cannot apply the directory setting.
I tried
false
andFalse
as the value, same result.Expected behaviour
I expect an error if I have made an invalid config option.
Mostly I thought this would just sync across, but it does not seem to.
Screenshots
See above ^
Version
Logs
From the argocd application controller relating you our us cluster app sync
Solution(s)
For now I am going to remove the
directory
key entirely as I have no sub directories and should be safe.But I would like to be able to specify the key so that in the future I can use sub directories.
I could also ignore the field, but that doesn't seem right in this instance.
Does anyone know what the default is? is it false? is it documented anywhere?
The text was updated successfully, but these errors were encountered: