Code Review
/
it
/
dep.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve oran_oom helm charts
[it/dep.git]
/
smo-install
/
oran_oom
/
informationservice
/
templates
/
ingress.yaml
diff --git
a/smo-install/oran_oom/informationservice/templates/ingress.yaml
b/smo-install/oran_oom/informationservice/templates/ingress.yaml
index
d872407
..
63ac9ec
100644
(file)
--- a/
smo-install/oran_oom/informationservice/templates/ingress.yaml
+++ b/
smo-install/oran_oom/informationservice/templates/ingress.yaml
@@
-16,13
+16,10
@@
################################################################################
*/}}
################################################################################
*/}}
-{{- if
.Values.informationservice.ingress.enabled
-}}
+{{- if
(include "common.ingressEnabled" .)
-}}
apiVersion: networking.k8s.io/v1
kind: Ingress
apiVersion: networking.k8s.io/v1
kind: Ingress
-metadata:
- name: {{ include "common.name.informationservice" . }}
- namespace: {{ include "common.namespace.nonrtric" . }}
-
+metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
spec:
ingressClassName: {{ include "common.ingressClassName" . }}
rules:
spec:
ingressClassName: {{ include "common.ingressClassName" . }}
rules:
@@
-31,15
+28,15
@@
spec:
- path: "/data-producer"
backend:
service:
- path: "/data-producer"
backend:
service:
- name: {{ include "common.name
.informationservice
" . }}
+ name: {{ include "common.name" . }}
port:
port:
- number: {{
.Values.informationservice.service.internalPort1
}}
+ number: {{
(first .Values.service.ports).internalPort
}}
pathType: Prefix
- path: "/data-consumer"
backend:
service:
pathType: Prefix
- path: "/data-consumer"
backend:
service:
- name: {{ include "common.name
.informationservice
" . }}
+ name: {{ include "common.name" . }}
port:
port:
- number: {{
.Values.informationservice.service.internalPort1
}}
+ number: {{
(first .Values.service.ports).internalPort
}}
pathType: Prefix
{{- end -}}
pathType: Prefix
{{- end -}}