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

     1  {{- $cc := .Files.Get "config/config-effect-scope.yaml" | fromYaml }}
     2  apiVersion: apps.kubeblocks.io/v1alpha1
     3  kind: ConfigConstraint
     4  metadata:
     5    name: {{ include "zookeeper.name" . }}-config-constraints
     6    labels:
     7      {{- include "zookeeper.labels" . | nindent 4 }}
     8  spec:
     9    # zookeeper configuration file format
    10    formatterConfig:
    11      format: props-plus
    12  
    13    # define parameter validation rules
    14    cfgSchemaTopLevelName: ZookeeperParameter
    15  
    16    ## define immutable parameter list
    17    {{- if hasKey $cc "immutableParameters" }}
    18    immutableParameters:
    19      {{- $params := get $cc "immutableParameters" }}
    20      {{- range $params }}
    21      - {{ . }}
    22      {{- end }}
    23    {{- end}}
    24  
    25    # ConfigurationSchema that impose restrictions on engine parameter's rule
    26    configurationSchema:
    27      cue: |-
    28        {{- .Files.Get "config/zookeeper-config-constraint.cue" | nindent 6 }}