github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/kafka/templates/configconstraint.yaml (about)

     1  apiVersion: apps.kubeblocks.io/v1alpha1
     2  kind: ConfigConstraint
     3  metadata:
     4    name: {{ include "kafka.name" . }}-cc
     5    labels:
     6      {{- include "kafka.labels" . | nindent 4 }}
     7      {{- if .Values.commonLabels }}
     8      {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
     9      {{- end }}
    10    {{- if .Values.commonAnnotations }}
    11    annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
    12    {{- end }}
    13  spec:
    14    # top level mysql configuration type
    15    cfgSchemaTopLevelName: KafkaParameter
    16  
    17    # ConfigurationSchema that impose restrictions on engine parameter's rule
    18    configurationSchema:
    19      # schema: auto generate from cue scripts
    20      cue: |-
    21        {{- .Files.Get "configs/kafka-server-constraint.cue" | nindent 6 }}
    22  
    23    formatterConfig:
    24      format: properties