set_os_patch_policy
Change an Ankra-provisioned cluster's rolling OS patch policy. enabled lets the platform start run_os_patches on its own inside the maintenance window, at most once per cadence_days (off by default: patching drains every node, so a cluster is only patched automatically when its owner opts in). While enabled, runs keep Ankra's update hold on the hosts they patch; turning it off removes the hold from every node and the bastion so unattended-upgrades patches them again, and is refused while a run is in progress. The window opens on window_days at window_start_hour_utc and stays open window_duration_hours (1-12); a run only starts inside it and may finish after it. include_stateful_nodes lets runs drain nodes carrying single-replica workloads with volumes; security_lag_days (1-90) is how long held-back security updates may stay pending before the cluster reports a security lag. Only the members you pass change; the rest keep their stored values. The defaults are disabled, Monday to Thursday 02:00-06:00 UTC, weekly, stateful nodes skipped, 14 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | Let the platform start patch runs on its own inside the window. | |
| cluster_id | No | UUID of the cluster. Optional when a cluster is selected. | |
| window_days | No | The UTC days the window opens on. | |
| cadence_days | No | The minimum number of days between two automatic runs. | |
| cluster_name | No | Exact name of the cluster. Optional when a cluster is selected. | |
| security_lag_days | No | Days held-back security updates may stay pending before the cluster reports a security lag. | |
| window_duration_hours | No | How many hours the window stays open. | |
| window_start_hour_utc | No | The UTC hour the window opens. | |
| include_stateful_nodes | No | Let runs drain nodes carrying single-replica workloads with volumes or belonging to a database node pool. |