Commit 0c2ab34
Lukas Fischer
#911 Add liveness/readiness checks for trivy cache
Trivy server provides a /healthz endpoint that always returns 200 (see
aquasecurity/trivy#534), and according to the logs/stdout trivy only
starts listening after downloading the database.
The helm chart provided by trivy (added in aquasecurity/trivy#751) uses
this endpoint for liveness and readiness checks as well. This change
therefore integrates the same checks.
Signed-off-by: Lukas Fischer <lukas.fischer@iteratec.com>1 parent 9f477c2 commit 0c2ab34
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
51 | 70 | | |
0 commit comments