Skip to content

fix: bump setup-go v5 to v6, correct version and complete endpoints#28

Merged
msutara merged 2 commits intomainfrom
fix/docs-sync
Mar 22, 2026
Merged

fix: bump setup-go v5 to v6, correct version and complete endpoints#28
msutara merged 2 commits intomainfrom
fix/docs-sync

Conversation

@msutara
Copy link
Copy Markdown
Owner

@msutara msutara commented Mar 22, 2026

Changes

  • CI: actions/setup-go v5 → v6 (aligns with all other CM repos)
  • plugin.go: Version() corrected from 0.1.0 to 0.4.3 to match current release tag
  • plugin.go: Endpoints() expanded from 4 to 9 routes to match actual route registrations in routes.go. Previously missing: GET /interfaces/{name}, PUT /interfaces/{name}, POST /interfaces/{name}/rollback, PUT /dns, POST /dns/rollback
  • plugin_test.go: TestNetworkPlugin_Endpoints updated to validate all 9 endpoints

Why this matters

The Endpoints() slice is used by the web dashboard and TUI for auto-discovery of available plugin operations. With only 4 of 9 routes listed, write operations (static IP, DNS, rollback) were invisible to auto-generated UI menus.

All tests pass locally with GOWORK=off.

- CI: actions/setup-go v5 → v6 (aligns with all other CM repos)
- plugin.go: Version() 0.1.0 → 0.4.3 (matches current release tag)
- plugin.go: Endpoints() expanded from 4 to 9 routes to match actual
  route registrations (was missing PUT, POST rollback, GET by name)
- plugin_test.go: updated TestNetworkPlugin_Endpoints accordingly

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 22, 2026 14:32
@msutara msutara moved this to Review in config manager Mar 22, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates plugin metadata and CI configuration so the network plugin advertises the correct version and exposes all registered HTTP routes via Endpoints() for UI auto-discovery.

Changes:

  • Bump GitHub Actions actions/setup-go from v5 to v6 in CI.
  • Update NetworkPlugin.Version() to 0.4.3.
  • Expand NetworkPlugin.Endpoints() and adjust tests to cover all 9 routes registered in routes.go.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/ci.yml Updates CI to use actions/setup-go@v6.
plugin.go Corrects plugin version and enumerates all 9 discoverable endpoints.
plugin_test.go Updates endpoint test expectations to match the expanded endpoint list.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@msutara msutara merged commit 6cd82de into main Mar 22, 2026
7 checks passed
@msutara msutara deleted the fix/docs-sync branch March 22, 2026 14:49
@github-project-automation github-project-automation bot moved this from Review to Done in config manager Mar 22, 2026
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.

2 participants