Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions api/apiv1/design/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ var Cluster = g.Type("Cluster", func() {
g.Description("Unique identifier for the cluster.")
g.Example("production")
})
g.Attribute("tenant_id", Identifier, func() {
g.Description("Unique identifier for the cluster's owner.")
g.Example("engineering")
})
g.Attribute("status", ClusterStatus, func() {
g.Description("Current status of the cluster.")
})
Expand All @@ -30,7 +26,7 @@ var Cluster = g.Type("Cluster", func() {
g.Example(HostsArrayExample)
})

g.Required("id", "tenant_id", "status", "hosts")
g.Required("id", "status", "hosts")
})

var InitClusterRequest = g.Type("InitClusterRequest", func() {
Expand Down
2 changes: 0 additions & 2 deletions api/apiv1/gen/control_plane/service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 1 addition & 17 deletions api/apiv1/gen/http/control_plane/client/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions api/apiv1/gen/http/control_plane/server/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 1 addition & 11 deletions api/apiv1/gen/http/openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions api/apiv1/gen/http/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 2 additions & 12 deletions api/apiv1/gen/http/openapi3.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions api/apiv1/gen/http/openapi3.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions changes/unreleased/Removed-20251222-093048.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Removed
body: Removed unused "tenant_id" field from GetCluster endpoint.
time: 2025-12-22T09:30:48.776635-06:00
7 changes: 3 additions & 4 deletions server/internal/api/apiv1/post_init_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,9 @@ func (s *PostInitHandlers) GetCluster(ctx context.Context) (*api.Cluster, error)
return nil, apiErr(err)
}
cluster := &api.Cluster{
ID: api.Identifier(storedCluster.ID),
TenantID: api.Identifier(s.cfg.TenantID),
Hosts: apiHosts,
Status: &api.ClusterStatus{State: "available"},
ID: api.Identifier(storedCluster.ID),
Hosts: apiHosts,
Status: &api.ClusterStatus{State: "available"},
}

return cluster, nil
Expand Down