Skip to content

Commit 447ad34

Browse files
fmasionunguiculus
authored andcommitted
[keycloak] Allow to choose restartPolicy (#55)
Signed-off-by: Masion Frédéric <[email protected]>
1 parent d31685c commit 447ad34

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-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.14.2
2+
version: 4.15.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
@@ -70,6 +70,7 @@ Parameter | Description | Default
7070
`keycloak.podAnnotations` | Extra annotations to add to pod | `{}`
7171
`keycloak.hostAliases` | Mapping between IP and hostnames that will be injected as entries in the pod's hosts files | `[]`
7272
`keycloak.enableServiceLinks` | Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links | `false`
73+
`keycloak.restartPolicy` | Pod restart policy. One of `Always`, `OnFailure`, or `Never` | `Always`
7374
`keycloak.serviceAccount.create` | If `true`, a new service account is created | `false`
7475
`keycloak.securityContext` | Security context for the entire pod. Every container running in the pod will inherit this security context. This might be relevant when other components of the environment inject additional containers into running pods (service meshs are the most prominent example for this) | `{fsGroup: 1000}`
7576
`keycloak.containerSecurityContext` | Security context for containers running in the pod. Will not be inherited by additionally injected containers | `{runAsUser: 1000, runAsNonRoot: true}`

charts/keycloak/templates/statefulset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ spec:
3939
{{- if (semverCompare ">=1.13-0" .Capabilities.KubeVersion.GitVersion) }}
4040
enableServiceLinks: {{ .Values.keycloak.enableServiceLinks }}
4141
{{- end }}
42+
restartPolicy: {{ .Values.keycloak.restartPolicy }}
4243
serviceAccountName: {{ template "keycloak.serviceAccountName" . }}
4344
securityContext:
4445
{{ toYaml .Values.keycloak.securityContext | indent 8 }}

charts/keycloak/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ keycloak:
2828

2929
enableServiceLinks: false
3030

31+
restartPolicy: Always
32+
3133
serviceAccount:
3234
# Specifies whether a service account should be created
3335
create: false

0 commit comments

Comments
 (0)