Skip to content

docs: record what the upstream cluster name refers to - #343

Draft
ecv wants to merge 1 commit into
mainfrom
docs/cluster-name-is-project
Draft

docs: record what the upstream cluster name refers to#343
ecv wants to merge 1 commit into
mainfrom
docs/cluster-name-is-project

Conversation

@ecv

@ecv ecv commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

meta.datumapis.com/upstream-cluster-name is the operator's record of the owning project, and nothing in this repo said so. Under the Milo provider the multicluster key is the name of the Project the cluster was discovered from. That fact lives in the milo module, so reading NSO alone leaves the label looking like cluster plumbing with no project in it.

That gap produced #339, which proposed adding a project label the operator already writes, and #340, which implemented it. Both closed. The belief was also already in tree: extensionserver/cache derives project names from exactly this label while carrying a TODO saying the project label is not available yet, which reads as a gap where there is none.

  • UpstreamOwnerClusterNameLabel now documents what the name refers to per discovery mode (project name under Milo, the literal single otherwise) and that no project UID is available from the key.
  • UpstreamClusterNameFromLabel points at that description. It documented the cluster- prefix, the slash encoding, and the legacy leading-slash form in detail, and never the referent.
  • The stale ProjectNames TODO is dropped.

Comments only, no behaviour change.

Test plan

  • go build ./..., gofmt, package tests for the two touched packages

The upstream cluster name label is the operator's record of the owning
project, but nothing said so. Under the Milo provider the multicluster key is
the name of the Project the cluster was discovered from; that fact lives in
the milo module, not here, so reading this repo alone leaves the label looking
like cluster plumbing with no project in it.

The gap had already produced a wrong belief in tree. The extension server
cache derives project names from exactly this label while carrying a TODO
saying the project label is not available yet, which reads as a gap where
there is none.

Key changes:
- Document on UpstreamOwnerClusterNameLabel what the name refers to per
  discovery mode, and that no project UID is available
- Point UpstreamClusterNameFromLabel at that description, since it documented
  the encoding but not the meaning
- Drop the stale TODO on ProjectNames and reference the label's description
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.

1 participant