Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for max-index-length to TidbCluster CRD #3076

Merged
merged 3 commits into from
Aug 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/api-references/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -9680,6 +9680,18 @@ string
</tr>
<tr>
<td>
<code>max-index-length</code></br>
<em>
int64
</em>
</td>
<td>
<em>(Optional)</em>
<p>Optional: Defaults to 3072</p>
</td>
</tr>
<tr>
<td>
<code>mem-quota-query</code></br>
<em>
int64
Expand Down
6 changes: 6 additions & 0 deletions manifests/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6545,6 +6545,9 @@ spec:
lower-case-table-names:
format: int32
type: integer
max-index-length:
format: int64
type: integer
max-server-connections:
format: int64
type: integer
Expand Down Expand Up @@ -15035,6 +15038,9 @@ spec:
lower-case-table-names:
format: int32
type: integer
max-index-length:
format: int64
type: integer
max-server-connections:
format: int64
type: integer
Expand Down
7 changes: 7 additions & 0 deletions pkg/apis/pingcap/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/apis/pingcap/v1alpha1/tidb_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ type TiDBConfig struct {
// Optional: Defaults to log
// +optional
OOMAction *string `toml:"oom-action,omitempty" json:"oom-action,omitempty"`
// Optional: Defaults to 3072
// +optional
MaxIndexLength *int64 `toml:"max-index-length,omitempty" json:"max-index-length,omitempty"`
// Optional: Defaults to 34359738368
// +optional
MemQuotaQuery *int64 `toml:"mem-quota-query,omitempty" json:"mem-quota-query,omitempty"`
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/pingcap/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.