aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorBruno Sakoto <bruno.sakoto@bell.ca>2022-01-21 07:45:27 -0500
committerBruno Sakoto <bruno.sakoto@bell.ca>2022-02-23 17:21:09 -0500
commit838981352b45ef8851d99eeaf94257b29b2ab63c (patch)
tree8843f2adfbe29bab6e5f4698ab54536e7ed2caf6 /kubernetes
parent79c67fbff6305b007903bef52435f80f28761995 (diff)
[CPS] Fix postgres init job dependency
Use global.postgres.postgresInit value Issue-ID: CPS-861 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I45d4863a7a8dbc5ad4a5d2edde174469c4710c15
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/cps/components/cps-core/Chart.yaml6
-rw-r--r--kubernetes/cps/components/cps-core/values.yaml4
2 files changed, 6 insertions, 4 deletions
diff --git a/kubernetes/cps/components/cps-core/Chart.yaml b/kubernetes/cps/components/cps-core/Chart.yaml
index c1ef7202a7..95201a0d4a 100644
--- a/kubernetes/cps/components/cps-core/Chart.yaml
+++ b/kubernetes/cps/components/cps-core/Chart.yaml
@@ -1,6 +1,7 @@
-# Copyright (C) Pantheon.tech, Orange
+# Copyright (C) Pantheon.tech, Orange
# Modifications Copyright © 2021 Orange
# Modifications Copyright © 2021 Nordix Foundation
+# 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.
@@ -30,8 +31,7 @@ dependencies:
- name: postgres-init
version: ~10.x-0
repository: '@local'
- condition: not global.postgres.localCluster
- #condition: global.postgres.postgresInit
+ condition: postgres.postgresInit
- name: readinessCheck
version: ~10.x-0
repository: '@local'
diff --git a/kubernetes/cps/components/cps-core/values.yaml b/kubernetes/cps/components/cps-core/values.yaml
index e67cfb250a..3da5d170b7 100644
--- a/kubernetes/cps/components/cps-core/values.yaml
+++ b/kubernetes/cps/components/cps-core/values.yaml
@@ -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.
@@ -200,6 +201,7 @@ logging:
# Postgres overriding defaults in the postgres
#################################################################
postgres:
+ postgresInit: true
nameOverride: &postgresName cps-core-postgres
service:
name: *postgresName