| gio | c916187 | 2024-04-21 10:46:35 +0400 | [diff] [blame] | 1 | {{- if .Values.ingress.enabled -}} |
| 2 | --- |
| 3 | apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }} |
| 4 | kind: Ingress |
| 5 | metadata: |
| 6 | name: {{ include "common.names.fullname" . }} |
| 7 | labels: |
| 8 | {{- include "common.labels.standard" . | nindent 4 }} |
| 9 | {{- with .Values.ingress.annotations }} |
| 10 | annotations: |
| 11 | {{- toYaml . | nindent 4 }} |
| 12 | {{- end }} |
| 13 | spec: |
| 14 | {{- if .Values.ingress.ingressClassName }} |
| 15 | ingressClassName: {{ .Values.ingress.ingressClassName }} |
| 16 | {{- end }} |
| 17 | {{- if .Values.ingress.tls.enabled }} |
| 18 | tls: |
| 19 | - hosts: |
| 20 | - {{ .Values.ingress.host | quote }} |
| 21 | secretName: "{{ .Values.ingress.tls.secretName }}" |
| 22 | {{- end }} |
| 23 | rules: |
| 24 | - host: {{ .Values.ingress.host | quote }} |
| 25 | http: |
| 26 | paths: |
| 27 | - path: {{ .Values.ingress.path }} |
| 28 | {{- if eq "true" (include "common.ingress.supportsPathType" .) }} |
| 29 | pathType: {{ .Values.ingress.pathType }} |
| 30 | {{- end }} |
| 31 | backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "http" "context" $) | nindent 14 }} |
| 32 | ... |
| 33 | {{- end }} |