Repository navigation
cli: Add an edit verb - #107
Conversation
This interactively replaces the specified state, in a similar way as `kubectl edit`. As of right now, the only supported state to change is the desired image. But this will help unblock [configmap support]. [configmap support]: bootc-dev#22 Signed-off-by: Colin Walters <[email protected]>
|
One thing that probably needs to happen here is we need to implement more of an "api server" in having at least a Also a random thought: we probably still do want to run as a systemd unit when changes are being made. But we could just always serialize our state into |
|
wdyt of adding an |
|
That's how it works right? You can |
|
yeah that is how it works, I was just wondering if it made sense to use the word 'apply' instead for that. As that is how kubectl and oc do it, which would be a more familiar interface I guess. |
|
In any case this lgtm. Just wanted to point out the "word" used as it might be more familiar to use |
|
It's a good point! I'm not sure... we could make |
|
To be clear I'm happy to change to |
|
Well I think we need both if we want the "familiar interface". IIRC apply is just for when we are passing the yaml file. https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply Edit is more manual, expects the user to modify it with an editor: But Idk, I see that edit also has a -f filename option which I am not sure if it just does the same thing as apply... If it does, then I guess we can ignore apply for now. |
The regression test for bootc#2402 carried by upstream PR 2634 skips itself when /boot is not an automount, so a general integration run can go green without ever exercising the bug. This adds a separate, disabled-by-default plan that runs the exact pinned test revision on an ostree-backed Fedora 44 guest with /boot on the root filesystem, rejects any other layout in prepare, and requires the updated deployment to have booted in finish. The `just test-boot-automount` recipe enables the plan by context and uses the new `--require-plan` option of `cargo xtask run-tmt`, so a disabled or missing plan is an error rather than an empty successful run. The test source stays in PR 2634 (issue bootc-dev#105) and is consumed read-only through tmt discovery; building images for the affected and fixed ostree revisions and the CI job are not part of this change. Part of bootc-dev#107 Verified with the xtask tests, `cargo xtask update-generated direct --check`, `tmt plan lint` and a discover-only run against the pin; no VM run was possible here. Generated-by: AI
Depends #106
cli: Add an
editverbThis interactively replaces the specified state, in a similar way
as
kubectl edit.As of right now, the only supported state to change is the desired
image.
But this will help unblock configmap support.