Skip to content

Commit

Permalink
[stable/keycloak] Add hostAliases (helm#9146)
Browse files Browse the repository at this point in the history
Fixes: helm#7498
Signed-off-by: Reinhard Nägele <[email protected]>
  • Loading branch information
unguiculus authored and k8s-ci-robot committed Jan 9, 2019
1 parent aaf5188 commit abfe0a4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/keycloak/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: keycloak
version: 4.0.8
version: 4.1.0
appVersion: 4.5.0.Final
description: Open Source Identity and Access Management For Modern Applications and Services
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/keycloak/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Parameter | Description | Default
`keycloak.nodeSelector` | Node labels for pod assignment | `{}`
`keycloak.tolerations` | Node taints to tolerate | `[]`
`keycloak.podAnnotations` | Extra annotations to add to pod | `{}`
`keycloak.hostAliases` | Mapping between IP and hostnames that will be injected as entries in the pod's hosts files | `[]`
`keycloak.securityContext` | Security context for the pod | `{runAsUser: 1000, fsGroup: 1000, runAsNonRoot: true}`
`keycloak.preStartScript` | Custom script to run before Keycloak starts up | ``
`keycloak.extraArgs` | Additional arguments to the start command | ``
Expand Down
4 changes: 4 additions & 0 deletions stable/keycloak/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
{{ toYaml .Values.keycloak.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- with .Values.keycloak.hostAliases }}
hostAliases:
{{ toYaml . | indent 8 }}
{{- end }}
securityContext:
{{ toYaml .Values.keycloak.securityContext | indent 8 }}
{{- with .Values.keycloak.image.pullSecrets }}
Expand Down
5 changes: 5 additions & 0 deletions stable/keycloak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ keycloak:
pullSecrets: []
# - myRegistrKeySecretName

hostAliases: []
# - ip: "1.2.3.4"
# hostnames:
# - "my.host.com"

securityContext:
runAsUser: 1000
fsGroup: 1000
Expand Down

0 comments on commit abfe0a4

Please sign in to comment.