Skip to content

Commit c485436

Browse files
bors[bot]johankok
andauthored
Merge #105
105: Fix ingress by adding variable for service port r=alallema a=johankok # Pull Request ## What does this PR do? Fixes #104 ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Johan Kok <[email protected]>
2 parents 65bd664 + ffe6d6c commit c485436

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

charts/meilisearch/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: "v0.26.0"
33
description: A Helm chart for the Meilisearch search engine
44
name: meilisearch
5-
version: 0.1.27
5+
version: 0.1.28
66
icon: https://res.cloudinary.com/meilisearch/image/upload/v1597822872/Logo/logo_img.svg
77
home: https://github.com/meilisearch/meilisearch-kubernetes/charts
88
maintainers:

charts/meilisearch/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ helm uninstall <your-service-name>
7474
| | |
7575
| `ingress.tls` | TLS specification | `[]`
7676
| | |
77-
| `service.port` | Service HTTP port | `ClusterIP`
77+
| `service.port` | Service HTTP port | `7700`
7878
| | |
79-
| `service.type` | Kubernetes Service type | `7700`
79+
| `service.type` | Kubernetes Service type | `ClusterIP`
8080
| | |
8181
| `service.annotations` | Additional annotations for service | `{}`
8282
| | |

charts/meilisearch/templates/ingress.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{{- if .Values.ingress.enabled -}}
22
{{- $fullName := include "meilisearch.fullname" . -}}
33
{{- $ingressPath := .Values.ingress.path -}}
4+
{{- $svcPort := .Values.service.port -}}
45
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
56
apiVersion: networking.k8s.io/v1
67
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
@@ -48,7 +49,7 @@ spec:
4849
service:
4950
name: {{ $fullName }}
5051
port:
51-
number: {{ .Values.service.port }}
52+
number: {{ $svcPort }}
5253
{{- else }}
5354
serviceName: {{ $fullName }}
5455
servicePort: http

0 commit comments

Comments
 (0)