|
|
@ -1,11 +1,7 @@ |
|
|
|
{{- if .Values.ingress.enabled -}} |
|
|
|
{{- $fullName := include "edemocracia.fullname" . -}} |
|
|
|
{{- $hostName := .Values.edemocracia.hostname -}} |
|
|
|
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} |
|
|
|
apiVersion: networking.k8s.io/v1beta1 |
|
|
|
{{- else -}} |
|
|
|
apiVersion: extensions/v1beta1 |
|
|
|
{{- end }} |
|
|
|
apiVersion: networking.k8s.io/v1 |
|
|
|
kind: Ingress |
|
|
|
metadata: |
|
|
|
name: {{ $fullName }} |
|
|
|