diff --git a/intent_types/mysql/v1alpha1/README.md b/intent_types/mysql/v1alpha1/README.md index c4eaba6..b548217 100644 --- a/intent_types/mysql/v1alpha1/README.md +++ b/intent_types/mysql/v1alpha1/README.md @@ -17,7 +17,8 @@ This intent type is designed to represent a MySQL database configuration within In the `spec` object: - `version`: Specifies the MySQL version (e.g., `5.7`, `8.0`). - `server_variables`: An optional field for specifying MySQL server variables as a map of key-value pairs (e.g., `max_connections: "1000"`). - +- `replication`: Specifies the master-reader/master-master relation and their replication(s). +- `backup`: Specifies the backup frequency and retention details in days. ## Example See the `sample.json` file for an example instance of this intent type. \ No newline at end of file diff --git a/intent_types/mysql/v1alpha1/sample.json b/intent_types/mysql/v1alpha1/sample.json index 3561f49..de3c42c 100644 --- a/intent_types/mysql/v1alpha1/sample.json +++ b/intent_types/mysql/v1alpha1/sample.json @@ -20,6 +20,11 @@ "enabled": true, "type": "master-slave", "replica_count": 2 + }, + "backup": { + "enabled": false, + "frequency": "7", + "retention": "30" } }, "disabled": false, @@ -28,4 +33,4 @@ "name": "standard" }, "advanced": {} -} +} \ No newline at end of file diff --git a/intent_types/mysql/v1alpha1/schema.json b/intent_types/mysql/v1alpha1/schema.json index 6009c52..6620335 100644 --- a/intent_types/mysql/v1alpha1/schema.json +++ b/intent_types/mysql/v1alpha1/schema.json @@ -40,6 +40,16 @@ "enabled": {"type": "boolean"}, "type": {"type": "string"}, "replica_count": {"type": "integer"} + }, + "backup": { + "type": "object", + "description": "Optional backup configuration for mysql server.", + "properties": { + "enabled": {"type": "boolean", "description":"set true to enable backup"}, + "frequency":{"type": "number", "description":"backup frequency"}, + "retention": {"type": "number","description":"Number of days the data will be persistent"} + + } } } }