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:
parent
a5070f5f07
commit
ac44f2d7e1
3 changed files with 9 additions and 1 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue