Documentation
¶
Overview ¶
Package recreate implements `kuke daemon recreate`, a composed verb that tears down the kukeond cell and re-provisions it using the same cell-creation path `kuke init` exercises. It composes the reset tear-down (stop + delete + clear socket/pid) and the init cell-provisioning into one step for the dev-loop: `kuke daemon recreate --kukeond-image <ref>` replaces the manual `kuke daemon reset && kuke build && kuke init` sequence.
Image-load is intentionally out of scope: the verb assumes the desired kukeond image is already in the kuke-system realm. Operators call `kuke build` (or `kuke image load`) before `kuke daemon recreate`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRecreateCmd ¶
NewRecreateCmd builds the `kuke daemon recreate` cobra command.
Types ¶
type MockProvisionKukeondCellKey ¶
type MockProvisionKukeondCellKey struct{}
MockProvisionKukeondCellKey injects a stub for the provisioning phase so unit tests can verify the teardown phase without a real containerd socket. Production always calls ProvisionKukeondCell on the controller.
type MockSocketDirKey ¶
type MockSocketDirKey struct{}
MockSocketDirKey overrides the directory containing kukeond.{sock,pid}. Tests use this to point the cleanup step at a tmpdir; production reads the path from KUKEOND_SOCKET viper config.
type MockWaitForReadyKey ¶
type MockWaitForReadyKey struct{}
MockWaitForReadyKey injects a stub for the wait-for-ready step so unit tests can verify the teardown phase without a real listening socket.