Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/test/kubernetes/lucee/templates/ingress.yaml
Views: 11784
{{- if .Values.ingress.enabled -}}1{{- $fullName := include "lucee.fullname" . -}}2{{- $svcPort := .Values.service.port -}}3{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}4{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}5{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}6{{- end }}7{{- end }}8{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}9apiVersion: networking.k8s.io/v110{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}11apiVersion: networking.k8s.io/v1beta112{{- else -}}13apiVersion: extensions/v1beta114{{- end }}15kind: Ingress16metadata:17name: {{ $fullName }}18labels:19{{- include "lucee.labels" . | nindent 4 }}20{{- with .Values.ingress.annotations }}21annotations:22{{- toYaml . | nindent 4 }}23{{- end }}24spec:25{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}26ingressClassName: {{ .Values.ingress.className }}27{{- end }}28{{- if .Values.ingress.tls }}29tls:30{{- range .Values.ingress.tls }}31- hosts:32{{- range .hosts }}33- {{ . | quote }}34{{- end }}35secretName: {{ .secretName }}36{{- end }}37{{- end }}38rules:39{{- range .Values.ingress.hosts }}40- host: {{ .host | quote }}41http:42paths:43{{- range .paths }}44- path: {{ .path }}45{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}46pathType: {{ .pathType }}47{{- end }}48backend:49{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}50service:51name: {{ $fullName }}52port:53number: {{ $svcPort }}54{{- else }}55serviceName: {{ $fullName }}56servicePort: {{ $svcPort }}57{{- end }}58{{- end }}59{{- end }}60{{- end }}616263