{
    "properties": {
        "metrics": {
            "properties": {
                "enabled": {
                    "form": true,
                    "title": "Configure metrics exporter",
                    "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"
        },
        "postgresqlPassword": {
            "form": true,
            "title": "Password",
            "type": "string"
        },
        "postgresqlUsername": {
            "form": true,
            "title": "Admin user",
            "type": "string"
        },
        "replication": {
            "form": true,
            "properties": {
                "enabled": {
                    "form": true,
                    "title": "Enable Replication",
                    "type": "boolean"
                },
                "slaveReplicas": {
                    "form": true,
                    "hidden": {
                        "condition": false,
                        "value": "replication.enabled"
                    },
                    "title": "Slave Replicas",
                    "type": "integer"
                }
            },
            "title": "Replication Details",
            "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"
        },
        "volumePermissions": {
            "properties": {
                "enabled": {
                    "description": "Change the owner of the persist volume mountpoint to RunAsUser:fsGroup",
                    "form": true,
                    "title": "Enable Init Containers",
                    "type": "boolean"
                }
            },
            "type": "object"
        }
    },
    "type": "object"
}