argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.98k stars 5.47k forks source link

Rest API to sync app does not update app info #4954

Open sudivate opened 3 years ago

sudivate commented 3 years ago

Initiating sync calling REST API from CI/CD system and trying to update info to hold a callback URL which will be leveraged by a post-sync hook to signal back CI/CD system on completion. However, I can initiate sync but the app info is not updated. I can perform the same operation with CLI argocd app sync [app_name] --info "callbackurl=somevalue"

curl --location --request POST 'https://localhost:8080/api/v1/applications/{app name}/sync' \
--header 'Authorization: Bearer  {token} \
--header 'Content-Type: application/json' \
--data-raw '{"infos": [{"name": "callbackurl","value": "somevalue"}]}'

ArgoCD Version 1.7.8

ssaleh97 commented 2 years ago

any updates on this ?

debu99 commented 2 years ago

any workaround for this?