{
  "description": "TelemetryPolicy defines a Direct Attached Policy to configure\ntelemetry/observability signals for Gateways.\n\nBy applying a TelemetryPolicy, platform operators and developers can ensure\nconsistent collection, formatting, and export of observability signals.\n\n\u003cgateway:util:excludeFromCRD\u003e\nNotes for implementors:\n\nTelemetryPolicy is a Direct Attached Policy. Implementing controllers MUST\nadhere to the Policy Attachment guidelines (GEP-713).\n\nPrecedence and Conflict Resolution:\n  - To prevent complex merging semantics, only a single TelemetryPolicy is\n    permitted to apply to a specific Gateway resource at any given time.\n  - If multiple TelemetryPolicy resources target the same Gateway, precedence\n    MUST be determined using the following criteria, continuing on ties:\n    1. The older policy by creation timestamp takes precedence.\n    2. The policy appearing first in alphabetical order by {namespace}/{name}.\n  - For any TelemetryPolicy that does not take precedence, the controller\n    MUST set the `Accepted` condition on the policy status to `status: False` with\n    Reason `Conflicted`.\n\nConformance:\nImplementations MUST support the core resource structure and `targetRefs`.\nSupport for the tracing block is Extended, but if supported,\nits respective conformance profile must be met.\n\u003c/gateway:util:excludeFromCRD\u003e\n\nSupport: Extended",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "Spec defines the desired state of TelemetryPolicy.",
      "properties": {
        "targetRefs": {
          "description": "TargetRefs identifies the gateways to which this policy applies (GEP-713).\n\nWhen configured, the telemetry settings defined in this policy are applied\nuniformly to the referenced resources. In the absence of targetRefs, the policy is\ninvalid and will not be accepted.\n\nTargetRefs must be distinct.\n\nSupport: Core for Gateway",
          "items": {
            "additionalProperties": false,
            "description": "LocalObjectReference identifies an API object within the namespace of the\nreferrer.\nThe API object must be valid in the cluster; the Group and Kind must\nbe registered in the cluster for this reference to be valid.\n\nReferences to objects with invalid Group and Kind are not valid, and must\nbe rejected by the implementation, with appropriate Conditions set\non the containing object.",
            "properties": {
              "group": {
                "description": "Group is the group of the referent. For example, \"gateway.networking.k8s.io\".\nWhen unspecified or empty string, core API group is inferred.",
                "maxLength": 253,
                "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                "type": "string"
              },
              "kind": {
                "description": "Kind is kind of the referent. For example \"HTTPRoute\" or \"Service\".",
                "maxLength": 63,
                "minLength": 1,
                "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                "type": "string"
              },
              "name": {
                "description": "Name is the name of the referent.",
                "maxLength": 253,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "group",
              "kind",
              "name"
            ],
            "type": "object"
          },
          "maxItems": 16,
          "minItems": 1,
          "type": "array",
          "x-kubernetes-list-type": "atomic"
        },
        "tracing": {
          "additionalProperties": false,
          "description": "Tracing defines the configuration for distributed tracing.\n\nWhen configured, distributed tracing spans are generated and exported. In the\nabsence of this configuration, tracing behavior is determined by implementation\ndefaults.\n\nSupport: Extended\n\nFeature Name: TelemetryPolicyTracing",
          "properties": {
            "attributes": {
              "description": "Attributes is a list of custom key-value pairs (or variables) attached to every span.\n\nWhen configured, these attributes are injected into every generated tracing span.\nIn the absence of attributes, only standard proxy-defined attributes are emitted.\n\nSupport: Extended",
              "items": {
                "additionalProperties": false,
                "description": "Attribute defines a single flat key-value pair to attach to traces.\n\nThis allows users to enrich spans with context like HTTP headers\n(e.g., \"X-User-ID\"), static tags, or built-in variables.\n\nSupport: Core",
                "properties": {
                  "attributeKey": {
                    "description": "AttributeKey refers to a standard OpenTelemetry attribute.\nFor example: \"http.response.status_code\" or \"http.request.method\".\nThis is required if SourceType is \"Attribute\".\nSee: https://opentelemetry.io/docs/specs/semconv/",
                    "maxLength": 256,
                    "minLength": 1,
                    "pattern": "^[a-z0-9_.-]+$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "headerName": {
                    "description": "HeaderName specifies the HTTP header to extract the value from.\nThis is required if SourceType is \"Header\".",
                    "maxLength": 256,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "literalValue": {
                    "description": "LiteralValue specifies a static string value to attach.\nThis is required if SourceType is \"Literal\".",
                    "maxLength": 1024,
                    "minLength": 1,
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "description": "Name is the key of the attribute as it will appear in the output\n(i.e., as a span tag).",
                    "maxLength": 256,
                    "minLength": 1,
                    "pattern": "^[a-zA-Z0-9_.:/-]+$",
                    "type": "string"
                  },
                  "sourceType": {
                    "description": "SourceType specifies where the attribute value comes from.\nValid values are \"Header\", \"Literal\", or \"Attribute\".",
                    "enum": [
                      "Header",
                      "Literal",
                      "Attribute"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "sourceType"
                ],
                "type": "object",
                "x-kubernetes-validations": [
                  {
                    "message": "headerName is required when sourceType is Header, and must be empty otherwise",
                    "rule": "self.sourceType == 'Header' ? has(self.headerName) : !has(self.headerName)"
                  },
                  {
                    "message": "literalValue is required when sourceType is Literal, and must be empty otherwise",
                    "rule": "self.sourceType == 'Literal' ? has(self.literalValue) : !has(self.literalValue)"
                  },
                  {
                    "message": "attributeKey is required when sourceType is Attribute, and must be empty otherwise",
                    "rule": "self.sourceType == 'Attribute' ? has(self.attributeKey) : !has(self.attributeKey)"
                  }
                ]
              },
              "type": [
                "array",
                "null"
              ],
              "x-kubernetes-list-map-keys": [
                "name"
              ],
              "x-kubernetes-list-type": "map"
            },
            "mode": {
              "default": "ImplementationDefault",
              "description": "Mode explicitly controls if tracing is enabled. Valid values are \"Enabled\", \"Disabled\",\n\"ImplementationDefault\".\n\nIn the absence of this field, it defaults to \"ImplementationDefault\".\n\nSupport: Core (within TelemetryPolicy feature)",
              "enum": [
                "Enabled",
                "Disabled",
                "ImplementationDefault"
              ],
              "type": [
                "string",
                "null"
              ]
            },
            "parentBasedSampling": {
              "additionalProperties": false,
              "description": "ParentBasedSampling configures whether to respect the sampling decision of the parent span.\n\n* When Mode is \"Enabled\", the proxy will respect the upstream trace parent's sampling\n  decision.\n* When Mode is \"Disabled\", the proxy ignores the upstream trace parent's sampling\n  decision and applies its own local sampling rate decision.\n* When Mode is \"ImplementationDefault\" or absent, the implementation's default behavior\n  is used.\n\nSupport: Extended\n\nFeature Name: TelemetryPolicyParentBasedSampling",
              "properties": {
                "mode": {
                  "default": "ImplementationDefault",
                  "description": "Mode explicitly controls if parent-based sampling is enabled. Valid values are \"Enabled\",\n\"Disabled\", \"ImplementationDefault\".\n\nIn the absence of this field, it defaults to \"ImplementationDefault\".\n\nSupport: Extended",
                  "enum": [
                    "Enabled",
                    "Disabled",
                    "ImplementationDefault"
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "samplingRate": {
                  "additionalProperties": false,
                  "description": "SamplingRate is the sampling rate to apply when parent-based sampling is active.\n\nThis acts as a downsampling governor. It allows an operator to say: \"I want to\nrespect the parent's decision, but only for 50% of those requests\". Even if a\nparent is already marked as \"Sampled\", this allows the Gateway to apply a secondary\nfilter so that it can respect the parent's intent while still controlling the volume\nof spans reported.\n\nWhen Mode is \"Enabled\" and this field is absent, a 100% sampling rate\n({numerator: 100, denominator: 100}) is used.\n\nSupport: Extended",
                  "properties": {
                    "denominator": {
                      "default": 100,
                      "format": "int32",
                      "minimum": 1,
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "numerator": {
                      "format": "int32",
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "numerator"
                  ],
                  "type": [
                    "object",
                    "null"
                  ],
                  "x-kubernetes-validations": [
                    {
                      "message": "numerator must be less than or equal to denominator",
                      "rule": "self.numerator \u003c= self.denominator"
                    }
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ],
              "x-kubernetes-validations": [
                {
                  "message": "samplingRate can only be set when mode is Enabled",
                  "rule": "has(self.samplingRate) ? self.mode == 'Enabled' : true"
                }
              ]
            },
            "provider": {
              "additionalProperties": false,
              "description": "Provider specifies the tracing collector or backend endpoint receiving OTLP spans.\n\nWhen configured, spans generated by the Gateway proxy are exported to this destination.\nThis field is required when Mode is \"Enabled\", and must not be set otherwise.\n\nSupport: Core (within Tracing feature)",
              "properties": {
                "backendRef": {
                  "additionalProperties": false,
                  "description": "BackendRef is a reference to a Kubernetes Service or other supported\nbackend that receives OTLP traces.\n\nWhen configured, tracing data is exported to the referenced backend.\n\nCross-namespace references are only valid if they are explicitly allowed\nby ReferenceGrant in the target namespace.\n\nIf the reference is invalid (e.g., the Service does not exist, has an\nunsupported Group or Kind, or is a cross-namespace reference not permitted\nby a ReferenceGrant), the implementation MUST set the \"ResolvedRefs\"\ncondition on the Policy status to \"status: False\", with Reason\n\"BackendNotFound\", \"InvalidKind\", or \"RefNotPermitted\" as appropriate.\n\nTLS configuration for the connection to the backend is managed by the referenced\nobject. For example, if the BackendRef points to a Service, a BackendTLSPolicy\ncan be attached to configure TLS. Alternatively, the referenced backend could be a\ncustom resource (e.g., XBackend) that natively manages TLS.\n\nSupport: Core",
                  "properties": {
                    "group": {
                      "default": "",
                      "description": "Group is the group of the referent. For example, \"gateway.networking.k8s.io\".\nWhen unspecified or empty string, core API group is inferred.",
                      "maxLength": 253,
                      "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "kind": {
                      "default": "Service",
                      "description": "Kind is the Kubernetes resource kind of the referent. For example\n\"Service\".\n\nDefaults to \"Service\" when not specified.\n\nExternalName services can refer to CNAME DNS records that may live\noutside of the cluster and as such are difficult to reason about in\nterms of conformance. They also may not be safe to forward to (see\nCVE-2021-25740 for more information). Implementations SHOULD NOT\nsupport ExternalName Services.\n\nSupport: Core (Services with a type other than ExternalName)\n\nSupport: Implementation-specific (Services with type ExternalName)",
                      "maxLength": 63,
                      "minLength": 1,
                      "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "name": {
                      "description": "Name is the name of the referent.",
                      "maxLength": 253,
                      "minLength": 1,
                      "type": "string"
                    },
                    "namespace": {
                      "description": "Namespace is the namespace of the backend. When unspecified, the local\nnamespace is inferred.\n\nNote that when a namespace different than the local namespace is specified,\na ReferenceGrant object is required in the referent namespace to allow that\nnamespace's owner to accept the reference. See the ReferenceGrant\ndocumentation for details.\n\nSupport: Core",
                      "maxLength": 63,
                      "minLength": 1,
                      "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "port": {
                      "description": "Port specifies the destination port number to use for this resource.\nPort is required when the referent is a Kubernetes Service. In this\ncase, the port number is the service port number, not the target port.\nFor other resources, destination port might be derived from the referent\nresource or this field.",
                      "format": "int32",
                      "maximum": 65535,
                      "minimum": 1,
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "name"
                  ],
                  "type": "object",
                  "x-kubernetes-validations": [
                    {
                      "message": "Must have port for Service reference",
                      "rule": "(size(self.group) == 0 \u0026\u0026 self.kind == 'Service') ? has(self.port) : true"
                    },
                    {
                      "message": "Must not have port for Backend reference",
                      "rule": "(self.group == 'gateway.networking.x-k8s.io' \u0026\u0026 self.kind == 'XBackend') ? !has(self.port) : true"
                    }
                  ]
                },
                "headers": {
                  "description": "Headers specifies a list of custom headers to be added to the telemetry\nexport requests (e.g., for authentication).\n\nSupport: Extended",
                  "items": {
                    "additionalProperties": false,
                    "description": "HTTPHeader represents an HTTP Header name and value as defined by RFC 7230.",
                    "properties": {
                      "name": {
                        "description": "Name is the name of the HTTP Header to be matched. Name matching MUST be\ncase-insensitive. (See https://tools.ietf.org/html/rfc7230#section-3.2).\n\nIf multiple entries specify equivalent header names, the first entry with\nan equivalent name MUST be considered for a match. Subsequent entries\nwith an equivalent header name MUST be ignored. Due to the\ncase-insensitivity of header names, \"foo\" and \"Foo\" are considered\nequivalent.",
                        "maxLength": 256,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                        "type": "string"
                      },
                      "value": {
                        "description": "Value is the value of HTTP Header to be matched.\n\nMust consist of printable US-ASCII characters, optionally separated\nby single tabs or spaces. See: https://tools.ietf.org/html/rfc7230#section-3.2",
                        "maxLength": 4096,
                        "minLength": 1,
                        "pattern": "^[!-~]+([\\t ]?[!-~]+)*$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "name",
                      "value"
                    ],
                    "type": "object"
                  },
                  "maxItems": 16,
                  "type": [
                    "array",
                    "null"
                  ],
                  "x-kubernetes-list-map-keys": [
                    "name"
                  ],
                  "x-kubernetes-list-type": "map"
                }
              },
              "required": [
                "backendRef"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "samplingRate": {
              "additionalProperties": false,
              "description": "SamplingRate specifies the base probability of sampling new traces.\n\nThe sampling probability is represented as a fraction.\n\nFor example, a Numerator of 5 and Denominator of 100 represents a 5% sampling rate.\n* If configured, only the specified percentage of new traces will be initiated.\n* In the absence of this field, an implementation-defined default is used.\n\n\nSupport: Extended",
              "properties": {
                "denominator": {
                  "default": 100,
                  "format": "int32",
                  "minimum": 1,
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "numerator": {
                  "format": "int32",
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "numerator"
              ],
              "type": [
                "object",
                "null"
              ],
              "x-kubernetes-validations": [
                {
                  "message": "numerator must be less than or equal to denominator",
                  "rule": "self.numerator \u003c= self.denominator"
                }
              ]
            },
            "serviceName": {
              "description": "ServiceName is the \"service.name\" attribute of the OpenTelemetry resource.\nIf absent, the implementation's default service name will be used.\n\nSupport: Extended\n\nFeature Name: TelemetryPolicyTracing",
              "maxLength": 253,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9_.:/-]+$",
              "type": [
                "string",
                "null"
              ]
            },
            "spanName": {
              "description": "SpanName defines a custom name for the OTel span. By default, the name\nis implementation-specific.\n\nSupport: Extended\n\nFeature Name: TelemetryPolicyTracing",
              "maxLength": 256,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9_.:/-]+( [a-zA-Z0-9_.:/-]+)*$",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ],
          "x-kubernetes-validations": [
            {
              "message": "provider is required when mode is Enabled, and must be empty otherwise",
              "rule": "self.mode == 'Enabled' ? has(self.provider) : !has(self.provider)"
            },
            {
              "message": "samplingRate can only be set when mode is Enabled",
              "rule": "has(self.samplingRate) ? self.mode == 'Enabled' : true"
            },
            {
              "message": "parentBasedSampling can only be set when mode is Enabled",
              "rule": "has(self.parentBasedSampling) ? self.mode == 'Enabled' : true"
            },
            {
              "message": "serviceName can only be set when mode is Enabled",
              "rule": "has(self.serviceName) ? self.mode == 'Enabled' : true"
            },
            {
              "message": "spanName can only be set when mode is Enabled",
              "rule": "has(self.spanName) ? self.mode == 'Enabled' : true"
            },
            {
              "message": "attributes can only be set when mode is Enabled",
              "rule": "has(self.attributes) ? self.mode == 'Enabled' : true"
            }
          ]
        }
      },
      "required": [
        "targetRefs"
      ],
      "type": "object",
      "x-kubernetes-validations": [
        {
          "message": "at least one of the fields in [tracing] must be set",
          "rule": "has(self.tracing)"
        }
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "Status defines the observed state of TelemetryPolicy.",
      "properties": {
        "ancestors": {
          "description": "For Policy Status API conventions, see:\nhttps://gateway-api.sigs.k8s.io/geps/gep-713/#the-status-stanza-of-policy-objects\n\nAncestors is a list of ancestor resources (specifically Gateway resources)\nthat are associated with the policy, and the status of the policy with\nrespect to each ancestor. When this policy attaches to a parent, the\ncontroller that manages the parent and the ancestors MUST add an entry\nto this list when the controller first sees the policy and SHOULD update\nthe entry as appropriate when the relevant ancestor is modified.\n\nFor TelemetryPolicy, the ancestor MUST be the Gateway resource\nreferenced in spec.targetRefs.\n\nNote also that implementations MUST ONLY populate ancestor status for\nthe Ancestor resources they are responsible for. Implementations MUST\nuse the ControllerName field to uniquely identify the entries in this list\nthat they are responsible for.\n\nNote that to achieve this, the list of PolicyAncestorStatus structs\nMUST be treated as a map with a composite key, made up of the AncestorRef\nand ControllerName fields combined.\n\nA maximum of 16 ancestors will be represented in this list. An empty list\nmeans the Policy is not relevant for any ancestors.\n\nIf this slice is full, implementations MUST NOT add further entries.\nInstead they MUST consider the policy unimplementable and signal that\non any related resources such as the ancestor that would be referenced\nhere.",
          "items": {
            "additionalProperties": false,
            "description": "PolicyAncestorStatus describes the status of a route with respect to an\nassociated Ancestor.\n\nAncestors refer to objects that are either the Target of a policy or above it\nin terms of object hierarchy. For example, if a policy targets a Service, the\nPolicy's Ancestors are, in order, the Service, the HTTPRoute, the Gateway, and\nthe GatewayClass. Almost always, in this hierarchy, the Gateway will be the most\nuseful object to place Policy status on, so we recommend that implementations\nSHOULD use Gateway as the PolicyAncestorStatus object unless the designers\nhave a _very_ good reason otherwise.\n\nIn the context of policy attachment, the Ancestor is used to distinguish which\nresource results in a distinct application of this policy. For example, if a policy\ntargets a Service, it may have a distinct result per attached Gateway.\n\nPolicies targeting the same resource may have different effects depending on the\nancestors of those resources. For example, different Gateways targeting the same\nService may have different capabilities, especially if they have different underlying\nimplementations.\n\nFor example, in BackendTLSPolicy, the Policy attaches to a Service that is\nused as a backend in a HTTPRoute that is itself attached to a Gateway.\nIn this case, the relevant object for status is the Gateway, and that is the\nancestor object referred to in this status.\n\nNote that a parent is also an ancestor, so for objects where the parent is the\nrelevant object for status, this struct SHOULD still be used.\n\nThis struct is intended to be used in a slice that's effectively a map,\nwith a composite key made up of the AncestorRef and the ControllerName.",
            "properties": {
              "ancestorRef": {
                "additionalProperties": false,
                "description": "AncestorRef corresponds with a ParentRef in the spec that this\nPolicyAncestorStatus struct describes the status of.",
                "properties": {
                  "group": {
                    "default": "gateway.networking.k8s.io",
                    "description": "Group is the group of the referent.\nWhen unspecified, \"gateway.networking.k8s.io\" is inferred.\nTo set the core API group (such as for a \"Service\" kind referent),\nGroup must be explicitly set to \"\" (empty string).\n\nSupport: Core",
                    "maxLength": 253,
                    "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "kind": {
                    "default": "Gateway",
                    "description": "Kind is kind of the referent.\n\nThere are two kinds of parent resources with \"Core\" support:\n\n* Gateway (Gateway conformance profile)\n* Service (Mesh conformance profile, ClusterIP Services only)\n\nSupport for other resources is Implementation-Specific.",
                    "maxLength": 63,
                    "minLength": 1,
                    "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "description": "Name is the name of the referent.\n\nSupport: Core",
                    "maxLength": 253,
                    "minLength": 1,
                    "type": "string"
                  },
                  "namespace": {
                    "description": "Namespace is the namespace of the referent. When unspecified, this refers\nto the local namespace of the Route.\n\nNote that there are specific rules for ParentRefs which cross namespace\nboundaries. Cross-namespace references are only valid if they are explicitly\nallowed by something in the namespace they are referring to. For example:\nGateway has the AllowedRoutes field, and ReferenceGrant provides a\ngeneric way to enable any other kind of cross-namespace reference.\n\n\nParentRefs from a Route to a Service in the same namespace are \"producer\"\nroutes, which apply default routing rules to inbound connections from\nany namespace to the Service.\n\nParentRefs from a Route to a Service in a different namespace are\n\"consumer\" routes, and these routing rules are only applied to outbound\nconnections originating from the same namespace as the Route, for which\nthe intended destination of the connections are a Service targeted as a\nParentRef of the Route.\n\n\nSupport: Core",
                    "maxLength": 63,
                    "minLength": 1,
                    "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "port": {
                    "description": "Port is the network port this Route targets. It can be interpreted\ndifferently based on the type of parent resource.\n\nWhen the parent resource is a Gateway, this targets all listeners\nlistening on the specified port that also support this kind of Route(and\nselect this Route). It's not recommended to set `Port` unless the\nnetworking behaviors specified in a Route must apply to a specific port\nas opposed to a listener(s) whose port(s) may be changed. When both Port\nand SectionName are specified, the name and port of the selected listener\nmust match both specified values.\n\n\nWhen the parent resource is a Service, this targets a specific port in the\nService spec. When both Port (experimental) and SectionName are specified,\nthe name and port of the selected port must match both specified values.\n\n\nImplementations MAY choose to support other parent resources.\nImplementations supporting other types of parent resources MUST clearly\ndocument how/if Port is interpreted.\n\nFor the purpose of status, an attachment is considered successful as\nlong as the parent resource accepts it partially. For example, Gateway\nlisteners can restrict which Routes can attach to them by Route kind,\nnamespace, or hostname. If 1 of 2 Gateway listeners accept attachment\nfrom the referencing Route, the Route MUST be considered successfully\nattached. If no Gateway listeners accept attachment from this Route,\nthe Route MUST be considered detached from the Gateway.\n\nSupport: Extended",
                    "format": "int32",
                    "maximum": 65535,
                    "minimum": 1,
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "sectionName": {
                    "description": "SectionName is the name of a section within the target resource. In the\nfollowing resources, SectionName is interpreted as the following:\n\n* Gateway: Listener name. When both Port (experimental) and SectionName\nare specified, the name and port of the selected listener must match\nboth specified values.\n* Service: Port name. When both Port (experimental) and SectionName\nare specified, the name and port of the selected listener must match\nboth specified values.\n\nImplementations MAY choose to support attaching Routes to other resources.\nIf that is the case, they MUST clearly document how SectionName is\ninterpreted.\n\nWhen unspecified (empty string), this will reference the entire resource.\nFor the purpose of status, an attachment is considered successful if at\nleast one section in the parent resource accepts it. For example, Gateway\nlisteners can restrict which Routes can attach to them by Route kind,\nnamespace, or hostname. If 1 of 2 Gateway listeners accept attachment from\nthe referencing Route, the Route MUST be considered successfully\nattached. If no Gateway listeners accept attachment from this Route, the\nRoute MUST be considered detached from the Gateway.\n\nSupport: Core",
                    "maxLength": 253,
                    "minLength": 1,
                    "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              },
              "conditions": {
                "description": "Conditions describes the status of the Policy with respect to the given Ancestor.",
                "items": {
                  "additionalProperties": false,
                  "description": "Condition contains details for one aspect of the current state of this API Resource.",
                  "properties": {
                    "lastTransitionTime": {
                      "description": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "message": {
                      "description": "message is a human readable message indicating details about the transition.\nThis may be an empty string.",
                      "maxLength": 32768,
                      "type": "string"
                    },
                    "observedGeneration": {
                      "description": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
                      "format": "int64",
                      "minimum": 0,
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "reason": {
                      "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.",
                      "maxLength": 1024,
                      "minLength": 1,
                      "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
                      "type": "string"
                    },
                    "status": {
                      "description": "status of the condition, one of True, False, Unknown.",
                      "enum": [
                        "True",
                        "False",
                        "Unknown"
                      ],
                      "type": "string"
                    },
                    "type": {
                      "description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
                      "maxLength": 316,
                      "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "lastTransitionTime",
                    "message",
                    "reason",
                    "status",
                    "type"
                  ],
                  "type": "object"
                },
                "maxItems": 8,
                "minItems": 1,
                "type": "array",
                "x-kubernetes-list-map-keys": [
                  "type"
                ],
                "x-kubernetes-list-type": "map"
              },
              "controllerName": {
                "description": "ControllerName is a domain/path string that indicates the name of the\ncontroller that wrote this status. This corresponds with the\ncontrollerName field on GatewayClass.\n\nExample: \"example.net/gateway-controller\".\n\nThe format of this field is DOMAIN \"/\" PATH, where DOMAIN and PATH are\nvalid Kubernetes names\n(https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names).\n\nControllers MUST populate this field when writing status. Controllers should ensure that\nentries to status populated with their ControllerName are cleaned up when they are no\nlonger necessary.",
                "maxLength": 253,
                "minLength": 1,
                "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\\/[A-Za-z0-9\\/\\-._~%!$\u0026'()*+,;=:]+$",
                "type": "string"
              }
            },
            "required": [
              "ancestorRef",
              "conditions",
              "controllerName"
            ],
            "type": "object"
          },
          "maxItems": 16,
          "type": "array",
          "x-kubernetes-list-type": "atomic"
        }
      },
      "required": [
        "ancestors"
      ],
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}