Compare commits

...

1 Commits

Author SHA1 Message Date
Max Brenner
ef1d54cbea fix Ingress capabilities check
Signed-off-by: Max Brenner <xamrennerb@gmail.com>
2021-06-14 11:29:48 +02:00
4 changed files with 19 additions and 19 deletions

View File

@@ -1,9 +1,9 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "common.fullname" . -}} {{- $fullName := include "common.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- 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 if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} {{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" }}
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
{{- else -}} {{- else -}}
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
@@ -38,11 +38,11 @@ spec:
paths: paths:
{{- if $.Values.ingress.lb_https_redirect }} {{- if $.Values.ingress.lb_https_redirect }}
- path: /* - path: /*
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
pathType: ImplementationSpecific pathType: ImplementationSpecific
{{- end }} {{- end }}
backend: backend:
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
service: service:
name: ssl-redirect name: ssl-redirect
port: port:
@@ -54,11 +54,11 @@ spec:
{{- end }} {{- end }}
{{- range .paths }} {{- range .paths }}
- path: {{ . }} - path: {{ . }}
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
pathType: ImplementationSpecific pathType: ImplementationSpecific
{{- end }} {{- end }}
backend: backend:
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
service: service:
name: {{ $fullName }} name: {{ $fullName }}
port: port:

View File

@@ -1,9 +1,9 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "common.fullname" . -}} {{- $fullName := include "common.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- 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 if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} {{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" }}
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
{{- else -}} {{- else -}}
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
@@ -38,11 +38,11 @@ spec:
paths: paths:
{{- if $.Values.ingress.lb_https_redirect }} {{- if $.Values.ingress.lb_https_redirect }}
- path: /* - path: /*
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
pathType: ImplementationSpecific pathType: ImplementationSpecific
{{- end }} {{- end }}
backend: backend:
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
service: service:
name: ssl-redirect name: ssl-redirect
port: port:
@@ -54,11 +54,11 @@ spec:
{{- end }} {{- end }}
{{- range .paths }} {{- range .paths }}
- path: {{ . }} - path: {{ . }}
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
pathType: ImplementationSpecific pathType: ImplementationSpecific
{{- end }} {{- end }}
backend: backend:
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
service: service:
name: {{ $fullName }} name: {{ $fullName }}
port: port:

View File

@@ -1,9 +1,9 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "common.fullname" . -}} {{- $fullName := include "common.fullname" . -}}
{{- $svcPort := .Values.service.port1 -}} {{- $svcPort := .Values.service.port1 -}}
{{- 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 if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} {{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" }}
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
{{- else -}} {{- else -}}
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
@@ -36,11 +36,11 @@ spec:
paths: paths:
{{- if $.Values.ingress.lb_https_redirect }} {{- if $.Values.ingress.lb_https_redirect }}
- path: /* - path: /*
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
pathType: ImplementationSpecific pathType: ImplementationSpecific
{{- end }} {{- end }}
backend: backend:
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
service: service:
name: ssl-redirect name: ssl-redirect
port: port:
@@ -52,11 +52,11 @@ spec:
{{- end }} {{- end }}
{{- range .paths }} {{- range .paths }}
- path: {{ . }} - path: {{ . }}
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
pathType: ImplementationSpecific pathType: ImplementationSpecific
{{- end }} {{- end }}
backend: backend:
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
service: service:
name: {{ $fullName }} name: {{ $fullName }}
port: port:

View File

@@ -190,7 +190,7 @@ kafka:
memory: 2Gi memory: 2Gi
requests: requests:
cpu: 10m cpu: 10m
memory: 700Mi memory: 1400Mi
cassandra: cassandra:
enabled: false enabled: false