fix: use networking.k8s.io/v1beta1 apiVersion for ingress if supported (#312)

* use networking.k8s.io/v1beta1 apiVersion for ingress if supported
* updated chart version
* used more explicit capability check
This commit is contained in:
Chris 2020-04-21 08:52:13 +02:00 committed by GitHub
parent a5070f5f07
commit ac44f2d7e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View file

@ -2,7 +2,11 @@
{{- $serviceName := include "argo-cd.server.fullname" . -}}
{{- $servicePort := .Values.server.service.servicePortHttp -}}
{{- $paths := .Values.server.ingress.paths -}}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
apiVersion: networking.k8s.io/v1beta1
{{ else }}
apiVersion: extensions/v1beta1
{{ end -}}
kind: Ingress
metadata:
{{- if .Values.server.ingress.annotations }}