Repository navigation
feat(api)!: remove Workload addresses and ports - #2397
Merged
Merged
Conversation
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]>
Contributor
|
The latest Buf updates on your PR. Results from workflow Buf CI / verify-proto (pull_request).
|
There was a problem hiding this comment.
🟢 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
reviewed
Oct 21, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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]>
ramizpolic
approved these changes
Oct 21, 2026
akijakya
enabled auto-merge
October 21, 2026 11:55
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 3 of #2299:
agntcy.dir.runtime.v1.Workloadloses the deprecatedaddressesandports, whichlocatorsreplaced in #2302.Changes
workload.proto:addresses(8) andports(9) are removed, without reserving them: workloads are exchanged as JSON with no compatibility promise.workload.pb.gois regenerated.DiscoveredWorkloadCRD 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.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 daemonalready defaultsruntime.store.sqlite.path, the other item of step 3.Testing
buf lint, andbuf breakingagainst main, report nothing.api/runtime: 0 issues.go vet;go testinapiand incli/cmd/runtime,cli/cmd/daemonpass.Refs #2299
🤖 Generated with Claude Code