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
Running argocd appset get <name> hits a segmentation fault (nil pointer dereference) when spec.syncPolicy is set but no spec.template.spec.syncPolicy is set.
This is only a problem on the wide output format and doesn't occur when output is printed in JSON or YAML format.
To Reproduce
Create an ApplicationSet with spec.SyncPolicy set. It could be set as follows:
Note that spec.template.spec.syncOptions were set but spec.template.spec.syncPolicy was not set. This issue does not occur if spec.template.spec.syncPolicy is set.
Checklist:
argocd version
.Describe the bug
Running
argocd appset get <name>
hits a segmentation fault (nil pointer dereference) whenspec.syncPolicy
is set but nospec.template.spec.syncPolicy
is set.This is only a problem on the
wide
output format and doesn't occur when output is printed in JSON or YAML format.To Reproduce
spec.SyncPolicy
set. It could be set as follows:spec.template.spec
.argocd appset create <appset>
for example.argocd appset get <appset>
.An example ApplicationSet I used here is as follows:
Note that
spec.template.spec.syncOptions
were set butspec.template.spec.syncPolicy
was not set. This issue does not occur ifspec.template.spec.syncPolicy
is set.Expected behavior
The sample output should look like follows:
Screenshots
The complete error looks like follows:
Version
I was running the above version on my server, but this affects the latest version as well.
Logs
Not appliable.
The text was updated successfully, but these errors were encountered: