Skip to content

Commit 0dd66f2

Browse files
authored
enable custom ingress labels (bitnami#16918)
Signed-off-by: Christoph Raaflaub <raaflaub@puzzle.ch>
1 parent 2337323 commit 0dd66f2

4 files changed

Lines changed: 11 additions & 1 deletion

File tree

bitnami/sonarqube/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ maintainers:
2727
name: sonarqube
2828
sources:
2929
- https://github.com/bitnami/charts/tree/main/bitnami/sonarqube
30-
version: 3.2.2
30+
version: 3.2.3

bitnami/sonarqube/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ The command removes all the Kubernetes components associated with the chart and
208208
| `ingress.hostname` | Default host for the ingress record | `sonarqube.local` |
209209
| `ingress.path` | Default path for the ingress record | `/` |
210210
| `ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` |
211+
| `ingress.labels` | Additional labels for the Ingress resource. | `{}` |
211212
| `ingress.tls` | Enable TLS configuration for the host defined at `ingress.hostname` parameter | `false` |
212213
| `ingress.selfSigned` | Create a TLS secret for this ingress record using self-signed certificates generated by Helm | `false` |
213214
| `ingress.extraHosts` | An array with additional hostname(s) to be covered with the ingress record | `[]` |

bitnami/sonarqube/templates/ingress.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ metadata:
88
{{- if .Values.commonLabels }}
99
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
1010
{{- end }}
11+
{{- if .Values.ingress.labels }}
12+
{{- include "common.tplvalues.render" ( dict "value" .Values.ingress.labels "context" $ ) | nindent 4 }}
13+
{{- end }}
1114
{{- if or .Values.ingress.annotations .Values.commonAnnotations }}
1215
annotations:
1316
{{- if .Values.ingress.annotations }}

bitnami/sonarqube/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,12 @@ ingress:
516516
## cert-manager.io/cluster-issuer: cluster-issuer-name
517517
##
518518
annotations: {}
519+
## @param ingress.labels Additional labels for the Ingress resource.
520+
## e.g:
521+
## labels:
522+
## app: sonarqube
523+
##
524+
labels: {}
519525
## @param ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
520526
## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
521527
## You can:

0 commit comments

Comments
 (0)