aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/modeling
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2024-04-11 13:53:39 +0200
committerAndreas Geissler <andreas-geissler@telekom.de>2024-04-11 18:41:30 +0200
commitee119102020f1dc6044f686c748a37ff0e7487de (patch)
treeefa4eaf61a118e50697a17ac7853ca62433332d1 /kubernetes/modeling
parent16d200e4f99dbad508156d936b9481bed051055b (diff)
[COMMON] Update all ReadinessChecks
Use the new "service" feature of the readiness image to resolve startup dependencies. Issue-ID: OOM-3280 Change-Id: Ia331d51528676744e5e0479d1fd0ca02830c3499 Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Diffstat (limited to 'kubernetes/modeling')
-rw-r--r--kubernetes/modeling/components/modeling-etsicatalog/templates/deployment.yaml6
-rw-r--r--kubernetes/modeling/components/modeling-etsicatalog/values.yaml6
2 files changed, 5 insertions, 7 deletions
diff --git a/kubernetes/modeling/components/modeling-etsicatalog/templates/deployment.yaml b/kubernetes/modeling/components/modeling-etsicatalog/templates/deployment.yaml
index a23d257262..c18a2016b6 100644
--- a/kubernetes/modeling/components/modeling-etsicatalog/templates/deployment.yaml
+++ b/kubernetes/modeling/components/modeling-etsicatalog/templates/deployment.yaml
@@ -42,8 +42,8 @@ spec:
- /app/ready.py
args:
{{- if .Values.global.mariadbGalera.localCluster }}
- - --app-name
- - {{ index .Values "mariadb-galera" "nameOverride" }}
+ - --service-name
+ - {{ index .Values "mariadb-galera" "service" "name" }}
{{- else }}
- --job-name
- {{ include "common.release" . }}-etsicatalog-db-config-job
@@ -65,7 +65,7 @@ spec:
cpu: "3m"
memory: "20Mi"
{{ if .Values.config.msb_enabled }}
- {{ include "common.readinessCheck.waitFor" (dict "dot" . "wait_for" .Values.readinessCheck.wait_for.msb ) | indent 6 | trim }}
+ {{ include "common.readinessCheck.waitFor" . | nindent 6 }}
{{ end }}
- command:
- /bin/sh
diff --git a/kubernetes/modeling/components/modeling-etsicatalog/values.yaml b/kubernetes/modeling/components/modeling-etsicatalog/values.yaml
index ed432f81b5..83cfde8a7b 100644
--- a/kubernetes/modeling/components/modeling-etsicatalog/values.yaml
+++ b/kubernetes/modeling/components/modeling-etsicatalog/values.yaml
@@ -37,10 +37,8 @@ global:
readinessCheck:
wait_for:
- msb:
- name: msb
- containers:
- - msb-iag
+ services:
+ - msb-iag
#################################################################
# Secrets metaconfig