Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
features:
- |
The Keycloak role now exposes ``keycloak_helm_timeout`` to configure how
long Helm operations may run.
10 changes: 10 additions & 0 deletions roles/keycloak/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
# `keycloak`

## Configuration

`keycloak_helm_timeout` sets the maximum time allowed for Keycloak Helm
operations. It accepts a Go duration string such as `15m0s` and defaults to
`10m0s`.

```yaml
keycloak_helm_timeout: 15m0s
```
5 changes: 5 additions & 0 deletions roles/keycloak/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ keycloak_helm_chart_ref: /usr/local/src/keycloak
keycloak_helm_release_namespace: auth-system
keycloak_helm_values: {}

# Time to wait for Helm operations to complete, using Go duration syntax.
#
# keycloak_helm_timeout: 15m0s
keycloak_helm_timeout: 10m0s

keycloak_host: "{{ undef('You must specify a Keycloak host using keycloak_host') }}"
keycloak_ingress_annotations: {}
keycloak_ingress_class_name: "{{ atmosphere_ingress_class_name }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/keycloak/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
create_namespace: true
kubeconfig: /etc/kubernetes/admin.conf
wait: true
timeout: 10m
timeout: "{{ keycloak_helm_timeout }}"
values: "{{ _keycloak_helm_values | combine(keycloak_helm_values, recursive=True) }}"

- name: Wait until keycloak ready
Expand Down
Loading