简体   繁体   中英

Howto update an ARGO-CD parameter via REST-API?

I found the swagger-ui. But the only functionality I can imagine to do this job (I found) was the application patch method (swagger-ui#operation/Patch). But I find no explenation how to do it.

The explenation I found is for the cli tool of argocd ( https://argoproj.github.io/argo-cd/user-guide/parameters/ ) which does not really help me.

Any idea?

The whole point of adopting GitOps is to use Git as a single source of truth.If you want to change your application with ArgoCD you are expected to commit your change to the Git repository watched by ArgoCD.

Changing manually values via REST APIs is against GitOps.

Kazanki's answer does not address the question. While I agree that it may be an "anti-pattern", there are still times when this is desirable. For example, not wanting to maintain multiple sets of helm charts that would be identical other than for a single value (in my case, the ingress hostname).

This update can be done using argocd cli. Example: argocd app set -p ingress.hostname=

I've yet to find out how to do this with REST but would very much like to know as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM