Skip to content

feat(kafka_schema): added kafka schema references#1176

Open
vmyroslav wants to merge 1 commit into
mainfrom
vmyroslav/nex-2501/kafka-schema-refs
Open

feat(kafka_schema): added kafka schema references#1176
vmyroslav wants to merge 1 commit into
mainfrom
vmyroslav/nex-2501/kafka-schema-refs

Conversation

@vmyroslav
Copy link
Copy Markdown
Contributor

@vmyroslav vmyroslav commented May 20, 2026

About this change—what it does

  • Added kafkaSchemaRef to KafkaSchema.Spec.References[] so a dependent KafkaSchema can resolve subject and version from another KafkaSchema in the same namespace
  • Dependents auto-propagate when the referent advances: a controller-runtime field index + watch + predicate re-enqueues dependents on referent Status.Version changes.
  • Delete is now a two-step soft + hard delete on the registry subject. Re-applying a KafkaSchema with the same subjectName after deletion starts cleanly at version 1
  • Self-reference (A → A) blocked at admission
  • Spec.References now uses +listType=map keyed by name, with MaxItems=100. Reference name uniqueness is enforced by the API server.
  • kafkaSchemaVersionChangedPredicate filters watch events to referent moves, avoiding noisy re-enqueues

Resolves: NEX-2501 & #1149

@vmyroslav vmyroslav force-pushed the vmyroslav/nex-2501/kafka-schema-refs branch from 8cc6e74 to c326353 Compare May 20, 2026 19:56
@vmyroslav vmyroslav force-pushed the vmyroslav/nex-2501/kafka-schema-refs branch from c326353 to 14919b1 Compare May 20, 2026 20:01
@vmyroslav
Copy link
Copy Markdown
Contributor Author

/test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

✅ Acceptance Tests Passed

Workflow: View Details

@vmyroslav vmyroslav marked this pull request as ready for review May 20, 2026 20:48
@vmyroslav vmyroslav requested a review from a team as a code owner May 20, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants