Browse Source

Update Ingress object api version for edemocracia

master
Fábio Kaiser Rauber 2 years ago
parent
commit
68a6a75753
  1. 6
      charts/edemocracia/v0.4.0/templates/ingress.yaml

6
charts/edemocracia/v0.4.0/templates/ingress.yaml

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

Loading…
Cancel
Save