apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.5.0
  name: kafkausers.kafka.banzaicloud.io
spec:
  group: kafka.banzaicloud.io
  names:
    kind: KafkaUser
    listKind: KafkaUserList
    plural: kafkausers
    singular: kafkauser
  scope: Namespaced
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        description: KafkaUser is the Schema for the kafka users API
        properties:
          apiVersion:
            description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
            type: string
          kind:
            description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
            type: string
          metadata:
            type: object
          spec:
            description: KafkaUserSpec defines the desired state of KafkaUser
            properties:
              clusterRef:
                description: ClusterReference states a reference to a cluster for topic/user provisioning
                properties:
                  name:
                    type: string
                  namespace:
                    type: string
                required:
                - name
                type: object
              createCert:
                type: boolean
              dnsNames:
                items:
                  type: string
                type: array
              includeJKS:
                type: boolean
              pkiBackendSpec:
                properties:
                  issuerRef:
                    description: ObjectReference is a reference to an object with a given name, kind and group.
                    properties:
                      group:
                        type: string
                      kind:
                        type: string
                      name:
                        type: string
                    required:
                    - name
                    type: object
                  pkiBackend:
                    enum:
                    - cert-manager
                    - vault
                    type: string
                required:
                - issuerRef
                - pkiBackend
                type: object
              secretName:
                type: string
              topicGrants:
                items:
                  description: UserTopicGrant is the desired permissions for the KafkaUser
                  properties:
                    accessType:
                      description: KafkaAccessType hold info about Kafka ACL
                      enum:
                      - read
                      - write
                      type: string
                    patternType:
                      description: KafkaPatternType hold the Resource Pattern Type of kafka ACL
                      enum:
                      - literal
                      - match
                      - prefixed
                      - any
                      type: string
                    topicName:
                      type: string
                  required:
                  - accessType
                  - topicName
                  type: object
                type: array
            required:
            - clusterRef
            - secretName
            type: object
          status:
            description: KafkaUserStatus defines the observed state of KafkaUser
            properties:
              acls:
                items:
                  type: string
                type: array
              state:
                description: UserState defines the state of a KafkaUser
                type: string
            required:
            - state
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
