Skip to content

Command · pk-metal

pk-metal unhold

changes machinesneeds the cluster

pk-metal unhold removes the hold that pk-metal hold set on a HostClaim. The operator then proposes operations for the claim again.

pk-metal unhold [-n namespace] <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.

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

  1. The command reads the claim.
  2. If the claim is not on hold, the command says so and changes nothing.
  3. It removes the annotation metal.platform-kit.org/hold from the claim.
  4. The operator proposes the operations that the claim needs. Each one waits for approval.
pk-metal unhold
pk-metal unhold default/cp-2
claim default/cp-2 is no longer on hold: the operator proposes operations for it again
pk-metal unhold default/cp-2
claim default/cp-2 is not on hold; nothing changed
Object Access Purpose
HostClaim get, list, patch Removes the annotation metal.platform-kit.org/hold.
CodeMeaning
0Success.
1Error; the message is on stderr, as "pk-metal: <message>".