Skip to content

Commit c807f78

Browse files
committed
refactor: isolate example client
1 parent e58fce3 commit c807f78

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ FROM python:3.11-alpine
22

33
WORKDIR /app
44
COPY kuberhealthy_client kuberhealthy_client
5-
COPY client.py .
5+
COPY example example
66

7-
CMD ["python3", "/app/client.py"]
7+
CMD ["python3", "/app/example/client.py"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ Both functions accept optional `url` and `run_uuid` keyword arguments if you pre
2525
## Running the example
2626

2727
Set the `KH_REPORTING_URL` and `KH_RUN_UUID` environment variables, add your
28-
check logic to `client.py`, and then run:
28+
check logic to `example/client.py`, and then run:
2929

3030
```bash
31-
python3 client.py
31+
python3 example/client.py
3232
```
3333

3434
Within the `main` function, uncomment either `report_ok()` or
@@ -46,7 +46,7 @@ make push IMG=myrepo/example-check:latest
4646

4747
## Using in your own checks
4848

49-
1. Add your check logic to `client.py` or your own script. Call `report_ok()`
49+
1. Add your check logic to `example/client.py` or your own script. Call `report_ok()`
5050
when the check succeeds or `report_error("message")` when it fails.
5151
2. Build and push your image as shown above.
5252
3. Create a `KuberhealthyCheck` resource pointing at your image and apply it to any
File renamed without changes.

0 commit comments

Comments
 (0)