GafaelfawrIngressPathBackend

pydantic model gafaelfawr.models.kubernetes.GafaelfawrIngressPathBackend

Backend that serves a given path.

Parameters:

data (Any)

Show JSON schema
{
   "title": "GafaelfawrIngressPathBackend",
   "description": "Backend that serves a given path.",
   "type": "object",
   "properties": {
      "service": {
         "$ref": "#/$defs/GafaelfawrIngressPathService"
      }
   },
   "$defs": {
      "GafaelfawrIngressPathService": {
         "description": "Service that serves a given path.",
         "properties": {
            "name": {
               "title": "Name",
               "type": "string"
            },
            "port": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/GafaelfawrServicePortName"
                  },
                  {
                     "$ref": "#/$defs/GafaelfawrServicePortNumber"
                  }
               ],
               "title": "Port"
            }
         },
         "required": [
            "name",
            "port"
         ],
         "title": "GafaelfawrIngressPathService",
         "type": "object"
      },
      "GafaelfawrServicePortName": {
         "additionalProperties": false,
         "description": "Port for a service.",
         "properties": {
            "name": {
               "title": "Name",
               "type": "string"
            }
         },
         "required": [
            "name"
         ],
         "title": "GafaelfawrServicePortName",
         "type": "object"
      },
      "GafaelfawrServicePortNumber": {
         "additionalProperties": false,
         "description": "Port for a service.",
         "properties": {
            "number": {
               "title": "Number",
               "type": "integer"
            }
         },
         "required": [
            "number"
         ],
         "title": "GafaelfawrServicePortNumber",
         "type": "object"
      }
   },
   "required": [
      "service"
   ]
}

Fields:
field service: GafaelfawrIngressPathService [Required]

The underlying service that serves this path.

to_kubernetes()

Convert to the Kubernetes API object.

Return type:

V1IngressBackend