Skip to content

feat(api)!: remove Workload addresses and ports - #2397

Merged
akijakya merged 3 commits into
mainfrom
feat/2299-remove-workload-addresses-ports
Oct 21, 2026
Merged

akijakya merged 3 commits into
mainfrom
feat/2299-remove-workload-addresses-ports

Conversation

@akijakya

@akijakya akijakya commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Step 3 of #2299: agntcy.dir.runtime.v1.Workload loses the deprecated addresses and ports, which locators replaced in #2302.

Changes

  • workload.proto: addresses (8) and ports (9) are removed, without reserving them: workloads are exchanged as JSON with no compatibility promise. workload.pb.go is regenerated.
  • The DiscoveredWorkload CRD type drops the Addresses and Ports print columns. The CRD YAML is generated in agntcy/dir-runtime, whose chart copy drops them in chore(store): drop Workload addresses and ports from the CRD dir-runtime#120.
  • CHANGELOG entry (BREAKING for Go users of the api module) and the discovery skill reference no longer mentions the fields.

dir-runtime is the only known consumer, and neither v1.4.0 (pinned on main) nor v1.5.0 sets the fields, so nothing else changes. dirctl daemon already defaults runtime.store.sqlite.path, the other item of step 3.

Testing

  • buf lint, and buf breaking against main, report nothing.
  • golangci-lint 2.15.0 on api/runtime: 0 issues.
  • With Go 1.27.2, all modules (api, client, utils, server, reconciler, cli, tests) build and pass go vet; go test in api and in cli/cmd/runtime, cli/cmd/daemon pass.

Refs #2299

🤖 Generated with Claude Code

Locators replaced them, and dir-runtime (v1.4.0 and later) no longer
sets them. Their field numbers and names are reserved, and the
DiscoveredWorkload CRD drops the Addresses and Ports print columns.

Refs #2299

Signed-off-by: András Jáky <[email protected]>
@akijakya
akijakya requested a review from a team as a code owner October 21, 2026 09:51
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / verify-proto (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped⏩ skipped⏩ skippedOct 21, 2026, 11:44 AM

@github-actions github-actions Bot added the size/XS Denotes a PR that changes 0-49 lines label Oct 21, 2026
@akijakya
akijakya requested a balanced review from Copilot October 21, 2026 09:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The schema, generated bindings, and documentation consistently implement the intended removal, with no unresolved findings.

No open issues 🎉

1 file not reviewed
  • api/runtime/v1/workload.pb.go: Generated file
What changed in this PR

Completes the Workload endpoint migration in #2299 by removing deprecated addresses and ports in favor of locators.

Changes:

  • Removes the protobuf fields, reserves their names and numbers, and regenerates Go bindings.
  • Removes obsolete CRD print-column annotations.
  • Documents the breaking API change and updates discovery guidance.
File Description
proto/​agntcy/​dir/​runtime/​v1/​workload.proto Removes and reserves addresses and ports.
CHANGELOG.md Documents the breaking change.
api/​runtime/​v1/​workload.pb.go Updates generated bindings and descriptors.
api/​runtime/​crd/​v1/​discovered_workload.go Removes Addresses and Ports print-column annotations.
.skill/​references/​discovery.md Keeps endpoint guidance focused on locators.

Review effort: Balanced

ramizpolic
ramizpolic previously approved these changes Oct 21, 2026

@ramizpolic ramizpolic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@akijakya
akijakya added this pull request to the merge queue Oct 21, 2026
@akijakya
akijakya removed this pull request from the merge queue due to a manual request Oct 21, 2026
Workloads are exchanged as JSON and carry no compatibility promise, so
the old field numbers and names need no reservation.

Signed-off-by: András Jáky <[email protected]>
@akijakya
akijakya requested a review from ramizpolic October 21, 2026 11:44
@akijakya
akijakya enabled auto-merge October 21, 2026 11:55
@akijakya
akijakya added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 7112b53 Oct 21, 2026
36 checks passed
@akijakya
akijakya deleted the feat/2299-remove-workload-addresses-ports branch October 21, 2026 12:36
akijakya added a commit to agntcy/dir-runtime that referenced this pull request Nov 11, 2026
agntcy/dir#2397 removes the fields from agntcy.dir.runtime.v1.Workload.
Pin dir/api to it and regenerate the DiscoveredWorkload CRD, which loses
the two properties and the Addresses and Ports print columns.

Signed-off-by: András Jáky <[email protected]>
akijakya added a commit to agntcy/dir-runtime that referenced this pull request Nov 11, 2026
* chore(store): drop Workload addresses and ports from the CRD

agntcy/dir#2397 removes the fields from agntcy.dir.runtime.v1.Workload.
Pin dir/api to it and regenerate the DiscoveredWorkload CRD, which loses
the two properties and the Addresses and Ports print columns.

Signed-off-by: András Jáky <[email protected]>

* chore(deps): pin agntcy/dir modules to v1.9.0

Move github.com/agntcy/dir/api (store, discovery, server) from the
pre-release pseudo-version to v1.9.0, and client/utils in discovery to
v1.9.0. The dir v1.9.0 modules require Go 1.27.3, so the go directives
and the builder images move to 1.27.3 too. The regenerated CRD is
unchanged.

Signed-off-by: András Jáky <[email protected]>

* fix(store): read SQLite payloads that hold removed Workload fields

api v1.9.0 drops addresses and ports from Workload. protojson.Unmarshal
rejects unknown fields by default, so a row written before v1.4.0 that
still has them made GetWorkload fail and dropped out of ListWorkloads.
Decode with DiscardUnknown instead, and cover it with a regression test.

Also set the Taskfile GO_VERSION and the utils module to Go 1.27.3, so
task deps:tidy matches the Go requirement of the dir v1.9.0 modules.

Signed-off-by: András Jáky <[email protected]>

---------

Signed-off-by: András Jáky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buf skip breaking Denotes a PR that should skip breaking Buf change checks. size/XS Denotes a PR that changes 0-49 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants