kadet-hub logokadet-hub

Generators / strimzi

strimzi

1.1.2

Renders Strimzi Kafka clusters with their KafkaNodePools, KafkaTopics and KafkaUsers from inventory parameters.

kubernetesoperatorsdatabase

Request a feature Report a problem

Badge

Show the latest listed version in your README. shields.io draws the badge from this page's badge.json, which every catalog build updates; once no version is listed, it reads "not listed".

[![kadet-hub](https://img.shields.io/endpoint?url=https://kadet-hub.org/generators/strimzi/badge.json)](https://kadet-hub.org/generators/strimzi/)
Latest
1.1.2 路
License
Apache-2.0
Owners
Moep90
Source
github.com/kadet-hub/generators 路 0 repo stars, shared by 38 generators
Thumbs up
馃憤 0 on GitHub Discussions
Popularity
26 路 7990 pulls
Image security
Version 1.1.2 names no image.

Strimzi Generator

Published on kadet-hub: pin a released version by digest from its catalog page.

Built for Strimzi 1.3.1 (kafka.strimzi.io/v1, the only served and storage version of every kind, not deprecated). Strimzi 1.x runs Kafka in KRaft mode with KafkaNodePools only. The bundled kafka.strimzi.io JSON Schemas come from the upstream CRDs of this release (Apache-2.0).

Kapitan kadet generator for Strimzi:

  • Kafka: a KRaft cluster with its listeners, authorization, broker configuration and Entity Operator
  • KafkaNodePool: the controller and broker pools of a Kafka entry
  • KafkaTopic: topics, reconciled by the Topic Operator
  • KafkaUser: users with TLS or SCRAM-SHA-512 credentials, ACLs and quotas, reconciled by the User Operator

The Cluster Operator installation, client Secrets and NetworkPolicies beyond the ones Strimzi creates belong elsewhere.

Usage

parameters:
  kapitan:
    dependencies:
      - type: oci
        source: ghcr.io/kadet-hub/strimzi@sha256:<digest>
        output_path: lib/strimzi
    compile:
      - output_path: manifests/strimzi/
        input_type: kadet
        output_type: yml
        input_paths:
          - lib/strimzi

Inventory contract

All keys live under parameters.generators.strimzi.

Key Kind Output key
namespace Default namespace. Falls back to parameters.namespace, then default.
cluster Default Kafka of topics and users, see below.
kafkas.<name> Kafka <namespace>/<name>-kafka
kafkas.<name>.node_pools.<pool> KafkaNodePool <namespace>/<name>-<pool>-kafkanodepool
topics.<name> KafkaTopic <namespace>/<metadata.name>-kafkatopic
users.<name> KafkaUser <namespace>/<name>-kafkauser

Every entry accepts labels, annotations and spec, and name, which names the resource and its output key in place of the entry key; Kafka, KafkaTopic and KafkaUser entries also accept namespace. cluster and strimzi.io/cluster name a Kafka’s resource, not its key, and a topic with name takes no name from its key. Labels starting with strimzi.io/ other than strimzi.io/cluster fail the compile, because the Cluster Operator rejects them. The generator emits no name label: Strimzi copies CR labels onto pods, Services and Secrets, and a label value is limited to 63 characters while a topic name is not. Two entries that render the same output key, or two node pools with the same name in one namespace, fail the compile. Precedence, lowest first: generator defaults, spec, flat keys and shorthands. Dicts merge key by key, lists and other values replace; a flat key that overrides a spec value logs a warning.

Kind Flat key Result
Kafka version, metadata_version, listeners, config spec.kafka.version, .metadataVersion, .listeners, .config
Kafka authorization: simple spec.kafka.authorization: {type: simple}; a dict passes through; none removes the default
Kafka entity_operator: false removes the default entityOperator
KafkaNodePool roles, replicas, resources the spec field of the same name
KafkaNodePool storage: 100Gi type: jbod with one persistent-claim volume of that size, id: 0, kraftMetadata: shared; a dict passes through
KafkaTopic topic_name, partitions, replicas, config spec.topicName, .partitions, .replicas, .config
KafkaUser authentication: tls spec.authentication: {type: tls}; a dict passes through
KafkaUser acls spec.authorization: {type: simple, acls: [...]}, each ACL expanded as below
KafkaUser quotas spec.quotas

An ACL entry names its resource with topic: <name>, group: <name>, transactional_id: <id> or cluster: true, plus pattern_type: prefix for a prefix match. operations, host and type (allow, deny) pass through, and an entry with resource passes through unchanged. patternType: literal, host: "*" and type: allow are the operator’s defaults, documented in the CRD, and are not emitted. An ACL entry without resource must set exactly one of topic, group, transactional_id and cluster, or the compile fails.

Kafka defaults

A Kafka entry without listeners gets one internal TLS listener tls on port 9093 with mTLS client authentication, and authorization: {type: simple}, as in upstream’s tls-auth example. The CRD requires at least one listener. No plain or anonymous listener and nothing reachable from outside the Kubernetes cluster is emitted unless the inventory lists it. With simple authorization a KafkaUser can only do what its ACLs allow; the Entity Operator, Cruise Control and Cluster Operator are super users without an entry. authorization: none emits no spec.kafka.authorization, so every authenticated client gets full access; use it only for clusters whose access is controlled elsewhere.

entityOperator: {topicOperator: {}, userOperator: {}} is set because without it the KafkaTopics and KafkaUsers of this generator are not reconciled; it is part of upstream’s minimal configuration. entity_operator: false leaves it out for clusters whose topics and users are managed by a standalone Topic or User Operator or not at all.

The replication settings of spec.kafka.config are derived from the broker count, the sum of replicas of the node pools with the broker role: default.replication.factor, offsets.topic.replication.factor and transaction.state.log.replication.factor are min(3, brokers); min.insync.replicas and transaction.state.log.min.isr are one less, at least 1. That gives upstream’s recommended 3 and 2 from three brokers on, as in the minimal configuration, and 1 and 1 for a single broker, as in the single-node example. Without the setting, Strimzi falls back to min.insync.replicas: 1, and Kafka’s default offsets topic replication factor of 3 cannot be met by fewer than three brokers. A Kafka entry without broker pools gets no derived settings.

version and metadataVersion stay unset, so the Cluster Operator uses its default Kafka version; pin them in production to control upgrades.

Node pools

Node pools take the namespace of their Kafka and the label strimzi.io/cluster: <kafka>. replicas defaults to 3 as in upstream’s examples; roles and storage have no default and QA-7 fails without them. The pool key is metadata.name, and pods are named <kafka>-<pool>-<id>, so two clusters in one namespace need different pool keys.

Topics and users

Topics and users get strimzi.io/cluster from cluster on the entry, then generators.strimzi.cluster, then the only Kafka entry if there is exactly one; otherwise the compile fails, because the operators ignore resources without the label. When the inventory defines Kafka entries, cluster must name one of them; a cluster defined elsewhere can only be referenced from an inventory without kafkas. The namespace defaults to the namespace of that Kafka entry, which the Entity Operator watches by default.

A topic key that is not a valid Kubernetes name, such as Payments_EU, becomes spec.topicName, as the topic naming docs describe. metadata.name is derived: the key lowercased, every run of characters other than a-z0-9 replaced by -, cut to 200 characters, leading and trailing - removed (topic if nothing is left), and an 8 character hash of the key appended (payments-eu-e1ed1a98). partitions and replicas left unset take the broker defaults num.partitions and default.replication.factor.

A KafkaUser without authentication gets no credentials; the generator sets none by default, because credentials plus a cluster without authorization grant full access.

Example

parameters:
  generators:
    strimzi:
      namespace: streaming
      kafkas:
        events:
          version: 4.3.1
          metadata_version: 4.3-IV0
          node_pools:
            controller:
              roles: [controller]
              storage: 20Gi
            broker:
              roles: [broker]
              storage: 500Gi
          config:
            auto.create.topics.enable: false
      topics:
        orders:
          partitions: 12
          config:
            retention.ms: 604800000
      users:
        orders-app:
          authentication: tls
          acls:
            - topic: orders
              operations: [Describe, Read, Write]
            - group: orders-
              pattern_type: prefix
              operations: [Read]

tests/fixtures/inventory/targets/complete.yml covers three clusters, an opt-in external TLS listener, the authorization: none and entity_operator: false opt-outs, every flat key and shorthand, and flat keys overriding spec.

Versions

Add a version's inventory entry, then compile with the consumer workflow, which verifies the artifact and runs Kapitan in the sandbox.

Free of charge, as is and on a best-effort basis: use at your own risk, and review the compiled output before you apply it. Terms

This catalog was built from index serial 148. Set index_serial: 148 in .kapitan-sandbox.yaml and the consumer workflow refuses any older index, so a rolled-back index cannot bring back a yanked version.

Checks find known patterns; they do not prove a generator safe. What a listing covers

VersionBuilt for (schema-checked)
1.1.2Strimzi 1.3.1
1.1.1Strimzi 1.3.0
1.1.0Strimzi 1.3.0
1.0.1Strimzi 1.3.0
1.0.0Strimzi 1.3.0
1.1.2

1Inventory Your project

Inventory entry

parameters:
  kapitan:
    dependencies:
      - type: oci
        source: ghcr.io/kadet-hub/strimzi:1.1.2@sha256:6493a07b7f44f6e9034c97cf45c2bf0e421cfe700cdf5ae9bd8488975707705a
        output_path: lib/strimzi

2Verify kadet-hub

Terminal

gh attestation verify \
  oci://ghcr.io/kadet-hub/strimzi@sha256:6493a07b7f44f6e9034c97cf45c2bf0e421cfe700cdf5ae9bd8488975707705a \
  --owner kadet-hub \
  --cert-identity https://github.com/kadet-hub/registry/.github/workflows/release.yml@refs/heads/main

Transparency log: Rekor entry 3826848953, in Sigstore's public, append-only log, so the attestation stays checkable independent of this site.

3Checks kadet-hub

Checked by the release run on , gate at 570b5865b040.

  • Secrets gitleaks 8.30.1
    No secret matched the marketplace's gitleaks rules.
  • Malware ClamAV 1.5.4
    No file matched a ClamAV signature.
  • Malicious package heuristics GuardDog 3.2.0
    No GuardDog threat rule matched.
  • Dangerous code Semgrep 1.183.0
    No marketplace Semgrep rule matched, such as eval, subprocess or network calls.
  • Python errors Ruff 0.17.3
    No syntax error or undefined name (Ruff, error rules only).
  • File tree tree_check.py
    No symlink, executable or banned file; imports within the allowlist.
  • Sandboxed compile gVisor 20261005, Kapitan 0.36.3
    The fixture compiled without network, with decoy credentials; no undeclared program ran, no decoy was read.
  • Output capabilities Conftest v0.71.1
    The compiled output uses only the capabilities the manifest declares.
  • CI detection Kapitan 0.36.3
    The output is the same with CI variables set.

SBOM (SPDX 2.3)

Record

Kapitan declared
>=0.36.3,<0.37
Kapitan checked
0.36.3
Backends checked
reclass-rs, omegaconf
With --cache
passed
krab
compatible
Built for (schema-checked)
Strimzi 1.3.1
Source
strimzi-v1.1.2 路 strimzi
Source commit
5a03b0b9f6d474d8cf1373fc61a1c21ba3a8efb2
Binaries
none
Output capabilities
none
Digest
sha256:6493a07b7f44f6e9034c97cf45c2bf0e421cfe700cdf5ae9bd8488975707705a

Output diff

Fixture output against 1.1.1: 0 files, 0 hunks.

Output diff

1.1.1

1Inventory Your project

Inventory entry

parameters:
  kapitan:
    dependencies:
      - type: oci
        source: ghcr.io/kadet-hub/strimzi:1.1.1@sha256:8af7f7d5bd781c52625bdaf8a2bccaa2ca99e64f068e7db0c4548d2efda2a840
        output_path: lib/strimzi

2Verify kadet-hub

Terminal

gh attestation verify \
  oci://ghcr.io/kadet-hub/strimzi@sha256:8af7f7d5bd781c52625bdaf8a2bccaa2ca99e64f068e7db0c4548d2efda2a840 \
  --owner kadet-hub \
  --cert-identity https://github.com/kadet-hub/registry/.github/workflows/release.yml@refs/heads/main

Transparency log: Rekor entry 3692494099, in Sigstore's public, append-only log, so the attestation stays checkable independent of this site.

3Checks kadet-hub

Checked by the release run on , gate at 30d80a84e8e4.

  • Secrets gitleaks 8.30.1
    No secret matched the marketplace's gitleaks rules.
  • Malware ClamAV 1.5.4
    No file matched a ClamAV signature.
  • Malicious package heuristics GuardDog 3.2.0
    No GuardDog threat rule matched.
  • Dangerous code Semgrep 1.180.0
    No marketplace Semgrep rule matched, such as eval, subprocess or network calls.
  • Python errors Ruff 0.17.0
    No syntax error or undefined name (Ruff, error rules only).
  • File tree tree_check.py
    No symlink, executable or banned file; imports within the allowlist.
  • Sandboxed compile gVisor 20261005, Kapitan 0.36.3
    The fixture compiled without network, with decoy credentials; no undeclared program ran, no decoy was read.
  • Output capabilities Conftest v0.71.1
    The compiled output uses only the capabilities the manifest declares.
  • CI detection Kapitan 0.36.3
    The output is the same with CI variables set.

SBOM (SPDX 2.3)

Record

Kapitan declared
>=0.36.3,<0.37
Kapitan checked
0.36.3
Backends checked
reclass-rs, omegaconf
With --cache
passed
krab
compatible
Built for (schema-checked)
Strimzi 1.3.0
Source
strimzi-v1.1.1 路 strimzi
Source commit
d2acfd07c1d3a811f012ed0d4046cb2efa8c051c
Binaries
none
Output capabilities
none
Digest
sha256:8af7f7d5bd781c52625bdaf8a2bccaa2ca99e64f068e7db0c4548d2efda2a840

Output diff

Fixture output against 1.1.0: 0 files, 0 hunks.

Output diff

1.1.0

1Inventory Your project

Inventory entry

parameters:
  kapitan:
    dependencies:
      - type: oci
        source: ghcr.io/kadet-hub/strimzi:1.1.0@sha256:375ec870554a3d645f6b05abbeb8d16e6bdcbfbe1d7741a699308e45d1ef92d7
        output_path: lib/strimzi

2Verify kadet-hub

Terminal

gh attestation verify \
  oci://ghcr.io/kadet-hub/strimzi@sha256:375ec870554a3d645f6b05abbeb8d16e6bdcbfbe1d7741a699308e45d1ef92d7 \
  --owner kadet-hub \
  --cert-identity https://github.com/kadet-hub/registry/.github/workflows/release.yml@refs/heads/main

Transparency log: Rekor entry 3458623803, in Sigstore's public, append-only log, so the attestation stays checkable independent of this site.

3Checks kadet-hub

Checked by the release run on , gate at 43055771b1f8.

  • Secrets gitleaks 8.30.1
    No secret matched the marketplace's gitleaks rules.
  • Malware ClamAV 1.5.4
    No file matched a ClamAV signature.
  • Malicious package heuristics GuardDog 3.2.0
    No GuardDog threat rule matched.
  • Dangerous code Semgrep 1.180.0
    No marketplace Semgrep rule matched, such as eval, subprocess or network calls.
  • Python errors Ruff 0.17.0
    No syntax error or undefined name (Ruff, error rules only).
  • File tree tree_check.py
    No symlink, executable or banned file; imports within the allowlist.
  • Sandboxed compile gVisor 20261005, Kapitan 0.36.3
    The fixture compiled without network, with decoy credentials; no undeclared program ran, no decoy was read.
  • Output capabilities Conftest v0.71.1
    The compiled output uses only the capabilities the manifest declares.
  • CI detection Kapitan 0.36.3
    The output is the same with CI variables set.

SBOM (SPDX 2.3)

Record

Kapitan declared
>=0.36.3,<0.37
Kapitan checked
0.36.3
Backends checked
reclass-rs, omegaconf
With --cache
passed
krab
compatible
Built for (schema-checked)
Strimzi 1.3.0
Source
strimzi-v1.1.0 路 strimzi
Source commit
2442bb7cd9ba0dc445a7a1b726bba527a0446d00
Binaries
none
Output capabilities
none
Digest
sha256:375ec870554a3d645f6b05abbeb8d16e6bdcbfbe1d7741a699308e45d1ef92d7

Output diff

Fixture output against 1.0.1: 0 files, 0 hunks.

Output diff

1.0.1

1Inventory Your project

Inventory entry

parameters:
  kapitan:
    dependencies:
      - type: oci
        source: ghcr.io/kadet-hub/strimzi:1.0.1@sha256:2efec7979887658e10ec0c99d727cb935bcfc6a63cee51e3a24d336eaaa40de5
        output_path: lib/strimzi

2Verify kadet-hub

Terminal

gh attestation verify \
  oci://ghcr.io/kadet-hub/strimzi@sha256:2efec7979887658e10ec0c99d727cb935bcfc6a63cee51e3a24d336eaaa40de5 \
  --owner kadet-hub \
  --cert-identity https://github.com/kadet-hub/registry/.github/workflows/release.yml@refs/heads/main

Transparency log: Rekor entry 3250470732, in Sigstore's public, append-only log, so the attestation stays checkable independent of this site.

3Checks kadet-hub

Checked by the release run on , gate at daf634a691aa.

  • Secrets gitleaks 8.30.1
    No secret matched the marketplace's gitleaks rules.
  • Malware ClamAV 1.5.4
    No file matched a ClamAV signature.
  • Malicious package heuristics GuardDog 3.2.0
    No GuardDog threat rule matched.
  • Dangerous code Semgrep 1.180.0
    No marketplace Semgrep rule matched, such as eval, subprocess or network calls.
  • Python errors Ruff 0.17.0
    No syntax error or undefined name (Ruff, error rules only).
  • File tree tree_check.py
    No symlink, executable or banned file; imports within the allowlist.
  • Sandboxed compile gVisor 20261005, Kapitan 0.36.3
    The fixture compiled without network, with decoy credentials; no undeclared program ran, no decoy was read.
  • Output capabilities Conftest 0.71.1
    The compiled output uses only the capabilities the manifest declares.
  • CI detection Kapitan 0.36.3
    The output is the same with CI variables set.

SBOM (SPDX 2.3)

Record

Kapitan declared
>=0.36.3,<0.37
Kapitan checked
0.36.3
Backends checked
not recorded
With --cache
not recorded
krab
compatible
Built for (schema-checked)
Strimzi 1.3.0
Source
strimzi-v1.0.1 路 strimzi
Source commit
e4891e8fd85ca0a19ebf361e8b54fd6473fd8a2f
Binaries
none
Output capabilities
none
Digest
sha256:2efec7979887658e10ec0c99d727cb935bcfc6a63cee51e3a24d336eaaa40de5

Output diff

No output diff recorded: this version was published before the release run recorded one.

1.0.0

1Inventory Your project

Inventory entry

parameters:
  kapitan:
    dependencies:
      - type: oci
        source: ghcr.io/kadet-hub/strimzi:1.0.0@sha256:2ce4ebe350d4ec1ca0f9c91ae9fee4e7e6ce2698a8bd24fc0d76961e4950c83f
        output_path: lib/strimzi

2Verify kadet-hub

Terminal

gh attestation verify \
  oci://ghcr.io/kadet-hub/strimzi@sha256:2ce4ebe350d4ec1ca0f9c91ae9fee4e7e6ce2698a8bd24fc0d76961e4950c83f \
  --owner kadet-hub \
  --cert-identity https://github.com/kadet-hub/registry/.github/workflows/release.yml@refs/heads/main

Transparency log: Rekor entry 3241122201, in Sigstore's public, append-only log, so the attestation stays checkable independent of this site.

3Checks kadet-hub

Checked by the release run on , gate at 461ba3b3c507.

  • Secrets gitleaks 8.30.1
    No secret matched the marketplace's gitleaks rules.
  • Malware ClamAV 1.5.4
    No file matched a ClamAV signature.
  • Malicious package heuristics GuardDog 3.2.0
    No GuardDog threat rule matched.
  • Dangerous code Semgrep 1.180.0
    No marketplace Semgrep rule matched, such as eval, subprocess or network calls.
  • Python errors Ruff 0.17.0
    No syntax error or undefined name (Ruff, error rules only).
  • File tree tree_check.py
    No symlink, executable or banned file; imports within the allowlist.
  • Sandboxed compile gVisor 20261005, Kapitan 0.36.3
    The fixture compiled without network, with decoy credentials; no undeclared program ran, no decoy was read.
  • Output capabilities Conftest 0.71.1
    The compiled output uses only the capabilities the manifest declares.
  • CI detection Kapitan 0.36.3
    The output is the same with CI variables set.

SBOM (SPDX 2.3)

Record

Kapitan declared
>=0.36.3,<0.37
Kapitan checked
0.36.3
Backends checked
not recorded
With --cache
not recorded
krab
compatible
Built for (schema-checked)
Strimzi 1.3.0
Source
strimzi-v1.0.0 路 strimzi
Source commit
572dda58b592673020f4a8d97142d1cdd2125440
Binaries
none
Output capabilities
none
Digest
sha256:2ce4ebe350d4ec1ca0f9c91ae9fee4e7e6ce2698a8bd24fc0d76961e4950c83f

Output diff

No output diff recorded: this version was published before the release run recorded one.