Skip to content

CRD in Operator 0.25.5 have invalid value for watched namespaces #1908

@morkalfon

Description

@morkalfon

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.namespaces as 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

Metadata

Metadata

Assignees

No one assigned

    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