{
    "properties": {
        "externalDatabase": {
            "description": "If MariaDB is disabled. Use this section to specify the external database details",
            "form": true,
            "properties": {
                "database": {
                    "form": true,
                    "hidden": "mariadb.enabled",
                    "title": "Database Name",
                    "type": "string"
                },
                "host": {
                    "form": true,
                    "hidden": "mariadb.enabled",
                    "title": "Database Host",
                    "type": "string"
                },
                "password": {
                    "form": true,
                    "hidden": "mariadb.enabled",
                    "title": "Database Password",
                    "type": "string"
                },
                "port": {
                    "form": true,
                    "hidden": "mariadb.enabled",
                    "title": "Database Port",
                    "type": "integer"
                },
                "user": {
                    "form": true,
                    "hidden": "mariadb.enabled",
                    "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 WordPress 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"
        },
        "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": {
                "size": {
                    "form": true,
                    "render": "slider",
                    "sliderMax": 100,
                    "sliderMin": 1,
                    "sliderUnit": "Gi",
                    "title": "Persistent Volume Size",
                    "type": "string"
                }
            },
            "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": "Required Resources",
            "type": "object"
        },
        "wordpressBlogName": {
            "form": true,
            "title": "Blog Name",
            "type": "string"
        },
        "wordpressEmail": {
            "form": true,
            "title": "Admin email",
            "type": "string"
        },
        "wordpressPassword": {
            "description": "Defaults to a random 10-character alphanumeric string if not set",
            "form": true,
            "title": "Password",
            "type": "string"
        },
        "wordpressUsername": {
            "form": true,
            "title": "Username",
            "type": "string"
        }
    },
    "type": "object"
}