Skip to content
This repository was archived by the owner on Aug 23, 2026. It is now read-only.

Remove rancher - #147

Merged
iasthc merged 2 commits into
mainfrom
remove-rancher-id
Aug 19, 2026
Merged

iasthc merged 2 commits into
mainfrom
remove-rancher-id

Conversation

@iasthc

@iasthc iasthc commented Aug 19, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 19, 2026 10:29
@iasthc
iasthc merged commit deb74f7 into main Aug 19, 2026
5 checks passed
@iasthc
iasthc deleted the remove-rancher-id branch August 19, 2026 10:29

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.

Pull request overview

Removes Rancher-related API surface area from the Link API and Workspace CRD by deleting the Rancher project field(s)/RPC and updating all generated artifacts (Go, TS, OpenAPI, CRD) to match the new protobuf schema.

Changes:

  • Removed rancher_project_id fields and the ListRancherProjects RPC/messages from proto/link/v1/link.proto.
  • Regenerated Go/TS protobuf + Connect stubs and pruned OpenAPI schema/paths accordingly.
  • Removed spec.rancherProjectID from the Workspace API type and CRD schema.

Reviewed changes

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

Show a summary per file
File Description
ts/src/link/v1/link_pb.js Regenerated JS protobuf descriptors after removing Rancher messages/fields.
ts/src/link/v1/link_pb.d.ts Regenerated TS declarations to remove Rancher types/fields and RPC.
tenant/v1alpha1/workspace_types.go Removes RancherProjectID from WorkspaceSpec.
proto/link/v1/link.proto Removes Rancher RPC/messages/fields from the Link API schema.
openapi/openapi.yaml Removes Rancher RPC endpoint + schema properties from OpenAPI.
link/v1/link.pb.go Regenerated Go protobuf types to match the updated proto schema.
link/v1/link.connect.go Regenerated Connect client/handler to remove ListRancherProjects.
config/crd/bases/tenant.otterscale.io_workspaces.yaml Updates CRD schema to remove spec.rancherProjectID.
Files not reviewed (2)
  • link/v1/link.connect.go: Generated file
  • link/v1/link.pb.go: Generated file
Suppressed comments (2)

proto/link/v1/link.proto:98

  • GetAgentManifestRequest removed rancher_project_id (tag 3) but doesn’t reserve the tag/name. Reserving removed tags/names helps keep the protobuf schema forward-compatible and prevents accidental reuse.
  repeated string extra_users = 2;
}

proto/link/v1/link.proto:68

  • RegisterRequest removed rancher_project_id (tag 5) but doesn’t reserve the field number/name. Reserving removed tags/names is recommended to avoid future accidental reuse and hard-to-debug compatibility issues.
  string agent_version = 4;
}

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread proto/link/v1/link.proto
Comment on lines 41 to 42
string agent_version = 2;

// The full Rancher Project identifier in "<cluster-id>:<project-name>" form.
string rancher_project_id = 3;
}

// RancherProject identifies a Rancher Project available for cluster
// registration.
message RancherProject {
// The full Rancher Project identifier in "<cluster-id>:<project-name>" form.
string id = 1;

// The human-readable Rancher Project name.
string display_name = 2;
}

// ListRancherProjectsRequest is an empty request message for listing Rancher
// Projects.
message ListRancherProjectsRequest {}

// ListRancherProjectsResponse contains the available Rancher Projects.
message ListRancherProjectsResponse {
// The available Rancher Projects.
repeated RancherProject projects = 1;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants