github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/test/testdata/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 namespace: default 6 spec: 7 # configmap reference 8 tplRef: mysql-tree-node-template-8.0 9 10 reloadOptions: 11 unixSignalTrigger: 12 signal: SIGHUP 13 processName: mysqld 14 15 # top level mysql configuration type 16 cfgSchemaTopLevelName: MysqlParameter 17 18 # ConfigurationSchema that impose restrictions on engine parameter's rule 19 configurationSchema: 20 # schema: auto generate from cue scripts 21 # example: ../../pkg/configuration/testdata/mysql_openapi.json 22 cue: |- 23 [SectionName=_]: { 24 // [OFF|ON] default ON 25 automatic_sp_privileges: string & "OFF" | "ON" | *"ON" 26 // [1~65535] default ON 27 auto_increment_increment: int & >= 1 & <= 65535 | *1 28 // [4096~16777216] default 2G 29 binlog_stmt_cache_size?: int & >= 4096 & <= 16777216 | *2097152 30 // [0|1|2] default: 2 31 innodb_autoinc_lock_mode?: int & 0 | 1 | 2 | *2 32 ... 33 } 34 35 # require db instance restart 36 staticParameters: 37 - automatic_sp_privileges 38 39 # mysql configuration file format 40 formatterConfig: 41 format: ini 42 iniConfig: 43 sectionName: mysqld