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 }}