summaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/components/policy-clamp-be/templates
diff options
context:
space:
mode:
authorsaul.gill <saul.gill@est.tech>2021-09-21 15:09:55 +0100
committersaul.gill <saul.gill@est.tech>2021-10-22 10:55:56 +0100
commit6238df47ecfcc1d2e40c2a5bec69272999d2af12 (patch)
tree847dfa85ee46cdd8c9a58a2d9862c297166e479f /kubernetes/policy/components/policy-clamp-be/templates
parent2c2be1eea53e97cc1972c0b89571baff92e59484 (diff)
[POLICY] Altered helm chart for policy-clamp-be
Added runtime-controlloop url and creds to application.properties Added new image to values Fixed SpringBoot issue where config could not be found Issue-ID: POLICY-3593 Change-Id: Ie54b4b10b3df428f6d6f72f2f53d6384f24c00cc Signed-off-by: saul.gill <saul.gill@est.tech>
Diffstat (limited to 'kubernetes/policy/components/policy-clamp-be/templates')
-rw-r--r--kubernetes/policy/components/policy-clamp-be/templates/deployment.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/kubernetes/policy/components/policy-clamp-be/templates/deployment.yaml b/kubernetes/policy/components/policy-clamp-be/templates/deployment.yaml
index e61cca0e49..4354c00a30 100644
--- a/kubernetes/policy/components/policy-clamp-be/templates/deployment.yaml
+++ b/kubernetes/policy/components/policy-clamp-be/templates/deployment.yaml
@@ -70,7 +70,7 @@ spec:
export SDC_CLIENT_PASSWORD_ENC=`java -jar {{ .Values.certInitializer.credsPath }}/aaf-cadi-aaf-2.1.20-full.jar cadi digest ${SDC_CLIENT_PASSWORD} {{ .Values.certInitializer.credsPath }}/org.onap.clamp.keyfile`;
envsubst < "/opt/policy/clamp/sdc-controllers-config.json" > "/opt/policy/clamp/sdc-controllers-config-pass.json"
{{- end }}
- java -Djava.security.egd=file:/dev/./urandom ${JAVA_RAM_CONFIGURATION} -jar ./policy-clamp-backend.jar
+ java -Djava.security.egd=file:/dev/./urandom ${JAVA_RAM_CONFIGURATION} -jar ./policy-clamp-backend.jar --spring.config.location=optional:classpath:/,optional:classpath:/config/,optional:file:./,optional:file:./config/
ports:
- containerPort: {{ .Values.service.internalPort }}
# disable liveness probe when breakpoints set in debugger
@@ -97,6 +97,10 @@ spec:
name: {{ include "common.fullname" . }}-config
subPath: application.properties
env:
+ - name: RUNTIME_USER
+ {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "runtime-be-secret" "key" "login") | indent 12 }}
+ - name: RUNTIME_PASSWORD
+ {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "runtime-be-secret" "key" "password") | indent 12 }}
- name: MYSQL_USER
{{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-creds" "key" "login") | indent 12 }}
- name: MYSQL_PASSWORD