Altinity / Altinity/clickhouse-operator
CRD in Operator 0.25.5 have invalid value for watched namespaces
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 2.6k
- Forks
- 574
- Avg merge
- 8d 6h
- Merged PRs (30d)
- 6
Description
After upgrading from ClickHouse Operator 0.25.3 to 0.25.5, our previous ClickHouseOperatorConfiguration manifests—valid and working on 0.25.3—are now rejected due to a breaking change in the CRD schema for the watch.namespaces field.
This is a YAML snippet of the relevant configuration (which worked in v0.25.3):
apiVersion: clickhouse.altinity.com/v1
kind: ClickHouseOperatorConfiguration
# ...
spec:
# ...
watch:
namespaces:
- clickhouse
- In 0.25.3, the CRD defines
spec.watch.namespacesas an array of strings. - In 0.25.5, this changed to an object (
type: object), breaking compatibility with configurations that previously used the old array format or documentation that expected one behavior.
CRD change that caused breakage:
namespaces:
type: array
description: "List of namespaces where clickhouse-operator watches for events."
items:
type: string
namespaces:
type: object
description: "List of namespaces where clickhouse-operator watches for events."
x-kubernetes-preserve-unknown-fields: true
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare deploy/operatorhub/0.25.3/clickhouseoperatorconfigurations.clickhouse.altinity.com.crd.yaml with the 0.25.5 CRD sections linked in the issue, then inspect the surrounding CRD generation or operator configuration code. Verify that the intended schema accepts the previously valid watch.namespaces manifest and that the resulting CRD and documentation agree.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clickhouse, go, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100