From 060bc378e32c2ffba34f890c53cc359eb9ee64d0 Mon Sep 17 00:00:00 2001 From: Andreas Geissler Date: Mon, 11 Mar 2024 17:26:53 +0100 Subject: [COMMON] Update MariaDB readinessChecks to fix Operator issues Give different readinessCheck rules depending on the usage of mariaDB Operator and local/global DB setup Apply these changes to CDS, NBI, SO, SDNC, Policy Issue-ID: OOM-3280 Change-Id: I4e6f584558ffebb6ab602db88a73c2f02891902e Signed-off-by: Andreas Geissler --- kubernetes/policy/values.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'kubernetes/policy/values.yaml') diff --git a/kubernetes/policy/values.yaml b/kubernetes/policy/values.yaml index 8dca11d74b..9d08080cf7 100755 --- a/kubernetes/policy/values.yaml +++ b/kubernetes/policy/values.yaml @@ -275,6 +275,18 @@ postgres: readinessCheck: wait_for: - '{{ ternary .Values.postgres.service.name "postgres" .Values.global.postgres.localCluster }}' + wait_for_global_operator: + pods: + - '{{ .Values.global.mariadbGalera.nameOverride }}-0' + wait_for_local_operator: + pods: + - '{{ index .Values "mariadb-galera" "nameOverride" }}-0' + wait_for_global: + apps: + - '{{ include "common.mariadbAppName" . }}' + wait_for_local: + apps: + - '{{ include "common.mariadbAppName" . }}' restServer: policyPapUserName: policyadmin -- cgit 1.2.3-korg