Sha256: 5a01db258e0846d1f62873f0881d0132d93958e032b587d565c7ea828076ede1
Contents?: true
Size: 1.49 KB
Versions: 14
Compression:
Stored size: 1.49 KB
Contents
{{- if .Values.ingress.enabled -}} {{- $svcFullName := ternary (include "hyrax.nginx.host" .) (include "hyrax.fullname" .) .Values.nginx.enabled -}} {{- $svcPort := ternary .Values.nginx.service.port .Values.service.port .Values.nginx.enabled -}} {{- $beta := semverCompare "<1.19-0" (default .Capabilities.KubeVersion.Version .Values.kubeVersion) -}} {{- if $beta }} apiVersion: networking.k8s.io/v1beta1 {{- else }} apiVersion: networking.k8s.io/v1 {{- end }} kind: Ingress metadata: name: {{ include "hyrax.fullname" . }} labels: {{- include "hyrax.labels" . | nindent 4 }} {{- with .Values.ingress.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} - hosts: {{- range .hosts }} - {{ . | quote }} {{- end }} secretName: {{ .secretName }} {{- end }} {{- end }} rules: {{- range .Values.ingress.hosts }} - host: {{ .host | quote }} http: paths: {{- range .paths }} - path: {{ .path }} pathType: {{ .pathType | default "ImplementationSpecific" }} backend: {{- if $beta }} serviceName: {{ $svcFullName }} servicePort: {{ $svcPort }} {{- else }} service: name: {{ $svcFullName }} port: number: {{ $svcPort }} {{- end }} {{- end }} {{- end }} {{- end }}
Version data entries
14 entries across 14 versions & 1 rubygems