From dd8f97013da6085cd57a8cf6bcf2425cdc5d00a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uro=C5=A1=20Verhovnik?= Date: Tue, 6 Jun 2023 14:28:03 +0200 Subject: [PATCH] change of cube version so it supports eks --- helm/Chart.yaml | 2 +- helm/templates/ingress.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 337fc94..3f6b31f 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -5,7 +5,7 @@ description: CodeTogether is used to live share IDEs and coding sessions. type: application version: 1.4.10 appVersion: "2022.2.3" -kubeVersion: ">= 1.18.0" +kubeVersion: ">= 1.18.0-0" icon: https://www.codetogether.com/wp-content/uploads/2020/02/codetogether-circle-128.png home: https://www.codetogether.com diff --git a/helm/templates/ingress.yaml b/helm/templates/ingress.yaml index df2db9d..2b19e41 100644 --- a/helm/templates/ingress.yaml +++ b/helm/templates/ingress.yaml @@ -2,7 +2,7 @@ {{- $fullName := include "codetogether.fullname" . -}} {{- $svcPort := .Values.service.port -}} {{- $host := (urlParse .Values.codetogether.url).host }} -{{- if semverCompare ">=1.19" .Capabilities.KubeVersion.GitVersion -}} +{{- if semverCompare ">=1.19.0-0" .Capabilities.KubeVersion.GitVersion -}} apiVersion: networking.k8s.io/v1 {{- else -}} apiVersion: networking.k8s.io/v1beta1 @@ -17,7 +17,7 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: - {{- if and .Values.ingress.className (semverCompare ">=1.18" .Capabilities.KubeVersion.GitVersion) }} + {{- if and .Values.ingress.className (semverCompare ">=1.18.0-0" .Capabilities.KubeVersion.GitVersion) }} ingressClassName: {{ .Values.ingress.className }} {{- end}} {{- if .Values.ingress.tls }} @@ -33,11 +33,11 @@ spec: http: paths: - path: / - {{- if (semverCompare ">=1.18" $.Capabilities.KubeVersion.GitVersion) }} + {{- if (semverCompare ">=1.18.0-0" $.Capabilities.KubeVersion.GitVersion) }} pathType: "Prefix" {{- end }} backend: - {{- if semverCompare ">=1.19" $.Capabilities.KubeVersion.GitVersion }} + {{- if semverCompare ">=1.19.0-0" $.Capabilities.KubeVersion.GitVersion }} service: name: {{ $fullName }} port: