woodpecker-ci / helm

This repo contains the helm charts of the Woodpecker project.
Apache License 2.0
21 stars 16 forks source link

List of registered agents grows indefinitelly #148

Closed vyskocilm closed 7 months ago

vyskocilm commented 7 months ago

Agent configuration https://woodpecker-ci.org/docs/administration/agent-config#using-system-token says

the agent registers to the server and store its unique id in a config file

Sadly this does not work well in k8s. The installed agents complaints about and as a consequence the list of registered agents grows all the time and I need to manually clean it up from time to time.

{"level":"error","error":"open /etc/woodpecker/agent.conf: no such file or directory","time":"2024-01-13T01:28:47Z","message":"could not persist agent config at '/etc/woodpecker/agent.conf'"}

Is it possible to address that somehow in helm? I am not an expert, so I have no idea if this is possible to do or if that require code changes.

pat-s commented 7 months ago

Discussed in https://github.com/woodpecker-ci/woodpecker/issues/3023

Right now, there is no way to change this.

vyskocilm commented 7 months ago

ok - lets close the ticket