Skip to content

refactor(k8s): rename spur.ai domain prefix to spur.amd.com#57

Merged
shiv-tyagi merged 1 commit into
ROCm:mainfrom
shiv-tyagi:refactor/rename-spur-ai-to-spur-amd-com
Jun 2, 2026
Merged

refactor(k8s): rename spur.ai domain prefix to spur.amd.com#57
shiv-tyagi merged 1 commit into
ROCm:mainfrom
shiv-tyagi:refactor/rename-spur-ai-to-spur-amd-com

Conversation

@shiv-tyagi

Copy link
Copy Markdown
Member

Summary

  • Replace all spur.ai references with spur.amd.com across CRD definitions, labels, RBAC rules, and documentation.
  • Companion to the spur repo PR with the same rename — spur.ai is not a domain we own and K8s best practices require using a domain your organization controls for CRD API groups and label prefixes.

What changed

Area Before After
CRD API group (spur_client.rs) spur.ai spur.amd.com
Labels spur.ai/session-id, spur.ai/managed-by, spur.ai/job-id spur.amd.com/session-id, spur.amd.com/managed-by, spur.amd.com/job-id
RBAC apiGroups spur.ai spur.amd.com
README node labels spur.ai/managed, spur.ai/gpu-type spur.amd.com/managed, spur.amd.com/gpu-type

4 files changed, pure find-and-replace. Build passes cleanly.

Breaking change

This must be deployed together with the corresponding spur repo change — the CRD group changes from spur.ai to spur.amd.com.

Test plan

  • cargo build — clean
  • cargo fmt --check --all — clean
  • Verified zero remaining spur.ai occurrences in the repo

@shiv-tyagi shiv-tyagi marked this pull request as ready for review June 2, 2026 13:19
Copilot AI review requested due to automatic review settings June 2, 2026 13:19

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

This PR updates Kubernetes API group and label/RBAC prefixes from spur.ai to spur.amd.com to align with Kubernetes best practices (using an organization-controlled domain) and match the companion rename in the Spur operator repo.

Changes:

  • Renamed the SpurJob CRD API group to spur.amd.com in the Rust CustomResource definition.
  • Updated Kubernetes label selectors/keys from spur.ai/* to spur.amd.com/* in the API service and WebSocket pod lookup.
  • Updated documentation examples to use the new node label prefix.

Reviewed changes

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

File Description
README.md Updates node labeling examples to use spur.amd.com/*.
deploy/k8s/gpuaas-api.yaml Updates RBAC apiGroups for SpurJob CRDs to spur.amd.com.
crates/spur-cloud-api/src/spur_client.rs Updates CRD group and session/managed-by label keys to spur.amd.com/*.
crates/spur-cloud-api/src/routes/ws.rs Updates pod label selector for terminal lookup to spur.amd.com/job-id.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

spur.ai is not a domain we own. Kubernetes best practices require that
CRD API groups, label prefixes, and RBAC apiGroups use a domain
controlled by the organization. Switch to spur.amd.com across CRD
definitions, labels, RBAC rules, and documentation.
@shiv-tyagi shiv-tyagi force-pushed the refactor/rename-spur-ai-to-spur-amd-com branch from d6c96b3 to 312dc3f Compare June 2, 2026 16:35

@sgopinath1 sgopinath1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@shiv-tyagi shiv-tyagi merged commit 55777fc into ROCm:main Jun 2, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants