Skip to content

KafkaACL

Usage example

apiVersion: aiven.io/v1alpha1
kind: KafkaACL
metadata:
  name: my-kafka-acl
spec:
  authSecretRef:
    name: aiven-token
    key: token

  project: my-aiven-project
  serviceName: my-kafka
  topic: my-topic
  username: my-user
  permission: admin

KafkaACL

KafkaACL is the Schema for the kafkaacls API.

Required

  • apiVersion (string). Value aiven.io/v1alpha1.
  • kind (string). Value KafkaACL.
  • metadata (object). Data that identifies the object, including a name string and optional namespace.
  • spec (object). KafkaACLSpec defines the desired state of KafkaACL. See below for nested schema.

spec

Appears on KafkaACL.

KafkaACLSpec defines the desired state of KafkaACL.

Required

  • permission (string, Enum: admin, read, readwrite, write). Kafka permission to grant (admin, read, readwrite, write).
  • project (string, Immutable, MaxLength: 63, Format: ^[a-zA-Z0-9_-]+$). Identifies the project this resource belongs to.
  • serviceName (string, Immutable, MaxLength: 63, Format: ^[a-z][-a-z0-9]+$). Specifies the name of the service that this resource belongs to.
  • topic (string). Topic name pattern for the ACL entry.
  • username (string). Username pattern for the ACL entry.

Optional

authSecretRef

Appears on spec.

Authentication reference to Aiven token in a secret.

Required

  • key (string, MinLength: 1).
  • name (string, MinLength: 1).