github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/test/testdata/cue_testdata/mysql_openapi_v2.cue (about) 1 //Copyright (C) 2022-2023 ApeCloud Co., Ltd 2 // 3 //This file is part of KubeBlocks project 4 // 5 //This program is free software: you can redistribute it and/or modify 6 //it under the terms of the GNU Affero General Public License as published by 7 //the Free Software Foundation, either version 3 of the License, or 8 //(at your option) any later version. 9 // 10 //This program is distributed in the hope that it will be useful 11 //but WITHOUT ANY WARRANTY; without even the implied warranty of 12 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 //GNU Affero General Public License for more details. 14 // 15 //You should have received a copy of the GNU Affero General Public License 16 //along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 #SectionParameter: { 19 // [OFF|ON] default ON 20 automatic_sp_privileges: string & "OFF" | "ON" | *"ON" 21 // [1~65535] default ON 22 auto_increment_increment: int & >=1 & <=65535 | *1 23 binlog_stmt_cache_size: int & >=4096 & <=16777216 | *2097152 24 // [0|1|2] default: 2 25 innodb_autoinc_lock_mode?: int & 0 & 1 & 2 | *2 26 flush_time: int & >=0 & <=31536000 | *0 27 group_concat_max_len: int & >4 | *1024 28 29 gtid_mode: string & "0" | "1" | "OFF" | "ON" 30 31 port: int 32 33 // [0|1] default empty 34 innodb_buffer_pool_load_now?: int & 0 | 1 35 36 // custom format, reference Regular expressions 37 KeyPath: =~"^[a-z][a-zA-Z0-9]+.pem$" 38 caching_sha2_password_private_key_path?: KeyPath 39 } 40 41 // mysql all parameters definition 42 #MysqlSchema: { 43 44 // mysql config validator 45 mysqlld: #SectionParameter 46 47 // ignore client parameter validate 48 // mysql client: a set of name/value pairs. 49 client?: { 50 [string]: string 51 } @protobuf(2,type=map<string,string>) 52 } 53 54 [SectionName=_]: #SectionParameter