argoproj-labs / argocd-agent

Redefining the multi cluster story of Argo CD
Apache License 2.0
81 stars 15 forks source link

chore: use goreman to start principal and agent #187

Open jparsai opened 2 months ago

jparsai commented 2 months ago

This PR is to make use of goreman to run principal and agent in same console, this would make debugging easy as logs of both components would be printed in same console, also it would help to understand the order of execution of agent and principal code blocks.

jparsai commented 1 month ago

Thanks for looking into this. I moved Procfile inside hack/demo-env/ directory, but moving Makefile requires changes in start up scripts, because they have to be executed from root folder. I was not sure if I should modify start up scripts for this. To set agent mode I introduced an env variable AUTONOMOUS_MODE, which can be used like this

AUTONOMOUS_MODE=true make start-local