From 02db3285e28037dbbe8828d46e8853bdb2911b53 Mon Sep 17 00:00:00 2001 From: Kairo Araujo Date: Thu, 12 Sep 2024 23:07:18 +0200 Subject: [PATCH] fix: improve readiness command Signed-off-by: Kairo Araujo --- charts/rstuf-worker/Chart.yaml | 2 +- charts/rstuf-worker/values.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/rstuf-worker/Chart.yaml b/charts/rstuf-worker/Chart.yaml index 30da263..bc38395 100644 --- a/charts/rstuf-worker/Chart.yaml +++ b/charts/rstuf-worker/Chart.yaml @@ -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 diff --git a/charts/rstuf-worker/values.yaml b/charts/rstuf-worker/values.yaml index b7bd503..d70bc84 100644 --- a/charts/rstuf-worker/values.yaml +++ b/charts/rstuf-worker/values.yaml @@ -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: []