[CPS] Update with latest CPS image for Honululu 45/118845/7
authorRishi.Chail <rishi.chail@est.tech>
Fri, 5 Mar 2021 12:11:01 +0000 (12:11 +0000)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 23 Mar 2021 06:32:25 +0000 (06:32 +0000)
Added config for liquibase.
Updated image for CPS.

Issue-ID: CPS-256

Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I6c1dd27fc29e21efced95de874b7ce723536c438

kubernetes/cps/resources/config/application.yml [changed mode: 0644->0755]
kubernetes/cps/templates/deployment.yaml [changed mode: 0644->0755]
kubernetes/cps/values.yaml [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 983a754..3fa080e
@@ -1,6 +1,7 @@
 {{/*
   #  Copyright (C) 2021 Pantheon.tech
   #  Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+  #  Modifications Copyright (C) 2021 Nordix Foundation. All rights reserved.
   #
   # Licensed under the Apache License, Version 2.0 (the "License");
   # you may not use this file except in compliance with the License.
@@ -46,6 +47,11 @@ spring:
     cache-names: yangSchema
     caffeine:
       spec: maximumSize=10000,expireAfterAccess=10m
+
+  liquibase:
+    change-log: classpath:changelog/changelog-master.yaml
+    labels: ${LIQUIBASE_LABELS}
+
 # Actuator
 management:
   endpoints:
old mode 100644 (file)
new mode 100755 (executable)
index e15ae71..4f87d20
@@ -1,6 +1,7 @@
 {{/*
 # Copyright (C) 2021 Pantheon.tech, Orange
 # Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+# Modifications Copyright (C) 2021 Nordix Foundation. All rights reserved.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -40,6 +41,8 @@ spec:
             {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pg-user-creds" "key" "login") | indent 12 }}
           - name: DB_PASSWORD
             {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pg-user-creds" "key" "password") | indent 12 }}
+          - name: LIQUIBASE_LABELS
+            value: {{ .Values.config.liquibaseLabels }}
         volumeMounts:
           - mountPath: /config-input
             name: init-data-input
old mode 100644 (file)
new mode 100755 (executable)
index ee797a5..2c28231
@@ -41,9 +41,13 @@ global:
     virtualhost:
       baseurl: "simpledemo.onap.org"
 
-image: onap/cps-and-nf-proxy:0.0.1
+image: onap/cps-and-nf-proxy:1.0.0
 containerPort: &svc_port 8080
 
+config:
+  # Set it for pre loading xnfdata, else set to null
+  liquibaseLabels: xnf-data-preload
+
 service:
   type: ClusterIP
   name: cps
@@ -140,4 +144,4 @@ postgres:
 
 readinessCheck:
   wait_for:
-    - cps-postgres
\ No newline at end of file
+    - cps-postgres