[SDNC] Fix Ingress Configuration 36/107236/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 6 May 2020 13:24:57 +0000 (15:24 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 6 May 2020 13:24:57 +0000 (15:24 +0200)
Set redirect to true when backend is HTTPS.

Issue-ID: OOM-2188
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I787d5723b9e301f644aa0d6271980e3f58292cc2

kubernetes/sdnc/charts/sdnc-portal/templates/ingress.yaml [new file with mode: 0644]
kubernetes/sdnc/charts/sdnc-portal/values.yaml

diff --git a/kubernetes/sdnc/charts/sdnc-portal/templates/ingress.yaml b/kubernetes/sdnc/charts/sdnc-portal/templates/ingress.yaml
new file mode 100644 (file)
index 0000000..0cd8cfb
--- /dev/null
@@ -0,0 +1,15 @@
+# Copyright © 2020 Samsung, Orange
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+{{ include "common.ingress" . }}
index 280a2af..2fa7071 100644 (file)
@@ -133,6 +133,12 @@ service:
 
 ingress:
   enabled: false
+  service:
+    - baseaddr: "sdnc-portal.api"
+      name: "sdnc-portal"
+      port: 8443
+  config:
+    ssl: "redirect"
 
 #Resource limit flavor -By default using small
 flavor: small