Feature 10991: new environment variables OSMLCM_VCA_MAINPOSTRENDERERPATH and OSMLCM_V... 38/14438/4
authorPedro Pereira <pedrocjdpereira@av.it.pt>
Wed, 19 Jun 2024 19:59:36 +0000 (20:59 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 5 Jul 2024 06:13:54 +0000 (08:13 +0200)
Change-Id: Ifd1632f546bcdebd985b33accc6d0bf592de68f9
Signed-off-by: Pedro Pereira <pedrocjdpereira@av.it.pt>
docker/LCM/Dockerfile
installers/helm/osm/templates/lcm/lcm-configmap.yaml
installers/helm/osm/values.yaml

index 2a90f6b..af62d1f 100644 (file)
@@ -159,6 +159,10 @@ ENV OSMLCM_VCA_HELMPATH    /usr/local/bin/helm3
 ENV OSMLCM_VCA_KUBECTLPATH /usr/bin/kubectl
 ENV OSMLCM_VCA_JUJUPATH    /usr/local/bin/juju
 
+# post-renderers
+ENV OSMLCM_MAINPOSTRENDERERPATH    /app/N2VC/n2vc/post-renderer-scripts/mainPostRenderer/mainPostRenderer
+ENV OSMLCM_PODLABELSPOSTRENDERERPATH    /app/N2VC/n2vc/post-renderer-scripts/podLabels/podLabels
+
 # helm
 ENV OSMLCM_VCA_STABLEREPOURL https://charts.helm.sh/stable
 # ENV OSMLCM_VCA_HELM_CA_CERTS <ca-cert>
index 9fdfcc8..5cbc1cf 100644 (file)
@@ -30,6 +30,8 @@ data:
   OSMLCM_STORAGE_COLLECTION: "files"
   OSMLCM_STORAGE_URI: "mongodb://mongodb-k8s:27017/?replicaSet=rs0"
   OSMLCM_GLOBAL_LOGLEVEL: {{ .Values.lcm.logLevel | default .Values.global.logLevel | default "INFO" }}
+  OSMLCM_MAINPOSTRENDERERPATH: "{{ .Values.lcm.mainPostRenderer.path }}{{ .Values.lcm.mainPostRenderer.scriptName }}"
+  OSMLCM_PODLABELSPOSTRENDERERPATH: "{{ .Values.lcm.podLabelsPostRenderer.path }}{{ .Values.lcm.podLabelsPostRenderer.scriptName }}"
 {{- if .Values.global.behindHttpProxy -}}
 {{- with .Values.global.httpProxy }}
   {{- . | toYaml | nindent 2 }}
index 1575136..13d8d42 100644 (file)
@@ -203,6 +203,12 @@ lcm:
   # replicaCount: 1
   useOsmSecret: true
   # secretName: "lcm-secret"
+  mainPostRenderer:
+    scriptName: mainPostRenderer
+    path: /app/N2VC/n2vc/post-renderer-scripts/mainPostRenderer/
+  podLabelsPostRenderer:
+    scriptName: podLabels
+    path: /app/N2VC/n2vc/post-renderer-scripts/podLabels/
   config:
     OSMLCM_VCA_CLOUD: "lxd-cloud"
     OSMLCM_VCA_K8S_CLOUD: "k8scloud"