Migrate from V12 to V13¶
Python 3.14+ required¶
KPOps v13 supports only Python 3.14 and 3.15. Upgrade your Python environment before upgrading KPOps.
from and to removed from helm-app and kubernetes-app¶
helm-app and kubernetes-app no longer accept the from and to sections. Previously, from had no effect and to only wired the next component of the pipeline.
If you need topic support for a Helm-based component, define a custom component that combines the capabilities ConsumesTopics and ProducesTopics with HelmApp:
The component must implement the topic hooks (add_input_topics, set_output_topic, …) to map topics into its Helm values.
Unsupported sections are rejected¶
Components that do not support the from or to section now fail validation with a clear error instead of silently ignoring the section:
fromonproducer-appandkafka-source-connectortoonconsumer-appfromandtoonhelm-appandkubernetes-app
This also applies to values merged in from the defaults.yaml of shared keys such as pipeline-component.
Kafka connectors inherit kafka-app defaults¶
Kafka connectors are now KafkaApps. Settings defined under kafka-app in defaults.yaml now also apply to kafka-connector, kafka-source-connector and kafka-sink-connector.
Separate config for sink and source connectors¶
The sink-only settings topics, topics.regex and errors.deadletterqueue.topic.name are now only part of the kafka-sink-connector schema. Elsewhere, editors flag them, but they keep working.
Typed connector and topic config¶
KPOps now validates common connector settings such as tasks.max, errors.tolerance and errors.log.enable, and topic configs such as retention.ms and cleanup.policy, against their type and allowed range, so invalid values like errors.tolerance: some or tasks.max: 0 fail early. Unlike Kafka Connect, KPOps only accepts lowercase values for options like errors.tolerance, so change errors.tolerance: ALL to errors.tolerance: all. Write numbers and booleans unquoted. Quoted values still work, but editors using the schema flag them. The generated output is unchanged.
Deterministic key order¶
The output of kpops generate no longer depends on whether a setting comes from pipeline.yaml or defaults.yaml. Previously, keys from pipeline.yaml came first, followed by those from defaults.yaml. Now keys are always written in the same order, and maps such as topics are sorted alphabetically.
Expect a one-time diff in generated output and snapshot tests. Because topics are sorted, derived values such as values.kafka.inputTopics can change order, which causes a one-time rollout of affected apps.
To separate real changes from reordered keys, dump the pipeline with sorted keys before and after upgrading and compare both files. This works with v12 and v13:
Defaults schema¶
from and to are no longer offered under pipeline-component, kubernetes-app, helm-app, kafka-app and streams-bootstrap in defaults.yaml (and from under kafka-connector). Define them under the concrete component keys instead.
defaults.yaml¶
Custom components (Python API)¶
PipelineComponent.supports_from_section()has been removed. Useisinstance(component, ConsumesTopics)instead.- The topic hooks moved from
PipelineComponentto the capability classesConsumesTopics(input) andProducesTopics(output). KubernetesApp,HelmAppandStreamsBootstrapare generic over their values type,KafkaConnectorover its config type. The sink-only connector fields moved toKafkaSinkConnectorConfig.
- Custom intermediate base classes that are later combined with a built-in app (diamond inheritance, e.g.
class MyProducer(ProducerApp, MyStreamsBootstrapBase)) should become generic too. Otherwise type checkers report inconsistent type arguments.
This replaces former # pyright: ignore[reportIncompatibleVariableOverride] workarounds.
- Fields of custom components appear after
timeoutand beforevalues/configin the generated output. To place a field elsewhere, annotate it with aSection, for computed fields the return type. Overridden fields keep the section of their parent.
ConsumerAppValuesgained the generic baseBaseConsumerAppValues[K].StreamsBootstrap.repo_configandStreamsBootstrap.versionare now typed as optional.