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

     1  apiVersion: apps.kubeblocks.io/v1alpha1
     2  kind: ConfigConstraint
     3  metadata:
     4    name: pulsar-env-constraints
     5    labels:
     6      {{- include "pulsar.labels" . | nindent 4 }}
     7  spec:
     8    configurationSchema:
     9      cue: ""
    10  
    11    # mysql configuration file format
    12    formatterConfig:
    13      format: yaml
    14  ---
    15  
    16  {{- $cc := .Files.Get "config/broker-config-effect-scope.yaml" | fromYaml }}
    17  apiVersion: apps.kubeblocks.io/v1alpha1
    18  kind: ConfigConstraint
    19  metadata:
    20    name: brokers-config-constraints
    21    labels:
    22      {{- include "pulsar.labels" . | nindent 4 }}
    23  spec:
    24    configurationSchema:
    25      cue: |-
    26        {{- .Files.Get "config/broker-config-constraint.cue" | nindent 6 }}
    27  
    28    # mysql configuration file format
    29    formatterConfig:
    30      format: props-plus
    31  
    32    ## define static parameter list
    33    {{- if hasKey $cc "staticParameters" }}
    34    staticParameters:
    35      {{- $params := get $cc "staticParameters" }}
    36      {{- range $params }}
    37      - {{ . }}
    38      {{- end }}
    39    {{- end}}
    40  
    41        ## define dynamic parameter list
    42    {{- if hasKey $cc "dynamicParameters" }}
    43    dynamicParameters:
    44     {{- $params := get $cc "dynamicParameters" }}
    45     {{- range $params }}
    46      - {{ . }}
    47     {{- end }}
    48   {{- end}}
    49  
    50    reloadOptions:
    51      shellTrigger:
    52        sync: true
    53        command:
    54          - "update-dynamic-config.sh"
    55  
    56    scriptConfigs:
    57      - scriptConfigMapRef: pulsar-tools-script
    58        namespace: {{ .Release.Namespace }}
    59  
    60    toolsImageSpec:
    61      mountPoint: /kb/tools
    62      toolConfigs:
    63        - name: init-pulsar-tools
    64          command:
    65            - cp
    66            - /bin/pulsar-admin
    67            - /kb/tools/pulsar-admin
    68          image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.pulsarTools "root" .) }}"
    69          # imagePullPolicy: "{{ template "pulsar.imagePullPolicy" (dict "image" .Values.images.pulsarTools "root" .) }}"
    70        - name: init-pulsar-client-config
    71          command:
    72            - "$(TOOLS_SCRIPTS_PATH)/install-pulsar-client-config.sh"
    73  
    74  ---
    75  apiVersion: apps.kubeblocks.io/v1alpha1
    76  kind: ConfigConstraint
    77  metadata:
    78    name: pulsar-common-constraints
    79    labels:
    80      {{- include "pulsar.labels" . | nindent 4 }}
    81  spec:
    82    configurationSchema:
    83      cue: ""
    84  
    85    # mysql configuration file format
    86    formatterConfig:
    87      format: props-plus