Skip to content

Commit db364fb

Browse files
sathlanopenshift-merge-bot[bot]
authored andcommitted
[update] Possibility to activate kpatch during update.
By setting cifmw_update_openstack_update_kpatch to true, one can have the edmp kpatch code turn on. Depends-On: openstack-k8s-operators/install_yamls#1098 Signed-off-by: Sofer Athlan-Guyot <sathlang@redhat.com>
1 parent 9d42ca1 commit db364fb

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

roles/update/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ Role to run update
2222
* `cifmw_update_wait_retries_reboot`: (Integer) Number of retries to wait for a compute node reboot. One retry is done every five seconds. Default to 60, so five minutes.
2323
* `cifmw_update_resources_monitoring_interval`: (Integer) Interval, in seconds, between two resources monitor during update. Default to 10 seconds.
2424
* `cifmw_update_wait_controplane_status_change_sec`: (Integer) Time, in seconds, to wait before checking openstack control plane deployment status. Used when need to wait to allow the control plane's ready condition to transition from its initial state, preventing premature completion while the control plane is still reconciling the operator changes. Defaults to `60`.
25+
* `cifmw_update_openstack_update_kpatch`: (Boolean) Activate `kpatch` during update. Default to false.
2526

2627
## Examples

roles/update/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ cifmw_update_openstack_cmd: >-
4848
oc rsh -n {{ cifmw_update_namespace }} openstackclient openstack
4949
5050
## User facing
51+
cifmw_update_openstack_update_kpatch: false
52+
5153
cifmw_update_reboot_test: false
5254
cifmw_update_ansible_ssh_private_key_file: >-
5355
"{{ ansible_ssh_private_key_file | default(ansible_user_dir ~ '/.ssh/id_cifw') }}"

roles/update/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@
208208
ansible.builtin.set_fact:
209209
_make_update_params: |
210210
TIMEOUT: {{ cifmw_update_openstack_update_run_timeout }}
211+
KPATCH_UPDATE: {{ cifmw_update_openstack_update_kpatch }}
211212
{% if _cifmw_update_use_fake_update | bool -%}
212213
FAKE_UPDATE: true
213214
CONTAINERS_NAMESPACE: {{ cifmw_update_openstack_update_run_containers_namespace }}

0 commit comments

Comments
 (0)