{
    "properties": {
        "metrics": {
            "form": true,
            "properties": {
                "enabled": {
                    "description": "Create a side-car container to expose Prometheus metrics",
                    "form": true,
                    "title": "Create Prometheus metrics exporter",
                    "type": "boolean"
                },
                "serviceMonitor": {
                    "properties": {
                        "enabled": {
                            "description": "Create a ServiceMonitor to track metrics using Prometheus Operator",
                            "form": true,
                            "hidden": {
                                "condition": false,
                                "value": "metrics.enabled"
                            },
                            "title": "Create Prometheus Operator ServiceMonitor",
                            "type": "boolean"
                        }
                    },
                    "type": "object"
                }
            },
            "title": "Prometheus metrics 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 configuration",
            "type": "object"
        },
        "rabbitmq": {
            "properties": {
                "password": {
                    "description": "Defaults to a random 10-character alphanumeric string if not set",
                    "form": true,
                    "title": "RabbitMQ password",
                    "type": "string"
                },
                "username": {
                    "form": true,
                    "title": "RabbitMQ user",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "replicas": {
            "description": "Number of replicas to deploy",
            "form": true,
            "title": "Number of replicas",
            "type": "integer"
        },
        "volumePermissions": {
            "properties": {
                "enabled": {
                    "description": "Use an init container to set required folder permissions on the data volume before mounting it in the final destination",
                    "form": true,
                    "title": "Enable Init Containers",
                    "type": "boolean"
                }
            },
            "type": "object"
        }
    },
    "type": "object"
}