|
| 1 | +--- |
| 2 | + |
| 3 | +title: Annotations |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +You can set [Kubernetes Annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) to instruct the Syself CAPH Controller to modify its behavior. |
| 8 | + |
| 9 | +## Overview of Annotations |
| 10 | + |
| 11 | +### capi.syself.com/wipe-disk |
| 12 | + |
| 13 | +| **Resource** | [HetznerBareMetalHost](/docs/caph/03-reference/05-hetzner-bare-metal-host.md) | |
| 14 | +| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 15 | +| **Description** | This annotation instructs the Syself CAPH Controller to wipe the disk before provisioning the machine. | |
| 16 | +| **Value** | You can use the string `"all"` or a space-separated list of WWNs. For example, `"10:00:00:05:1e:7a:7a:00 eui.00253885910c8cec 0x500a07511bb48b25"`. If the value is empty, no disks will be wiped. The value `"all"` will wipe all disks on the bare-metal machine (not just the one given in the rootDeviceHints). | |
| 17 | +| **Auto-Remove** | Enabled: The annotation is removed after the disks are wiped. | |
| 18 | + |
| 19 | +### capi.syself.com/ignore-check-disk |
| 20 | + |
| 21 | +| **Resource** | [HetznerBareMetalHost](/docs/caph/03-reference/05-hetzner-bare-metal-host.md) | |
| 22 | +| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 23 | +| **Description** | This annotation instructs the Syself CAPH Controller to ignore the results of the check-disk step during machine provisioning. The check will be performed, and a Kubernetes Event will be created. However, if this annotation is set, provisioning will continue even if a faulty disk is detected. | |
| 24 | +| **Value** | The value is ignored. If the annotation exists, this feature is enabled. | |
| 25 | +| **Auto-Remove** | Disabled: The annotation remains on the resource. It is up to the user to remove it. | |
| 26 | + |
| 27 | +### capi.syself.com/allow-empty-control-plane-address |
| 28 | + |
| 29 | +| **Resource** | [HetznerCluster](/docs/caph/03-reference/02-hetzner-cluster.md) | |
| 30 | +| --------------- | -------------------------------------------------------------------------------------------------------------------------- | |
| 31 | +| **Description** | This annotation allows the Syself CAPH Controller to create HetznerCluster resources with an empty `controlPlaneEndpoint`. This is useful to support externally managed control planes ([PR 1106](https://github.com/syself/cluster-api-provider-hetzner/pull/1106)) | |
| 32 | +| **Value** | `"true"` enables this feature. All other strings are considered `"false"`. | |
| 33 | +| **Auto-Remove** | Disabled: The annotation remains on the resource. | |
| 34 | + |
| 35 | +### capi.syself.com/constant-bare-metal-hostname |
| 36 | + |
| 37 | +| **Resource** | Cluster (CRD of Cluster-API), HetznerBareMetalMachine | |
| 38 | +| --------------- | ------------------------------------------------------------------------------------------------------------ | |
| 39 | +| **Description** | See [Using constant hostnames](/docs/caph/02-topics/05-baremetal/04-constant-hostnames.md) for more details. | |
| 40 | +| **Auto-Remove** | Disabled: The annotation remains on the resource. | |
| 41 | + |
| 42 | +### capi.syself.com/reboot |
| 43 | + |
| 44 | +| **Resource** | [HetznerBareMetalHost](/docs/caph/03-reference/05-hetzner-bare-metal-host.md) | |
| 45 | +| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 46 | +| **Description** | If this annotation is present, the bare-metal machine will be rebooted. This annotation is used by `HetznerBareMetalRemediation` (see [Machine Health Checks with Custom Remediation Template](/docs/caph/02-topics/06-advanced/04-custom-templates-mhc.md)). | |
| 47 | +| **Value** | The value is ignored. If the annotation exists, this feature is enabled. | |
| 48 | +| **Auto-Remove** | Enabled: The annotation is removed after the reboot. | |
| 49 | + |
| 50 | +### capi.syself.com/permanent-error |
| 51 | + |
| 52 | +| **Resource** | [HetznerBareMetalHost](/docs/caph/03-reference/05-hetzner-bare-metal-host.md) | |
| 53 | +| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 54 | +| **Description** | This annotation is set by the Syself CAPH Controller when a bare-metal machine enters the "permanent error" state. This indicates that human intervention is required (e.g., to fix a broken disk). After the root cause is resolved, the user must remove this annotation to allow the Controller to manage the HetznerBareMetalHost again. | |
| 55 | +| **Auto-Remove** | Disabled: The annotation must be removed by the user. | |
0 commit comments