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
Hi, the problem as as the title states. The Helm chart version is 1.5.0, the latest as of this moment.
The agent pod crashes. Upon inspecting the the logs of the agent pod state:
{"level":"info","time":"2024-07-18T17:33:24Z","message":"log level: info"}
{"level":"info","time":"2024-07-18T17:33:24Z","message":"no agent config found at '/etc/woodpecker/agent.conf', start with defaults"}
{"level":"fatal","error":"rpc error: code = Unknown desc = agent could not auth: please provide a token","time":"2024-07-18T17:33:24Z","message":"error running agent"}
It looks like the secret isn't being loaded.
The following is my Helm for the agent section of values.yml:
? You can set arbitrary env vars in the env section.
That is exactly what I've done and it works. However, I assumed that such a process was automatic given that a secret store is created automatically, #144 seem to indicate this was intentional, and the default value for agent.extraSecretNamesForEnvFrom and server.extraSecretNamesForEnvFrom both include woodpecker-secret by default (which I had not overwritten).
Furthermore, the Kubernetes documentation makes no mention of needing to define these environment variables myself either in the readme.
is this intentional behavior? Otherwise, the chart works fine. I found this confusing since I knew the WOODPECKER_AGENT_SECRET was needed by the agent and server, but assumed that this chart took care of it, due to it both generating a secret, seeming to load it, and the lack of mentioning that it must be manually configured. Admittedly I am not a master at K8s or helm charts. Thanks.
Hi, the problem as as the title states. The Helm chart version is 1.5.0, the latest as of this moment.
The agent pod crashes. Upon inspecting the the logs of the agent pod state:
It looks like the secret isn't being loaded.
The following is my Helm for the agent section of
values.yml
:Looking at the environment variable section of
kubectl describe
ing the agent:I believe there should be a
WOODPECKER_AGENT_SECRET
environment variable, but I don't see one.I may be configuring something incorrectly. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: