Commit e62e767e authored by Paul Farver's avatar Paul Farver Committed by alespour

Fix ingress capability check in influxdb

parent 34c2b652
apiVersion: v1 apiVersion: v1
name: influxdb name: influxdb
version: 4.10.1 version: 4.10.2
appVersion: 1.8.6 appVersion: 1.8.6
description: Scalable datastore for metrics, events, and real-time analytics. description: Scalable datastore for metrics, events, and real-time analytics.
keywords: keywords:
......
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
{{- else }} {{- else }}
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
...@@ -26,11 +26,11 @@ spec: ...@@ -26,11 +26,11 @@ spec:
http: http:
paths: paths:
- path: {{ .Values.ingress.path }} - path: {{ .Values.ingress.path }}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
pathType: Prefix pathType: Prefix
{{- end }} {{- end }}
backend: backend:
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
service: service:
name: {{ include "influxdb.fullname" . }} name: {{ include "influxdb.fullname" . }}
port: port:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment