Skip to content

CHK controller logs object meta as "unknown" (announcer M() missing ClickHouseKeeperInstallation case) #2036

Description

@KyriosGN0

All ClickHouseKeeperInstallation reconcile log lines render the object-meta segment as unknown, e.g.:

reconcileCR():unknown:CR has reconcile work - continue reconcile

The announcer formats lines as file:line:function:prefix:meta:message (pkg/announcer/announcer.go). meta comes from M(), whose type-switch only handles CHI types (ClickHouseInstallation, Cluster, ChiShard, ChiReplica, Host, ClickHouseOperatorConfiguration, ClickHouseInstallationTemplate) and ends with:

default:
    b.meta = fmt.Sprintf("unknown")

There's no case for ClickHouseKeeperInstallation, so every CHK line hits the default. Expected CHK:<ns>/<name> (as CHI shows CHI:<ns>/<name>).

Cosmetic only, but hurts CHK log readability. Fix = add a *ClickHouseKeeperInstallation case to M(). Seen on 0.27.0.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions