[SO] Check for job instead of container for so-mariadb-config 18/123418/5
authorPrabhjot Singh Sethi <prabhjot@aarnanetworks.com>
Fri, 20 Aug 2021 17:10:23 +0000 (22:40 +0530)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Fri, 27 Aug 2021 14:25:47 +0000 (14:25 +0000)
so-bpmn-infra deployment init container waits on
so-mariadb-config pod to complete instead of checking job
status itself. This causes issues when the completed config
job container finishes and gets cleaned up due to garbage
collector, after which so-bpmn-infra pod gets stuck in init
state forever.

Fixing other instances of waiting for so-mariadb-config job
as well.

Issue-ID: OOM-2799
Signed-off-by: Prabhjot Singh Sethi <prabhjot@aarnanetworks.com>
Change-Id: Ib6d1b53d52c178386a743558c4b45b8f8748487b

kubernetes/so/components/so-bpmn-infra/values.yaml
kubernetes/so/components/so-catalog-db-adapter/values.yaml
kubernetes/so/components/so-etsi-sol005-adapter/values.yaml
kubernetes/so/components/so-nssmf-adapter/values.yaml
kubernetes/so/components/so-openstack-adapter/values.yaml
kubernetes/so/components/so-request-db-adapter/values.yaml
kubernetes/so/components/so-sdc-controller/values.yaml
kubernetes/so/values.yaml

index 09ad911..9a811d7 100755 (executable)
@@ -34,7 +34,8 @@ global:
 
 readinessCheck:
   wait_for:
-    - so-mariadb-config
+    jobs:
+      - '{{ include "common.release" . }}-so-mariadb-config-job'
 
 #################################################################
 # Secrets metaconfig
index f3d6bdb..f42e9d6 100755 (executable)
@@ -33,7 +33,8 @@ global:
 
 readinessCheck:
   wait_for:
-    - so-mariadb-config
+    jobs:
+      - '{{ include "common.release" . }}-so-mariadb-config-job'
 
 #################################################################
 # Secrets metaconfig
index 31b9255..f32587f 100755 (executable)
@@ -31,7 +31,8 @@ global:
 
 readinessCheck:
   wait_for:
-    - so-mariadb-config
+    jobs:
+      - '{{ include "common.release" . }}-so-mariadb-config-job'
 
 #################################################################
 # Secrets metaconfig
index 583f9ad..09f61a5 100755 (executable)
@@ -31,7 +31,8 @@ global:
 
 readinessCheck:
   wait_for:
-    - so-mariadb-config
+    jobs:
+      - '{{ include "common.release" . }}-so-mariadb-config-job'
 
 
 #################################################################
index ff0277b..9928960 100755 (executable)
@@ -31,7 +31,8 @@ global:
 
 readinessCheck:
   wait_for:
-    - so-mariadb-config
+    jobs:
+      - '{{ include "common.release" . }}-so-mariadb-config-job'
 
 #################################################################
 # Secrets metaconfig
index 61ec26d..7d323c5 100755 (executable)
@@ -31,7 +31,8 @@ global:
 
 readinessCheck:
   wait_for:
-    - so-mariadb-config
+    jobs:
+      - '{{ include "common.release" . }}-so-mariadb-config-job'
 
 #################################################################
 # Secrets metaconfig
index 4b6ecee..31aaca6 100755 (executable)
@@ -31,7 +31,8 @@ global:
 
 readinessCheck:
   wait_for:
-    - so-mariadb-config
+    jobs:
+      - '{{ include "common.release" . }}-so-mariadb-config-job'
 
 #################################################################
 # Secrets metaconfig
index f0bb7d1..91a299c 100755 (executable)
@@ -63,7 +63,8 @@ global:
 
 readinessCheck:
   wait_for:
-    - so-mariadb-config
+    jobs:
+      - '{{ include "common.release" . }}-so-mariadb-config-job'
 
 #################################################################
 # Secrets metaconfig