Skip to content

chores: add codestyle constant placement rules, align codebase with that - #403

Open
GrigoryPervakov wants to merge 1 commit into
mainfrom
refactor/constants-placement
Open

GrigoryPervakov wants to merge 1 commit into
mainfrom
refactor/constants-placement

Conversation

@GrigoryPervakov

@GrigoryPervakov GrigoryPervakov commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Why

Follow-up: #367 (comment)
To grow the codebase consistently and help agents keep it, we need to fix the repo code style in the docs.

What

  • Add a code style entry about constant placement
  • Refactor existing code to match these rule closely

Workflow [PR]

@clickhouse-operator

clickhouse-operator Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [7ea398c]

Summary: ✅


Code Review

Result: ✅ No issues found

What changed: Documents package-level constant placement conventions and refactors controller, webhook, and resource-template constants accordingly. Shared ClickHouse validation values are centralized in the internal package, while common controller defaults and resource-visible values move to package constants files without changing their values.

No issues found. The refactor preserves the existing generated resource values and validation behavior while removing duplicated literals.

Investigation: 3/13 rounds, 18 tool calls.

This branch has not been deployed

No deployments
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