From 196b7f7f067a8d6ff6767a5d7e51adf81579b1c6 Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Mon, 6 Mar 2023 23:31:08 +0800 Subject: [PATCH] Update slack2chat --- slack2chat/Chart.yaml | 2 +- slack2chat/templates/ingress.yaml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/slack2chat/Chart.yaml b/slack2chat/Chart.yaml index 5f8d2ce..ec84699 100644 --- a/slack2chat/Chart.yaml +++ b/slack2chat/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.1.3 +version: 0.1.6 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/slack2chat/templates/ingress.yaml b/slack2chat/templates/ingress.yaml index 5b72220..b383038 100644 --- a/slack2chat/templates/ingress.yaml +++ b/slack2chat/templates/ingress.yaml @@ -1,11 +1,7 @@ {{- if .Values.ingress.enabled -}} {{- $fullName := include "slack2chat.fullname" . -}} {{- $svcPort := .Values.service.port -}} -{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1beta1 -{{- else -}} -apiVersion: extensions/v1beta1 -{{- end }} +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: {{ $fullName }} @@ -33,9 +29,13 @@ spec: paths: {{- range .paths }} - path: {{ . }} + pathType: ImplementationSpecific backend: - serviceName: {{ $fullName }} - servicePort: {{ $svcPort }} + service: + name: {{ $fullName }} + service: + port: + number: {{ $svcPort }} {{- end }} {{- end }} {{- end }}