Update slack2chat

This commit is contained in:
Jonathan Ervine 2023-03-06 23:31:08 +08:00
parent 9314620833
commit 196b7f7f06
2 changed files with 8 additions and 8 deletions

View File

@ -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.

View File

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