Expand description
Shared helpers across the Kafka and KafkaNodePool reconcilers.
The Kafka-owned cluster-level objects (Service, ConfigMap,
cluster-id Secret) live here because both reconcilers need to refer
to their names (the pool reconciler reads the Secret; the parent
reconciler renders+applies them). The status-derivation helper, the
SSA / merge-patch wrappers, and the labels / owner-ref helpers are
shared verbatim.
Enums§
- Reconcile
Error - Reconcile-error surface shared by both reconcilers.
Functions§
- combined_
config_ hash - Combined hash over user
spec.config, the canonical listener intent, ametrics_config.is_some()bit, and the cluster CA cert PEM. Empty listeners produce empty intent and metrics-unset produces an empty third segment, so the combined hash is identical to the bareconfig_hash(spec.config)for an unchangedspec.configwith neither listeners nor metrics. - config_
hash - Truncated SHA-256 hex digest (16 hex chars / 8 bytes of entropy)
of the given content. Used to detect
Kafka.spec.configchanges that the K8sStatefulSetcontroller can’t see directly.