Skip to content

Commit

Permalink
[stable/grafana] Support ingress.extraPaths for grafana (helm#16628)
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Martins <paulo.pontes.m@gmail.com>
  • Loading branch information
paulopontesm authored and k8s-ci-robot committed Sep 4, 2019
1 parent f74e7b6 commit 1f03f9b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/grafana/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: grafana
version: 3.8.6
version: 3.8.7
appVersion: 6.3.4
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
Expand Down
2 changes: 2 additions & 0 deletions stable/grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ The command removes all the Kubernetes components associated with the chart and
| `ingress.labels` | Custom labels | `{}` |
| `ingress.path` | Ingress accepted path | `/` |
| `ingress.hosts` | Ingress accepted hostnames | `[]` |
| `ingress.extraPaths` | Ingress extra paths to prepend to every host configuration. Useful when configuring [custom actions with AWS ALB Ingress Controller](https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/ingress/annotation/#actions). | `[]`
|
| `ingress.tls` | Ingress TLS configuration | `[]` |
| `resources` | CPU/Memory resource requests/limits | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
Expand Down
4 changes: 4 additions & 0 deletions stable/grafana/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{{- $fullName := include "grafana.fullname" . -}}
{{- $servicePort := .Values.service.port -}}
{{- $ingressPath := .Values.ingress.path -}}
{{- $extraPaths := .Values.ingress.extraPaths -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
Expand Down Expand Up @@ -29,6 +30,9 @@ spec:
- host: {{ . }}
http:
paths:
{{ if $extraPaths }}
{{ toYaml $extraPaths | indent 10 }}
{{- end }}
- path: {{ $ingressPath }}
backend:
serviceName: {{ $fullName }}
Expand Down
6 changes: 6 additions & 0 deletions stable/grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ ingress:
path: /
hosts:
- chart-example.local
## Extra paths to prepend to every host configuration. This is useful when working with annotation based services.
extraPaths: []
# - path: /*
# backend:
# serviceName: ssl-redirect
# servicePort: use-annotation
tls: []
# - secretName: chart-example-tls
# hosts:
Expand Down

0 comments on commit 1f03f9b

Please sign in to comment.