Skip to content

Commit

Permalink
fix: improve readiness command
Browse files Browse the repository at this point in the history
Signed-off-by: Kairo Araujo <kairo.araujo@testifysec.com>
  • Loading branch information
kairoaraujo committed Sep 12, 2024
1 parent 4c625a0 commit 02db328
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/rstuf-worker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.2
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 2 additions & 2 deletions charts/rstuf-worker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ readinessProbe:
exec:
command:
[
"RSTUF_WORKER_ID=$HOSTNAME /usr/local/bin/python",
"/usr/local/bin/python",
"-c",
"\"import os;from app import app;exit(0 if os.environ['HOSTNAME'] in ','.join(app.control.inspect(app=app).stats().keys()) else 1)\""
"\"import os;os.environ['RSTUF_WORKER_ID']=os.environ['HOSTNAME'];from app import app;exit(0 if os.environ['HOSTNAME'] in ','.join(app.control.inspect(app=app).stats().keys()) else 1)\""
]

imagePullSecrets: []
Expand Down

0 comments on commit 02db328

Please sign in to comment.