Update OSM helm chart to support installation behind HTTP proxy
[osm/devops.git] / installers / helm / osm / templates / lcm / lcm-configmap.yaml
index c976a70..9fdfcc8 100644 (file)
@@ -30,6 +30,11 @@ 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" }}
+{{- if .Values.global.behindHttpProxy -}}
+{{- with .Values.global.httpProxy }}
+  {{- . | toYaml | nindent 2 }}
+{{- end }}
+{{- end }}
 {{- with .Values.lcm.config }}
   {{- . | toYaml | nindent 2 }}
 {{- end }}