diff --git a/charts/datalayer-observer/templates/ingress.yaml b/charts/datalayer-observer/templates/ingress.yaml index 0da4fef..a6f998e 100644 --- a/charts/datalayer-observer/templates/ingress.yaml +++ b/charts/datalayer-observer/templates/ingress.yaml @@ -23,7 +23,7 @@ metadata: spec: ingressClassName: {{ .Values.observer.ingressClass }} rules: - - host: {{ .Values.observer.env.DATALAYER_RUN_URL }} + - host: {{ template "observer.runHost" . }} http: paths: - backend: @@ -35,6 +35,6 @@ spec: pathType: Prefix tls: - hosts: - - {{ .Values.observer.env.DATALAYER_RUN_URL }} - secretName: {{ .Values.observer.env.DATALAYER_RUN_URL }}-datalayer-api-cert-secret + - {{ template "observer.runHost" . }} + secretName: {{ template "observer.runHost" . }}-datalayer-api-cert-secret {{- end }}