Kong ingress controller
[it/dep.git] / nonrtric / helm / enrichmentservice / templates / ingress.yaml
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