Skip to content
Open
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
3 changes: 2 additions & 1 deletion intent_types/mysql/v1alpha1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
7 changes: 6 additions & 1 deletion intent_types/mysql/v1alpha1/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"enabled": true,
"type": "master-slave",
"replica_count": 2
},
"backup": {
"enabled": false,
"frequency": "7",
"retention": "30"
}
},
"disabled": false,
Expand All @@ -28,4 +33,4 @@
"name": "standard"
},
"advanced": {}
}
}
10 changes: 10 additions & 0 deletions intent_types/mysql/v1alpha1/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"}

}
}
}
}
Expand Down