Skip to content

Cobbler v4.0.0b5 updates - #96

Merged
SchoolGuy merged 3 commits into
mainfrom
feature/cobbler-4-0-0-b4
Aug 27, 2026
Merged

Cobbler v4.0.0b5 updates#96
SchoolGuy merged 3 commits into
mainfrom
feature/cobbler-4-0-0-b4

Conversation

@SchoolGuy

Copy link
Copy Markdown
Member

This PR adjusts the CLI for the changes that were introduced in the backend with v4.0.0b4 and v4.0.0b5:

  • remove_item and get_item require UIDs now
  • The Golang Client was updated to v1.0.0-rc5

@github-project-automation github-project-automation Bot moved this to Pull Requests in Golang CLI Aug 27, 2026
@SchoolGuy
SchoolGuy force-pushed the feature/cobbler-4-0-0-b4 branch 2 times, most recently from 5046adf to 037f0fb Compare August 27, 2026 19:59
SchoolGuy and others added 2 commits August 27, 2026 22:31
Cobbler 4.0.0b5 changed get_item/get_<type> and remove_item/remove_<type>
to require an object uid instead of a name. Bump cobblerclient to
v1.0.0-rc5 (which already made this change) and adapt:

- Add a resolveUID(client, what, name, uid) helper (cmd/item.go) that
  returns uid directly if given, else resolves name via FindItems,
  erroring clearly on zero or ambiguous matches.
- Add a sibling --uid flag (addUIDFlag) to every remove/report/export/
  rename/copy/edit/dumpvars/get-autoinstall/power-*/reboot/content
  subcommand across all item types, alongside the existing --name flag -
  both keep working, resolveUID bridges whichever is given into the
  uid the client now requires.
- report/export now use the bulk Get<Type>s() call when no --name/--uid
  is given, instead of N per-item round trips.
- Bump testing/start.sh's cobbler_image_tag to v4.0.0b5.
- Add live-server coverage for cmd/distro_group.go, profile_group.go,
  system_group.go, template.go, and interface.go, filling the gap that
  left this PR's --uid/--name plumbing (resolveUID call sites,
  Get/Delete/Copy call-site wiring) untested and failing the
  diff-coverage gate.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@SchoolGuy
SchoolGuy force-pushed the feature/cobbler-4-0-0-b4 branch from 037f0fb to 1635780 Compare August 27, 2026 20:31
Round 3 of the diff-coverage push: adds the menu.go --uid test file that
round 2 missed, backfills copy/edit/rename/remove/report/export --uid and
"report all"/"export all" cases across distro/profile/image/repo/system,
adds dumpvars/get-autoinstall/power command coverage for profile and
system, exercises the full interface-type and template-schema flag
switches in interface.go/template.go, and adds --items coverage for the
shared group_common.go code path across all three *_group.go commands.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@SchoolGuy
SchoolGuy merged commit 120ac86 into main Aug 27, 2026
35 of 36 checks passed
@github-project-automation github-project-automation Bot moved this from Pull Requests to Done in Golang CLI Aug 27, 2026
@SchoolGuy
SchoolGuy deleted the feature/cobbler-4-0-0-b4 branch August 27, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant