Skip to content

Commit e2e5e8b

Browse files
committed
Add ability to specify flags for mysqlctld
Signed-off-by: Matt Lord <[email protected]>
1 parent d259730 commit e2e5e8b

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed

docs/api/index.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,49 @@ <h3 id="planetscale.com/v2.LockserverStatus">LockserverStatus
14101410
</tr>
14111411
</tbody>
14121412
</table>
1413+
<h3 id="planetscale.com/v2.MysqlctldSpec">MysqlctldSpec
1414+
</h3>
1415+
<p>
1416+
<p>MysqlctldSpec configures the local mysqlctld gRPC server within a tablet.</p>
1417+
</p>
1418+
<table class="table table-striped">
1419+
<thead class="thead-dark">
1420+
<tr>
1421+
<th>Field</th>
1422+
<th>Description</th>
1423+
</tr>
1424+
</thead>
1425+
<tbody>
1426+
<tr>
1427+
<td>
1428+
<code>resources</code></br>
1429+
<em>
1430+
<a href="https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#resourcerequirements-v1-core">
1431+
Kubernetes core/v1.ResourceRequirements
1432+
</a>
1433+
</em>
1434+
</td>
1435+
<td>
1436+
<p>Resources specify the compute resources to allocate for just the MySQL Control Daemon.</p>
1437+
</td>
1438+
</tr>
1439+
<tr>
1440+
<td>
1441+
<code>extraFlags</code></br>
1442+
<em>
1443+
map[string]string
1444+
</em>
1445+
</td>
1446+
<td>
1447+
<p>ExtraFlags can optionally be used to override default flags set by the
1448+
operator, or pass additional flags to mysqlctld. All entries must be
1449+
key-value string pairs of the form &ldquo;flag&rdquo;: &ldquo;value&rdquo;. The flag name should
1450+
not have any prefix (just &ldquo;flag&rdquo;, not &ldquo;-flag&rdquo;). To set a boolean flag,
1451+
set the string value to either &ldquo;true&rdquo; or &ldquo;false&rdquo;.</p>
1452+
</td>
1453+
</tr>
1454+
</tbody>
1455+
</table>
14131456
<h3 id="planetscale.com/v2.MysqldExporterSpec">MysqldExporterSpec
14141457
</h3>
14151458
<p>

pkg/apis/planetscale/v2/vitessshard_types.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,19 @@ type MysqldSpec struct {
315315
ConfigOverrides string `json:"configOverrides,omitempty"`
316316
}
317317

318+
// MysqlctldSpec configures the local mysqlctld gRPC server within a tablet.
319+
type MysqlctldSpec struct {
320+
// Resources specify the compute resources to allocate for just the MySQL Control Daemon.
321+
Resources corev1.ResourceRequirements `json:"resources"`
322+
323+
// ExtraFlags can optionally be used to override default flags set by the
324+
// operator, or pass additional flags to mysqlctld. All entries must be
325+
// key-value string pairs of the form "flag": "value". The flag name should
326+
// not have any prefix (just "flag", not "-flag"). To set a boolean flag,
327+
// set the string value to either "true" or "false".
328+
ExtraFlags map[string]string `json:"extraFlags,omitempty"`
329+
}
330+
318331
// MysqldExporterSpec configures the local MySQL exporter within a tablet.
319332
type MysqldExporterSpec struct {
320333
// Resources specify the compute resources to allocate for just the MySQL Exporter.

pkg/apis/planetscale/v2/zz_generated.deepcopy.go

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)