{
    "properties": {
        "externalDatabase": {
            "description": "If MariaDB is disabled. Use this section to specify the external database details",
            "form": true,
            "hidden": "mariadb.enabled",
            "properties": {
                "database": {
                    "form": true,
                    "title": "Database Name",
                    "type": "string"
                },
                "host": {
                    "form": true,
                    "title": "Database Host",
                    "type": "string"
                },
                "password": {
                    "form": true,
                    "title": "Database Password",
                    "type": "string"
                },
                "port": {
                    "form": true,
                    "title": "Database Port",
                    "type": "integer"
                },
                "user": {
                    "form": true,
                    "title": "Database Username",
                    "type": "string"
                }
            },
            "title": "External Database Details",
            "type": "object"
        },
        "ingress": {
            "form": true,
            "properties": {
                "enabled": {
                    "description": "Enable the ingress resource that allows you to access the Joomla! installation.",
                    "form": true,
                    "title": "Use a custom hostname",
                    "type": "boolean"
                },
                "hostname": {
                    "form": true,
                    "hidden": {
                        "condition": false,
                        "value": "ingress.enabled"
                    },
                    "title": "Hostname",
                    "type": "string"
                }
            },
            "title": "Ingress Details",
            "type": "object"
        },
        "joomlaEmail": {
            "form": true,
            "title": "Admin email",
            "type": "string"
        },
        "joomlaPassword": {
            "description": "Defaults to a random 10-character alphanumeric string if not set",
            "form": true,
            "title": "Password",
            "type": "string"
        },
        "joomlaUsername": {
            "form": true,
            "title": "Username",
            "type": "string"
        },
        "mariadb": {
            "form": true,
            "properties": {
                "enabled": {
                    "description": "Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database switch this off and configure the external database details",
                    "form": true,
                    "title": "Use a new MariaDB database hosted in the cluster",
                    "type": "boolean"
                },
                "master": {
                    "properties": {
                        "persistence": {
                            "properties": {
                                "size": {
                                    "form": true,
                                    "hidden": {
                                        "condition": false,
                                        "value": "mariadb.enabled"
                                    },
                                    "render": "slider",
                                    "sliderMax": 100,
                                    "sliderMin": 1,
                                    "sliderUnit": "Gi",
                                    "title": "Volume Size",
                                    "type": "string"
                                }
                            },
                            "type": "object"
                        }
                    },
                    "type": "object"
                }
            },
            "title": "MariaDB Details",
            "type": "object"
        },
        "metrics": {
            "properties": {
                "enabled": {
                    "description": "Prometheus Exporter / Metrics",
                    "form": true,
                    "title": "Enable Metrics",
                    "type": "boolean"
                }
            },
            "type": "object"
        },
        "persistence": {
            "properties": {
                "joomla": {
                    "properties": {
                        "size": {
                            "form": true,
                            "render": "slider",
                            "sliderMax": 100,
                            "sliderMin": 1,
                            "sliderUnit": "Gi",
                            "title": "Persistent Volume Size",
                            "type": "string"
                        }
                    },
                    "type": "object"
                }
            },
            "type": "object"
        },
        "resources": {
            "description": "Configure resource requests",
            "form": true,
            "properties": {
                "requests": {
                    "properties": {
                        "cpu": {
                            "form": true,
                            "render": "slider",
                            "sliderMax": 2000,
                            "sliderMin": 10,
                            "sliderUnit": "m",
                            "title": "CPU Request",
                            "type": "string"
                        },
                        "memory": {
                            "form": true,
                            "render": "slider",
                            "sliderMax": 2048,
                            "sliderMin": 10,
                            "sliderUnit": "Mi",
                            "title": "Memory Request",
                            "type": "string"
                        }
                    },
                    "type": "object"
                }
            },
            "title": "Requested Resources",
            "type": "object"
        }
    },
    "type": "object"
}