diff --git a/helm/templates/ingress.yaml b/helm/templates/ingress.yaml index d137eb7..529a95f 100644 --- a/helm/templates/ingress.yaml +++ b/helm/templates/ingress.yaml @@ -6,9 +6,9 @@ metadata: annotations: {{- toYaml .Values.ingress.annotations | nindent 4 }} spec: - ingressClassName: nginx-example + ingressClassName: {{ $.Values.ingress.class }} rules: - {{ .Values.ingress.class }} + {{- range .Values.ingress.hosts }} - host: {{ .host }} http: paths: @@ -32,4 +32,4 @@ spec: secretName: {{ .secretName }} {{- end }} {{- end }} -{{- end }} +{{- end }} \ No newline at end of file