[CPS] Fix postgres init job dependency 86/127286/2
authorBruno Sakoto <bruno.sakoto@bell.ca>
Fri, 21 Jan 2022 12:45:27 +0000 (07:45 -0500)
committerBruno Sakoto <bruno.sakoto@bell.ca>
Mon, 28 Feb 2022 13:29:40 +0000 (08:29 -0500)
Use global.postgres.postgresInit value

Issue-ID: CPS-861
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I45d4863a7a8dbc5ad4a5d2edde174469c4710c15
(cherry picked from commit 838981352b45ef8851d99eeaf94257b29b2ab63c)

kubernetes/cps/components/cps-core/requirements.yaml
kubernetes/cps/components/cps-core/values.yaml

index 8a4ffbe..9283c6a 100644 (file)
@@ -1,4 +1,5 @@
-#  Copyright (C) 2021 Pantheon.tech, Orange
+# Copyright (C) 2021 Pantheon.tech, Orange
+# Modifications Copyright (C) 2022 Bell Canada
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -23,8 +24,7 @@ dependencies:
   - name: postgres-init
     version: ~9.x-0
     repository: '@local'
-    condition: not global.postgres.localCluster
-    #condition: global.postgres.postgresInit
+    condition: postgres.postgresInit
   - name: readinessCheck
     version: ~9.x-0
     repository: '@local'
index a6df12c..303ba49 100644 (file)
@@ -1,4 +1,5 @@
-#  Copyright (C) 2021 Pantheon.tech, Orange, Bell Canada.
+# Copyright (C) 2021 Pantheon.tech, Orange, Bell Canada.
+# Modifications Copyright (C) 2022 Bell Canada
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -197,6 +198,7 @@ logging:
 # Postgres overriding defaults in the postgres
 #################################################################
 postgres:
+  postgresInit: true
   nameOverride: &postgresName cps-core-postgres
   service:
     name: *postgresName