kiwigrid / k8s-sidecar

This is a docker container intended to run inside a kubernetes cluster to collect config maps with a specified label and store the included files in a local folder.
MIT License
612 stars 183 forks source link

Fix missing import method for payload #286

Closed fbrousse closed 1 year ago

fbrousse commented 1 year ago

An import is missing leading to

│ Traceback (most recent call last): │ │ File "/app/sidecar.py", line 158, in │ │ main() │ │ File "/app/sidecar.py", line 66, in main │ │ request_payload = prepare_payload(os.getenv(REQ_PAYLOAD)) │ │ ^^^^^^^^^^^^^^^ │ │ NameError: name 'prepare_payload' is not defined

fbrousse commented 1 year ago

@jekkel I discovered this one on my cluster just after the release. sorry

jekkel commented 1 year ago

yeah... this is the reason we constantly ask for tests - although their pretty hard to write in the current shape of the project.

Anyway, you're welcome :)