{
    "$schema": "http://json-schema.org/schema#",
    "type": "object",
    "properties": {
        "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": false,
                        "overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}-0.{{k8s.domain}}"
                    }
                }
            }
        },
        "wordpressUsername": {
            "type": "string",
            "description": "Login du compte wordpress",
            "default": "wordpress"
        },
        "wordpressPassword": {
            "type": "string",
            "description": "Password",
            "default": "Wordpress123!"
        },
        "wordpressEmail": {
            "type": "string",
            "description": "Admin email",
            "default": ""
        },
        "wordpressBlogName": {
            "type": "string",
            "description": "Blog Name",
            "default": "User's Blog!"
        },
        "resources": {
            "description": "Your service will have at least the requested resources and never more than its limits. No limit for a resource and you can consume everything left on the host machine.",
            "type": "object",
            "properties": {
              "requests": {
                "description": "Guaranteed resources",
                "type": "object",
                "properties": {
                  "cpu": {
                    "description": "The amount of cpu guaranteed",
                    "title": "CPU",
                    "type": "string",
                    "default": "100m",
                    "render": "slider",
                    "sliderMin": 50,
                    "sliderMax": 40000,
                    "sliderStep": 50,
                    "sliderUnit": "m",
                    "sliderExtremity": "down",
                    "sliderExtremitySemantic": "guaranteed",
                    "sliderRangeId": "cpu"
                  },
                  "memory": {
                    "description": "The amount of memory guaranteed",
                    "title": "memory",
                    "type": "string",
                    "default": "2Gi",
                    "render": "slider",
                    "sliderMin": 1,
                    "sliderMax": 200,
                    "sliderStep": 1,
                    "sliderUnit": "Gi",
                    "sliderExtremity": "down",
                    "sliderExtremitySemantic": "guaranteed",
                    "sliderRangeId": "memory"
                  }
                }
              },
              "limits": {
                "description": "max resources",
                "type": "object",
                "properties": {
                  "cpu": {
                    "description": "The maximum amount of cpu",
                    "title": "CPU",
                    "type": "string",
                    "default": "30000m",
                    "render": "slider",
                    "sliderMin": 50,
                    "sliderMax": 40000,
                    "sliderStep": 50,
                    "sliderUnit": "m",
                    "sliderExtremity": "up",
                    "sliderExtremitySemantic": "Maximum",
                    "sliderRangeId": "cpu"
                  },
                  "memory": {
                    "description": "The maximum amount of memory",
                    "title": "Memory",
                    "type": "string",
                    "default": "50Gi",
                    "render": "slider",
                    "sliderMin": 1,
                    "sliderMax": 200,
                    "sliderStep": 1,
                    "sliderUnit": "Gi",
                    "sliderExtremity": "up",
                    "sliderExtremitySemantic": "Maximum",
                    "sliderRangeId": "memory"
                  }
                }
              }
            }
          }
    }   
}
