{
    "properties": {
        "databaseType": {
            "description": "Allowed values: \"mariadb\" and \"postgresql\"",
            "enum": [
                "mariadb",
                "postgresql"
            ],
            "form": true,
            "title": "Database Type",
            "type": "string"
        },
        "ingress": {
            "form": true,
            "properties": {
                "certManager": {
                    "description": "Add the corresponding annotations for cert-manager to auto-generate the TLS certificate",
                    "form": true,
                    "hidden": {
                        "condition": false,
                        "value": "ingress.enabled"
                    },
                    "title": "Use cert-manager to auto-generate the TLS certificate",
                    "type": "boolean"
                },
                "enabled": {
                    "description": "Enable the ingress resource that allows you to access the Redmine installation.",
                    "form": true,
                    "title": "Use a custom hostname",
                    "type": "boolean"
                },
                "hostname": {
                    "form": true,
                    "hidden": {
                        "condition": false,
                        "value": "ingress.enabled"
                    },
                    "title": "Hostname",
                    "type": "string"
                },
                "tls": {
                    "form": true,
                    "hidden": {
                        "condition": false,
                        "value": "ingress.enabled"
                    },
                    "title": "Enable TLS configuration",
                    "type": "boolean"
                }
            },
            "title": "Ingress Details",
            "type": "object"
        },
        "mariadb": {
            "form": true,
            "hidden": {
                "condition": "postgresql",
                "value": "databaseType"
            },
            "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"
        },
        "persistence": {
            "form": true,
            "properties": {
                "enabled": {
                    "description": "Enable persistence using Persistent Volume Claims",
                    "form": true,
                    "title": "Enable persistence",
                    "type": "boolean"
                },
                "size": {
                    "form": true,
                    "hidden": {
                        "condition": false,
                        "value": "persistence.enabled"
                    },
                    "render": "slider",
                    "sliderMax": 100,
                    "sliderMin": 1,
                    "sliderUnit": "Gi",
                    "title": "Persistent Volume Size",
                    "type": "string"
                }
            },
            "title": "Persistence for Redmine replicas",
            "type": "object"
        },
        "postgresql": {
            "form": true,
            "hidden": {
                "condition": "mariadb",
                "value": "databaseType"
            },
            "properties": {
                "enabled": {
                    "description": "Whether to deploy a postgresql 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 PostgreSQL database hosted in the cluster",
                    "type": "boolean"
                },
                "persistence": {
                    "properties": {
                        "size": {
                            "form": true,
                            "hidden": {
                                "condition": false,
                                "value": "postgresql.enabled"
                            },
                            "render": "slider",
                            "sliderMax": 100,
                            "sliderMin": 1,
                            "sliderUnit": "Gi",
                            "title": "Volume Size",
                            "type": "string"
                        }
                    },
                    "type": "object"
                }
            },
            "title": "PostgreSQL Details",
            "type": "object"
        },
        "redmineEmail": {
            "form": true,
            "title": "Admin email",
            "type": "string"
        },
        "redminePassword": {
            "description": "Defaults to a random 10-character alphanumeric string if not set",
            "form": true,
            "title": "Password",
            "type": "string"
        },
        "redmineUsername": {
            "form": true,
            "title": "Username",
            "type": "string"
        }
    },
    "type": "object"
}