You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the new ApplicationSet templatePatch field to define the syncPolicy for an Application, and one of the Applications is left with auto-sync disabled (therefore created in an unknown state), results in the Application spec being nearly empty:
apiVersion: argoproj.io/v1alpha1kind: Applicationmetadata:
name: prd-guestbooknamespace: argocdspec:
destination: {} # This should be populated from the AppSet spec, along with the missing `source`.project: examples # Somehow this survives?
And the UI breaking with the error:
Something went wrong!
Consider submitting an issue [here](https://github.com/argoproj/argo-cd/issues/new?labels=bug&template=bug_report.md).
Stacktrace:
TypeError: Cannot read properties of undefined (reading 'chart')
at https://localhost:8080/main.586a0e8f59b9479ba603.js:2:1930620
at Array.map (<anonymous>)
at Object.children (https://localhost:8080/main.586a0e8f59b9479ba603.js:2:1929808)
at Yr.render (https://localhost:8080/main.586a0e8f59b9479ba603.js:2:1478481)
at zi (https://localhost:8080/main.586a0e8f59b9479ba603.js:2:771988)
at Hi (https://localhost:8080/main.586a0e8f59b9479ba603.js:2:771783)
at Es (https://localhost:8080/main.586a0e8f59b9479ba603.js:2:807407)
at Sl (https://localhost:8080/main.586a0e8f59b9479ba603.js:2:798866)
at xl (https://localhost:8080/main.586a0e8f59b9479ba603.js:2:798791)
at hl (https://localhost:8080/main.586a0e8f59b9479ba603.js:2:795814)
I would expect that the resulting Application manifest would contain exactly what is in the spec.template when autoSync: false is used. Specifically, prd-guestbook should look like:
project only survives, because there's a security feature that disallows patching that field.
I think the docs should probably emphasize that, when writing a templatePatch, you're crafting a patch. So if the patch looks like spec: # nothing in here, it will effectively clear out existing fields.
Checklist:
argocd version
.Describe the bug
Related to #14893
When using the new ApplicationSet
templatePatch
field to define thesyncPolicy
for an Application, and one of the Applications is left with auto-sync disabled (therefore created in an unknown state), results in the Application spec being nearly empty:And the UI breaking with the error:
To Reproduce
templatePatch
and where one of the Applications will be in an unknown state.autoSync: false
will be broken (breaking the UI as well).Expected behavior
I would expect that the resulting Application manifest would contain exactly what is in the
spec.template
whenautoSync: false
is used. Specifically,prd-guestbook
should look like:Screenshots
Version
Logs
The text was updated successfully, but these errors were encountered: