github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/test/testdata/operations_config/config-constraint.yaml (about)

     1  apiVersion: apps.kubeblocks.io/v1alpha1
     2  kind: ConfigConstraint
     3  metadata:
     4    name: mysql-tree-node-template-8.0
     5  spec:
     6    # ConfigurationSchema that impose restrictions on engine parameter's rule
     7    configurationSchema:
     8      # schema: auto generate from cue scripts
     9      # example: ../../pkg/configuration/testdata/mysql_openapi.json
    10      cue: |-
    11        #PARAM: {
    12          // [OFF|ON] default ON
    13          automatic_sp_privileges: string & "OFF" | "ON" | *"ON"
    14          // [1~65535] default ON
    15          auto_increment_increment: int & >= 1 & <= 65535 | *1
    16          // [4096~16777216] default 2G
    17          binlog_stmt_cache_size?: int & >= 4096 & <= 16777216 | *2097152
    18          // [0|1|2] default: 2
    19          innodb_autoinc_lock_mode?: int & 0 | 1 | 2 | *2
    20          ...
    21        }
    22        [SectionName=_]: #PARAM
    23  
    24    dynamicParameters:
    25      - binlog_stmt_cache_size
    26      - x
    27      - y
    28  
    29    # mysql configuration file format
    30    formatterConfig:
    31      format: ini
    32      iniConfig:
    33        sectionName: mysqld