Skip to content

Command · pk-metal

pk-metal hold

changes machinesneeds the cluster

pk-metal hold tells the operator to propose no new operation for one HostClaim. It changes nothing on the machine.

pk-metal hold [-n namespace] [--reason text] <claim> | <namespace>/<claim>
<claim>
The name of the claim. The default namespace is default. You can also write <namespace>/<claim>.
FlagDefaultDescription
-n<string>defaultNamespace of the claim.
--reason<string>-Why, for the people who see the hold (stored on the claim).

This command also accepts the global flags --kubeconfig and --context.

  1. The command reads the claim.
  2. It sets the annotation metal.platform-kit.org/hold on the claim. The value is the reason.
  3. The operator proposes no new operation for the claim: no install, no reinstall, no BIOS change and no firmware change.

A hold does not change the operations that are there. Approve them, abort them or delete them yourself. pk-metal status shows the claim with the mark (on hold).

pk-metal hold
pk-metal hold --reason "disk swap, ticket 123" default/cp-2
claim default/cp-2 is on hold: the operator proposes no new operation for it.
Existing operations are not changed. Remove the hold with: pk-metal unhold default/cp-2
Object Access Purpose
HostClaim get, list, patch Sets the annotation metal.platform-kit.org/hold.
CodeMeaning
0Success.
1Error; the message is on stderr, as "pk-metal: <message>".