From 92efb69eb993862009a377aae60ddadad4b61dcf Mon Sep 17 00:00:00 2001 From: NightWindD <98379649+NightWindD@users.noreply.github.com> Date: Mon, 30 Oct 2023 13:44:22 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E2=80=9Ctidb=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/.DS_Store | Bin 0 -> 10244 bytes plugins/tidb-operator/Chart.yaml | 14 ++++++++++ .../templates/tidb-operator.yaml | 22 +++++++++++++++ plugins/tidb-operator/values.yaml | 25 ++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 plugins/.DS_Store create mode 100644 plugins/tidb-operator/Chart.yaml create mode 100644 plugins/tidb-operator/templates/tidb-operator.yaml create mode 100644 plugins/tidb-operator/values.yaml diff --git a/plugins/.DS_Store b/plugins/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..82adaf9fd8901068a350ba500b5328839d3a3cd9 GIT binary patch literal 10244 zcmeHMO>fgc5S{IpL))}Pq7oOR2&4)j1;IZERXK3x4-m&qTGfpsr!M7|JO6+a2M!#N z_4``Oo%UcCmzKuo?2Wco-#LOc z;EVL7ltOa+6%BN}5fz9ELn+3u~2%G41KW)KpU+F^r|-d5>_|L2Vb-TDllZ7gKvS z^$EqOckp@&7c;OnUZVn0fu;gHyLV-XbNd8mcK7^V$(79C<;5t?ixem>tT*T{Z?)l* z$i9r^RAzDp=1AspuGZceH`qS|_HGNilvFa`t9jDOD-mB`E)n|_eS$d3fcH7zZNXmw z#wD)P0Q)Pzb|nLP0&E{6-yp{V8eKKLs3t!gO%hGAXcmfMxD3mLr$IjnSd4k7mB+g_G|g;GQ9=T^r62{k-qA{Wd|v6!m> z4Lv+`2j~jQ*?G-d75VNcvaL#wFg_KTsh?mrg}J+&L^%^=Ni`=yM9kDhcN7gARvzmz ztY+rx;uF;IDY9imxun79%-2Ql)#wtja8>uwIg707a1K!oYe!!0y1KyB8E?ymxqF;V zoeQqbV87uEd&oT?3$3xfD)2|+4EIAWH1N2G4tIuZxE69`#1+n}<=W;dY}BcNKHf-= zFw!+L%g~37nxA3R%Fd&&Ggr>qH%F@kzPLW7=xG?gs^p@#m*@*bU%@wK#rL3kxt#8j z!|ZIf%(QIVFTB_uATnw+hMye0S(8-7^>tV?Y^9ySU!}D(0>8lLOqHTy!Tv*C)}K1M zJicS3zjMEOM@D^l<85KQ3Q^4AJE&hO7GPQHIihWTN1&oSY!^zh3Q}aYa;G!T!2Dt} zyuHP4yAS3C{Pa;LjBWMz7?k$>COU&dRBOw;sG46LH6Nl@`A)vlRn4``oo@!qy`$|L zjrzGGAmG@d0#SjeKvW Date: Wed, 1 Nov 2023 11:15:24 +0800 Subject: [PATCH 2/5] edit tidb-operator --- plugins/tidb-operator/Chart.yaml | 2 +- .../tidb-operator/i18n/values.schema.en.json | 50 +++++++++++++++++++ plugins/tidb-operator/values.schema.json | 50 +++++++++++++++++++ plugins/tidb-operator/values.yaml | 16 +++++- 4 files changed, 115 insertions(+), 3 deletions(-) create mode 100755 plugins/tidb-operator/i18n/values.schema.en.json create mode 100644 plugins/tidb-operator/values.schema.json diff --git a/plugins/tidb-operator/Chart.yaml b/plugins/tidb-operator/Chart.yaml index 78e3977..6dceae5 100644 --- a/plugins/tidb-operator/Chart.yaml +++ b/plugins/tidb-operator/Chart.yaml @@ -11,4 +11,4 @@ appVersion: 1.5.1 annotations: plugins.kubegems.io/is-plugin: "true" plugins.kubegems.io/install-namespace: tidb-operator - plugins.kubegems.io/category: kubernetes/存储插件 + plugins.kubegems.io/category: operator控制器/database diff --git a/plugins/tidb-operator/i18n/values.schema.en.json b/plugins/tidb-operator/i18n/values.schema.en.json new file mode 100755 index 0000000..66b259f --- /dev/null +++ b/plugins/tidb-operator/i18n/values.schema.en.json @@ -0,0 +1,50 @@ +{ + "type": "object", + "properties": { + "persistence": { + "type": "object", + "title": "Persistence Storage Configuration", + "properties": { + "enabled": { + "type": "boolean", + "title": "Enable Persistence", + "default": true, + "form": true + }, + "size": { + "type": "string", + "title": "Persistence Storage Size", + "default": "5Gi", + "form": true + } + }, + "form": true + }, + "resources": { + "type": "object", + "title": "tidb-operator Configuration", + "properties": { + "requests": { + "type": "object", + "title": "resources Configuration", + "form": true + } + }, + "form": true + }, + "tidbCluster": { + "type": "object", + "title": "TiDB Cluster Configuration", + "properties": { + "replicas": { + "type": "integer", + "title": "TiDB Cluster Replicas", + "default": 3, + "form": true + } + }, + "form": true + } + }, + "$schema": "http://json-schema.org/schema#" +} \ No newline at end of file diff --git a/plugins/tidb-operator/values.schema.json b/plugins/tidb-operator/values.schema.json new file mode 100644 index 0000000..2e52309 --- /dev/null +++ b/plugins/tidb-operator/values.schema.json @@ -0,0 +1,50 @@ +{ + "type": "object", + "properties": { + "persistence": { + "type": "object", + "title": "持久化存储配置", + "properties": { + "enabled": { + "type": "boolean", + "title": "是否启用持久化存储", + "default": true, + "form": true + }, + "size": { + "type": "string", + "title": "持久化存储大小", + "default": "5Gi", + "form": true + } + }, + "form": true + }, + "resources": { + "type": "object", + "title": "tidb-operator 配置", + "properties": { + "requests": { + "type": "object", + "title": "资源配置", + "form": true + } + }, + "form": true + }, + "tidbCluster": { + "type": "object", + "title": "TiDB集群配置", + "properties": { + "replicas": { + "type": "integer", + "title": "TiDB集群副本数", + "default": 3, + "form": true + } + }, + "form": true + } + }, + "$schema": "http://json-schema.org/schema#" +} \ No newline at end of file diff --git a/plugins/tidb-operator/values.yaml b/plugins/tidb-operator/values.yaml index 481b31b..e0e3abe 100644 --- a/plugins/tidb-operator/values.yaml +++ b/plugins/tidb-operator/values.yaml @@ -8,18 +8,30 @@ global: metadata: name: tidb-operator namespace: tidb-operator - +# @title TiDB集群配置 +# @title.en TiDB Cluster Configuration tidbCluster: + # @title TiDB集群副本数 + # @title.en TiDB Cluster Replicas replicas: 3 version: "v1.5.1" - +# @title tidb-operator 配置 +# @title.en tidb-operator Configuration resources: + # @title 资源配置 + # @title.en resources Configuration requests: cpu: "500m" memory: "2Gi" limits: cpu: "2" memory: "2Gi" +# @title 持久化存储配置 +# @title.en Persistence Storage Configuration persistence: + # @title 是否启用持久化存储 + # @title.en Enable Persistence enabled: true + # @title 持久化存储大小 + # @title.en Persistence Storage Size size: 5Gi From 68a6fab363fd085fac117c022ad8fde405a2cf53 Mon Sep 17 00:00:00 2001 From: NightWindD <98379649+NightWindD@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:08:29 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E2=80=9Cedit=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/.DS_Store | Bin 10244 -> 10244 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/plugins/.DS_Store b/plugins/.DS_Store index 82adaf9fd8901068a350ba500b5328839d3a3cd9..24a3967cbfb4cae66058705dd9fc91dc09edcf1a 100644 GIT binary patch delta 462 zcmZn(XbG6$ÄU^hRb#%3OYRQ7r?1_tK&|Dk|^fq|Eygdvk5g&~PSmm!~_fFYHk zh#?Uumd{X>R9;+=l#`zXRJ9|iASbi9#K7PhBNH!A4ToZP(pE}-LpfRPbG s1HFR^x`A9|FG{2Nu`IYKFDE}Q9jJ_PbDelC`(}29tN{-t5p1CZ0CDMv761SM delta 65 zcmZn(XbG6$OBU^hRb+GZYsRCZov1_tI?|Dj-Wmqac5#s(h7&Fl(UXmXRgB-#L8 C Date: Fri, 3 Nov 2023 10:12:41 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E2=80=9CeditTemplate=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/tidb-operator/.values.yaml.swp | Bin 0 -> 12288 bytes plugins/tidb-operator/Chart.lock | 6 ++++++ .../tidb-operator/i18n/values.schema.en.json | 2 +- .../tidb-operator/templates/tidb-operator.yaml | 14 +++++++------- plugins/tidb-operator/values.schema.json | 2 +- plugins/tidb-operator/values.yaml | 13 ++++++------- 6 files changed, 21 insertions(+), 16 deletions(-) create mode 100644 plugins/tidb-operator/.values.yaml.swp create mode 100644 plugins/tidb-operator/Chart.lock mode change 100644 => 100755 plugins/tidb-operator/values.schema.json diff --git a/plugins/tidb-operator/.values.yaml.swp b/plugins/tidb-operator/.values.yaml.swp new file mode 100644 index 0000000000000000000000000000000000000000..6bca1f33abafac2bae8d1a491c0730af0e155136 GIT binary patch literal 12288 zcmeI2L1@%K6o#jI@z7eS7jKSRPeOOMEj^fnNOx5PE2Zk{(b;5Nh9;SqNeWd^6e|=e zR#7Rm$6~8hTMtqc>(Qg$Jc@^AYtJ6^rZ3s-HVIVE>I?h~dGpVk_r4^DWv5!KoE)Nu z^F;#J9zy0u$~;(F-F4v*A!9=Kq#I8B{;EVigAXx%P|DGsVOQo&sWUUP>{=sXq0H5& zC!KfN~mbZ^(W?X5V21dsp{Kmter2_OL^fCP}hKS#iG+Q@b2YDe7J!FX)TjPWfFNB{{S z0VIF~kN^@u0!RP}AOR$R1dzaANProH>})4w2^9YS-~9dmqmz(z&c;x(iD2qc@O&n?xfskZ1S@yJz-?AFxuH?d^^*(2yvL%s zWcpObndM;maWK8S@nA8NoxsWEWi6sUlKJR&N>Tex7^u^Hz)3Fti6B&D7CmH z-SJbx5}ro;A{>Aa7x(!dXE?Kq9mGoVmE1Ir# z>oL%;uWr@fOvgpG{ORUXr@Aw#n%mK|snvBDu7p&jt Date: Fri, 3 Nov 2023 10:15:15 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E2=80=9CdeleteSwp=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/tidb-operator/.values.yaml.swp | Bin 12288 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 plugins/tidb-operator/.values.yaml.swp diff --git a/plugins/tidb-operator/.values.yaml.swp b/plugins/tidb-operator/.values.yaml.swp deleted file mode 100644 index 6bca1f33abafac2bae8d1a491c0730af0e155136..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2L1@%K6o#jI@z7eS7jKSRPeOOMEj^fnNOx5PE2Zk{(b;5Nh9;SqNeWd^6e|=e zR#7Rm$6~8hTMtqc>(Qg$Jc@^AYtJ6^rZ3s-HVIVE>I?h~dGpVk_r4^DWv5!KoE)Nu z^F;#J9zy0u$~;(F-F4v*A!9=Kq#I8B{;EVigAXx%P|DGsVOQo&sWUUP>{=sXq0H5& zC!KfN~mbZ^(W?X5V21dsp{Kmter2_OL^fCP}hKS#iG+Q@b2YDe7J!FX)TjPWfFNB{{S z0VIF~kN^@u0!RP}AOR$R1dzaANProH>})4w2^9YS-~9dmqmz(z&c;x(iD2qc@O&n?xfskZ1S@yJz-?AFxuH?d^^*(2yvL%s zWcpObndM;maWK8S@nA8NoxsWEWi6sUlKJR&N>Tex7^u^Hz)3Fti6B&D7CmH z-SJbx5}ro;A{>Aa7x(!dXE?Kq9mGoVmE1Ir# z>oL%;uWr@fOvgpG{ORUXr@Aw#n%mK|snvBDu7p&jt