|
@ -1,9 +1,7 @@ |
|
|
{{- if .Values.ingress.enabled -}} |
|
|
{{- if .Values.ingress.enabled -}} |
|
|
{{- $fullName := include "sigi.fullname" . -}} |
|
|
{{- $fullName := include "sigi.fullname" . -}} |
|
|
{{- $hostName := .Values.sigi.hostname -}} |
|
|
{{- $hostName := .Values.sigi.hostname -}} |
|
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} |
|
|
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} |
|
|
apiVersion: networking.k8s.io/v1 |
|
|
|
|
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} |
|
|
|
|
|
apiVersion: networking.k8s.io/v1beta1 |
|
|
apiVersion: networking.k8s.io/v1beta1 |
|
|
{{- else -}} |
|
|
{{- else -}} |
|
|
apiVersion: extensions/v1beta1 |
|
|
apiVersion: extensions/v1beta1 |
|
@ -60,13 +58,6 @@ spec: |
|
|
pathType: ImplementationSpecific |
|
|
pathType: ImplementationSpecific |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
backend: |
|
|
backend: |
|
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} |
|
|
|
|
|
service: |
|
|
|
|
|
name: {{ $fullName }} |
|
|
|
|
|
port: |
|
|
|
|
|
number: 80 |
|
|
|
|
|
{{- else }} |
|
|
|
|
|
serviceName: {{ $fullName }} |
|
|
serviceName: {{ $fullName }} |
|
|
servicePort: http |
|
|
servicePort: http |
|
|
{{- end }} |
|
|
|
|
|
{{- end }} |
|
|
{{- end }} |
|
|