Feature 11034 Forgot Password in OSM

New environment variables OSMNBI_SMTP_SERVER, OSMNBI_SMTP_PORT, OSMNBI_SENDER_EMAIL, OSMNBI_EMAIL_PASSWORD, OSMNBI_OTP_RETRY_COUNT and OSMNBI_OTP_EXPIRY_TIME

Change-Id: Ic9fb2e833afc3230e64e43da96a0f9c49d3f0312
Signed-off-by: jegan <jegan.s@tataelxsi.co.in>
diff --git a/installers/helm/osm/templates/nbi/nbi-configmap.yaml b/installers/helm/osm/templates/nbi/nbi-configmap.yaml
index ef24704..e4c6ac9 100644
--- a/installers/helm/osm/templates/nbi/nbi-configmap.yaml
+++ b/installers/helm/osm/templates/nbi/nbi-configmap.yaml
@@ -28,4 +28,11 @@
   OSMNBI_STORAGE_COLLECTION: "files"
   OSMNBI_LOG_LEVEL: {{ .Values.nbi.logLevel | default .Values.global.logLevel | default "INFO" }}
   OSMNBI_USER_MANAGEMENT: "True"
+  {{- if .Values.nbi.smtp.enabled -}}
+  OSMNBI_SMTP_SERVER: {{ .Values.nbi.smtp.server }}
+  OSMNBI_SMTP_PORT: {{ .Values.nbi.smtp.port }}
+  OSMNBI_SENDER_EMAIL: {{ .Values.nbi.smtp.senderEmail }}
+  OSMNBI_OTP_RETRY_COUNT: {{ .Values.nbi.smtp.otpRetryCount }}
+  OSMNBI_OTP_EXPIRY_TIME: {{ .Values.nbi.smtp.otpExpiryTime }}
+  {{- end }}
 {{- end }}
diff --git a/installers/helm/osm/values.yaml b/installers/helm/osm/values.yaml
index 4cb68ff..fe8f2de 100644
--- a/installers/helm/osm/values.yaml
+++ b/installers/helm/osm/values.yaml
@@ -272,6 +272,16 @@
   # replicaCount: 1
   useOsmSecret: true
   # secretName: "nbi-secret"
+  smtp:
+    enabled: false
+    server: ""
+    port: ""
+    senderEmail: ""
+    otpRetryCount: 3
+    otpExpiryTime: 300
+    secretName: "osmnbi-email-password"
+    secretKey: "OSMNBI_EMAIL_PASSWORD"
+
 
 ngui:
   enabled: true