Kong ingress controller 04/6104/1
authorLathish <lathishbabu.ganesan@est.tech>
Wed, 19 May 2021 12:57:24 +0000 (13:57 +0100)
committerLathish <lathishbabu.ganesan@est.tech>
Thu, 20 May 2021 14:56:46 +0000 (15:56 +0100)
The Nonrtric deployment script will not install Kong Gateway.
The flag is set to prevent the ingress deployment if Kong is unavailable.

Issue-ID: NONRTRIC-519
Change-Id: Ia16da20abe1e3cfa8e40cb9a3d0fae60d5201747
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
nonrtric/RECIPE_EXAMPLE/example_recipe.yaml
nonrtric/helm/enrichmentservice/templates/ingress.yaml
nonrtric/helm/enrichmentservice/values.yaml
nonrtric/helm/policymanagementservice/templates/ingress.yaml
nonrtric/helm/policymanagementservice/values.yaml

index 07d0689..4aa274d 100644 (file)
@@ -137,6 +137,8 @@ policymanagementservice:
       size: 2Gi
       mountPath: /dockerdata-nfs
       mountSubPath: nonrtric/policymanagementservice
+    ingress:
+      enabled: false
 
 enrichmentservice:
   enrichmentservice:
@@ -166,6 +168,8 @@ enrichmentservice:
       size: 2Gi
       mountPath: /dockerdata-nfs
       mountSubPath: nonrtric/enrichmentservice
+    ingress:
+      enabled: false
 
 rappcatalogueservice:
   rappcatalogueservice:
index 5a1fb33..364e000 100644 (file)
@@ -1,3 +1,4 @@
+{{/*
 ################################################################################
 #   Copyright (c) 2021 Nordix Foundation.                                      #
 #                                                                              #
@@ -13,7 +14,9 @@
 #   See the License for the specific language governing permissions and        #
 #   limitations under the License.                                             #
 ################################################################################
+*/}}
 
+{{- if .Values.enrichmentservice.ingress.enabled -}}
 apiVersion: networking.k8s.io/v1
 kind: Ingress
 metadata:
@@ -29,13 +32,14 @@ spec:
             backend:
               service:
                 name: {{ include "common.name.enrichmentservice" . }}
-                port: 
+                port:
                   number: {{ .Values.enrichmentservice.service.internalPort1 }}
             pathType: Prefix
             path: "/data-consumer"
             backend:
               service:
                 name: {{ include "common.name.enrichmentservice" . }}
-                port: 
+                port:
                   number: {{ .Values.enrichmentservice.service.internalPort1 }}
             pathType: Prefix
+{{- end -}}
\ No newline at end of file
index 2e1e7a4..e5d997a 100644 (file)
@@ -44,4 +44,5 @@ enrichmentservice:
     size: 2Gi
     mountPath: /dockerdata-nfs
     mountSubPath: nonrtric/enrichmentservice
-
+  ingress:
+    enabled: false
index 67eac10..d981da5 100644 (file)
@@ -1,3 +1,4 @@
+{{/*
 ################################################################################
 #   Copyright (c) 2021 Nordix Foundation.                                      #
 #                                                                              #
@@ -13,7 +14,9 @@
 #   See the License for the specific language governing permissions and        #
 #   limitations under the License.                                             #
 ################################################################################
+*/}}
 
+{{- if .Values.policymanagementservice.ingress.enabled -}}
 apiVersion: networking.k8s.io/v1
 kind: Ingress
 metadata:
@@ -32,3 +35,4 @@ spec:
                   number: {{ .Values.policymanagementservice.service.internalPort1 }}
             path: "/a1-policy"
             pathType: Prefix
+{{- end -}}
\ No newline at end of file
index 3e67451..a868bce 100644 (file)
@@ -47,3 +47,5 @@ policymanagementservice:
     storageClass: "manual"
     enabled: true
     #existingClaim:
+  ingress:
+    enabled: false