Skip to content

Commit

Permalink
[stable/grafana] Add support for extraExposePorts (helm#21547)
Browse files Browse the repository at this point in the history
* Add support for extraExposePorts

Signed-off-by: Insein Jee <inseinjee@gmail.com>

* Bump the chart version(5.0.7 -> 5.0.8)

Signed-off-by: Insein Jee <inseinjee@gmail.com>
Signed-off-by: inseinjee <inseinjee@gmail.com>

* Remove trailing spaces

Signed-off-by: inseinjee <inseinjee@gmail.com>
Signed-off-by: Adrien Loiseau <adrien.loiseau@logic-immo.com>
  • Loading branch information
inseinjee authored and li-adrienloiseau committed Jul 29, 2020
1 parent 030b596 commit f9097da
Show file tree
Hide file tree
Showing 4 changed files with 12 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: 5.0.7
version: 5.0.8
appVersion: 6.6.2
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
Expand Down
1 change: 1 addition & 0 deletions stable/grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ You have to add --force to your helm upgrade command as the labels of the chart
| `service.loadBalancerIP` | IP address to assign to load balancer (if supported) | `nil` |
| `service.loadBalancerSourceRanges` | list of IP CIDRs allowed access to lb (if supported) | `[]` |
| `serivce.externalIPs` | service external IP addresses | `[]` |
| `extraExposePorts` | Additional service ports for sidecar containers| `[]` |
| `ingress.enabled` | Enables Ingress | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.labels` | Custom labels | `{}` |
Expand Down
4 changes: 4 additions & 0 deletions stable/grafana/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@ spec:
{{ if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
nodePort: {{.Values.service.nodePort}}
{{ end }}
{{- if .Values.extraExposePorts }}
{{- tpl (toYaml .Values.extraExposePorts) . | indent 4 }}
{{- end }}
selector:
{{- include "grafana.selectorLabels" . | nindent 4 }}

6 changes: 6 additions & 0 deletions stable/grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ service:
labels: {}
portName: service

extraExposePorts: []
# - name: keycloak
# port: 8080
# targetPort: 8080
# type: ClusterIP

ingress:
enabled: false
annotations: {}
Expand Down

0 comments on commit f9097da

Please sign in to comment.