KafkaMirrorTopic
Field reference for the KafkaMirrorTopic resource (gitops.monedula.dev/v1alpha1): every spec and status field with its type, default and validation rules.
Reference 18 of 22
Reference for monedula-gitops v1.3.0
Updated 3 December 2026
On this page
Summary
| apiVersion | gitops.monedula.dev/v1alpha1 |
| kind | KafkaMirrorTopic |
| Scope | Namespaced |
kubectl get columns | Cluster, Link, Source, Phase, Mirror, Age |
KafkaMirrorTopicSpec declares a cluster-link mirror topic. Identity fields are immutable at the API server via CEL transition rules; an empty explicit topicName is treated as omitted (the effective name is sourceTopicName).
Rules enforced by the API server:
- spec.clusterRef.name is immutable
- spec.linkName is immutable
- spec.sourceTopicName is immutable
- the effective destination topic name is immutable (a different name needs a new KafkaMirrorTopic)
Example
apiVersion: gitops.monedula.dev/v1alpha1
kind: KafkaMirrorTopic
metadata:
name: sample-mirror-topic
namespace: monedula-system
spec:
clusterRef:
name: sample-cluster-rest
# Existing cluster link on the destination cluster.
linkName: dr-link
# Topic on the source cluster; the destination topic has the same name unless
# topicName is set.
sourceTopicName: orders.events
# topicName: orders.events.mirror
# replicationFactor: 3
config:
retention.ms: "604800000"
reconciliation:
mode: Enforce
# Deleting this resource never deletes the mirror topic.
deletionPolicy: Orphan Spec
spec.clusterRef object required spec.clusterRef.name string required spec.config map<string, string> spec.deletionPolicy string DeletionPolicy is present only so that Delete is rejected: without the field the API server would silently prune an unknown deletionPolicy. Mirror topics are always orphaned on delete.
One of: Orphan
spec.linkName string required spec.reconciliation object spec.reconciliation.mode string One of: Enforce, DetectOnly, ObserveOnly
spec.replicationFactor integer min: 1
spec.sourceTopicName string required spec.topicName string TopicName is the destination topic name; empty means sourceTopicName.
Status
Written by the operator; read-only for users.
status.conditions array<object> status.conditions[].lastTransitionTime string required lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
format: date-time
status.conditions[].message string required message is a human readable message indicating details about the transition. This may be an empty string.
max length: 32768
status.conditions[].observedGeneration integer observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
format: int64, min: 0
status.conditions[].reason string required reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$, min length: 1, max length: 1024
status.conditions[].status string required status of the condition, one of True, False, Unknown.
One of: True, False, Unknown
status.conditions[].type string required type of condition in CamelCase or in foo.example.com/CamelCase.
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$, max length: 316
status.drift object status.drift.detected boolean required status.drift.fields array<string> status.lastAppliedTime string format: date-time
status.lastCheckedTime string format: date-time
status.lastObservedStatusChangeTime string format: date-time
status.linkName string status.observedGeneration integer format: int64
status.observedMirrorStatus string status.phase string status.sourceTopicName string