170 lines
4.8 KiB
JSON
170 lines
4.8 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/schema#",
|
|
"type": "object",
|
|
"properties": {
|
|
"rootUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"password": {
|
|
"type": "string",
|
|
"title": "MariaDB admin password",
|
|
"form": true,
|
|
"description": "Defaults to a random 10-character alphanumeric string if not set",
|
|
"hidden": {
|
|
"value": false,
|
|
"path": "usePassword"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"db": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"title": "MariaDB custom database",
|
|
"description": "Name of the custom database to be created during the 1st initialization of MariaDB",
|
|
"form": true
|
|
},
|
|
"user": {
|
|
"type": "string",
|
|
"title": "MariaDB custom user",
|
|
"description": "Name of the custom user to be created during the 1st initialization of MariaDB. This user only has permissions on the MariaDB custom database",
|
|
"form": true
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"title": "Password for MariaDB custom user",
|
|
"form": true,
|
|
"description": "Defaults to a random 10-character alphanumeric string if not set",
|
|
"hidden": {
|
|
"value": false,
|
|
"path": "usePassword"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"replication": {
|
|
"type": "object",
|
|
"title": "Replication configuration",
|
|
"form": true,
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"form": true,
|
|
"title": "Enable replication configuration"
|
|
}
|
|
}
|
|
},
|
|
"master": {
|
|
"type": "object",
|
|
"title": "Master replicas settings",
|
|
"form": true,
|
|
"properties": {
|
|
"persistence": {
|
|
"type": "object",
|
|
"title": "Persistence for master replicas",
|
|
"form": true,
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"form": true,
|
|
"title": "Enable persistence",
|
|
"description": "Enable persistence using Persistent Volume Claims"
|
|
},
|
|
"size": {
|
|
"type": "string",
|
|
"title": "Persistent Volume Size",
|
|
"form": true,
|
|
"render": "slider",
|
|
"sliderMin": 1,
|
|
"sliderMax": 100,
|
|
"sliderUnit": "Gi",
|
|
"hidden": {
|
|
"value": false,
|
|
"path": "persistence/enabled"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"slave": {
|
|
"type": "object",
|
|
"title": "Slave replicas settings",
|
|
"form": true,
|
|
"hidden": {
|
|
"value": false,
|
|
"path": "replication/enabled"
|
|
},
|
|
"properties": {
|
|
"persistence": {
|
|
"type": "object",
|
|
"title": "Persistence for slave replicas",
|
|
"form": true,
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"form": true,
|
|
"title": "Enable persistence",
|
|
"description": "Enable persistence using Persistent Volume Claims"
|
|
},
|
|
"size": {
|
|
"type": "string",
|
|
"title": "Persistent Volume Size",
|
|
"form": true,
|
|
"render": "slider",
|
|
"sliderMin": 1,
|
|
"sliderMax": 100,
|
|
"sliderUnit": "Gi",
|
|
"hidden": {
|
|
"value": false,
|
|
"path": "persistence/enabled"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"volumePermissions": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"form": true,
|
|
"title": "Enable Init Containers",
|
|
"description": "Use an init container to set required folder permissions on the data volume before mounting it in the final destination"
|
|
}
|
|
}
|
|
},
|
|
"metrics": {
|
|
"type": "object",
|
|
"form": true,
|
|
"title": "Prometheus metrics details",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"title": "Create Prometheus metrics exporter",
|
|
"description": "Create a side-car container to expose Prometheus metrics",
|
|
"form": true
|
|
},
|
|
"serviceMonitor": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"title": "Create Prometheus Operator ServiceMonitor",
|
|
"description": "Create a ServiceMonitor to track metrics using Prometheus Operator",
|
|
"form": true,
|
|
"hidden": {
|
|
"value": false,
|
|
"path": "metrics/enabled"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|