Skip to content

Conversation

@rh-amarin
Copy link
Collaborator

This PR documents how to name different concerns for the different Hyperfleet components.

  • Domain Concepts
  • Architecture Patterns
  • Infrastructure Components
  • Configuration & Secrets
  • Observability
  • API & HTTP Conventions
  • Database Schema
  • Kubernetes Resources
  • Messaging & Events
  • Repository Naming
  • Binary Naming
  • Makefile Conventions
  • Package & Module Naming

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 9, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.


| Concept | Code (Type) | URL/Config | Plural | Database Table |
|---------|-------------|------------|--------|----------------|
| Cluster | `Cluster` | `cluster` | `clusters` | `clusters` |
Copy link
Contributor

Choose a reason for hiding this comment

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

I really feel, we should be calling it a hosted cluster, following what we are actually provisioning. I really dont like cluster as it leaves too much room for interpretation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can see that for us (dev teams, BU) it may have more meaning using HostedCluster, but..
What would make the most sense to customers?
Does it bring value for them to name it HostedCluster instead of Cluster?

Copy link
Contributor

Choose a reason for hiding this comment

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

We are just an API, how it gets wrapped and presented by the client is up to the users. I really worry that if we are not strongly locked to what a hosted cluster is we will fall into the same trap as OCM did


| Component Type | Suffix | Interface Name | Implementation | Package |
|----------------|--------|----------------|----------------|---------|
| Service layer | `Service` | `ClusterService` | `sqlClusterService` | `pkg/services/` |
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above, really feel we need to be pushing on HostedClusterService

<summary>Complete Table Schema Example</summary>

```sql
CREATE TABLE clusters (
Copy link
Contributor

Choose a reason for hiding this comment

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

Off topic, but I noticed in the API we are not using Gorm conventions for creating tables and instead using tx.Exec for raw sql, is there are reason for this?

@rafabene
Copy link
Contributor

rafabene commented Dec 9, 2025

Nice work @rh-amarin . Although it's a draft, besides the comments from @ciaranRoche regarding using HostedCluster fo examples, this LTGM.

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