[bitnami/thanos] thanos/receive/ingress.yaml: support custom portName on extraHosts (#17173)

* Thanos/receive/ingress.yaml: support custom portName on extraHosts

The receive service has two ports, `http` and `remote`. This should be specifiable using the `.portName` attribute on extraHosts

Signed-off-by: Oliver <oisaac@gmail.com>

* document portName in values.yaml and bump chart.yaml

Signed-off-by: Oliver Isaac <oisaac@gmail.com>

---------

Signed-off-by: Oliver <oisaac@gmail.com>
Signed-off-by: Oliver Isaac <oisaac@gmail.com>
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Signed-off-by: Cori Avila <42420333+corico44@users.noreply.github.com>
Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Co-authored-by: Cori Avila <42420333+corico44@users.noreply.github.com>
This commit is contained in:
Oliver
2023-08-24 04:27:17 -05:00
committed by GitHub
parent 44442b9e35
commit d81bc2c1f5
3 changed files with 3 additions and 2 deletions

View File

@@ -35,4 +35,4 @@ maintainers:
name: thanos
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/thanos
version: 12.11.3
version: 12.11.4

View File

@@ -50,7 +50,7 @@ spec:
{{- if eq "true" (include "common.ingress.supportsPathType" $) }}
pathType: {{ default "ImplementationSpecific" .pathType }}
{{- end }}
backend: {{- include "common.ingress.backend" (dict "serviceName" (printf "%s-%s" (include "common.names.fullname" $) "receive") "servicePort" "http" "context" $) | nindent 14 }}
backend: {{- include "common.ingress.backend" (dict "serviceName" (printf "%s-%s" (include "common.names.fullname" $) "receive") "servicePort" (default "http" .portName) "context" $) | nindent 14 }}
{{- end }}
{{- if .Values.receive.ingress.extraRules }}
{{- include "common.tplvalues.render" (dict "value" .Values.receive.ingress.extraRules "context" $) | nindent 4 }}

View File

@@ -3747,6 +3747,7 @@ receive:
## - name: thanos.local
## path: /
## pathType: ImplementationSpecific
## portName: "http" # or "remote"
##
extraHosts: []
## @param receive.ingress.extraTls The tls configuration for additional hostnames to be covered with this ingress record.