{
    "$schema": "http://json-schema.org/schema#",
    "type": "object",
    "properties": {
        "image": {
            "description": "Apache Version",
            "type": "object",
            "properties": {
                "tag": {
                    "description": "Docker image version",
                    "type": "string",
                    "properties": {
                        "tag": {
                            "description": "Apache major version",
                            "type": "object",
                            "enum": [
                                "2.2",
                                "2.4"
                            ],
                            "default": "2.4"
                        }
                    }
                }
            }
        },
        "ingress": {
            "type": "object",
            "form": true,
            "title": "Ingress Details",
            "properties": {
                "enabled": {
                    "description": "Enable Ingress",
                    "type": "boolean",
                    "default": true,
                    "x-onyxia": {
                        "hidden": true,
                        "overwriteDefaultWith": "k8s.ingress"
                    }
                },
                "hostname": {
                    "type": "string",
                    "form": true,
                    "title": "Hostname",
                    "x-onyxia": {
                        "hidden": true,
                        "overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}-0.{{k8s.domain}}"
                    }
                }
            }
        }
    }
}
