Skip to content

Fix CRD vs CR (Custom Resource) conflation in docs and code - #244

Merged
ryannedolan merged 2 commits into
mainfrom
jogrogan/venice-test-mockstatic
Jul 28, 2026
Merged

Fix CRD vs CR (Custom Resource) conflation in docs and code#244
ryannedolan merged 2 commits into
mainfrom
jogrogan/venice-test-mockstatic

Conversation

@jogrogan

Copy link
Copy Markdown
Collaborator

Fix CRD vs CR (Custom Resource) conflation in docs and code

What & why

Several docs and code comments used CRD (Custom Resource Definition — the schema/blueprint) when they actually meant a CR (Custom Resource — an instance created from that schema). This PR corrects the terminology wherever "CRD" referred to an instance, while deliberately preserving "CRD" wherever it genuinely means the definition.

Rule applied

• Changed → "custom resource" /  Cr : a specific instance that is applied, read, reconciled, deleted, owns children, carries labels, backs a tier, points at a URL, or has a  metadata.name .
• Kept as "CRD": installing CRDs, the CRD reference doc, modifying a CRD field/YAML, the  v1alpha1  API group,  .crd.yaml  files, and type-level phrases ( CRD kind ,  CRD group , the CRD's typed-enum fields).

Changes

• Docs (~30 edits) across  docs/  +  README.md  — e.g. "an Engine CRD registers a runtime", "reconciles Hoptimator's CRDs", "a  Subscription  CRD applied with  kubectl apply ", validators inspecting "a CRD" → all now "custom resource(s)".
• Code comments — Javadoc/inline comments describing instances across  hoptimator-api ,  -jdbc ,  -util ,  -kafka ,  -mysql ,  -k8s ,  -logical .
• Identifiers renamed  Crd → Cr  (production + tests kept in sync):  tableFromCrd → tableFromCr ,  crdName → crName  (field/param/locals in both LogicalTable deployers +  PipelineGraphBuilder ),  mockCrdDeployer → mockCrDeployer ,  dbCrd → dbCr ,  crds → crs , plus corresponding test-method names.
• Kept in sync:  logicaltables.crd.yaml  field description ↔ generated  V1alpha1LogicalTableSpecTiers.java  ↔  docs/kubernetes/crd-reference.md  — all now read "Name of the Database custom resource backing this tier."

Testing

•  BUILD SUCCESSFUL  compiling all affected modules (main + test)
• Checkstyle passes ( hoptimator-logical ,  -k8s ,  -jdbc )
•  hoptimator-logical  unit tests pass
•  Bundled in a testing fix for VeniceDeployer

Notes

• No behavioral changes — comments, docs, and internal identifier names only.
• A parallel change for the internal  li-hoptimator  extension has been made separately.

jogrogan and others added 2 commits July 28, 2026 10:32
Correct places that said "CRD" (Custom Resource Definition — the schema)
when they actually meant a "CR" (Custom Resource — an instance). CRD is
kept where it genuinely refers to the definition/schema (installing CRDs,
the CRD reference, modifying CRD fields/YAMLs, the v1alpha1 API group,
"CRD kind"/"CRD group").

- Docs: ~30 edits across docs/ and README (e.g. an Engine/Database/
  Subscription/Pipeline "CRD" that registers/backs/applies/reconciles ->
  "custom resource").
- Code comments: Javadoc/inline comments describing instances being
  deployed/read/deleted/owned across hoptimator-api, -jdbc, -util, -kafka,
  -mysql, -k8s, -logical.
- Identifiers: rename conflated Crd->Cr in hoptimator-logical and
  PipelineGraphBuilder (production + tests kept in sync), e.g.
  tableFromCrd->tableFromCr, crdName->crName, mockCrdDeployer->mockCrDeployer.
- Keep CRD-yaml description, generated model, and crd-reference.md in sync
  ("Name of the Database custom resource backing this tier").

Verified: affected modules compile (main+test), checkstyle passes,
hoptimator-logical unit tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown

Code Coverage

Overall Project 84.75% -0.04% 🟢
Files changed 92.44% 🟢

File Coverage
MySqlDeployerProvider.java 100% 🟢
Trigger.java 100% 🟢
PendingDelete.java 100% 🟢
LogicalTableNames.java 100% 🟢
K8sDatabaseConfigResolverProvider.java 100% 🟢
K8sDatabaseTable.java 100% 🟢
LogicalTableDeployerProvider.java 100% 🟢
LogicalTable.java 100% 🟢
K8sLogicalTableDeployer.java 100% 🟢
KafkaDeployerProvider.java 100% 🟢
LogicalTableSchema.java 97.72% 🟢
K8sMaterializedViewDeployer.java 96.03% 🟢
K8sDatabaseConfigResolver.java 92.15% 🟢
K8sPipelineBundle.java 88.15% 🟢
DependencyChecker.java 86.86% 🟢
K8sGraphProvider.java 83.75% 🟢
PipelineGraphBuilder.java 82.52% -0.42% 🟢
LogicalTableDeployer.java 74.47% -0.87% 🟢
LogicalTableDriver.java 70.8% 🟢
VeniceDeployer.java 57.14% 🟢

@ryannedolan
ryannedolan merged commit fd65243 into main Jul 28, 2026
1 check passed
@ryannedolan
ryannedolan deleted the jogrogan/venice-test-mockstatic branch July 28, 2026 22:56
@jogrogan jogrogan changed the title Fix CRD vs CR (Custom Resource) conflation in docs and cod Fix CRD vs CR (Custom Resource) conflation in docs and code Jul 29, 2026
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.

2 participants