Skip to content

Commit d229c6c

Browse files
tiborvunguiculus
authored andcommitted
[keycloak] Additional labels to ingress (#8)
* Update keycloak ingress template, add labels * Update README.md, add ingress.labels description * Bump chart version * Add default value to values.yaml Signed-off-by: Tibor Vukovic <[email protected]>
1 parent 09db133 commit d229c6c

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

charts/keycloak/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: keycloak
2-
version: 4.10.2
2+
version: 4.11.0
33
appVersion: 5.0.0
44
description: Open Source Identity and Access Management For Modern Applications and Services
55
keywords:

charts/keycloak/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ Parameter | Description | Default
8989
`keycloak.service.nodePort` | The node port used if the service is of type `NodePort` | `""`
9090
`keycloak.ingress.enabled` | if `true`, an ingress is created | `false`
9191
`keycloak.ingress.annotations` | annotations for the ingress | `{}`
92+
`keycloak.ingress.labels` | Additional labels for the Keycloak ingress | `{}`
9293
`keycloak.ingress.path` | if `true`, an ingress is created | `/`
9394
`keycloak.ingress.hosts` | a list of ingress hosts | `[keycloak.example.com]`
9495
`keycloak.ingress.tls` | a list of [IngressTLS](https://v1-9.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.9/#ingresstls-v1beta1-extensions) items | `[]`

charts/keycloak/templates/ingress.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ metadata:
1313
chart: {{ template "keycloak.chart" . }}
1414
heritage: {{ .Release.Service }}
1515
release: {{ .Release.Name }}
16+
{{- with $ingress.labels }}
17+
{{ toYaml . | indent 4 }}
18+
{{- end }}
1619
spec:
1720
{{- if $ingress.tls }}
1821
tls:

charts/keycloak/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ keycloak:
195195
# kubernetes.io/tls-acme: "true"
196196
# ingress.kubernetes.io/affinity: cookie
197197

198+
labels: {}
199+
# key: value
200+
198201
## List of hosts for the ingress
199202
hosts:
200203
- keycloak.example.com

0 commit comments

Comments
 (0)