Feature 10983: new environment variable OSMLCM_NODESELECTORPOSTRENDERERPATH

Change-Id: Ib9b93884ab7e8bcffdcfccc5a1bf79fa232116fd
Signed-off-by: Pedro Pereira <pedrocjdpereira@av.it.pt>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/docker/LCM/Dockerfile b/docker/LCM/Dockerfile
index a9c12e6..bc17b7e 100644
--- a/docker/LCM/Dockerfile
+++ b/docker/LCM/Dockerfile
@@ -162,6 +162,7 @@
 # post-renderers
 ENV OSMLCM_MAINPOSTRENDERERPATH    /app/N2VC/n2vc/post-renderer-scripts/mainPostRenderer/mainPostRenderer
 ENV OSMLCM_PODLABELSPOSTRENDERERPATH    /app/N2VC/n2vc/post-renderer-scripts/podLabels/podLabels
+ENV OSMLCM_NODESELECTORPOSTRENDERERPATH    /app/N2VC/n2vc/post-renderer-scripts/nodeSelector/nodeSelector
 
 # helm
 ENV OSMLCM_VCA_STABLEREPOURL https://charts.helm.sh/stable
diff --git a/installers/helm/osm/templates/lcm/lcm-configmap.yaml b/installers/helm/osm/templates/lcm/lcm-configmap.yaml
index 38f4d8e..1102bf5 100644
--- a/installers/helm/osm/templates/lcm/lcm-configmap.yaml
+++ b/installers/helm/osm/templates/lcm/lcm-configmap.yaml
@@ -30,6 +30,7 @@
   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 }}"
+  OSMLCM_NODESELECTORPOSTRENDERERPATH: "{{ .Values.lcm.nodeSelectorPostRenderer.path }}{{ .Values.lcm.nodeSelectorPostRenderer.scriptName }}"
 {{- if .Values.global.behindHttpProxy -}}
 {{- with .Values.global.httpProxy }}
   {{- . | toYaml | nindent 2 }}
diff --git a/installers/helm/osm/values.yaml b/installers/helm/osm/values.yaml
index 3366145..a9f914a 100644
--- a/installers/helm/osm/values.yaml
+++ b/installers/helm/osm/values.yaml
@@ -244,6 +244,9 @@
   podLabelsPostRenderer:
     scriptName: podLabels
     path: /usr/lib/python3/dist-packages/n2vc/post-renderer-scripts/podLabels/
+  nodeSelectorPostRenderer:
+    scriptName: nodeSelector
+    path: /usr/lib/python3/dist-packages/n2vc/post-renderer-scripts/nodeSelector/
   config:
     OSMLCM_VCA_CLOUD: "lxd-cloud"
     OSMLCM_VCA_K8S_CLOUD: "k8scloud"