From 788f921f9fc5df89c2056181b44e490603d7b17c Mon Sep 17 00:00:00 2001 From: Guy Daich Date: Wed, 30 Apr 2025 08:43:10 -0500 Subject: [PATCH 1/8] start: endpoint metadata Signed-off-by: Guy Daich --- .../translate/out/quickstart.all.yaml | 5 +++ internal/gatewayapi/route.go | 23 +++++++----- .../testdata/accesslog-als-backend.out.yaml | 12 +++++++ .../testdata/backend-with-fallback.out.yaml | 8 +++++ .../backendtlspolicy-across-ns.out.yaml | 5 +++ .../backendtlspolicy-ca-only-secret.out.yaml | 5 +++ .../backendtlspolicy-ca-only.out.yaml | 5 +++ ...ndtlspolicy-default-ns-targetrefs.out.yaml | 18 ++++++++++ .../backendtlspolicy-default-ns.out.yaml | 13 +++++++ ...backendtlspolicy-multiple-targets.out.yaml | 10 ++++++ ...endtlspolicy-serviceimport-target.out.yaml | 10 ++++++ ...ackendtlspolicy-system-truststore.out.yaml | 5 +++ ...y-buffer-limit-out-of-range-error.out.yaml | 8 +++++ ...y-buffer-limit-with-invalid-value.out.yaml | 8 +++++ ...backendtrafficpolicy-buffer-limit.out.yaml | 8 +++++ .../backendtrafficpolicy-compression.out.yaml | 4 +++ ...ndtrafficpolicy-dns-lookup-family.out.yaml | 27 +++++++++++++- ...ndtrafficpolicy-http-upgrade-spdy.out.yaml | 4 +++ ...fficpolicy-http-upgrade-websocket.out.yaml | 4 +++ ...endtrafficpolicy-override-replace.out.yaml | 12 +++++++ ...ckendtrafficpolicy-request-buffer.out.yaml | 8 +++++ ...ndtrafficpolicy-status-conditions.out.yaml | 10 ++++++ ...fficpolicy-status-fault-injection.out.yaml | 12 +++++++ .../backendtrafficpolicy-tracing.out.yaml | 4 +++ ...trafficpolicy-use-client-protocol.out.yaml | 4 +++ ...policy-with-circuitbreakers-error.out.yaml | 12 +++++++ ...rafficpolicy-with-circuitbreakers.out.yaml | 8 +++++ ...ndtrafficpolicy-with-dns-settings.out.yaml | 12 +++++++ ...endtrafficpolicy-with-healthcheck.out.yaml | 28 +++++++++++++++ .../backendtrafficpolicy-with-http2.out.yaml | 8 +++++ ...fficpolicy-with-httproute-timeout.out.yaml | 8 +++++ ...nvalid-consistent-hash-table-size.out.yaml | 8 +++++ ...ndtrafficpolicy-with-loadbalancer.out.yaml | 16 +++++++++ ...telimit-default-route-level-limit.out.yaml | 4 +++ ...cal-ratelimit-distinct-match-type.out.yaml | 4 +++ ...ocal-ratelimit-invalid-limit-unit.out.yaml | 4 +++ ...valid-multiple-route-level-limits.out.yaml | 4 +++ ...rafficpolicy-with-local-ratelimit.out.yaml | 4 +++ ...rafficpolicy-with-panic-threshold.out.yaml | 12 +++++++ ...dtrafficpolicy-with-proxyprotocol.out.yaml | 8 +++++ ...licy-with-ratelimit-invalid-regex.out.yaml | 4 +++ ...ckendtrafficpolicy-with-ratelimit.out.yaml | 8 +++++ ...esponse-override-invalid-valueref.out.yaml | 8 +++++ ...fficpolicy-with-response-override.out.yaml | 12 +++++++ ...backendtrafficpolicy-with-retries.out.yaml | 16 +++++++++ ...olicy-with-same-prefix-httproutes.out.yaml | 8 +++++ ...afficpolicy-with-shared-ratelimit.out.yaml | 8 +++++ ...cp-udp-listeners-apply-on-gateway.out.yaml | 8 +++++ ...-tcp-udp-listeners-apply-on-route.out.yaml | 8 +++++ ...ndtrafficpolicy-with-tcpkeepalive.out.yaml | 8 +++++ ...dtrafficpolicy-with-timeout-error.out.yaml | 4 +++ ...ficpolicy-with-timeout-targetrefs.out.yaml | 10 ++++++ ...backendtrafficpolicy-with-timeout.out.yaml | 8 +++++ ...nttrafficpolicy-for-tcp-listeners.out.yaml | 8 +++++ .../clienttrafficpolicy-http10.out.yaml | 15 ++++++++ .../clienttrafficpolicy-http3.out.yaml | 4 +++ ...enttrafficpolicy-invalid-settings.out.yaml | 16 +++++++++ .../testdata/conflicting-policies.out.yaml | 8 +++++ .../testdata/custom-filter-order.out.yaml | 5 +++ ...yextensionpolicy-override-replace.out.yaml | 26 ++++++++++++-- ...extensionpolicy-status-conditions.out.yaml | 10 ++++++ ...-extproc-invalid-no-matching-port.out.yaml | 4 +++ ...licy-with-extproc-invalid-no-port.out.yaml | 4 +++ ...xtproc-invalid-no-reference-grant.out.yaml | 4 +++ ...y-with-extproc-invalid-no-service.out.yaml | 4 +++ ...ith-extproc-with-backendtlspolicy.out.yaml | 18 ++++++++++ ...th-extproc-with-mixed-backendrefs.out.yaml | 4 +++ ...extproc-with-multiple-backendrefs.out.yaml | 26 ++++++++++++++ ...ith-extproc-with-traffic-features.out.yaml | 26 ++++++++++++++ ...yextensionpolicy-with-invalid-lua.out.yaml | 8 +++++ ...xtensionpolicy-with-lua-configmap.out.yaml | 20 +++++++++++ .../envoyextensionpolicy-with-lua.out.yaml | 8 +++++ ...xtensionpolicy-with-wasm-env-vars.out.yaml | 8 +++++ ...ensionpolicy-with-wasm-targetrefs.out.yaml | 10 ++++++ .../envoyextensionpolicy-with-wasm.out.yaml | 8 +++++ .../envoyproxy-accesslog-als-json.out.yaml | 10 ++++++ .../envoyproxy-accesslog-backend.out.yaml | 4 +++ .../envoyproxy-accesslog-cel.out.yaml | 5 +++ .../envoyproxy-accesslog-types.out.yaml | 35 +++++++++++++++++++ ...envoyproxy-accesslog-with-traffic.out.yaml | 10 ++++++ ...voyproxy-accesslog-without-format.out.yaml | 10 ++++++ .../testdata/envoyproxy-accesslog.out.yaml | 10 ++++++ ...roxy-endpoint-routing-for-gateway.out.yaml | 4 +++ .../envoyproxy-endpoint-routing.out.yaml | 4 +++ .../envoyproxy-preserve-route-order.out.yaml | 32 +++++++++++++++++ .../envoyproxy-priority-backend.out.yaml | 26 ++++++++++++++ ...proxy-service-routing-for-gateway.out.yaml | 4 +++ .../envoyproxy-service-routing.out.yaml | 4 +++ .../testdata/envoyproxy-tls-settings.out.yaml | 10 ++++++ .../envoyproxy-tracing-backend.out.yaml | 4 +++ ...route-with-valid-extension-filter.out.yaml | 4 +++ ...-namespace-with-allowed-httproute.out.yaml | 5 +++ ...stener-with-hostname-intersection.out.yaml | 10 ++++++ .../testdata/gateway-infrastructure.out.yaml | 4 +++ ...with-infrastructure-parametersref.out.yaml | 4 +++ ...ture-parametersref-does-not-exist.out.yaml | 4 +++ ...astructure-parametersref-fallback.out.yaml | 4 +++ ...h-tcproute-with-multiple-backends.out.yaml | 8 +++++ ...her-namespace-allowed-by-refgrant.out.yaml | 4 +++ ...ith-tls-terminate-and-passthrough.out.yaml | 8 +++++ ...h-udproute-with-multiple-backends.out.yaml | 8 +++++ ...ith-same-algorithm-different-fqdn.out.yaml | 4 +++ ...-valid-multiple-tls-configuration.out.yaml | 4 +++ ...ener-with-valid-tls-configuration.out.yaml | 4 +++ ...with-preexisting-status-condition.out.yaml | 4 +++ ...-listener-with-multiple-tcproutes.out.yaml | 4 +++ ...-listener-with-multiple-udproutes.out.yaml | 4 +++ ...teway-with-stale-status-condition.out.yaml | 4 +++ ...listeners-on-same-tcp-or-tls-port.out.yaml | 4 +++ ...th-two-listeners-on-same-udp-port.out.yaml | 4 +++ ...isteners-with-multiple-httproutes.out.yaml | 16 +++++++++ ...-with-same-port-http-tcp-protocol.out.yaml | 8 +++++ ...-with-same-port-http-udp-protocol.out.yaml | 8 +++++ ...s-with-tcproutes-with-sectionname.out.yaml | 8 +++++ ...ith-tcproutes-without-sectionname.out.yaml | 8 +++++ ...s-with-udproutes-with-sectionname.out.yaml | 8 +++++ ...ith-udproutes-without-sectionname.out.yaml | 8 +++++ .../testdata/grpcroute-with-backend.out.yaml | 8 +++++ .../grpcroute-with-header-match.out.yaml | 4 +++ ...ute-with-method-and-service-match.out.yaml | 8 +++++ .../grpcroute-with-method-match.out.yaml | 8 +++++ ...oute-with-request-header-modifier.out.yaml | 4 +++ .../grpcroute-with-service-match.out.yaml | 8 +++++ ...dtrafficpolicy-with-timeout-error.out.yaml | 4 +++ ...backendtrafficpolicy-with-timeout.out.yaml | 8 +++++ ...way-with-more-different-listeners.out.yaml | 32 +++++++++++++++++ ...ng-to-gateway-with-more-listeners.out.yaml | 32 +++++++++++++++++ ...wo-listeners-with-different-ports.out.yaml | 8 +++++ ...ing-to-gateway-with-two-listeners.out.yaml | 8 +++++ .../httproute-attaching-to-gateway.out.yaml | 4 +++ ...taching-to-listener-matching-port.out.yaml | 4 +++ ...ner-on-gateway-with-two-listeners.out.yaml | 4 +++ ...with-backend-and-core-backendrefs.out.yaml | 28 +++++++++++++++ ...-listener-with-backend-backendref.out.yaml | 8 +++++ ...end-backendrefs-diff-address-type.out.yaml | 8 +++++ ...end-backendrefs-same-address-type.out.yaml | 16 +++++++++ ...ort-backendrefs-diff-address-type.out.yaml | 10 ++++++ ...ort-backendrefs-same-address-type.out.yaml | 10 ++++++ ...port-backendref-fqdn-address-type.out.yaml | 5 +++ ...ner-with-serviceimport-backendref.out.yaml | 5 +++ .../httproute-attaching-to-listener.out.yaml | 4 +++ ...httproute-backend-request-timeout.out.yaml | 4 +++ .../httproute-request-timeout.out.yaml | 4 +++ .../testdata/httproute-retry.out.yaml | 4 +++ ...-multiple-backends-and-no-weights.out.yaml | 12 +++++++ ...ith-multiple-backends-and-weights.out.yaml | 12 +++++++ ...ervice-backends-and-app-protocols.out.yaml | 12 +++++++ ...-non-service-backends-and-weights.out.yaml | 12 +++++++ ...h-backendref-add-multiple-filters.out.yaml | 16 +++++++++ ...her-namespace-allowed-by-refgrant.out.yaml | 5 +++ ...her-namespace-allowed-by-refgrant.out.yaml | 5 +++ .../httproute-with-cors-filter.out.yaml | 8 +++++ ...tproute-with-credential-injection.out.yaml | 8 +++++ .../httproute-with-empty-matches.out.yaml | 4 +++ ...proute-with-enable-zone-discovery.out.yaml | 8 +++++ ...er-duplicate-add-multiple-filters.out.yaml | 4 +++ ...with-header-filter-duplicate-adds.out.yaml | 4 +++ ...duplicate-remove-multiple-filters.out.yaml | 4 +++ ...h-header-filter-duplicate-removes.out.yaml | 4 +++ ...ute-with-header-filter-no-headers.out.yaml | 4 +++ ...tproute-with-header-filter-remove.out.yaml | 4 +++ ...id-backend-ref-invalid-mixed-kind.out.yaml | 8 +++++ .../testdata/httproute-with-metadata.out.yaml | 8 +++++ ...ute-with-mirror-filter-duplicates.out.yaml | 12 +++++++ ...route-with-mirror-filter-multiple.out.yaml | 12 +++++++ ...irror-filter-percentage-mirroring.out.yaml | 12 +++++++ .../httproute-with-mirror-filter.out.yaml | 8 +++++ ...ith-multi-gateways-with-same-name.out.yaml | 4 +++ ...ltiple-gateways-from-different-ns.out.yaml | 10 ++++++ ...-with-response-header-filter-adds.out.yaml | 4 +++ ...er-duplicate-add-multiple-filters.out.yaml | 4 +++ ...onse-header-filter-duplicate-adds.out.yaml | 4 +++ ...duplicate-remove-multiple-filters.out.yaml | 4 +++ ...e-header-filter-duplicate-removes.out.yaml | 4 +++ ...response-header-filter-no-headers.out.yaml | 4 +++ ...ith-response-header-filter-remove.out.yaml | 4 +++ ...single-rule-with-exact-path-match.out.yaml | 4 +++ ...ingle-rule-with-http-method-match.out.yaml | 4 +++ ...h-prefix-and-exact-header-matches.out.yaml | 4 +++ ...to-gateway-with-wildcard-hostname.out.yaml | 4 +++ ...to-gateway-with-wildcard-hostname.out.yaml | 8 +++++ ...ite-filter-full-path-replace-http.out.yaml | 4 +++ ...te-filter-hostname-prefix-replace.out.yaml | 4 +++ ...e-with-urlrewrite-filter-hostname.out.yaml | 4 +++ ...ewrite-filter-invalid-filter-type.out.yaml | 4 +++ ...ewrite-filter-prefix-replace-http.out.yaml | 4 +++ ...e-filter-regex-match-replace-http.out.yaml | 16 +++++++++ ...e-with-urlrewrite-hostname-filter.out.yaml | 16 +++++++++ ...ng-to-gateway-with-unset-hostname.out.yaml | 4 +++ .../httproutes-with-multiple-matches.out.yaml | 35 +++++++++++++++++++ ...multiple-gateways-multiple-routes.out.yaml | 8 +++++ .../merge-with-isolated-policies-2.out.yaml | 16 +++++++++ .../merge-with-isolated-policies.out.yaml | 8 +++++ .../securitypolicy-override-replace.out.yaml | 12 +++++++ ...icy-with-authoriztion-client-cidr.out.yaml | 12 +++++++ ...-authoriztion-headers-and-methods.out.yaml | 4 +++ ...olicy-with-authoriztion-jwt-claim.out.yaml | 4 +++ .../securitypolicy-with-basic-auth.out.yaml | 12 +++++++ .../securitypolicy-with-cors.out.yaml | 12 +++++++ ...curitypolicy-with-extauth-backend.out.yaml | 32 +++++++++++++++++ ...itypolicy-with-extauth-backendref.out.yaml | 27 ++++++++++++++ .../securitypolicy-with-extauth-body.out.yaml | 20 +++++++++++ ...-extauth-invalid-no-matching-port.out.yaml | 4 +++ ...licy-with-extauth-invalid-no-port.out.yaml | 4 +++ ...xtauth-invalid-no-reference-grant.out.yaml | 4 +++ ...y-with-extauth-invalid-no-service.out.yaml | 4 +++ ...policy-with-extauth-recomputation.out.yaml | 20 +++++++++++ ...ith-extauth-with-backendtlspolicy.out.yaml | 18 ++++++++++ .../securitypolicy-with-extauth.out.yaml | 27 ++++++++++++++ ...ypolicy-with-jwt-and-invalid-oidc.out.yaml | 8 +++++ ...itypolicy-with-jwt-backendcluster.out.yaml | 8 +++++ ...ecuritypolicy-with-jwt-local-jwks.out.yaml | 16 +++++++++ .../securitypolicy-with-jwt-optional.out.yaml | 8 +++++ ...cy-with-jwt-with-custom-extractor.out.yaml | 8 +++++ .../testdata/securitypolicy-with-jwt.out.yaml | 8 +++++ ...typolicy-with-oidc-backendcluster.out.yaml | 8 +++++ ...typolicy-with-oidc-custom-cookies.out.yaml | 4 +++ .../securitypolicy-with-oidc.out.yaml | 8 +++++ ...teway-with-listener-tls-terminate.out.yaml | 8 +++++ ...ultiple-backends-and-zero-weights.out.yaml | 12 +++++++ .../testdata/tcproute-with-backend.out.yaml | 4 +++ .../tlsroute-attaching-to-gateway.out.yaml | 4 +++ .../testdata/tlsroute-multiple.out.yaml | 8 +++++ .../testdata/tlsroute-with-backend.out.yaml | 4 +++ ...her-namespace-allowed-by-refgrant.out.yaml | 5 +++ .../tlsroute-with-empty-hostname.out.yaml | 4 +++ ...oute-with-empty-listener-hostname.out.yaml | 4 +++ .../tracing-merged-multiple-routes.out.yaml | 8 +++++ .../testdata/tracing-multiple-routes.out.yaml | 8 +++++ .../tracing-sampling-fraction.out.yaml | 8 +++++ ...ultiple-backends-and-zero-weights.out.yaml | 12 +++++++ .../testdata/udproute-with-backend.out.yaml | 4 +++ internal/ir/xds.go | 5 +++ internal/xds/translator/cluster.go | 7 ++++ .../in/xds-ir/http-route-with-metadata.yaml | 10 ++++++ ...p-route-with-tlsbundle-multiple-certs.yaml | 10 ++++++ .../http-route-with-metadata.endpoints.yaml | 16 +++++++++ ...th-tlsbundle-multiple-certs.endpoints.yaml | 12 +++++++ 238 files changed, 2119 insertions(+), 12 deletions(-) diff --git a/internal/cmd/egctl/testdata/translate/out/quickstart.all.yaml b/internal/cmd/egctl/testdata/translate/out/quickstart.all.yaml index c7b1dca08e..ab2c3a8a5d 100644 --- a/internal/cmd/egctl/testdata/translate/out/quickstart.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/quickstart.all.yaml @@ -126,6 +126,11 @@ xdsIR: - endpoints: - host: 7.7.7.7 port: 3000 + metadata: + kind: Service + name: backend + namespace: envoy-gateway-system + sectionName: "3000" name: httproute/envoy-gateway-system/backend/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/route.go b/internal/gatewayapi/route.go index b98e81a465..2d35c325c4 100644 --- a/internal/gatewayapi/route.go +++ b/internal/gatewayapi/route.go @@ -8,6 +8,7 @@ package gatewayapi import ( "fmt" "net" + "sigs.k8s.io/controller-runtime/pkg/client" "sort" "strconv" "strings" @@ -380,7 +381,7 @@ func (t *Translator) processHTTPRouteRule( irRoute := &ir.HTTPRoute{ Name: irRouteName(httpRoute, ruleIdx, -1), } - irRoute.Metadata = buildRouteMetadata(httpRoute, rule.Name) + irRoute.Metadata = buildResourceMetadata(httpRoute, rule.Name) processRouteTrafficFeatures(irRoute, rule) applyHTTPFiltersContextToIRRoute(httpFiltersContext, irRoute) ruleRoutes = append(ruleRoutes, irRoute) @@ -447,7 +448,7 @@ func (t *Translator) processHTTPRouteRule( Name: irRouteName(httpRoute, ruleIdx, matchIdx), SessionPersistence: sessionPersistence, } - irRoute.Metadata = buildRouteMetadata(httpRoute, rule.Name) + irRoute.Metadata = buildResourceMetadata(httpRoute, rule.Name) processRouteTrafficFeatures(irRoute, rule) if match.Path != nil { @@ -720,7 +721,7 @@ func (t *Translator) processGRPCRouteRule(grpcRoute *GRPCRouteContext, ruleIdx i irRoute := &ir.HTTPRoute{ Name: irRouteName(grpcRoute, ruleIdx, -1), } - irRoute.Metadata = buildRouteMetadata(grpcRoute, rule.Name) + irRoute.Metadata = buildResourceMetadata(grpcRoute, rule.Name) applyHTTPFiltersContextToIRRoute(httpFiltersContext, irRoute) ruleRoutes = append(ruleRoutes, irRoute) } @@ -732,7 +733,7 @@ func (t *Translator) processGRPCRouteRule(grpcRoute *GRPCRouteContext, ruleIdx i irRoute := &ir.HTTPRoute{ Name: irRouteName(grpcRoute, ruleIdx, matchIdx), } - irRoute.Metadata = buildRouteMetadata(grpcRoute, rule.Name) + irRoute.Metadata = buildResourceMetadata(grpcRoute, rule.Name) for _, headerMatch := range match.Headers { switch GRPCHeaderMatchTypeDerefOr(headerMatch.Type, gwapiv1.GRPCHeaderMatchExact) { case gwapiv1.GRPCHeaderMatchExact: @@ -866,12 +867,12 @@ func (t *Translator) processHTTPRouteParentRefListener(route RouteContext, route return hasHostnameIntersection } -func buildRouteMetadata(route RouteContext, sectionName *gwapiv1.SectionName) *ir.ResourceMetadata { +func buildResourceMetadata(resource client.Object, sectionName *gwapiv1.SectionName) *ir.ResourceMetadata { metadata := &ir.ResourceMetadata{ - Kind: route.GetObjectKind().GroupVersionKind().Kind, - Name: route.GetName(), - Namespace: route.GetNamespace(), - Annotations: filterEGPrefix(route.GetAnnotations()), + Kind: resource.GetObjectKind().GroupVersionKind().Kind, + Name: resource.GetName(), + Namespace: resource.GetNamespace(), + Annotations: filterEGPrefix(resource.GetAnnotations()), } if sectionName != nil { metadata.SectionName = string(*sectionName) @@ -1518,6 +1519,7 @@ func (t *Translator) processServiceImportDestinationSetting( Protocol: protocol, Endpoints: endpoints, AddressType: addrType, + Metadata: buildResourceMetadata(serviceImport, ptr.To(gwapiv1.SectionName(strconv.Itoa(int(*backendRef.Port))))), } } @@ -1564,6 +1566,7 @@ func (t *Translator) processServiceDestinationSetting( Endpoints: endpoints, AddressType: addrType, ZoneAwareRoutingEnabled: isZoneAwareRoutingEnabled(service), + Metadata: buildResourceMetadata(service, ptr.To(gwapiv1.SectionName(strconv.Itoa(int(*backendRef.Port))))), } } @@ -1949,6 +1952,8 @@ func (t *Translator) processBackendDestinationSetting( } } + ds.Metadata = buildResourceMetadata(backend, nil) + return ds } diff --git a/internal/gatewayapi/testdata/accesslog-als-backend.out.yaml b/internal/gatewayapi/testdata/accesslog-als-backend.out.yaml index 1b887dc111..7e023e67f4 100644 --- a/internal/gatewayapi/testdata/accesslog-als-backend.out.yaml +++ b/internal/gatewayapi/testdata/accesslog-als-backend.out.yaml @@ -161,18 +161,30 @@ xdsIR: - host: "" path: /var/run/backend.sock port: 0 + metadata: + kind: Backend + name: backend-uds + namespace: envoy-gateway name: accesslog_otel_0_0/backend/-1 protocol: TCP - addressType: FQDN endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: envoy-gateway name: accesslog_otel_0_0/backend/-1 protocol: HTTP2 - addressType: IP endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: envoy-gateway name: accesslog_otel_0_0/backend/-1 protocol: TCP resources: diff --git a/internal/gatewayapi/testdata/backend-with-fallback.out.yaml b/internal/gatewayapi/testdata/backend-with-fallback.out.yaml index bc89291d78..5ab1417ff4 100644 --- a/internal/gatewayapi/testdata/backend-with-fallback.out.yaml +++ b/internal/gatewayapi/testdata/backend-with-fallback.out.yaml @@ -161,6 +161,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-1 + namespace: default name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -168,6 +172,10 @@ xdsIR: endpoints: - host: 2.2.2.2 port: 3001 + metadata: + kind: Backend + name: backend-2 + namespace: default name: httproute/default/httproute-1/rule/0/backend/1 priority: 1 protocol: HTTP diff --git a/internal/gatewayapi/testdata/backendtlspolicy-across-ns.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-across-ns.out.yaml index 36c1a79cfe..b9710f60ad 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-across-ns.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-across-ns.out.yaml @@ -144,6 +144,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: backends + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtlspolicy-ca-only-secret.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-ca-only-secret.out.yaml index d718bc4177..dd631105ec 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-ca-only-secret.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-ca-only-secret.out.yaml @@ -155,6 +155,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: backends + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls/rule/0/backend/0 protocol: HTTP tls: diff --git a/internal/gatewayapi/testdata/backendtlspolicy-ca-only.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-ca-only.out.yaml index af37c14f36..80970ce848 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-ca-only.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-ca-only.out.yaml @@ -155,6 +155,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: backends + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls/rule/0/backend/0 protocol: HTTP tls: diff --git a/internal/gatewayapi/testdata/backendtlspolicy-default-ns-targetrefs.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-default-ns-targetrefs.out.yaml index b20a2dd758..521916dd5d 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-default-ns-targetrefs.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-default-ns-targetrefs.out.yaml @@ -290,6 +290,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: default + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls/rule/0/backend/0 protocol: HTTP tls: @@ -303,6 +308,10 @@ xdsIR: endpoints: - host: 2.2.2.2 port: 3443 + metadata: + kind: Backend + name: backend-ip-tls + namespace: default name: httproute/envoy-gateway/httproute-btls/rule/0/backend/1 protocol: HTTP tls: @@ -355,6 +364,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: default + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls2/rule/0/backend/0 protocol: HTTP tls: @@ -368,6 +382,10 @@ xdsIR: endpoints: - host: 2.2.2.2 port: 3443 + metadata: + kind: Backend + name: backend-ip-tls + namespace: default name: httproute/envoy-gateway/httproute-btls2/rule/0/backend/1 protocol: HTTP tls: diff --git a/internal/gatewayapi/testdata/backendtlspolicy-default-ns.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-default-ns.out.yaml index e360cccbbb..7ef9ba6b16 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-default-ns.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-default-ns.out.yaml @@ -250,6 +250,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: default + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls/rule/0/backend/0 protocol: HTTP tls: @@ -263,6 +268,10 @@ xdsIR: endpoints: - host: 2.2.2.2 port: 3443 + metadata: + kind: Backend + name: backend-ip-tls-1 + namespace: default name: httproute/envoy-gateway/httproute-btls/rule/0/backend/1 protocol: HTTP tls: @@ -276,6 +285,10 @@ xdsIR: endpoints: - host: 3.3.3.3 port: 3443 + metadata: + kind: Backend + name: backend-ip-tls-2 + namespace: default name: httproute/envoy-gateway/httproute-btls/rule/0/backend/2 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtlspolicy-multiple-targets.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-multiple-targets.out.yaml index 0cd2d81d70..1bf37f4efa 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-multiple-targets.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-multiple-targets.out.yaml @@ -197,6 +197,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls-1/rule/0/backend/0 protocol: HTTP tls: @@ -224,6 +229,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 8081 + metadata: + kind: Service + name: http-backend + namespace: envoy-gateway + sectionName: "8081" name: httproute/envoy-gateway/httproute-btls-2/rule/0/backend/0 protocol: HTTP tls: diff --git a/internal/gatewayapi/testdata/backendtlspolicy-serviceimport-target.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-serviceimport-target.out.yaml index 94121f5794..f75fc3dd5c 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-serviceimport-target.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-serviceimport-target.out.yaml @@ -163,6 +163,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 8080 + metadata: + kind: ServiceImport + name: service-import-1 + namespace: default + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls/rule/0/backend/0 protocol: HTTP2 tls: @@ -176,6 +181,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 9000 + metadata: + kind: ServiceImport + name: service-import-1 + namespace: default + sectionName: "9000" name: httproute/envoy-gateway/httproute-btls/rule/0/backend/1 protocol: HTTP tls: diff --git a/internal/gatewayapi/testdata/backendtlspolicy-system-truststore.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-system-truststore.out.yaml index 6c300999c8..7bfafbd482 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-system-truststore.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-system-truststore.out.yaml @@ -152,6 +152,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: default + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls/rule/0/backend/0 protocol: HTTP tls: diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-out-of-range-error.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-out-of-range-error.out.yaml index 8906c3c116..ddb20fbddf 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-out-of-range-error.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-out-of-range-error.out.yaml @@ -273,6 +273,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -322,6 +326,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-with-invalid-value.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-with-invalid-value.out.yaml index 55f4c88547..6335a831d8 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-with-invalid-value.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-with-invalid-value.out.yaml @@ -273,6 +273,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -322,6 +326,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit.out.yaml index b3d716c811..d4a12044e9 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit.out.yaml @@ -273,6 +273,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -322,6 +326,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-compression.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-compression.out.yaml index df89978b39..0166898dde 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-compression.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-compression.out.yaml @@ -153,6 +153,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-dns-lookup-family.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-dns-lookup-family.out.yaml index 0db7d5ab16..27c2a111c0 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-dns-lookup-family.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-dns-lookup-family.out.yaml @@ -352,7 +352,12 @@ xdsIR: - destination: name: accesslog_otel_0_1 settings: - - name: accesslog_otel_0_1/backend/-1 + - metadata: + kind: Service + name: logs + namespace: default + sectionName: "8080" + name: accesslog_otel_0_1/backend/-1 protocol: TCP resources: k8s.cluster.name: cluster-1 @@ -389,6 +394,10 @@ xdsIR: endpoints: - host: grpc-infra-backend.gateway-conformance-infra.svc.cluster.local port: 8080 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -402,6 +411,10 @@ xdsIR: endpoints: - host: backend-v2.gateway-conformance-infra.svc.cluster.local port: 9090 + metadata: + kind: Backend + name: backend-fqdn2 + namespace: default name: envoyextensionpolicy/default/policy-for-httproute/extproc/0/backend/0 protocol: GRPC weight: 1 @@ -435,6 +448,10 @@ xdsIR: endpoints: - host: backend-v3.gateway-conformance-infra.svc.cluster.local port: 8080 + metadata: + kind: Backend + name: backend-fqdn3 + namespace: default name: securitypolicy/envoy-gateway/policy-for-gateway-1/extauth/0/backend/0 protocol: HTTP weight: 1 @@ -456,6 +473,10 @@ xdsIR: endpoints: - host: grpc-infra-backend.gateway-conformance-infra.svc.cluster.local port: 8080 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -480,6 +501,10 @@ xdsIR: endpoints: - host: backend-v3.gateway-conformance-infra.svc.cluster.local port: 8080 + metadata: + kind: Backend + name: backend-fqdn3 + namespace: default name: securitypolicy/envoy-gateway/policy-for-gateway-1/extauth/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-spdy.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-spdy.out.yaml index 1903430df1..3ff06856b4 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-spdy.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-spdy.out.yaml @@ -152,6 +152,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-websocket.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-websocket.out.yaml index 5e43ac6652..b3bdb0bdc3 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-websocket.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-websocket.out.yaml @@ -153,6 +153,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-override-replace.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-override-replace.out.yaml index ad527fceec..a4ca3be197 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-override-replace.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-override-replace.out.yaml @@ -295,6 +295,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -320,6 +324,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -350,6 +358,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-request-buffer.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-request-buffer.out.yaml index 4b0955aab6..34f12e20b8 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-request-buffer.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-request-buffer.out.yaml @@ -273,6 +273,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -322,6 +326,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-status-conditions.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-status-conditions.out.yaml index daf9e5d208..9d300a13f7 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-status-conditions.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-status-conditions.out.yaml @@ -570,6 +570,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -617,6 +622,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: grpcroute/envoy-gateway/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-status-fault-injection.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-status-fault-injection.out.yaml index 41e2c5a0cc..ced724a1f1 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-status-fault-injection.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-status-fault-injection.out.yaml @@ -353,6 +353,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -403,6 +407,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -429,6 +437,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-tracing.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-tracing.out.yaml index c1996019f4..16d1f7db41 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-tracing.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-tracing.out.yaml @@ -170,6 +170,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-use-client-protocol.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-use-client-protocol.out.yaml index d3cb4bdd73..5db0af0c2f 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-use-client-protocol.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-use-client-protocol.out.yaml @@ -150,6 +150,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers-error.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers-error.out.yaml index bb69134d19..badef02a13 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers-error.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers-error.out.yaml @@ -335,6 +335,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -379,6 +383,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -402,6 +410,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers.out.yaml index 919e9fdb8e..6f457f61dc 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers.out.yaml @@ -277,6 +277,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -326,6 +330,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-dns-settings.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-dns-settings.out.yaml index d42ca5614c..9dae0ed088 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-dns-settings.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-dns-settings.out.yaml @@ -342,6 +342,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -392,6 +396,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -417,6 +425,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-healthcheck.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-healthcheck.out.yaml index 96dff6b971..e1cdf6aeea 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-healthcheck.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-healthcheck.out.yaml @@ -702,6 +702,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -743,6 +747,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-3/rule/0/backend/0 protocol: GRPC weight: 1 @@ -769,6 +777,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-2/rule/0/backend/0 protocol: GRPC weight: 1 @@ -819,6 +831,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -860,6 +876,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -901,6 +921,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-4/rule/0/backend/0 protocol: HTTP weight: 1 @@ -937,6 +961,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-http2.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-http2.out.yaml index 9b75868372..3d00e68d46 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-http2.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-http2.out.yaml @@ -275,6 +275,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -323,6 +327,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-httproute-timeout.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-httproute-timeout.out.yaml index de18621593..34ac177ca9 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-httproute-timeout.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-httproute-timeout.out.yaml @@ -231,6 +231,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -255,6 +259,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer-invalid-consistent-hash-table-size.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer-invalid-consistent-hash-table-size.out.yaml index e6ba0570d9..e641eec44b 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer-invalid-consistent-hash-table-size.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer-invalid-consistent-hash-table-size.out.yaml @@ -224,6 +224,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -247,6 +251,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer.out.yaml index 3a5678c79b..8d94b62e33 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer.out.yaml @@ -445,6 +445,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -490,6 +494,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -516,6 +524,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -542,6 +554,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-default-route-level-limit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-default-route-level-limit.out.yaml index fffa3d8ef9..f0d21eac89 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-default-route-level-limit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-default-route-level-limit.out.yaml @@ -173,6 +173,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-distinct-match-type.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-distinct-match-type.out.yaml index bb901670be..0ade1d738b 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-distinct-match-type.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-distinct-match-type.out.yaml @@ -173,6 +173,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-limit-unit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-limit-unit.out.yaml index 44d64303d6..455c054435 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-limit-unit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-limit-unit.out.yaml @@ -177,6 +177,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-multiple-route-level-limits.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-multiple-route-level-limits.out.yaml index c660523541..bbaf6685bb 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-multiple-route-level-limits.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-multiple-route-level-limits.out.yaml @@ -180,6 +180,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit.out.yaml index 7509c84446..9063b95e52 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit.out.yaml @@ -176,6 +176,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-panic-threshold.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-panic-threshold.out.yaml index cb30f5b23c..0b07fbdb7d 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-panic-threshold.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-panic-threshold.out.yaml @@ -339,6 +339,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -388,6 +392,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -412,6 +420,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-proxyprotocol.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-proxyprotocol.out.yaml index 45e87169d4..95ea57b392 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-proxyprotocol.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-proxyprotocol.out.yaml @@ -269,6 +269,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -314,6 +318,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit-invalid-regex.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit-invalid-regex.out.yaml index 1c77167996..f34aec124e 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit-invalid-regex.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit-invalid-regex.out.yaml @@ -159,6 +159,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit.out.yaml index 435096820c..b2ac3ca69b 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit.out.yaml @@ -301,6 +301,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -361,6 +365,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override-invalid-valueref.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override-invalid-valueref.out.yaml index a2790dc7ef..5526e72cb6 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override-invalid-valueref.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override-invalid-valueref.out.yaml @@ -318,6 +318,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -362,6 +366,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override.out.yaml index 15c062a97b..a9c4858ff3 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override.out.yaml @@ -388,6 +388,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -454,6 +458,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -499,6 +507,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-retries.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-retries.out.yaml index 5785fcf001..d2a4f079c2 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-retries.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-retries.out.yaml @@ -425,6 +425,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -477,6 +481,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -500,6 +508,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -523,6 +535,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-same-prefix-httproutes.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-same-prefix-httproutes.out.yaml index d2ae6de9a4..5a84d9450d 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-same-prefix-httproutes.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-same-prefix-httproutes.out.yaml @@ -192,6 +192,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -218,6 +222,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-shared-ratelimit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-shared-ratelimit.out.yaml index 90a365156f..9f593c4709 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-shared-ratelimit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-shared-ratelimit.out.yaml @@ -302,6 +302,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -363,6 +367,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-gateway.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-gateway.out.yaml index 71273aedf6..db8bd04c04 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-gateway.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-gateway.out.yaml @@ -256,6 +256,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8163 + metadata: + name: service-1 + namespace: default + sectionName: "8163" name: tcproute/default/tls-app-1/rule/-1/backend/0 protocol: TCP weight: 1 @@ -310,6 +314,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-1 + namespace: default + sectionName: "8162" name: udproute/default/udp-app-1/rule/-1/backend/0 protocol: UDP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-route.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-route.out.yaml index ae11354d93..7641712e50 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-route.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-route.out.yaml @@ -329,6 +329,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8163 + metadata: + name: service-1 + namespace: default + sectionName: "8163" name: tcproute/default/tcp-app-1/rule/-1/backend/0 protocol: TCP weight: 1 @@ -383,6 +387,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-1 + namespace: default + sectionName: "8162" name: udproute/default/udp-app-1/rule/-1/backend/0 protocol: UDP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcpkeepalive.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcpkeepalive.out.yaml index 7c9c2587eb..f07411bb39 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcpkeepalive.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcpkeepalive.out.yaml @@ -273,6 +273,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -320,6 +324,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-error.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-error.out.yaml index fdf30c26ad..47aa4ad818 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-error.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-error.out.yaml @@ -150,6 +150,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-targetrefs.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-targetrefs.out.yaml index d8a27d8b07..6bee43c43c 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-targetrefs.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-targetrefs.out.yaml @@ -261,6 +261,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: grpcroute/envoy-gateway/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -310,6 +315,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout.out.yaml index f567963c6a..d23a39036d 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout.out.yaml @@ -281,6 +281,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -331,6 +335,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/clienttrafficpolicy-for-tcp-listeners.out.yaml b/internal/gatewayapi/testdata/clienttrafficpolicy-for-tcp-listeners.out.yaml index b597b88dc3..0032f5ee2f 100644 --- a/internal/gatewayapi/testdata/clienttrafficpolicy-for-tcp-listeners.out.yaml +++ b/internal/gatewayapi/testdata/clienttrafficpolicy-for-tcp-listeners.out.yaml @@ -207,6 +207,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 1 @@ -270,6 +274,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 1 diff --git a/internal/gatewayapi/testdata/clienttrafficpolicy-http10.out.yaml b/internal/gatewayapi/testdata/clienttrafficpolicy-http10.out.yaml index e6223d109f..85135a766b 100644 --- a/internal/gatewayapi/testdata/clienttrafficpolicy-http10.out.yaml +++ b/internal/gatewayapi/testdata/clienttrafficpolicy-http10.out.yaml @@ -528,6 +528,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -565,6 +570,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -588,6 +598,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/clienttrafficpolicy-http3.out.yaml b/internal/gatewayapi/testdata/clienttrafficpolicy-http3.out.yaml index 0ae4c66303..5e185222aa 100644 --- a/internal/gatewayapi/testdata/clienttrafficpolicy-http3.out.yaml +++ b/internal/gatewayapi/testdata/clienttrafficpolicy-http3.out.yaml @@ -156,6 +156,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/clienttrafficpolicy-invalid-settings.out.yaml b/internal/gatewayapi/testdata/clienttrafficpolicy-invalid-settings.out.yaml index 5e69fda453..21f482ae79 100644 --- a/internal/gatewayapi/testdata/clienttrafficpolicy-invalid-settings.out.yaml +++ b/internal/gatewayapi/testdata/clienttrafficpolicy-invalid-settings.out.yaml @@ -413,6 +413,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -432,6 +436,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -478,6 +486,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -516,6 +528,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: tcproute/default/tcp-route-1/rule/-1/backend/0 protocol: TCP weight: 1 diff --git a/internal/gatewayapi/testdata/conflicting-policies.out.yaml b/internal/gatewayapi/testdata/conflicting-policies.out.yaml index 7c6ab42353..98c7dbb315 100644 --- a/internal/gatewayapi/testdata/conflicting-policies.out.yaml +++ b/internal/gatewayapi/testdata/conflicting-policies.out.yaml @@ -288,6 +288,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/bdkzlmibsivuiqav/rule/0/backend/0 protocol: HTTP weight: 1 @@ -324,6 +328,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/mfqjpuycbgjrtdww/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/custom-filter-order.out.yaml b/internal/gatewayapi/testdata/custom-filter-order.out.yaml index 317ffc3878..bd6e1fadc3 100644 --- a/internal/gatewayapi/testdata/custom-filter-order.out.yaml +++ b/internal/gatewayapi/testdata/custom-filter-order.out.yaml @@ -248,6 +248,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-override-replace.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-override-replace.out.yaml index c075f0d3a3..901bc11bd7 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-override-replace.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-override-replace.out.yaml @@ -291,6 +291,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -300,7 +304,12 @@ xdsIR: destination: name: envoyextensionpolicy/default/policy-for-route-1/extproc/0 settings: - - name: envoyextensionpolicy/default/policy-for-route-1/extproc/0/backend/0 + - metadata: + kind: Service + name: grpc-backend-2 + namespace: default + sectionName: "8000" + name: envoyextensionpolicy/default/policy-for-route-1/extproc/0/backend/0 protocol: GRPC weight: 1 name: envoyextensionpolicy/default/policy-for-route-1/extproc/0 @@ -322,6 +331,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -331,7 +344,12 @@ xdsIR: destination: name: envoyextensionpolicy/envoy-gateway/policy-for-gateway-1/extproc/0 settings: - - name: envoyextensionpolicy/envoy-gateway/policy-for-gateway-1/extproc/0/backend/0 + - metadata: + kind: Service + name: grpc-backend + namespace: envoy-gateway + sectionName: "9000" + name: envoyextensionpolicy/envoy-gateway/policy-for-gateway-1/extproc/0/backend/0 protocol: GRPC weight: 1 name: envoyextensionpolicy/envoy-gateway/policy-for-gateway-1/extproc/0 @@ -353,6 +371,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-status-conditions.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-status-conditions.out.yaml index eaf37b6219..7e2a3a52c9 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-status-conditions.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-status-conditions.out.yaml @@ -570,6 +570,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -617,6 +622,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: grpcroute/envoy-gateway/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-matching-port.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-matching-port.out.yaml index 1176a7a1c5..ba3d58c682 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-matching-port.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-matching-port.out.yaml @@ -153,6 +153,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-port.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-port.out.yaml index 83b9189c78..e4a52839c9 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-port.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-port.out.yaml @@ -153,6 +153,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-reference-grant.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-reference-grant.out.yaml index 4caeefaa7b..968c6b6857 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-reference-grant.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-reference-grant.out.yaml @@ -155,6 +155,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-service.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-service.out.yaml index 37303c3bcd..c8b7dd344d 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-service.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-service.out.yaml @@ -154,6 +154,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-backendtlspolicy.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-backendtlspolicy.out.yaml index a5523f6cde..ef1439dc91 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-backendtlspolicy.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-backendtlspolicy.out.yaml @@ -314,6 +314,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -327,6 +331,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 9000 + metadata: + kind: Service + name: grpc-backend-2 + namespace: default + sectionName: "9000" name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/0 protocol: GRPC tls: @@ -357,6 +366,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -368,6 +381,11 @@ xdsIR: name: envoyextensionpolicy/default/policy-for-gateway/extproc/0 settings: - addressType: IP + metadata: + kind: Service + name: grpc-backend + namespace: envoy-gateway + sectionName: "8000" name: envoyextensionpolicy/default/policy-for-gateway/extproc/0/backend/0 protocol: GRPC tls: diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-mixed-backendrefs.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-mixed-backendrefs.out.yaml index 4651ffd492..f4b9f09be2 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-mixed-backendrefs.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-mixed-backendrefs.out.yaml @@ -197,6 +197,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-multiple-backendrefs.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-multiple-backendrefs.out.yaml index 99f04c1c5d..e6402a5665 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-multiple-backendrefs.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-multiple-backendrefs.out.yaml @@ -303,6 +303,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -313,6 +317,11 @@ xdsIR: name: envoyextensionpolicy/default/policy-for-http-route/extproc/0 settings: - addressType: IP + metadata: + kind: Service + name: grpc-backend + namespace: envoy-gateway + sectionName: "8000" name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/0 protocol: GRPC tls: @@ -326,6 +335,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 9000 + metadata: + kind: Service + name: grpc-backend-2 + namespace: default + sectionName: "9000" name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/1 protocol: GRPC weight: 1 @@ -333,6 +347,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/2 protocol: GRPC weight: 1 @@ -340,6 +358,10 @@ xdsIR: endpoints: - host: 2.2.2.2 port: 3443 + metadata: + kind: Backend + name: backend-ip-tls + namespace: envoy-gateway name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/3 protocol: GRPC tls: @@ -368,6 +390,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-traffic-features.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-traffic-features.out.yaml index b224076141..21f5454676 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-traffic-features.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-traffic-features.out.yaml @@ -332,6 +332,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -342,6 +346,11 @@ xdsIR: name: envoyextensionpolicy/default/policy-for-http-route/extproc/0 settings: - addressType: IP + metadata: + kind: Service + name: grpc-backend + namespace: envoy-gateway + sectionName: "8000" name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/0 protocol: GRPC tls: @@ -355,6 +364,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 9000 + metadata: + kind: Service + name: grpc-backend-2 + namespace: default + sectionName: "9000" name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/1 protocol: GRPC weight: 1 @@ -362,6 +376,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/2 protocol: GRPC weight: 1 @@ -369,6 +387,10 @@ xdsIR: endpoints: - host: 2.2.2.2 port: 3443 + metadata: + kind: Backend + name: backend-ip-tls + namespace: envoy-gateway name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/3 protocol: GRPC tls: @@ -424,6 +446,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-invalid-lua.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-invalid-lua.out.yaml index 805fc9f8e3..f517a5598a 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-invalid-lua.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-invalid-lua.out.yaml @@ -230,6 +230,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -258,6 +262,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua-configmap.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua-configmap.out.yaml index 69c4a14dd6..17f2fc1581 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua-configmap.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua-configmap.out.yaml @@ -411,6 +411,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -441,6 +445,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-4/rule/0/backend/0 protocol: HTTP weight: 1 @@ -471,6 +479,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-5/rule/0/backend/0 protocol: HTTP weight: 1 @@ -501,6 +513,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -529,6 +545,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua.out.yaml index 02076b8159..18ad427ff7 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua.out.yaml @@ -227,6 +227,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -253,6 +257,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-env-vars.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-env-vars.out.yaml index ad85a49a8b..ecec08a733 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-env-vars.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-env-vars.out.yaml @@ -262,6 +262,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -296,6 +300,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-targetrefs.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-targetrefs.out.yaml index 2edda493c9..3707566d33 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-targetrefs.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-targetrefs.out.yaml @@ -230,6 +230,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -275,6 +280,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm.out.yaml index d893d5cb33..152fb211cf 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm.out.yaml @@ -264,6 +264,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -300,6 +304,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-als-json.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-als-json.out.yaml index 0d9ed00928..fe85d2fb15 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-als-json.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-als-json.out.yaml @@ -159,6 +159,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_0_0/backend/-1 protocol: GRPC http: @@ -180,6 +185,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_0_1/backend/-1 protocol: GRPC name: envoy-gateway-system/test diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-backend.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-backend.out.yaml index 126b0e1f3d..78fd53529f 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-backend.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-backend.out.yaml @@ -144,6 +144,10 @@ xdsIR: endpoints: - host: 8.7.6.5 port: 4317 + metadata: + name: otel-collector + namespace: monitoring + sectionName: "4317" name: accesslog_otel_0_1/backend/-1 protocol: GRPC resources: diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-cel.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-cel.out.yaml index 5860d22d37..9d65f98bf7 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-cel.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-cel.out.yaml @@ -152,6 +152,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_1_0/backend/-1 protocol: GRPC name: envoy-gateway-system/test diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-types.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-types.out.yaml index ee39fdc588..7d9194e7e2 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-types.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-types.out.yaml @@ -278,6 +278,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_2_1/backend/-1 protocol: GRPC http: @@ -299,6 +304,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_2_2/backend/-1 protocol: GRPC logType: Route @@ -313,6 +323,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_3_1/backend/-1 protocol: GRPC http: @@ -334,6 +349,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_3_2/backend/-1 protocol: GRPC logType: Listener @@ -348,6 +368,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_4_1/backend/-1 protocol: GRPC http: @@ -368,6 +393,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_4_2/backend/-1 protocol: GRPC name: envoy-gateway-system/test @@ -459,6 +489,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-with-traffic.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-with-traffic.out.yaml index 6a4fc3fe26..417f6cf891 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-with-traffic.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-with-traffic.out.yaml @@ -218,6 +218,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_0_1/backend/-1 protocol: GRPC http: @@ -263,6 +268,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_0_2/backend/-1 protocol: GRPC name: envoy-gateway-system/test diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-without-format.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-without-format.out.yaml index eb2f5e64ec..00681aa413 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-without-format.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-without-format.out.yaml @@ -160,6 +160,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_0_1/backend/-1 protocol: GRPC http: @@ -178,6 +183,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_0_2/backend/-1 protocol: GRPC name: envoy-gateway-system/test diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog.out.yaml index e249d572af..41cc154de6 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog.out.yaml @@ -164,6 +164,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_0_1/backend/-1 protocol: GRPC http: @@ -184,6 +189,11 @@ xdsIR: endpoints: - host: 10.240.0.10 port: 9090 + metadata: + kind: Service + name: envoy-als + namespace: monitoring + sectionName: "9000" name: accesslog_als_0_2/backend/-1 protocol: GRPC name: envoy-gateway-system/test diff --git a/internal/gatewayapi/testdata/envoyproxy-endpoint-routing-for-gateway.out.yaml b/internal/gatewayapi/testdata/envoyproxy-endpoint-routing-for-gateway.out.yaml index 8836ea1ddd..60595a20c3 100644 --- a/internal/gatewayapi/testdata/envoyproxy-endpoint-routing-for-gateway.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-endpoint-routing-for-gateway.out.yaml @@ -135,6 +135,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyproxy-endpoint-routing.out.yaml b/internal/gatewayapi/testdata/envoyproxy-endpoint-routing.out.yaml index 4c9b2535e1..a79d010bd4 100644 --- a/internal/gatewayapi/testdata/envoyproxy-endpoint-routing.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-endpoint-routing.out.yaml @@ -130,6 +130,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyproxy-preserve-route-order.out.yaml b/internal/gatewayapi/testdata/envoyproxy-preserve-route-order.out.yaml index b3e2dc8fc2..8959f6593a 100644 --- a/internal/gatewayapi/testdata/envoyproxy-preserve-route-order.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-preserve-route-order.out.yaml @@ -181,6 +181,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -202,6 +206,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/0 protocol: HTTP weight: 1 @@ -223,6 +231,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/2/backend/0 protocol: HTTP weight: 1 @@ -244,6 +256,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/3/backend/0 protocol: HTTP weight: 1 @@ -265,6 +281,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/4/backend/0 protocol: HTTP weight: 1 @@ -286,6 +306,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/5/backend/0 protocol: HTTP weight: 1 @@ -307,6 +331,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/6/backend/0 protocol: HTTP weight: 1 @@ -328,6 +356,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/7/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyproxy-priority-backend.out.yaml b/internal/gatewayapi/testdata/envoyproxy-priority-backend.out.yaml index eec00bdc4c..f4e966ef90 100644 --- a/internal/gatewayapi/testdata/envoyproxy-priority-backend.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-priority-backend.out.yaml @@ -306,6 +306,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -316,6 +320,11 @@ xdsIR: name: envoyextensionpolicy/default/policy-for-http-route/extproc/0 settings: - addressType: IP + metadata: + kind: Service + name: grpc-backend + namespace: envoy-gateway + sectionName: "8000" name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/0 protocol: GRPC tls: @@ -329,6 +338,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 9000 + metadata: + kind: Service + name: grpc-backend-2 + namespace: default + sectionName: "9000" name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/1 priority: 1 protocol: GRPC @@ -337,6 +351,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/2 priority: 1 protocol: GRPC @@ -345,6 +363,10 @@ xdsIR: endpoints: - host: 2.2.2.2 port: 3443 + metadata: + kind: Backend + name: backend-ip-tls + namespace: envoy-gateway name: envoyextensionpolicy/default/policy-for-http-route/extproc/0/backend/3 priority: 1 protocol: GRPC @@ -374,6 +396,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyproxy-service-routing-for-gateway.out.yaml b/internal/gatewayapi/testdata/envoyproxy-service-routing-for-gateway.out.yaml index ddde785b6d..b5c24c2734 100644 --- a/internal/gatewayapi/testdata/envoyproxy-service-routing-for-gateway.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-service-routing-for-gateway.out.yaml @@ -134,6 +134,10 @@ xdsIR: - endpoints: - host: 1.1.1.1 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyproxy-service-routing.out.yaml b/internal/gatewayapi/testdata/envoyproxy-service-routing.out.yaml index dd16b8bfe3..e7ad2c0690 100644 --- a/internal/gatewayapi/testdata/envoyproxy-service-routing.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-service-routing.out.yaml @@ -129,6 +129,10 @@ xdsIR: - endpoints: - host: 1.1.1.1 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/envoyproxy-tls-settings.out.yaml b/internal/gatewayapi/testdata/envoyproxy-tls-settings.out.yaml index b36e770ce0..0d1ad632d0 100644 --- a/internal/gatewayapi/testdata/envoyproxy-tls-settings.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-tls-settings.out.yaml @@ -248,6 +248,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 443 + metadata: + kind: Service + name: https-backend + namespace: default + sectionName: "443" name: httproute/envoy-gateway/httproute-tls/rule/0/backend/0 protocol: HTTP tls: @@ -304,6 +309,11 @@ xdsIR: endpoints: - host: 10.244.0.11 port: 443 + metadata: + kind: Service + name: https-backend + namespace: default + sectionName: "443" name: tcproute/envoy-gateway/envoy-gateway/rule/-1/backend/0 protocol: TCP tls: diff --git a/internal/gatewayapi/testdata/envoyproxy-tracing-backend.out.yaml b/internal/gatewayapi/testdata/envoyproxy-tracing-backend.out.yaml index c0873c5219..9be00dff13 100644 --- a/internal/gatewayapi/testdata/envoyproxy-tracing-backend.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-tracing-backend.out.yaml @@ -183,6 +183,10 @@ xdsIR: endpoints: - host: 8.7.6.5 port: 4317 + metadata: + name: otel-collector + namespace: monitoring + sectionName: "4317" name: tracing/backend/-1 protocol: GRPC provider: diff --git a/internal/gatewayapi/testdata/extensions/httproute-with-valid-extension-filter.out.yaml b/internal/gatewayapi/testdata/extensions/httproute-with-valid-extension-filter.out.yaml index bbb5dc912d..aab02dbf31 100644 --- a/internal/gatewayapi/testdata/extensions/httproute-with-valid-extension-filter.out.yaml +++ b/internal/gatewayapi/testdata/extensions/httproute-with-valid-extension-filter.out.yaml @@ -130,6 +130,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-allows-same-namespace-with-allowed-httproute.out.yaml b/internal/gatewayapi/testdata/gateway-allows-same-namespace-with-allowed-httproute.out.yaml index b73400dfd7..f4051f6613 100644 --- a/internal/gatewayapi/testdata/gateway-allows-same-namespace-with-allowed-httproute.out.yaml +++ b/internal/gatewayapi/testdata/gateway-allows-same-namespace-with-allowed-httproute.out.yaml @@ -119,6 +119,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-http-listener-with-hostname-intersection.out.yaml b/internal/gatewayapi/testdata/gateway-http-listener-with-hostname-intersection.out.yaml index b1cb1d239a..069e9d9f66 100644 --- a/internal/gatewayapi/testdata/gateway-http-listener-with-hostname-intersection.out.yaml +++ b/internal/gatewayapi/testdata/gateway-http-listener-with-hostname-intersection.out.yaml @@ -195,6 +195,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -231,6 +236,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-infrastructure.out.yaml b/internal/gatewayapi/testdata/gateway-infrastructure.out.yaml index a5e8083413..cc96a88e36 100644 --- a/internal/gatewayapi/testdata/gateway-infrastructure.out.yaml +++ b/internal/gatewayapi/testdata/gateway-infrastructure.out.yaml @@ -137,6 +137,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-infrastructure-parametersref.out.yaml b/internal/gatewayapi/testdata/gateway-with-infrastructure-parametersref.out.yaml index 7baf8b12da..869beda275 100644 --- a/internal/gatewayapi/testdata/gateway-with-infrastructure-parametersref.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-infrastructure-parametersref.out.yaml @@ -146,6 +146,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-does-not-exist.out.yaml b/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-does-not-exist.out.yaml index b8761dcc50..1d06e92b4b 100644 --- a/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-does-not-exist.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-does-not-exist.out.yaml @@ -129,6 +129,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-fallback.out.yaml b/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-fallback.out.yaml index 65d151a0d4..877e9e8711 100644 --- a/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-fallback.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-fallback.out.yaml @@ -146,6 +146,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-multiple-backends.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-multiple-backends.out.yaml index 34c400d877..a01c537f3e 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-multiple-backends.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-multiple-backends.out.yaml @@ -112,6 +112,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 50 @@ -119,6 +123,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: tcproute/default/tcproute-1/rule/-1/backend/1 protocol: TCP weight: 50 diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-tls-secret-in-other-namespace-allowed-by-refgrant.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-tls-secret-in-other-namespace-allowed-by-refgrant.out.yaml index 798f183396..2f50b88ce3 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-tls-secret-in-other-namespace-allowed-by-refgrant.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-tls-secret-in-other-namespace-allowed-by-refgrant.out.yaml @@ -126,6 +126,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-tls-terminate-and-passthrough.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-tls-terminate-and-passthrough.out.yaml index 04cb216f66..c38bbfbaca 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-tls-terminate-and-passthrough.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-tls-terminate-and-passthrough.out.yaml @@ -195,6 +195,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -232,6 +236,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: tlsroute/default/tlsroute-1/rule/-1/backend/0 protocol: HTTPS weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-udproute-with-multiple-backends.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-udproute-with-multiple-backends.out.yaml index cab695aa8c..b7720d14aa 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-udproute-with-multiple-backends.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-udproute-with-multiple-backends.out.yaml @@ -112,6 +112,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-1 + namespace: default + sectionName: "8162" name: udproute/default/udproute-1/rule/-1/backend/0 protocol: UDP weight: 50 @@ -119,6 +123,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-2 + namespace: default + sectionName: "8162" name: udproute/default/udproute-1/rule/-1/backend/1 protocol: UDP weight: 50 diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration-with-same-algorithm-different-fqdn.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration-with-same-algorithm-different-fqdn.out.yaml index d1900d9137..b46bca4f16 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration-with-same-algorithm-different-fqdn.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration-with-same-algorithm-different-fqdn.out.yaml @@ -128,6 +128,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration.out.yaml index ff1720bdce..288642010f 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration.out.yaml @@ -128,6 +128,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-tls-configuration.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-tls-configuration.out.yaml index 6ef623cd42..150bf1a76a 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-tls-configuration.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-tls-configuration.out.yaml @@ -125,6 +125,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-preexisting-status-condition.out.yaml b/internal/gatewayapi/testdata/gateway-with-preexisting-status-condition.out.yaml index 919cc00bc9..854c07beab 100644 --- a/internal/gatewayapi/testdata/gateway-with-preexisting-status-condition.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-preexisting-status-condition.out.yaml @@ -119,6 +119,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-tcproutes.out.yaml b/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-tcproutes.out.yaml index ec840b87bd..b99b366476 100644 --- a/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-tcproutes.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-tcproutes.out.yaml @@ -139,6 +139,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8163 + metadata: + name: service-1 + namespace: default + sectionName: "8163" name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-udproutes.out.yaml b/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-udproutes.out.yaml index 7b724e53f0..3b39cbd7f7 100644 --- a/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-udproutes.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-udproutes.out.yaml @@ -139,6 +139,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-1 + namespace: default + sectionName: "8162" name: udproute/default/udproute-1/rule/-1/backend/0 protocol: UDP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-stale-status-condition.out.yaml b/internal/gatewayapi/testdata/gateway-with-stale-status-condition.out.yaml index 0b97aab210..c5fd3c0efb 100644 --- a/internal/gatewayapi/testdata/gateway-with-stale-status-condition.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-stale-status-condition.out.yaml @@ -125,6 +125,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-tcp-or-tls-port.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-tcp-or-tls-port.out.yaml index 0611d2d3af..460266e483 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-tcp-or-tls-port.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-tcp-or-tls-port.out.yaml @@ -132,6 +132,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8163 + metadata: + name: service-1 + namespace: default + sectionName: "8163" name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-udp-port.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-udp-port.out.yaml index 0d46f5303b..6975f23eb1 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-udp-port.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-udp-port.out.yaml @@ -135,6 +135,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-1 + namespace: default + sectionName: "8162" name: udproute/default/udproute-1/rule/-1/backend/0 protocol: UDP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-multiple-httproutes.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-multiple-httproutes.out.yaml index 659f69dcd0..e119db5e6e 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-multiple-httproutes.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-multiple-httproutes.out.yaml @@ -191,6 +191,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -212,6 +216,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -248,6 +256,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -269,6 +281,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-tcp-protocol.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-tcp-protocol.out.yaml index d7df9bc6b3..7071bf29f6 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-tcp-protocol.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-tcp-protocol.out.yaml @@ -186,6 +186,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -217,6 +221,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8163 + metadata: + name: service-1 + namespace: default + sectionName: "8163" name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-udp-protocol.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-udp-protocol.out.yaml index a1ad394249..4aafb6fde5 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-udp-protocol.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-udp-protocol.out.yaml @@ -186,6 +186,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -217,6 +221,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-1 + namespace: default + sectionName: "8162" name: udproute/default/udproute-1/rule/-1/backend/0 protocol: UDP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-with-sectionname.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-with-sectionname.out.yaml index 2653019239..11bf9a711d 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-with-sectionname.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-with-sectionname.out.yaml @@ -177,6 +177,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8163 + metadata: + name: service-1 + namespace: default + sectionName: "8163" name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 1 @@ -192,6 +196,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8163 + metadata: + name: service-2 + namespace: default + sectionName: "8163" name: tcproute/default/tcproute-2/rule/-1/backend/0 protocol: TCP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-without-sectionname.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-without-sectionname.out.yaml index 5ddb004b1f..6125f19fbb 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-without-sectionname.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-without-sectionname.out.yaml @@ -173,6 +173,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8163 + metadata: + name: service-1 + namespace: default + sectionName: "8163" name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 1 @@ -188,6 +192,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8163 + metadata: + name: service-1 + namespace: default + sectionName: "8163" name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-with-sectionname.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-with-sectionname.out.yaml index 643b2d8a10..b9644e2cb3 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-with-sectionname.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-with-sectionname.out.yaml @@ -177,6 +177,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-1 + namespace: default + sectionName: "8162" name: udproute/default/udproute-1/rule/-1/backend/0 protocol: UDP weight: 1 @@ -192,6 +196,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-2 + namespace: default + sectionName: "8162" name: udproute/default/udproute-2/rule/-1/backend/0 protocol: UDP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-without-sectionname.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-without-sectionname.out.yaml index 28db6146fd..be4b988650 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-without-sectionname.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-without-sectionname.out.yaml @@ -173,6 +173,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-1 + namespace: default + sectionName: "8162" name: udproute/default/udproute-1/rule/-1/backend/0 protocol: UDP weight: 1 @@ -188,6 +192,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-1 + namespace: default + sectionName: "8162" name: udproute/default/udproute-1/rule/-1/backend/0 protocol: UDP weight: 1 diff --git a/internal/gatewayapi/testdata/grpcroute-with-backend.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-backend.out.yaml index a789d8adc4..acec62d05d 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-backend.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-backend.out.yaml @@ -146,6 +146,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -168,6 +172,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 diff --git a/internal/gatewayapi/testdata/grpcroute-with-header-match.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-header-match.out.yaml index d57fcd4718..bfc3b01f93 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-header-match.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-header-match.out.yaml @@ -123,6 +123,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 diff --git a/internal/gatewayapi/testdata/grpcroute-with-method-and-service-match.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-method-and-service-match.out.yaml index 3259d42b03..e744035e52 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-method-and-service-match.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-method-and-service-match.out.yaml @@ -127,6 +127,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -148,6 +152,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 diff --git a/internal/gatewayapi/testdata/grpcroute-with-method-match.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-method-match.out.yaml index 9728222660..cd5b0a8aaf 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-method-match.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-method-match.out.yaml @@ -125,6 +125,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -146,6 +150,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 diff --git a/internal/gatewayapi/testdata/grpcroute-with-request-header-modifier.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-request-header-modifier.out.yaml index 638a164240..cb93852764 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-request-header-modifier.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-request-header-modifier.out.yaml @@ -139,6 +139,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 diff --git a/internal/gatewayapi/testdata/grpcroute-with-service-match.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-service-match.out.yaml index c6b0f3779f..24e8c81bdc 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-service-match.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-service-match.out.yaml @@ -125,6 +125,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -146,6 +150,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout-error.out.yaml b/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout-error.out.yaml index 05fbd7e5f1..4c8cd981e0 100644 --- a/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout-error.out.yaml +++ b/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout-error.out.yaml @@ -157,6 +157,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout.out.yaml b/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout.out.yaml index 3b14a31d9f..daf673bfd8 100644 --- a/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout.out.yaml +++ b/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout.out.yaml @@ -278,6 +278,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -327,6 +331,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-different-listeners.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-different-listeners.out.yaml index 8d7cab5ab8..078b4f39c6 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-different-listeners.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-different-listeners.out.yaml @@ -379,6 +379,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -415,6 +419,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -451,6 +459,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -487,6 +499,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -523,6 +539,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -559,6 +579,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -595,6 +619,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -631,6 +659,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-listeners.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-listeners.out.yaml index 5e99289639..0c406b7d30 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-listeners.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-listeners.out.yaml @@ -330,6 +330,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -366,6 +370,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -402,6 +410,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -438,6 +450,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -474,6 +490,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -510,6 +530,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -546,6 +570,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -582,6 +610,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners-with-different-ports.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners-with-different-ports.out.yaml index 71b0049dd1..6815488994 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners-with-different-ports.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners-with-different-ports.out.yaml @@ -161,6 +161,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -197,6 +201,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners.out.yaml index 486b50e454..1107a98b00 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners.out.yaml @@ -150,6 +150,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -186,6 +190,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-gateway.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-gateway.out.yaml index dc033566db..b98f952cc9 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-gateway.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-gateway.out.yaml @@ -119,6 +119,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-matching-port.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-matching-port.out.yaml index 75d24e4814..6fc47c1190 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-matching-port.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-matching-port.out.yaml @@ -123,6 +123,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-on-gateway-with-two-listeners.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-on-gateway-with-two-listeners.out.yaml index dc4782837f..02af9e963c 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-on-gateway-with-two-listeners.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-on-gateway-with-two-listeners.out.yaml @@ -166,6 +166,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-and-core-backendrefs.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-and-core-backendrefs.out.yaml index 8606738c08..23fd357cec 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-and-core-backendrefs.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-and-core-backendrefs.out.yaml @@ -225,6 +225,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: httproute/default/httproute-static/rule/0/backend/0 protocol: HTTP weight: 1 @@ -232,6 +236,11 @@ xdsIR: endpoints: - host: 4.3.2.1 port: 8080 + metadata: + kind: Service + name: service-ip + namespace: default + sectionName: "8080" name: httproute/default/httproute-static/rule/0/backend/1 protocol: HTTP weight: 1 @@ -239,6 +248,11 @@ xdsIR: endpoints: - host: 1.2.3.4 port: 8081 + metadata: + kind: ServiceImport + name: service-import-ip + namespace: default + sectionName: "8081" name: httproute/default/httproute-static/rule/0/backend/2 protocol: HTTP weight: 1 @@ -260,6 +274,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: httproute/default/httproute-fqdn/rule/0/backend/0 protocol: HTTP weight: 1 @@ -267,6 +285,11 @@ xdsIR: endpoints: - host: bar.foo port: 8080 + metadata: + kind: Service + name: service-fqdn + namespace: default + sectionName: "8080" name: httproute/default/httproute-fqdn/rule/0/backend/1 protocol: HTTP weight: 1 @@ -274,6 +297,11 @@ xdsIR: endpoints: - host: foo.bar port: 8080 + metadata: + kind: ServiceImport + name: service-import-fqdn + namespace: default + sectionName: "8081" name: httproute/default/httproute-fqdn/rule/0/backend/2 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-backendref.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-backendref.out.yaml index ddd22f2702..8188c4eed0 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-backendref.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-backendref.out.yaml @@ -378,6 +378,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -399,6 +403,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-diff-address-type.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-diff-address-type.out.yaml index ab706c94c7..2b3d404bd7 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-diff-address-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-diff-address-type.out.yaml @@ -331,6 +331,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -338,6 +342,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: httproute/default/httproute-3/rule/0/backend/1 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-same-address-type.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-same-address-type.out.yaml index b9a5594c28..1e82f54a5a 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-same-address-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-same-address-type.out.yaml @@ -327,6 +327,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -334,6 +338,10 @@ xdsIR: endpoints: - host: 2.2.2.2 port: 3001 + metadata: + kind: Backend + name: backend-ip2 + namespace: default name: httproute/default/httproute-2/rule/0/backend/1 protocol: HTTP weight: 1 @@ -355,6 +363,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -362,6 +374,10 @@ xdsIR: endpoints: - host: primary2.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn2 + namespace: default name: httproute/default/httproute-3/rule/0/backend/1 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-diff-address-type.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-diff-address-type.out.yaml index ac4bacf904..6a7dfd2bd5 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-diff-address-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-diff-address-type.out.yaml @@ -127,6 +127,11 @@ xdsIR: endpoints: - host: foo.bar port: 8080 + metadata: + kind: ServiceImport + name: service-import-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -134,6 +139,11 @@ xdsIR: endpoints: - host: 1.2.3.4 port: 8081 + metadata: + kind: ServiceImport + name: service-import-2 + namespace: default + sectionName: "8081" name: httproute/default/httproute-1/rule/0/backend/1 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-same-address-type.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-same-address-type.out.yaml index 2775813b13..f7dc3f600a 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-same-address-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-same-address-type.out.yaml @@ -127,6 +127,11 @@ xdsIR: endpoints: - host: foo.bar port: 8080 + metadata: + kind: ServiceImport + name: service-import-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -134,6 +139,11 @@ xdsIR: endpoints: - host: bar.foo port: 8081 + metadata: + kind: ServiceImport + name: service-import-2 + namespace: default + sectionName: "8081" name: httproute/default/httproute-1/rule/0/backend/1 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref-fqdn-address-type.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref-fqdn-address-type.out.yaml index d91690952f..69c40ae2f8 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref-fqdn-address-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref-fqdn-address-type.out.yaml @@ -123,6 +123,11 @@ xdsIR: endpoints: - host: foo.bar port: 8080 + metadata: + kind: ServiceImport + name: service-import-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref.out.yaml index 2108557502..610860de08 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref.out.yaml @@ -123,6 +123,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 8080 + metadata: + kind: ServiceImport + name: service-import-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener.out.yaml index d9481a7dc2..b4de1786fb 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener.out.yaml @@ -121,6 +121,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-backend-request-timeout.out.yaml b/internal/gatewayapi/testdata/httproute-backend-request-timeout.out.yaml index 34a0e69a1d..9f151a3e0e 100644 --- a/internal/gatewayapi/testdata/httproute-backend-request-timeout.out.yaml +++ b/internal/gatewayapi/testdata/httproute-backend-request-timeout.out.yaml @@ -123,6 +123,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-request-timeout.out.yaml b/internal/gatewayapi/testdata/httproute-request-timeout.out.yaml index 8e49ab3764..6ce89e6fb7 100644 --- a/internal/gatewayapi/testdata/httproute-request-timeout.out.yaml +++ b/internal/gatewayapi/testdata/httproute-request-timeout.out.yaml @@ -123,6 +123,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-retry.out.yaml b/internal/gatewayapi/testdata/httproute-retry.out.yaml index 2d9e06df3a..e43f495878 100644 --- a/internal/gatewayapi/testdata/httproute-retry.out.yaml +++ b/internal/gatewayapi/testdata/httproute-retry.out.yaml @@ -285,6 +285,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-no-weights.out.yaml b/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-no-weights.out.yaml index b3c3ee93d2..8e2751043a 100644 --- a/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-no-weights.out.yaml +++ b/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-no-weights.out.yaml @@ -123,6 +123,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -130,6 +134,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/1 protocol: HTTP weight: 1 @@ -137,6 +145,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/2 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-weights.out.yaml b/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-weights.out.yaml index a05245e276..785addc4f7 100644 --- a/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-weights.out.yaml +++ b/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-weights.out.yaml @@ -129,6 +129,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -136,6 +140,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/1 protocol: HTTP weight: 2 @@ -143,6 +151,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/2 protocol: HTTP weight: 3 diff --git a/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-app-protocols.out.yaml b/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-app-protocols.out.yaml index ed65d3c4dc..4cba3b694d 100644 --- a/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-app-protocols.out.yaml +++ b/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-app-protocols.out.yaml @@ -198,6 +198,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -205,6 +209,10 @@ xdsIR: endpoints: - host: 10.244.0.28 port: 3000 + metadata: + kind: Backend + name: backend-mixed-ip-uds + namespace: default name: httproute/default/httproute-1/rule/0/backend/1 protocol: HTTP2 weight: 1 @@ -226,6 +234,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP2 weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-weights.out.yaml b/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-weights.out.yaml index d01585dc0d..9584178230 100644 --- a/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-weights.out.yaml +++ b/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-weights.out.yaml @@ -196,6 +196,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -203,6 +207,10 @@ xdsIR: endpoints: - host: 10.244.0.28 port: 3000 + metadata: + kind: Backend + name: backend-mixed-ip-uds + namespace: default name: httproute/default/httproute-1/rule/0/backend/1 protocol: HTTP weight: 2 @@ -224,6 +232,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-backendref-add-multiple-filters.out.yaml b/internal/gatewayapi/testdata/httproute-with-backendref-add-multiple-filters.out.yaml index 2863ea0278..57ccd1ee05 100644 --- a/internal/gatewayapi/testdata/httproute-with-backendref-add-multiple-filters.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-backendref-add-multiple-filters.out.yaml @@ -152,6 +152,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/0 protocol: HTTP weight: 2 @@ -168,6 +172,10 @@ xdsIR: credentialInjection: credential: '[redacted]' name: httproutefilter/default/credential-injection + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/1 protocol: HTTP weight: 1 @@ -199,6 +207,10 @@ xdsIR: name: add-header-2 value: - some-value + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 8 @@ -206,6 +218,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/1 protocol: HTTP weight: 2 diff --git a/internal/gatewayapi/testdata/httproute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml b/internal/gatewayapi/testdata/httproute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml index fdb5f98d9e..3f5267a9bb 100644 --- a/internal/gatewayapi/testdata/httproute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml @@ -121,6 +121,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: backends + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-backendref-serviceimport-in-other-namespace-allowed-by-refgrant.out.yaml b/internal/gatewayapi/testdata/httproute-with-backendref-serviceimport-in-other-namespace-allowed-by-refgrant.out.yaml index 4f6b086447..e2c759a0c8 100644 --- a/internal/gatewayapi/testdata/httproute-with-backendref-serviceimport-in-other-namespace-allowed-by-refgrant.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-backendref-serviceimport-in-other-namespace-allowed-by-refgrant.out.yaml @@ -123,6 +123,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 8080 + metadata: + kind: ServiceImport + name: service-import-1 + namespace: backends + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-cors-filter.out.yaml b/internal/gatewayapi/testdata/httproute-with-cors-filter.out.yaml index 677cedf18d..fc18619885 100644 --- a/internal/gatewayapi/testdata/httproute-with-cors-filter.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-cors-filter.out.yaml @@ -208,6 +208,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-cors-exact/rule/0/backend/0 protocol: HTTP weight: 1 @@ -240,6 +244,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-cors-wildcard/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-credential-injection.out.yaml b/internal/gatewayapi/testdata/httproute-with-credential-injection.out.yaml index 668e33e3e7..293e986567 100644 --- a/internal/gatewayapi/testdata/httproute-with-credential-injection.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-credential-injection.out.yaml @@ -190,6 +190,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -216,6 +220,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-empty-matches.out.yaml b/internal/gatewayapi/testdata/httproute-with-empty-matches.out.yaml index 71a408342a..6c6d8db775 100644 --- a/internal/gatewayapi/testdata/httproute-with-empty-matches.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-empty-matches.out.yaml @@ -118,6 +118,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-enable-zone-discovery.out.yaml b/internal/gatewayapi/testdata/httproute-with-enable-zone-discovery.out.yaml index de754a19e6..1c897e4864 100644 --- a/internal/gatewayapi/testdata/httproute-with-enable-zone-discovery.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-enable-zone-discovery.out.yaml @@ -142,6 +142,10 @@ xdsIR: - host: 7.7.7.7 port: 8080 zone: antarctica-east1b + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/0 protocol: HTTP weight: 1 @@ -168,6 +172,10 @@ xdsIR: - host: 7.7.7.7 port: 8080 zone: antarctica-east1b + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-add-multiple-filters.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-add-multiple-filters.out.yaml index 05f4e89883..ccd4ae9553 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-add-multiple-filters.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-add-multiple-filters.out.yaml @@ -152,6 +152,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-adds.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-adds.out.yaml index 983d4f12a5..ef04cd6777 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-adds.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-adds.out.yaml @@ -170,6 +170,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-remove-multiple-filters.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-remove-multiple-filters.out.yaml index ef57e4afa8..ce69526d5c 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-remove-multiple-filters.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-remove-multiple-filters.out.yaml @@ -135,6 +135,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-removes.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-removes.out.yaml index d95d9fe0f1..da73daf315 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-removes.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-removes.out.yaml @@ -130,6 +130,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-no-headers.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-no-headers.out.yaml index 0815a2e5ba..05d55d483c 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-no-headers.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-no-headers.out.yaml @@ -127,6 +127,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-remove.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-remove.out.yaml index 4d651b8662..156d15d007 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-remove.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-remove.out.yaml @@ -131,6 +131,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-invalid-backend-ref-invalid-mixed-kind.out.yaml b/internal/gatewayapi/testdata/httproute-with-invalid-backend-ref-invalid-mixed-kind.out.yaml index 80304dea21..53d9db4085 100644 --- a/internal/gatewayapi/testdata/httproute-with-invalid-backend-ref-invalid-mixed-kind.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-invalid-backend-ref-invalid-mixed-kind.out.yaml @@ -144,6 +144,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -151,6 +155,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: httproute/default/httproute-1/rule/0/backend/1 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-metadata.out.yaml b/internal/gatewayapi/testdata/httproute-with-metadata.out.yaml index 36207a8ef2..7fc2658312 100644 --- a/internal/gatewayapi/testdata/httproute-with-metadata.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-metadata.out.yaml @@ -131,6 +131,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/0 protocol: HTTP weight: 1 @@ -155,6 +159,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-mirror-filter-duplicates.out.yaml b/internal/gatewayapi/testdata/httproute-with-mirror-filter-duplicates.out.yaml index fc0931b38c..10a906aae7 100644 --- a/internal/gatewayapi/testdata/httproute-with-mirror-filter-duplicates.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-mirror-filter-duplicates.out.yaml @@ -137,6 +137,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -154,6 +158,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0-mirror-0/backend/-1 protocol: HTTP weight: 1 @@ -164,6 +172,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0-mirror-1/backend/-1 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-mirror-filter-multiple.out.yaml b/internal/gatewayapi/testdata/httproute-with-mirror-filter-multiple.out.yaml index 8eae24601e..9b43c70ee1 100644 --- a/internal/gatewayapi/testdata/httproute-with-mirror-filter-multiple.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-mirror-filter-multiple.out.yaml @@ -162,6 +162,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -179,6 +183,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0-mirror-1/backend/-1 protocol: HTTP weight: 1 @@ -189,6 +197,10 @@ xdsIR: endpoints: - host: 7.6.5.4 port: 8080 + metadata: + name: mirror-service + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0-mirror-2/backend/-1 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-mirror-filter-percentage-mirroring.out.yaml b/internal/gatewayapi/testdata/httproute-with-mirror-filter-percentage-mirroring.out.yaml index bacdcf73dc..65f9fb3b00 100644 --- a/internal/gatewayapi/testdata/httproute-with-mirror-filter-percentage-mirroring.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-mirror-filter-percentage-mirroring.out.yaml @@ -141,6 +141,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -158,6 +162,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0-mirror-0/backend/-1 protocol: HTTP weight: 1 @@ -169,6 +177,10 @@ xdsIR: endpoints: - host: 7.6.5.4 port: 8080 + metadata: + name: mirror-service + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0-mirror-1/backend/-1 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-mirror-filter.out.yaml b/internal/gatewayapi/testdata/httproute-with-mirror-filter.out.yaml index c8ab202112..762659480f 100644 --- a/internal/gatewayapi/testdata/httproute-with-mirror-filter.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-mirror-filter.out.yaml @@ -131,6 +131,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -148,6 +152,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0-mirror-0/backend/-1 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-multi-gateways-with-same-name.out.yaml b/internal/gatewayapi/testdata/httproute-with-multi-gateways-with-same-name.out.yaml index 670559a762..cb56eaaa8b 100644 --- a/internal/gatewayapi/testdata/httproute-with-multi-gateways-with-same-name.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-multi-gateways-with-same-name.out.yaml @@ -173,6 +173,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-multiple-gateways-from-different-ns.out.yaml b/internal/gatewayapi/testdata/httproute-with-multiple-gateways-from-different-ns.out.yaml index df942a0f0a..97b1fa6a55 100644 --- a/internal/gatewayapi/testdata/httproute-with-multiple-gateways-from-different-ns.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-multiple-gateways-from-different-ns.out.yaml @@ -205,6 +205,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/targeted-route/rule/0/backend/0 protocol: HTTP weight: 1 @@ -255,6 +260,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/targeted-route/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-adds.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-adds.out.yaml index 59422a4b87..3e7157a6b3 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-adds.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-adds.out.yaml @@ -166,6 +166,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-add-multiple-filters.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-add-multiple-filters.out.yaml index b869791976..5234c21625 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-add-multiple-filters.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-add-multiple-filters.out.yaml @@ -152,6 +152,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-adds.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-adds.out.yaml index b363a8a9e8..03bacde473 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-adds.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-adds.out.yaml @@ -170,6 +170,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-remove-multiple-filters.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-remove-multiple-filters.out.yaml index e66b230160..9d51cdfc8a 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-remove-multiple-filters.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-remove-multiple-filters.out.yaml @@ -135,6 +135,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-removes.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-removes.out.yaml index ed40f923c8..4219ae5910 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-removes.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-removes.out.yaml @@ -130,6 +130,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-no-headers.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-no-headers.out.yaml index 2416deb6ff..f188b28b10 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-no-headers.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-no-headers.out.yaml @@ -127,6 +127,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-remove.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-remove.out.yaml index 3ed7485b1f..a403e6f58e 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-remove.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-remove.out.yaml @@ -131,6 +131,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-single-rule-with-exact-path-match.out.yaml b/internal/gatewayapi/testdata/httproute-with-single-rule-with-exact-path-match.out.yaml index 4a186dbb84..815accd6d2 100644 --- a/internal/gatewayapi/testdata/httproute-with-single-rule-with-exact-path-match.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-single-rule-with-exact-path-match.out.yaml @@ -120,6 +120,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-single-rule-with-http-method-match.out.yaml b/internal/gatewayapi/testdata/httproute-with-single-rule-with-http-method-match.out.yaml index c3f1ed8343..040eaa09f2 100644 --- a/internal/gatewayapi/testdata/httproute-with-single-rule-with-http-method-match.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-single-rule-with-http-method-match.out.yaml @@ -118,6 +118,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-single-rule-with-path-prefix-and-exact-header-matches.out.yaml b/internal/gatewayapi/testdata/httproute-with-single-rule-with-path-prefix-and-exact-header-matches.out.yaml index bcd212635e..fc32090087 100644 --- a/internal/gatewayapi/testdata/httproute-with-single-rule-with-path-prefix-and-exact-header-matches.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-single-rule-with-path-prefix-and-exact-header-matches.out.yaml @@ -124,6 +124,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-specific-hostname-attaching-to-gateway-with-wildcard-hostname.out.yaml b/internal/gatewayapi/testdata/httproute-with-specific-hostname-attaching-to-gateway-with-wildcard-hostname.out.yaml index f0575871a5..b51cc1b821 100644 --- a/internal/gatewayapi/testdata/httproute-with-specific-hostname-attaching-to-gateway-with-wildcard-hostname.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-specific-hostname-attaching-to-gateway-with-wildcard-hostname.out.yaml @@ -122,6 +122,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-two-specific-hostnames-attaching-to-gateway-with-wildcard-hostname.out.yaml b/internal/gatewayapi/testdata/httproute-with-two-specific-hostnames-attaching-to-gateway-with-wildcard-hostname.out.yaml index 76e58792a6..a6145b81ea 100644 --- a/internal/gatewayapi/testdata/httproute-with-two-specific-hostnames-attaching-to-gateway-with-wildcard-hostname.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-two-specific-hostnames-attaching-to-gateway-with-wildcard-hostname.out.yaml @@ -123,6 +123,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -144,6 +148,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-full-path-replace-http.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-full-path-replace-http.out.yaml index a8424d0f01..b897354a5b 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-full-path-replace-http.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-full-path-replace-http.out.yaml @@ -130,6 +130,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname-prefix-replace.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname-prefix-replace.out.yaml index 62b490b3b0..6dc833ee2d 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname-prefix-replace.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname-prefix-replace.out.yaml @@ -131,6 +131,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname.out.yaml index 6f61e6614a..3f978d1d2d 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname.out.yaml @@ -128,6 +128,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-invalid-filter-type.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-invalid-filter-type.out.yaml index 4d4fc74033..ad9ba434ed 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-invalid-filter-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-invalid-filter-type.out.yaml @@ -128,6 +128,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-prefix-replace-http.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-prefix-replace-http.out.yaml index 6fc94e59e7..c4b43b65e9 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-prefix-replace-http.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-prefix-replace-http.out.yaml @@ -130,6 +130,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-regex-match-replace-http.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-regex-match-replace-http.out.yaml index 8b7dcf88af..eb9979f91c 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-regex-match-replace-http.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-regex-match-replace-http.out.yaml @@ -268,6 +268,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-missing-substitution/rule/0/backend/0 protocol: HTTP weight: 1 @@ -296,6 +300,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -326,6 +334,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -350,6 +362,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-hostname-filter.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-hostname-filter.out.yaml index 9bb808576c..b8d70f6005 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-hostname-filter.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-hostname-filter.out.yaml @@ -272,6 +272,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -299,6 +303,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-4/rule/0/backend/0 protocol: HTTP weight: 1 @@ -324,6 +332,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -348,6 +360,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-wildcard-hostname-attaching-to-gateway-with-unset-hostname.out.yaml b/internal/gatewayapi/testdata/httproute-with-wildcard-hostname-attaching-to-gateway-with-unset-hostname.out.yaml index a1947a8434..7005afe234 100644 --- a/internal/gatewayapi/testdata/httproute-with-wildcard-hostname-attaching-to-gateway-with-unset-hostname.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-wildcard-hostname-attaching-to-gateway-with-unset-hostname.out.yaml @@ -121,6 +121,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproutes-with-multiple-matches.out.yaml b/internal/gatewayapi/testdata/httproutes-with-multiple-matches.out.yaml index 1731f40b80..585db6ea41 100644 --- a/internal/gatewayapi/testdata/httproutes-with-multiple-matches.out.yaml +++ b/internal/gatewayapi/testdata/httproutes-with-multiple-matches.out.yaml @@ -306,6 +306,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -331,6 +336,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 8080 + metadata: + kind: Service + name: service-2 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -352,6 +362,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-4/rule/0/backend/0 protocol: HTTP weight: 1 @@ -377,6 +392,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 8080 + metadata: + kind: Service + name: service-2 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-5/rule/0/backend/0 protocol: HTTP weight: 1 @@ -398,6 +418,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -419,6 +444,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -440,6 +470,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/merge-valid-multiple-gateways-multiple-routes.out.yaml b/internal/gatewayapi/testdata/merge-valid-multiple-gateways-multiple-routes.out.yaml index 390a787912..19deb19a2b 100644 --- a/internal/gatewayapi/testdata/merge-valid-multiple-gateways-multiple-routes.out.yaml +++ b/internal/gatewayapi/testdata/merge-valid-multiple-gateways-multiple-routes.out.yaml @@ -246,6 +246,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -296,6 +300,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/merge-with-isolated-policies-2.out.yaml b/internal/gatewayapi/testdata/merge-with-isolated-policies-2.out.yaml index 4a93a03edb..60e828626e 100644 --- a/internal/gatewayapi/testdata/merge-with-isolated-policies-2.out.yaml +++ b/internal/gatewayapi/testdata/merge-with-isolated-policies-2.out.yaml @@ -524,6 +524,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -584,6 +588,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -644,6 +652,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -696,6 +708,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-4/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/merge-with-isolated-policies.out.yaml b/internal/gatewayapi/testdata/merge-with-isolated-policies.out.yaml index b56dfd2852..0373453fe0 100644 --- a/internal/gatewayapi/testdata/merge-with-isolated-policies.out.yaml +++ b/internal/gatewayapi/testdata/merge-with-isolated-policies.out.yaml @@ -316,6 +316,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -373,6 +377,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-override-replace.out.yaml b/internal/gatewayapi/testdata/securitypolicy-override-replace.out.yaml index e714d10ef1..c14a36454b 100644 --- a/internal/gatewayapi/testdata/securitypolicy-override-replace.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-override-replace.out.yaml @@ -327,6 +327,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -367,6 +371,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -421,6 +429,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-client-cidr.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-client-cidr.out.yaml index eafb01f539..aeef378d95 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-client-cidr.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-client-cidr.out.yaml @@ -308,6 +308,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -332,6 +336,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -385,6 +393,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-headers-and-methods.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-headers-and-methods.out.yaml index 6d935e04db..aa56a7b33f 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-headers-and-methods.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-headers-and-methods.out.yaml @@ -164,6 +164,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-jwt-claim.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-jwt-claim.out.yaml index a0c47b78cd..0e0789505d 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-jwt-claim.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-jwt-claim.out.yaml @@ -177,6 +177,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-basic-auth.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-basic-auth.out.yaml index ab23db803f..ad2fa99e23 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-basic-auth.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-basic-auth.out.yaml @@ -235,6 +235,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -260,6 +264,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/0 protocol: HTTP weight: 1 @@ -285,6 +293,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-cors.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-cors.out.yaml index 02ac987972..12b6deb76d 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-cors.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-cors.out.yaml @@ -427,6 +427,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -491,6 +495,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -556,6 +564,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-backend.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-backend.out.yaml index 9c408e6bc0..e0badf9f27 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-backend.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-backend.out.yaml @@ -386,6 +386,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -412,6 +416,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0/backend/0 protocol: GRPC weight: 1 @@ -426,6 +434,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/0 protocol: HTTP weight: 1 @@ -452,6 +464,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0/backend/0 protocol: GRPC weight: 1 @@ -466,6 +482,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -487,6 +507,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-4 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -513,6 +537,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: securitypolicy/default/policy-for-http-route-3--grpc-backendref/extauth/0/backend/0 protocol: GRPC weight: 1 @@ -545,6 +573,10 @@ xdsIR: - host: "" path: /var/run/uds.sock port: 0 + metadata: + kind: Backend + name: backend-uds + namespace: default name: securitypolicy/default/policy-for-http-route-3-http-backendref/extauth/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-backendref.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-backendref.out.yaml index 265180f8e2..1106356a6f 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-backendref.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-backendref.out.yaml @@ -251,6 +251,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -277,6 +281,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 9000 + metadata: + kind: Service + name: grpc-backend + namespace: default + sectionName: "9000" name: securitypolicy/default/policy-for-http-route-1/extauth/0/backend/0 protocol: GRPC weight: 1 @@ -291,6 +300,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/0 protocol: HTTP weight: 1 @@ -317,6 +330,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 9000 + metadata: + kind: Service + name: grpc-backend + namespace: default + sectionName: "9000" name: securitypolicy/default/policy-for-http-route-1/extauth/0/backend/0 protocol: GRPC weight: 1 @@ -331,6 +349,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -357,6 +379,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 80 + metadata: + kind: Service + name: http-backend + namespace: envoy-gateway + sectionName: "80" name: securitypolicy/default/policy-for-gateway-1/extauth/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-body.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-body.out.yaml index 695d9a3de5..9ca00897ee 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-body.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-body.out.yaml @@ -226,6 +226,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -254,6 +258,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0/backend/0 protocol: GRPC weight: 1 @@ -268,6 +276,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/0 protocol: HTTP weight: 1 @@ -296,6 +308,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0/backend/0 protocol: GRPC weight: 1 @@ -310,6 +326,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-matching-port.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-matching-port.out.yaml index 2b624ff696..2e699a8eb3 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-matching-port.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-matching-port.out.yaml @@ -159,6 +159,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-port.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-port.out.yaml index f1649f9aac..0ebefc16e1 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-port.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-port.out.yaml @@ -159,6 +159,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-reference-grant.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-reference-grant.out.yaml index 76de0f521a..7a14107985 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-reference-grant.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-reference-grant.out.yaml @@ -160,6 +160,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-service.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-service.out.yaml index dafb7ef1d5..400ffab4d8 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-service.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-service.out.yaml @@ -159,6 +159,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-recomputation.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-recomputation.out.yaml index 2fff1b6dcc..37e43ae676 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-recomputation.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-recomputation.out.yaml @@ -225,6 +225,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -251,6 +255,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0/backend/0 protocol: GRPC weight: 1 @@ -266,6 +274,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/0 protocol: HTTP weight: 1 @@ -292,6 +304,10 @@ xdsIR: endpoints: - host: primary.foo.com port: 3000 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0/backend/0 protocol: GRPC weight: 1 @@ -307,6 +323,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-with-backendtlspolicy.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-with-backendtlspolicy.out.yaml index 58274fa252..305d3d00ed 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-with-backendtlspolicy.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-with-backendtlspolicy.out.yaml @@ -304,6 +304,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -330,6 +334,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 9000 + metadata: + kind: Service + name: grpc-backend + namespace: default + sectionName: "9000" name: securitypolicy/default/policy-for-http-route/extauth/0/backend/0 protocol: GRPC tls: @@ -350,6 +359,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -376,6 +389,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 80 + metadata: + kind: Service + name: http-backend + namespace: envoy-gateway + sectionName: "80" name: securitypolicy/default/policy-for-gateway/extauth/0/backend/0 protocol: HTTP tls: diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth.out.yaml index e4af7bb720..97a3e965c5 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth.out.yaml @@ -245,6 +245,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -271,6 +275,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 9000 + metadata: + kind: Service + name: grpc-backend + namespace: default + sectionName: "9000" name: securitypolicy/default/policy-for-http-route-1/extauth/0/backend/0 protocol: GRPC weight: 1 @@ -285,6 +294,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/1/backend/0 protocol: HTTP weight: 1 @@ -311,6 +324,11 @@ xdsIR: endpoints: - host: 8.8.8.8 port: 9000 + metadata: + kind: Service + name: grpc-backend + namespace: default + sectionName: "9000" name: securitypolicy/default/policy-for-http-route-1/extauth/0/backend/0 protocol: GRPC weight: 1 @@ -325,6 +343,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -351,6 +373,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 80 + metadata: + kind: Service + name: http-backend + namespace: envoy-gateway + sectionName: "80" name: securitypolicy/default/policy-for-gateway-1/extauth/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt-and-invalid-oidc.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt-and-invalid-oidc.out.yaml index 4e1249029e..42ac10fef6 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt-and-invalid-oidc.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt-and-invalid-oidc.out.yaml @@ -257,6 +257,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -292,6 +296,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt-backendcluster.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt-backendcluster.out.yaml index 502bfcdc34..d068924aa9 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt-backendcluster.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt-backendcluster.out.yaml @@ -229,6 +229,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -261,6 +265,10 @@ xdsIR: endpoints: - host: foo.bar.com port: 443 + metadata: + kind: Backend + name: backend-fqdn + namespace: default name: securitypolicy/default/policy-for-route/jwt/0/backend/0 protocol: HTTPS tls: diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt-local-jwks.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt-local-jwks.out.yaml index 23ddf624b7..5fc79a6cf6 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt-local-jwks.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt-local-jwks.out.yaml @@ -389,6 +389,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -426,6 +430,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -463,6 +471,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-3/rule/0/backend/0 protocol: HTTP weight: 1 @@ -500,6 +512,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-4/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt-optional.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt-optional.out.yaml index 348461b784..90c8c605bc 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt-optional.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt-optional.out.yaml @@ -305,6 +305,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -368,6 +372,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt-with-custom-extractor.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt-with-custom-extractor.out.yaml index b69177375c..cadc9e1bcf 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt-with-custom-extractor.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt-with-custom-extractor.out.yaml @@ -304,6 +304,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -367,6 +371,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt.out.yaml index 0a76d7ef51..a821cbacf6 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt.out.yaml @@ -296,6 +296,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 @@ -359,6 +363,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-oidc-backendcluster.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-oidc-backendcluster.out.yaml index 8cdd0e8599..7300d772de 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-oidc-backendcluster.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-oidc-backendcluster.out.yaml @@ -234,6 +234,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -268,6 +272,10 @@ xdsIR: endpoints: - host: oauth.foo.com port: 443 + metadata: + kind: Backend + name: backend-fqdn + namespace: envoy-gateway name: securitypolicy/envoy-gateway/policy-for-gateway/oidc/0/backend/0 protocol: HTTPS tls: diff --git a/internal/gatewayapi/testdata/securitypolicy-with-oidc-custom-cookies.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-oidc-custom-cookies.out.yaml index 15e748a3b3..a279d315a7 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-oidc-custom-cookies.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-oidc-custom-cookies.out.yaml @@ -163,6 +163,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml index 1490e9dab8..ba7204b019 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml @@ -258,6 +258,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -303,6 +307,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/tcproute-attaching-to-gateway-with-listener-tls-terminate.out.yaml b/internal/gatewayapi/testdata/tcproute-attaching-to-gateway-with-listener-tls-terminate.out.yaml index 7e6ccce463..42bcc2b186 100644 --- a/internal/gatewayapi/testdata/tcproute-attaching-to-gateway-with-listener-tls-terminate.out.yaml +++ b/internal/gatewayapi/testdata/tcproute-attaching-to-gateway-with-listener-tls-terminate.out.yaml @@ -183,6 +183,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 1 @@ -211,6 +215,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: tcproute/default/tcproute-2/rule/-1/backend/0 protocol: TCP weight: 1 diff --git a/internal/gatewayapi/testdata/tcproute-rule-with-multiple-backends-and-zero-weights.out.yaml b/internal/gatewayapi/testdata/tcproute-rule-with-multiple-backends-and-zero-weights.out.yaml index 6daed53da1..7314140168 100644 --- a/internal/gatewayapi/testdata/tcproute-rule-with-multiple-backends-and-zero-weights.out.yaml +++ b/internal/gatewayapi/testdata/tcproute-rule-with-multiple-backends-and-zero-weights.out.yaml @@ -118,6 +118,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 1 @@ -125,6 +129,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: tcproute/default/tcproute-1/rule/-1/backend/1 protocol: TCP weight: 2 @@ -132,6 +140,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-3 + namespace: default + sectionName: "8080" name: tcproute/default/tcproute-1/rule/-1/backend/2 protocol: TCP weight: 3 diff --git a/internal/gatewayapi/testdata/tcproute-with-backend.out.yaml b/internal/gatewayapi/testdata/tcproute-with-backend.out.yaml index 9bc243dbb1..52e3656498 100644 --- a/internal/gatewayapi/testdata/tcproute-with-backend.out.yaml +++ b/internal/gatewayapi/testdata/tcproute-with-backend.out.yaml @@ -128,6 +128,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: tcproute/default/tcproute-1/rule/-1/backend/0 protocol: TCP weight: 1 diff --git a/internal/gatewayapi/testdata/tlsroute-attaching-to-gateway.out.yaml b/internal/gatewayapi/testdata/tlsroute-attaching-to-gateway.out.yaml index e65d63a68b..1b72fbcb1a 100644 --- a/internal/gatewayapi/testdata/tlsroute-attaching-to-gateway.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-attaching-to-gateway.out.yaml @@ -111,6 +111,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: tlsroute/default/tlsroute-1/rule/-1/backend/0 protocol: HTTPS weight: 1 diff --git a/internal/gatewayapi/testdata/tlsroute-multiple.out.yaml b/internal/gatewayapi/testdata/tlsroute-multiple.out.yaml index 253a564d7c..2bc745885a 100644 --- a/internal/gatewayapi/testdata/tlsroute-multiple.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-multiple.out.yaml @@ -145,6 +145,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: tlsroute/default/tlsroute-1/rule/-1/backend/0 protocol: HTTPS weight: 1 @@ -160,6 +164,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: tlsroute/default/tlsroute-2/rule/-1/backend/0 protocol: HTTPS weight: 1 diff --git a/internal/gatewayapi/testdata/tlsroute-with-backend.out.yaml b/internal/gatewayapi/testdata/tlsroute-with-backend.out.yaml index df45868603..0c694ce17e 100644 --- a/internal/gatewayapi/testdata/tlsroute-with-backend.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-with-backend.out.yaml @@ -131,6 +131,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: tlsroute/default/tlsroute-1/rule/-1/backend/0 protocol: HTTPS weight: 1 diff --git a/internal/gatewayapi/testdata/tlsroute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml b/internal/gatewayapi/testdata/tlsroute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml index d868a5dacf..08f5cb0eca 100644 --- a/internal/gatewayapi/testdata/tlsroute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml @@ -112,6 +112,11 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: test-service-namespace + sectionName: "8080" name: tlsroute/default/tlsroute-1/rule/-1/backend/0 protocol: HTTPS weight: 1 diff --git a/internal/gatewayapi/testdata/tlsroute-with-empty-hostname.out.yaml b/internal/gatewayapi/testdata/tlsroute-with-empty-hostname.out.yaml index 36905c62da..2b7ba7480e 100644 --- a/internal/gatewayapi/testdata/tlsroute-with-empty-hostname.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-with-empty-hostname.out.yaml @@ -110,6 +110,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: tlsroute/default/tlsroute-1/rule/-1/backend/0 protocol: HTTPS weight: 1 diff --git a/internal/gatewayapi/testdata/tlsroute-with-empty-listener-hostname.out.yaml b/internal/gatewayapi/testdata/tlsroute-with-empty-listener-hostname.out.yaml index c4f77d15fe..f919d309c7 100644 --- a/internal/gatewayapi/testdata/tlsroute-with-empty-listener-hostname.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-with-empty-listener-hostname.out.yaml @@ -112,6 +112,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: tlsroute/default/tlsroute-1/rule/-1/backend/0 protocol: HTTPS weight: 1 diff --git a/internal/gatewayapi/testdata/tracing-merged-multiple-routes.out.yaml b/internal/gatewayapi/testdata/tracing-merged-multiple-routes.out.yaml index afbe442fed..a523d12d54 100644 --- a/internal/gatewayapi/testdata/tracing-merged-multiple-routes.out.yaml +++ b/internal/gatewayapi/testdata/tracing-merged-multiple-routes.out.yaml @@ -253,6 +253,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -303,6 +307,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/tracing-multiple-routes.out.yaml b/internal/gatewayapi/testdata/tracing-multiple-routes.out.yaml index be6b15a8ec..ceba0ea67a 100644 --- a/internal/gatewayapi/testdata/tracing-multiple-routes.out.yaml +++ b/internal/gatewayapi/testdata/tracing-multiple-routes.out.yaml @@ -279,6 +279,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -356,6 +360,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/tracing-sampling-fraction.out.yaml b/internal/gatewayapi/testdata/tracing-sampling-fraction.out.yaml index dfa0855b1e..ef6b4e0ede 100644 --- a/internal/gatewayapi/testdata/tracing-sampling-fraction.out.yaml +++ b/internal/gatewayapi/testdata/tracing-sampling-fraction.out.yaml @@ -255,6 +255,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -305,6 +309,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/udproute-rule-with-multiple-backends-and-zero-weights.out.yaml b/internal/gatewayapi/testdata/udproute-rule-with-multiple-backends-and-zero-weights.out.yaml index 5011adeee6..0009a305ad 100644 --- a/internal/gatewayapi/testdata/udproute-rule-with-multiple-backends-and-zero-weights.out.yaml +++ b/internal/gatewayapi/testdata/udproute-rule-with-multiple-backends-and-zero-weights.out.yaml @@ -118,6 +118,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-1 + namespace: default + sectionName: "8162" name: udproute/default/udproute-1/rule/-1/backend/0 protocol: UDP weight: 1 @@ -125,6 +129,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-2 + namespace: default + sectionName: "8162" name: udproute/default/udproute-1/rule/-1/backend/1 protocol: UDP weight: 2 @@ -132,6 +140,10 @@ xdsIR: endpoints: - host: 7.7.7.7 port: 8162 + metadata: + name: service-3 + namespace: default + sectionName: "8162" name: udproute/default/udproute-1/rule/-1/backend/2 protocol: UDP weight: 3 diff --git a/internal/gatewayapi/testdata/udproute-with-backend.out.yaml b/internal/gatewayapi/testdata/udproute-with-backend.out.yaml index 30816997d0..e1e4c9e451 100644 --- a/internal/gatewayapi/testdata/udproute-with-backend.out.yaml +++ b/internal/gatewayapi/testdata/udproute-with-backend.out.yaml @@ -128,6 +128,10 @@ xdsIR: endpoints: - host: 1.1.1.1 port: 3001 + metadata: + kind: Backend + name: backend-ip + namespace: default name: udproute/default/udproute-1/rule/-1/backend/0 protocol: UDP weight: 1 diff --git a/internal/ir/xds.go b/internal/ir/xds.go index 30bd1d1fcb..5cd1c85669 100644 --- a/internal/ir/xds.go +++ b/internal/ir/xds.go @@ -1470,6 +1470,8 @@ type RouteDestination struct { // reused Name string `json:"name" yaml:"name"` Settings []*DestinationSetting `json:"settings,omitempty" yaml:"settings,omitempty"` + // Metadata is used to enrich envoy route metadata with user and provider-specific information + Metadata *ResourceMetadata `json:"metadata,omitempty" yaml:"metadata,omitempty"` } // Validate the fields within the RouteDestination structure @@ -1579,6 +1581,9 @@ type DestinationSetting struct { // ZoneAwareRoutingEnabled specifies whether to enable Zone Aware Routing for this destination's endpoints. // This is derived from the backend service and depends on having Kubernetes Topology Aware Routing or Traffic Distribution enabled. ZoneAwareRoutingEnabled bool `json:"zoneAwareRoutingEnabled,omitempty" yaml:"zoneAwareRoutingEnabled,omitempty"` + // Metadata is used to enrich envoy route metadata with user and provider-specific information + // The primary metadata for DestinationSettings comes from the Backend resource reference in BackendRef + Metadata *ResourceMetadata `json:"metadata,omitempty" yaml:"metadata,omitempty"` } // Validate the fields within the DestinationSetting structure diff --git a/internal/xds/translator/cluster.go b/internal/xds/translator/cluster.go index 4b9e01ea51..76fb59fcb6 100644 --- a/internal/xds/translator/cluster.go +++ b/internal/xds/translator/cluster.go @@ -630,6 +630,8 @@ func buildXdsClusterLoadAssignment(clusterName string, destSettings []*ir.Destin for i, ds := range destSettings { var metadata *corev3.Metadata + resourceMetadata := buildXdsMetadata(ds.Metadata) + if ds.TLS != nil { metadata = &corev3.Metadata{ FilterMetadata: map[string]*structpb.Struct{ @@ -640,6 +642,11 @@ func buildXdsClusterLoadAssignment(clusterName string, destSettings []*ir.Destin }, }, } + if resourceMetadata != nil { + metadata.FilterMetadata[envoyGatewayXdsMetadataNamespace] = resourceMetadata.FilterMetadata[envoyGatewayXdsMetadataNamespace] + } + } else { + metadata = resourceMetadata } // If zone aware routing is enabled for a backendRefs we include endpoint zone info in localities. diff --git a/internal/xds/translator/testdata/in/xds-ir/http-route-with-metadata.yaml b/internal/xds/translator/testdata/in/xds-ir/http-route-with-metadata.yaml index fd4d53ecb2..56f6492ccd 100644 --- a/internal/xds/translator/testdata/in/xds-ir/http-route-with-metadata.yaml +++ b/internal/xds/translator/testdata/in/xds-ir/http-route-with-metadata.yaml @@ -22,6 +22,11 @@ http: - endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: default + sectionName: "8080" name: "first-route-dest/backend/0" hostname: example.com metadata: @@ -44,6 +49,11 @@ http: - endpoints: - host: 8.8.8.8 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: default + sectionName: "8080" name: "second-route-dest/backend/0" hostname: example.com name: envoy-gateway/httproute-3/rule/0/match/0/example.com diff --git a/internal/xds/translator/testdata/in/xds-ir/http-route-with-tlsbundle-multiple-certs.yaml b/internal/xds/translator/testdata/in/xds-ir/http-route-with-tlsbundle-multiple-certs.yaml index 629d71226b..a180b23ab4 100644 --- a/internal/xds/translator/testdata/in/xds-ir/http-route-with-tlsbundle-multiple-certs.yaml +++ b/internal/xds/translator/testdata/in/xds-ir/http-route-with-tlsbundle-multiple-certs.yaml @@ -19,6 +19,11 @@ http: endpoints: - host: 10.244.0.12 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: default + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls/rule/0/backend/0 protocol: HTTPS tls: @@ -38,6 +43,11 @@ http: name: policy-btls/policies-ca sni: example.com weight: 1 + metadata: + kind: Service + name: http-backend2 + namespace: default + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls/rule/0/backend/1 hostname: '*' name: httproute/envoy-gateway/httproute-btls/rule/0/match/0/* diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.endpoints.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.endpoints.yaml index 67b46ffe0f..5db57f0337 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.endpoints.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.endpoints.yaml @@ -7,6 +7,14 @@ address: 7.7.7.7 portValue: 8080 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: http-backend + namespace: default + sectionName: "8080" loadBalancingWeight: 1 locality: region: first-route-dest/backend/0 @@ -19,6 +27,14 @@ address: 8.8.8.8 portValue: 8080 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: http-backend + namespace: default + sectionName: "8080" loadBalancingWeight: 1 locality: region: second-route-dest/backend/0 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-with-tlsbundle-multiple-certs.endpoints.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-with-tlsbundle-multiple-certs.endpoints.yaml index 94a0deb060..a48d672a6e 100755 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-with-tlsbundle-multiple-certs.endpoints.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-with-tlsbundle-multiple-certs.endpoints.yaml @@ -9,6 +9,12 @@ loadBalancingWeight: 1 metadata: filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: http-backend + namespace: default + sectionName: "8080" envoy.transport_socket_match: name: httproute/envoy-gateway/httproute-btls/rule/0/tls/0 loadBalancingWeight: 1 @@ -23,6 +29,12 @@ loadBalancingWeight: 1 metadata: filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: http-backend2 + namespace: default + sectionName: "8080" envoy.transport_socket_match: name: httproute/envoy-gateway/httproute-btls/rule/0/tls/1 loadBalancingWeight: 1 From 675aa3f158bc0420bb63f40372176d91114aff8f Mon Sep 17 00:00:00 2001 From: Guy Daich Date: Wed, 30 Apr 2025 12:32:48 -0500 Subject: [PATCH 2/8] clsuter metadata Signed-off-by: Guy Daich --- .../translate/out/default-resources.all.yaml | 75 +++++++++ .../out/echo-gateway-api.cluster.yaml | 7 + .../out/from-gateway-api-to-xds.all.json | 145 +++++++++++++++++- .../out/from-gateway-api-to-xds.all.yaml | 75 +++++++++ .../out/from-gateway-api-to-xds.cluster.yaml | 35 +++++ .../out/from-gateway-api-to-xds.endpoint.yaml | 40 +++++ ...-single-route-single-match-to-xds.all.json | 29 +++- ...-single-route-single-match-to-xds.all.yaml | 15 ++ ...gle-route-single-match-to-xds.cluster.yaml | 7 + .../out/no-service-cluster-ip.all.yaml | 15 ++ .../translate/out/quickstart.all.yaml | 4 + internal/gatewayapi/ext_service.go | 1 + internal/gatewayapi/listener.go | 3 + internal/gatewayapi/route.go | 5 + .../testdata/accesslog-als-backend.out.yaml | 4 + .../testdata/backend-with-fallback.out.yaml | 4 + .../backendtlspolicy-across-ns.out.yaml | 4 + .../backendtlspolicy-ca-only-secret.out.yaml | 4 + .../backendtlspolicy-ca-only.out.yaml | 4 + ...ndtlspolicy-default-ns-targetrefs.out.yaml | 8 + .../backendtlspolicy-default-ns.out.yaml | 4 + ...backendtlspolicy-multiple-targets.out.yaml | 8 + ...endtlspolicy-serviceimport-target.out.yaml | 4 + ...ackendtlspolicy-system-truststore.out.yaml | 4 + ...y-buffer-limit-out-of-range-error.out.yaml | 8 + ...y-buffer-limit-with-invalid-value.out.yaml | 8 + ...backendtrafficpolicy-buffer-limit.out.yaml | 8 + .../backendtrafficpolicy-compression.out.yaml | 4 + ...ndtrafficpolicy-dns-lookup-family.out.yaml | 24 +++ ...ndtrafficpolicy-http-upgrade-spdy.out.yaml | 4 + ...fficpolicy-http-upgrade-websocket.out.yaml | 4 + ...endtrafficpolicy-override-replace.out.yaml | 12 ++ ...ckendtrafficpolicy-request-buffer.out.yaml | 8 + ...ndtrafficpolicy-status-conditions.out.yaml | 8 + ...fficpolicy-status-fault-injection.out.yaml | 12 ++ .../backendtrafficpolicy-tracing.out.yaml | 4 + ...trafficpolicy-use-client-protocol.out.yaml | 4 + ...policy-with-circuitbreakers-error.out.yaml | 12 ++ ...rafficpolicy-with-circuitbreakers.out.yaml | 8 + ...ndtrafficpolicy-with-dns-settings.out.yaml | 12 ++ ...endtrafficpolicy-with-healthcheck.out.yaml | 28 ++++ .../backendtrafficpolicy-with-http2.out.yaml | 8 + ...fficpolicy-with-httproute-timeout.out.yaml | 8 + ...nvalid-consistent-hash-table-size.out.yaml | 8 + ...ndtrafficpolicy-with-loadbalancer.out.yaml | 16 ++ ...telimit-default-route-level-limit.out.yaml | 4 + ...cal-ratelimit-distinct-match-type.out.yaml | 4 + ...ocal-ratelimit-invalid-limit-unit.out.yaml | 4 + ...valid-multiple-route-level-limits.out.yaml | 4 + ...rafficpolicy-with-local-ratelimit.out.yaml | 4 + ...rafficpolicy-with-panic-threshold.out.yaml | 12 ++ ...dtrafficpolicy-with-proxyprotocol.out.yaml | 8 + ...licy-with-ratelimit-invalid-regex.out.yaml | 4 + ...ckendtrafficpolicy-with-ratelimit.out.yaml | 8 + ...esponse-override-invalid-valueref.out.yaml | 8 + ...fficpolicy-with-response-override.out.yaml | 12 ++ ...backendtrafficpolicy-with-retries.out.yaml | 16 ++ ...olicy-with-same-prefix-httproutes.out.yaml | 8 + ...afficpolicy-with-shared-ratelimit.out.yaml | 8 + ...cp-udp-listeners-apply-on-gateway.out.yaml | 8 + ...-tcp-udp-listeners-apply-on-route.out.yaml | 8 + ...ndtrafficpolicy-with-tcpkeepalive.out.yaml | 8 + ...dtrafficpolicy-with-timeout-error.out.yaml | 4 + ...ficpolicy-with-timeout-targetrefs.out.yaml | 8 + ...backendtrafficpolicy-with-timeout.out.yaml | 8 + ...nttrafficpolicy-for-tcp-listeners.out.yaml | 8 + .../clienttrafficpolicy-http10.out.yaml | 12 ++ .../clienttrafficpolicy-http3.out.yaml | 4 + ...enttrafficpolicy-invalid-settings.out.yaml | 16 ++ .../testdata/conflicting-policies.out.yaml | 8 + .../testdata/custom-filter-order.out.yaml | 4 + ...yextensionpolicy-override-replace.out.yaml | 20 +++ ...extensionpolicy-status-conditions.out.yaml | 8 + ...-extproc-invalid-no-matching-port.out.yaml | 4 + ...licy-with-extproc-invalid-no-port.out.yaml | 4 + ...xtproc-invalid-no-reference-grant.out.yaml | 4 + ...y-with-extproc-invalid-no-service.out.yaml | 4 + ...ith-extproc-with-backendtlspolicy.out.yaml | 16 ++ ...th-extproc-with-mixed-backendrefs.out.yaml | 4 + ...extproc-with-multiple-backendrefs.out.yaml | 12 ++ ...ith-extproc-with-traffic-features.out.yaml | 12 ++ ...yextensionpolicy-with-invalid-lua.out.yaml | 8 + ...xtensionpolicy-with-lua-configmap.out.yaml | 20 +++ .../envoyextensionpolicy-with-lua.out.yaml | 8 + ...xtensionpolicy-with-wasm-env-vars.out.yaml | 8 + ...ensionpolicy-with-wasm-targetrefs.out.yaml | 8 + .../envoyextensionpolicy-with-wasm.out.yaml | 8 + .../envoyproxy-accesslog-als-json.out.yaml | 8 + .../envoyproxy-accesslog-backend.out.yaml | 4 + .../envoyproxy-accesslog-cel.out.yaml | 8 + .../envoyproxy-accesslog-types.out.yaml | 40 +++++ ...envoyproxy-accesslog-with-traffic.out.yaml | 12 ++ ...voyproxy-accesslog-without-format.out.yaml | 12 ++ .../testdata/envoyproxy-accesslog.out.yaml | 12 ++ ...roxy-endpoint-routing-for-gateway.out.yaml | 4 + .../envoyproxy-endpoint-routing.out.yaml | 4 + .../envoyproxy-preserve-route-order.out.yaml | 32 ++++ .../envoyproxy-priority-backend.out.yaml | 12 ++ ...proxy-service-routing-for-gateway.out.yaml | 4 + .../envoyproxy-service-routing.out.yaml | 4 + .../testdata/envoyproxy-tls-settings.out.yaml | 8 + .../envoyproxy-tracing-backend.out.yaml | 4 + ...route-with-valid-extension-filter.out.yaml | 4 + ...-namespace-with-allowed-httproute.out.yaml | 4 + ...stener-with-hostname-intersection.out.yaml | 8 + .../testdata/gateway-infrastructure.out.yaml | 4 + ...with-infrastructure-parametersref.out.yaml | 8 + ...ture-parametersref-does-not-exist.out.yaml | 4 + ...astructure-parametersref-fallback.out.yaml | 8 + ...h-tcproute-with-multiple-backends.out.yaml | 4 + ...her-namespace-allowed-by-refgrant.out.yaml | 4 + ...ith-tls-terminate-and-passthrough.out.yaml | 8 + ...h-udproute-with-multiple-backends.out.yaml | 4 + ...ith-same-algorithm-different-fqdn.out.yaml | 4 + ...-valid-multiple-tls-configuration.out.yaml | 4 + ...ener-with-valid-tls-configuration.out.yaml | 4 + ...with-preexisting-status-condition.out.yaml | 4 + ...-listener-with-multiple-tcproutes.out.yaml | 4 + ...-listener-with-multiple-udproutes.out.yaml | 4 + ...teway-with-stale-status-condition.out.yaml | 4 + ...listeners-on-same-tcp-or-tls-port.out.yaml | 4 + ...th-two-listeners-on-same-udp-port.out.yaml | 4 + ...isteners-with-multiple-httproutes.out.yaml | 16 ++ ...-with-same-port-http-tcp-protocol.out.yaml | 8 + ...-with-same-port-http-udp-protocol.out.yaml | 8 + ...s-with-tcproutes-with-sectionname.out.yaml | 8 + ...ith-tcproutes-without-sectionname.out.yaml | 8 + ...s-with-udproutes-with-sectionname.out.yaml | 8 + ...ith-udproutes-without-sectionname.out.yaml | 8 + .../testdata/grpcroute-with-backend.out.yaml | 10 ++ .../grpcroute-with-header-match.out.yaml | 4 + ...ute-with-method-and-service-match.out.yaml | 8 + .../grpcroute-with-method-match.out.yaml | 8 + ...oute-with-request-header-modifier.out.yaml | 4 + .../grpcroute-with-service-match.out.yaml | 8 + ...dtrafficpolicy-with-timeout-error.out.yaml | 4 + ...backendtrafficpolicy-with-timeout.out.yaml | 8 + ...way-with-more-different-listeners.out.yaml | 32 ++++ ...ng-to-gateway-with-more-listeners.out.yaml | 32 ++++ ...wo-listeners-with-different-ports.out.yaml | 8 + ...ing-to-gateway-with-two-listeners.out.yaml | 8 + .../httproute-attaching-to-gateway.out.yaml | 4 + ...taching-to-listener-matching-port.out.yaml | 4 + ...ner-on-gateway-with-two-listeners.out.yaml | 4 + ...with-backend-and-core-backendrefs.out.yaml | 8 + ...-listener-with-backend-backendref.out.yaml | 8 + ...end-backendrefs-diff-address-type.out.yaml | 4 + ...end-backendrefs-same-address-type.out.yaml | 8 + ...ort-backendrefs-diff-address-type.out.yaml | 4 + ...ort-backendrefs-same-address-type.out.yaml | 4 + ...port-backendref-fqdn-address-type.out.yaml | 4 + ...ner-with-serviceimport-backendref.out.yaml | 4 + .../httproute-attaching-to-listener.out.yaml | 4 + ...httproute-backend-request-timeout.out.yaml | 4 + .../httproute-request-timeout.out.yaml | 4 + .../testdata/httproute-retry.out.yaml | 4 + ...-multiple-backends-and-no-weights.out.yaml | 4 + ...ith-multiple-backends-and-weights.out.yaml | 4 + ...ervice-backends-and-app-protocols.out.yaml | 8 + ...-non-service-backends-and-weights.out.yaml | 8 + ...h-backendref-add-multiple-filters.out.yaml | 8 + ...her-namespace-allowed-by-refgrant.out.yaml | 4 + ...her-namespace-allowed-by-refgrant.out.yaml | 4 + .../httproute-with-cors-filter.out.yaml | 8 + ...tproute-with-credential-injection.out.yaml | 8 + .../httproute-with-empty-matches.out.yaml | 4 + ...proute-with-enable-zone-discovery.out.yaml | 14 ++ ...er-duplicate-add-multiple-filters.out.yaml | 4 + ...with-header-filter-duplicate-adds.out.yaml | 4 + ...duplicate-remove-multiple-filters.out.yaml | 4 + ...h-header-filter-duplicate-removes.out.yaml | 4 + ...ute-with-header-filter-no-headers.out.yaml | 4 + ...tproute-with-header-filter-remove.out.yaml | 4 + ...id-backend-ref-invalid-mixed-kind.out.yaml | 4 + .../testdata/httproute-with-metadata.out.yaml | 14 ++ ...ute-with-mirror-filter-duplicates.out.yaml | 4 + ...route-with-mirror-filter-multiple.out.yaml | 4 + ...irror-filter-percentage-mirroring.out.yaml | 4 + .../httproute-with-mirror-filter.out.yaml | 4 + ...ith-multi-gateways-with-same-name.out.yaml | 4 + ...ltiple-gateways-from-different-ns.out.yaml | 8 + ...-with-response-header-filter-adds.out.yaml | 4 + ...er-duplicate-add-multiple-filters.out.yaml | 4 + ...onse-header-filter-duplicate-adds.out.yaml | 4 + ...duplicate-remove-multiple-filters.out.yaml | 4 + ...e-header-filter-duplicate-removes.out.yaml | 4 + ...response-header-filter-no-headers.out.yaml | 4 + ...ith-response-header-filter-remove.out.yaml | 4 + ...single-rule-with-exact-path-match.out.yaml | 4 + ...ingle-rule-with-http-method-match.out.yaml | 4 + ...h-prefix-and-exact-header-matches.out.yaml | 4 + ...to-gateway-with-wildcard-hostname.out.yaml | 4 + ...to-gateway-with-wildcard-hostname.out.yaml | 8 + ...ite-filter-full-path-replace-http.out.yaml | 4 + ...te-filter-hostname-prefix-replace.out.yaml | 4 + ...e-with-urlrewrite-filter-hostname.out.yaml | 4 + ...ewrite-filter-invalid-filter-type.out.yaml | 4 + ...ewrite-filter-prefix-replace-http.out.yaml | 4 + ...e-filter-regex-match-replace-http.out.yaml | 16 ++ ...e-with-urlrewrite-hostname-filter.out.yaml | 16 ++ ...ng-to-gateway-with-unset-hostname.out.yaml | 4 + .../httproutes-with-multiple-matches.out.yaml | 28 ++++ ...multiple-gateways-multiple-routes.out.yaml | 8 + .../merge-with-isolated-policies-2.out.yaml | 16 ++ .../merge-with-isolated-policies.out.yaml | 8 + .../securitypolicy-override-replace.out.yaml | 12 ++ ...icy-with-authoriztion-client-cidr.out.yaml | 12 ++ ...-authoriztion-headers-and-methods.out.yaml | 4 + ...olicy-with-authoriztion-jwt-claim.out.yaml | 4 + .../securitypolicy-with-basic-auth.out.yaml | 12 ++ .../securitypolicy-with-cors.out.yaml | 12 ++ ...curitypolicy-with-extauth-backend.out.yaml | 32 ++++ ...itypolicy-with-extauth-backendref.out.yaml | 24 +++ .../securitypolicy-with-extauth-body.out.yaml | 20 +++ ...-extauth-invalid-no-matching-port.out.yaml | 4 + ...licy-with-extauth-invalid-no-port.out.yaml | 4 + ...xtauth-invalid-no-reference-grant.out.yaml | 4 + ...y-with-extauth-invalid-no-service.out.yaml | 4 + ...policy-with-extauth-recomputation.out.yaml | 20 +++ ...ith-extauth-with-backendtlspolicy.out.yaml | 16 ++ .../securitypolicy-with-extauth.out.yaml | 24 +++ ...ypolicy-with-jwt-and-invalid-oidc.out.yaml | 8 + ...itypolicy-with-jwt-backendcluster.out.yaml | 8 + ...ecuritypolicy-with-jwt-local-jwks.out.yaml | 16 ++ .../securitypolicy-with-jwt-optional.out.yaml | 8 + ...cy-with-jwt-with-custom-extractor.out.yaml | 8 + .../testdata/securitypolicy-with-jwt.out.yaml | 8 + ...typolicy-with-oidc-backendcluster.out.yaml | 8 + ...typolicy-with-oidc-custom-cookies.out.yaml | 4 + .../securitypolicy-with-oidc.out.yaml | 8 + ...teway-with-listener-tls-terminate.out.yaml | 8 + ...ultiple-backends-and-zero-weights.out.yaml | 4 + .../testdata/tcproute-with-backend.out.yaml | 4 + .../tlsroute-attaching-to-gateway.out.yaml | 4 + .../testdata/tlsroute-multiple.out.yaml | 8 + .../testdata/tlsroute-with-backend.out.yaml | 4 + ...her-namespace-allowed-by-refgrant.out.yaml | 4 + .../tlsroute-with-empty-hostname.out.yaml | 4 + ...oute-with-empty-listener-hostname.out.yaml | 4 + .../tracing-merged-multiple-routes.out.yaml | 12 ++ .../testdata/tracing-multiple-routes.out.yaml | 16 ++ .../tracing-sampling-fraction.out.yaml | 12 ++ ...ultiple-backends-and-zero-weights.out.yaml | 4 + .../testdata/udproute-with-backend.out.yaml | 4 + internal/ir/xds.go | 2 + internal/xds/translator/accesslog.go | 2 + internal/xds/translator/cluster.go | 10 +- .../in/xds-ir/http-route-with-metadata.yaml | 16 ++ .../http-route-with-metadata.clusters.yaml | 20 +++ internal/xds/translator/tracing.go | 1 + internal/xds/translator/translator.go | 14 +- internal/xds/translator/utils.go | 1 + 252 files changed, 2337 insertions(+), 11 deletions(-) diff --git a/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml b/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml index 0d0906fa80..dd09dc36e0 100644 --- a/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml @@ -784,6 +784,14 @@ xds: address: 1.1.1.1 portValue: 8000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: providedBackend + namespace: default + sectionName: "8000" loadBalancingWeight: 1 locality: region: httproute/default/backend/rule/0/backend/0 @@ -798,6 +806,14 @@ xds: address: 1.1.1.1 portValue: 9000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: providedBackend + namespace: default + sectionName: "9000" loadBalancingWeight: 1 locality: region: grpcroute/default/backend/rule/0/backend/0 @@ -812,6 +828,14 @@ xds: address: 1.2.3.4 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" loadBalancingWeight: 1 locality: region: tcproute/default/backend/rule/-1/backend/0 @@ -826,6 +850,14 @@ xds: address: 1.2.3.4 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" loadBalancingWeight: 1 locality: region: tlsroute/default/backend/rule/-1/backend/0 @@ -840,6 +872,14 @@ xds: address: 1.2.3.4 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" loadBalancingWeight: 1 locality: region: udproute/default/backend/rule/-1/backend/0 @@ -861,6 +901,13 @@ xds: serviceName: httproute/default/backend/rule/0 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: HTTPRoute + name: backend + namespace: default name: httproute/default/backend/rule/0 perConnectionBufferLimitBytes: 32768 type: EDS @@ -880,6 +927,13 @@ xds: serviceName: grpcroute/default/backend/rule/0 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: GRPCRoute + name: backend + namespace: default name: grpcroute/default/backend/rule/0 perConnectionBufferLimitBytes: 32768 type: EDS @@ -906,6 +960,13 @@ xds: serviceName: tcproute/default/backend/rule/-1 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: TCPRoute + name: backend + namespace: default name: tcproute/default/backend/rule/-1 perConnectionBufferLimitBytes: 32768 type: EDS @@ -925,6 +986,13 @@ xds: serviceName: tlsroute/default/backend/rule/-1 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: TLSRoute + name: backend + namespace: default name: tlsroute/default/backend/rule/-1 perConnectionBufferLimitBytes: 32768 type: EDS @@ -944,6 +1012,13 @@ xds: serviceName: udproute/default/backend/rule/-1 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: UDPRoute + name: backend + namespace: default name: udproute/default/backend/rule/-1 perConnectionBufferLimitBytes: 32768 type: EDS diff --git a/internal/cmd/egctl/testdata/translate/out/echo-gateway-api.cluster.yaml b/internal/cmd/egctl/testdata/translate/out/echo-gateway-api.cluster.yaml index d04f71dc7c..1fa83bfd36 100644 --- a/internal/cmd/egctl/testdata/translate/out/echo-gateway-api.cluster.yaml +++ b/internal/cmd/egctl/testdata/translate/out/echo-gateway-api.cluster.yaml @@ -117,6 +117,13 @@ xds: serviceName: httproute/envoy-gateway-system/backend/rule/0 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: HTTPRoute + name: backend + namespace: envoy-gateway-system name: httproute/envoy-gateway-system/backend/rule/0 perConnectionBufferLimitBytes: 32768 type: EDS diff --git a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json index 02d31b5b08..eab8eabe5b 100644 --- a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json +++ b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json @@ -352,7 +352,21 @@ } } }, - "loadBalancingWeight": 1 + "loadBalancingWeight": 1, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "default", + "sectionName": "3000" + } + ] + } + } + } } ], "loadBalancingWeight": 1, @@ -379,7 +393,21 @@ } } }, - "loadBalancingWeight": 1 + "loadBalancingWeight": 1, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "default", + "sectionName": "9000" + } + ] + } + } + } } ], "loadBalancingWeight": 1, @@ -406,7 +434,21 @@ } } }, - "loadBalancingWeight": 1 + "loadBalancingWeight": 1, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "default", + "sectionName": "3000" + } + ] + } + } + } } ], "loadBalancingWeight": 1, @@ -433,7 +475,21 @@ } } }, - "loadBalancingWeight": 1 + "loadBalancingWeight": 1, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "default", + "sectionName": "3000" + } + ] + } + } + } } ], "loadBalancingWeight": 1, @@ -460,7 +516,21 @@ } } }, - "loadBalancingWeight": 1 + "loadBalancingWeight": 1, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "default", + "sectionName": "3000" + } + ] + } + } + } } ], "loadBalancingWeight": 1, @@ -500,6 +570,19 @@ }, "ignoreHealthOnHostRemoval": true, "lbPolicy": "LEAST_REQUEST", + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "HTTPRoute", + "name": "backend", + "namespace": "default" + } + ] + } + } + }, "name": "httproute/default/backend/rule/0", "perConnectionBufferLimitBytes": 32768, "type": "EDS" @@ -529,6 +612,19 @@ }, "ignoreHealthOnHostRemoval": true, "lbPolicy": "LEAST_REQUEST", + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "GRPCRoute", + "name": "backend", + "namespace": "default" + } + ] + } + } + }, "name": "grpcroute/default/backend/rule/0", "perConnectionBufferLimitBytes": 32768, "type": "EDS", @@ -569,6 +665,19 @@ }, "ignoreHealthOnHostRemoval": true, "lbPolicy": "LEAST_REQUEST", + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "TCPRoute", + "name": "backend", + "namespace": "default" + } + ] + } + } + }, "name": "tcproute/default/backend/rule/-1", "perConnectionBufferLimitBytes": 32768, "type": "EDS" @@ -598,6 +707,19 @@ }, "ignoreHealthOnHostRemoval": true, "lbPolicy": "LEAST_REQUEST", + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "TLSRoute", + "name": "backend", + "namespace": "default" + } + ] + } + } + }, "name": "tlsroute/default/backend/rule/-1", "perConnectionBufferLimitBytes": 32768, "type": "EDS" @@ -627,6 +749,19 @@ }, "ignoreHealthOnHostRemoval": true, "lbPolicy": "LEAST_REQUEST", + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "UDPRoute", + "name": "backend", + "namespace": "default" + } + ] + } + } + }, "name": "udproute/default/backend/rule/-1", "perConnectionBufferLimitBytes": 32768, "type": "EDS" diff --git a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml index 2712f90cf2..0797c9f644 100644 --- a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml @@ -201,6 +201,14 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" loadBalancingWeight: 1 locality: region: httproute/default/backend/rule/0/backend/0 @@ -215,6 +223,14 @@ xds: address: 1.1.1.1 portValue: 9000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "9000" loadBalancingWeight: 1 locality: region: grpcroute/default/backend/rule/0/backend/0 @@ -229,6 +245,14 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" loadBalancingWeight: 1 locality: region: tcproute/default/backend/rule/-1/backend/0 @@ -243,6 +267,14 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" loadBalancingWeight: 1 locality: region: tlsroute/default/backend/rule/-1/backend/0 @@ -257,6 +289,14 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" loadBalancingWeight: 1 locality: region: udproute/default/backend/rule/-1/backend/0 @@ -278,6 +318,13 @@ xds: serviceName: httproute/default/backend/rule/0 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: HTTPRoute + name: backend + namespace: default name: httproute/default/backend/rule/0 perConnectionBufferLimitBytes: 32768 type: EDS @@ -297,6 +344,13 @@ xds: serviceName: grpcroute/default/backend/rule/0 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: GRPCRoute + name: backend + namespace: default name: grpcroute/default/backend/rule/0 perConnectionBufferLimitBytes: 32768 type: EDS @@ -323,6 +377,13 @@ xds: serviceName: tcproute/default/backend/rule/-1 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: TCPRoute + name: backend + namespace: default name: tcproute/default/backend/rule/-1 perConnectionBufferLimitBytes: 32768 type: EDS @@ -342,6 +403,13 @@ xds: serviceName: tlsroute/default/backend/rule/-1 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: TLSRoute + name: backend + namespace: default name: tlsroute/default/backend/rule/-1 perConnectionBufferLimitBytes: 32768 type: EDS @@ -361,6 +429,13 @@ xds: serviceName: udproute/default/backend/rule/-1 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: UDPRoute + name: backend + namespace: default name: udproute/default/backend/rule/-1 perConnectionBufferLimitBytes: 32768 type: EDS diff --git a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.cluster.yaml b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.cluster.yaml index d171965d1c..64b13a3882 100644 --- a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.cluster.yaml +++ b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.cluster.yaml @@ -18,6 +18,13 @@ xds: serviceName: httproute/default/backend/rule/0 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: HTTPRoute + name: backend + namespace: default name: httproute/default/backend/rule/0 perConnectionBufferLimitBytes: 32768 type: EDS @@ -37,6 +44,13 @@ xds: serviceName: grpcroute/default/backend/rule/0 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: GRPCRoute + name: backend + namespace: default name: grpcroute/default/backend/rule/0 perConnectionBufferLimitBytes: 32768 type: EDS @@ -63,6 +77,13 @@ xds: serviceName: tcproute/default/backend/rule/-1 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: TCPRoute + name: backend + namespace: default name: tcproute/default/backend/rule/-1 perConnectionBufferLimitBytes: 32768 type: EDS @@ -82,6 +103,13 @@ xds: serviceName: tlsroute/default/backend/rule/-1 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: TLSRoute + name: backend + namespace: default name: tlsroute/default/backend/rule/-1 perConnectionBufferLimitBytes: 32768 type: EDS @@ -101,6 +129,13 @@ xds: serviceName: udproute/default/backend/rule/-1 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: UDPRoute + name: backend + namespace: default name: udproute/default/backend/rule/-1 perConnectionBufferLimitBytes: 32768 type: EDS diff --git a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.endpoint.yaml b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.endpoint.yaml index 04b9540b97..0351899faf 100644 --- a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.endpoint.yaml +++ b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.endpoint.yaml @@ -13,6 +13,14 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" loadBalancingWeight: 1 locality: region: httproute/default/backend/rule/0/backend/0 @@ -27,6 +35,14 @@ xds: address: 1.1.1.1 portValue: 9000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "9000" loadBalancingWeight: 1 locality: region: grpcroute/default/backend/rule/0/backend/0 @@ -41,6 +57,14 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" loadBalancingWeight: 1 locality: region: tcproute/default/backend/rule/-1/backend/0 @@ -55,6 +79,14 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" loadBalancingWeight: 1 locality: region: tlsroute/default/backend/rule/-1/backend/0 @@ -69,6 +101,14 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" loadBalancingWeight: 1 locality: region: udproute/default/backend/rule/-1/backend/0 diff --git a/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.json b/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.json index ebe7031132..78fdacd001 100644 --- a/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.json +++ b/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.json @@ -352,7 +352,21 @@ } } }, - "loadBalancingWeight": 1 + "loadBalancingWeight": 1, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "envoy-gateway-system", + "sectionName": "3000" + } + ] + } + } + } } ], "loadBalancingWeight": 1, @@ -392,6 +406,19 @@ }, "ignoreHealthOnHostRemoval": true, "lbPolicy": "LEAST_REQUEST", + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "HTTPRoute", + "name": "backend", + "namespace": "envoy-gateway-system" + } + ] + } + } + }, "name": "httproute/envoy-gateway-system/backend/rule/0", "perConnectionBufferLimitBytes": 32768, "type": "EDS" diff --git a/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.yaml b/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.yaml index db49a3e7a0..76c3f34aff 100644 --- a/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.yaml @@ -201,6 +201,14 @@ xds: address: 7.7.7.7 portValue: 3000 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: envoy-gateway-system + sectionName: "3000" loadBalancingWeight: 1 locality: region: httproute/envoy-gateway-system/backend/rule/0/backend/0 @@ -222,6 +230,13 @@ xds: serviceName: httproute/envoy-gateway-system/backend/rule/0 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: HTTPRoute + name: backend + namespace: envoy-gateway-system name: httproute/envoy-gateway-system/backend/rule/0 perConnectionBufferLimitBytes: 32768 type: EDS diff --git a/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.cluster.yaml b/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.cluster.yaml index 08240b7eac..e84d41dcad 100644 --- a/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.cluster.yaml +++ b/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.cluster.yaml @@ -18,6 +18,13 @@ xds: serviceName: httproute/envoy-gateway-system/backend/rule/0 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: HTTPRoute + name: backend + namespace: envoy-gateway-system name: httproute/envoy-gateway-system/backend/rule/0 perConnectionBufferLimitBytes: 32768 type: EDS diff --git a/internal/cmd/egctl/testdata/translate/out/no-service-cluster-ip.all.yaml b/internal/cmd/egctl/testdata/translate/out/no-service-cluster-ip.all.yaml index 6aaf2f1a86..c58d02fb24 100644 --- a/internal/cmd/egctl/testdata/translate/out/no-service-cluster-ip.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/no-service-cluster-ip.all.yaml @@ -201,6 +201,14 @@ xds: address: 1.2.3.4 portValue: 8080 loadBalancingWeight: 1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: envoy-gateway-system + sectionName: "8080" loadBalancingWeight: 1 locality: region: httproute/envoy-gateway-system/routes/rule/0/backend/0 @@ -222,6 +230,13 @@ xds: serviceName: httproute/envoy-gateway-system/routes/rule/0 ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: HTTPRoute + name: routes + namespace: envoy-gateway-system name: httproute/envoy-gateway-system/routes/rule/0 perConnectionBufferLimitBytes: 32768 type: EDS diff --git a/internal/cmd/egctl/testdata/translate/out/quickstart.all.yaml b/internal/cmd/egctl/testdata/translate/out/quickstart.all.yaml index ab2c3a8a5d..26bdeff5a5 100644 --- a/internal/cmd/egctl/testdata/translate/out/quickstart.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/quickstart.all.yaml @@ -121,6 +121,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: backend + namespace: envoy-gateway-system name: httproute/envoy-gateway-system/backend/rule/0 settings: - endpoints: diff --git a/internal/gatewayapi/ext_service.go b/internal/gatewayapi/ext_service.go index 2665497d32..32ee19c2ea 100644 --- a/internal/gatewayapi/ext_service.go +++ b/internal/gatewayapi/ext_service.go @@ -72,6 +72,7 @@ func (t *Translator) translateExtServiceBackendRefs( rs = &ir.RouteDestination{ Name: destName, Settings: ds, + Metadata: buildResourceMetadata(policy, nil), } if validationErr := rs.Validate(); validationErr != nil { diff --git a/internal/gatewayapi/listener.go b/internal/gatewayapi/listener.go index 9f2fb5de26..5efc03f4b1 100644 --- a/internal/gatewayapi/listener.go +++ b/internal/gatewayapi/listener.go @@ -562,6 +562,7 @@ func (t *Translator) processAccessLog(envoyproxy *egv1a1.EnvoyProxy, resources * Destination: ir.RouteDestination{ Name: destName, Settings: ds, + Metadata: buildResourceMetadata(envoyproxy, nil), }, Traffic: traffic, Type: sink.ALS.Type, @@ -605,6 +606,7 @@ func (t *Translator) processAccessLog(envoyproxy *egv1a1.EnvoyProxy, resources * Destination: ir.RouteDestination{ Name: destName, Settings: ds, + Metadata: buildResourceMetadata(envoyproxy, nil), }, Traffic: traffic, LogType: accessLogType, @@ -681,6 +683,7 @@ func (t *Translator) processTracing(gw *gwapiv1.Gateway, envoyproxy *egv1a1.Envo Destination: ir.RouteDestination{ Name: destName, Settings: ds, + Metadata: buildResourceMetadata(envoyproxy, nil), }, Provider: tracing.Provider, Traffic: traffic, diff --git a/internal/gatewayapi/route.go b/internal/gatewayapi/route.go index 2d35c325c4..269dc2e498 100644 --- a/internal/gatewayapi/route.go +++ b/internal/gatewayapi/route.go @@ -251,6 +251,7 @@ func (t *Translator) processHTTPRouteRules(httpRoute *HTTPRouteContext, parentRe for _, irRoute := range ruleRoutes { destination := &ir.RouteDestination{ Settings: allDs, + Metadata: buildResourceMetadata(httpRoute, rule.Name), } switch { @@ -676,6 +677,7 @@ func (t *Translator) processGRPCRouteRules(grpcRoute *GRPCRouteContext, parentRe irRoute.IsHTTP2 = true destination := &ir.RouteDestination{ Settings: allDs, + Metadata: buildResourceMetadata(grpcRoute, rule.Name), } switch { @@ -1001,6 +1003,7 @@ func (t *Translator) processTLSRouteParentRefs(tlsRoute *TLSRouteContext, resour Destination: &ir.RouteDestination{ Name: destName, Settings: destSettings, + Metadata: buildResourceMetadata(tlsRoute, nil), }, } irListener.Routes = append(irListener.Routes, irRoute) @@ -1161,6 +1164,7 @@ func (t *Translator) processUDPRouteParentRefs(udpRoute *UDPRouteContext, resour Destination: &ir.RouteDestination{ Name: destName, Settings: destSettings, + Metadata: buildResourceMetadata(udpRoute, nil), }, } irListener.Route = irRoute @@ -1309,6 +1313,7 @@ func (t *Translator) processTCPRouteParentRefs(tcpRoute *TCPRouteContext, resour Destination: &ir.RouteDestination{ Name: destName, Settings: destSettings, + Metadata: buildResourceMetadata(tcpRoute, nil), }, } diff --git a/internal/gatewayapi/testdata/accesslog-als-backend.out.yaml b/internal/gatewayapi/testdata/accesslog-als-backend.out.yaml index 7e023e67f4..7f2bba5b83 100644 --- a/internal/gatewayapi/testdata/accesslog-als-backend.out.yaml +++ b/internal/gatewayapi/testdata/accesslog-als-backend.out.yaml @@ -154,6 +154,10 @@ xdsIR: accessLog: openTelemetry: - destination: + metadata: + kind: EnvoyProxy + name: als-backend + namespace: envoy-gateway-system name: accesslog_otel_0_0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backend-with-fallback.out.yaml b/internal/gatewayapi/testdata/backend-with-fallback.out.yaml index 5ab1417ff4..977bdd3197 100644 --- a/internal/gatewayapi/testdata/backend-with-fallback.out.yaml +++ b/internal/gatewayapi/testdata/backend-with-fallback.out.yaml @@ -155,6 +155,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtlspolicy-across-ns.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-across-ns.out.yaml index b9710f60ad..cd42106c11 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-across-ns.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-across-ns.out.yaml @@ -138,6 +138,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-btls + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-btls/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtlspolicy-ca-only-secret.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-ca-only-secret.out.yaml index dd631105ec..fa8d5bc971 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-ca-only-secret.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-ca-only-secret.out.yaml @@ -149,6 +149,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-btls + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-btls/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtlspolicy-ca-only.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-ca-only.out.yaml index 80970ce848..545df2dd7c 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-ca-only.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-ca-only.out.yaml @@ -149,6 +149,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-btls + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-btls/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtlspolicy-default-ns-targetrefs.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-default-ns-targetrefs.out.yaml index 521916dd5d..2fea230002 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-default-ns-targetrefs.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-default-ns-targetrefs.out.yaml @@ -284,6 +284,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-btls + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-btls/rule/0 settings: - addressType: IP @@ -358,6 +362,10 @@ xdsIR: port: 10081 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-btls2 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-btls2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtlspolicy-default-ns.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-default-ns.out.yaml index 7ef9ba6b16..800186c9c6 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-default-ns.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-default-ns.out.yaml @@ -244,6 +244,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-btls + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-btls/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtlspolicy-multiple-targets.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-multiple-targets.out.yaml index 1bf37f4efa..bd8e3f12e2 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-multiple-targets.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-multiple-targets.out.yaml @@ -191,6 +191,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-btls-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-btls-1/rule/0 settings: - addressType: IP @@ -223,6 +227,10 @@ xdsIR: exact: /exact-1 name: "" - destination: + metadata: + kind: HTTPRoute + name: httproute-btls-2 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-btls-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtlspolicy-serviceimport-target.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-serviceimport-target.out.yaml index f75fc3dd5c..28c2ad5ba1 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-serviceimport-target.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-serviceimport-target.out.yaml @@ -157,6 +157,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-btls + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-btls/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtlspolicy-system-truststore.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-system-truststore.out.yaml index 7bfafbd482..a6f7f92022 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-system-truststore.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-system-truststore.out.yaml @@ -146,6 +146,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-btls + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-btls/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-out-of-range-error.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-out-of-range-error.out.yaml index ddb20fbddf..3c941bd0d0 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-out-of-range-error.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-out-of-range-error.out.yaml @@ -267,6 +267,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -320,6 +324,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-with-invalid-value.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-with-invalid-value.out.yaml index 6335a831d8..d477bf8f20 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-with-invalid-value.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit-with-invalid-value.out.yaml @@ -267,6 +267,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -320,6 +324,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit.out.yaml index d4a12044e9..1095a0e12d 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-buffer-limit.out.yaml @@ -267,6 +267,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -320,6 +324,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-compression.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-compression.out.yaml index 0166898dde..4ef79dd3dd 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-compression.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-compression.out.yaml @@ -147,6 +147,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-dns-lookup-family.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-dns-lookup-family.out.yaml index 27c2a111c0..20b994d1d6 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-dns-lookup-family.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-dns-lookup-family.out.yaml @@ -350,6 +350,10 @@ xdsIR: accessLog: openTelemetry: - destination: + metadata: + kind: EnvoyProxy + name: config-for-gateway-class + namespace: envoy-gateway name: accesslog_otel_0_1 settings: - metadata: @@ -388,6 +392,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: FQDN @@ -405,6 +413,10 @@ xdsIR: extProcs: - authority: backend-fqdn2.default:9090 destination: + metadata: + kind: EnvoyExtensionPolicy + name: policy-for-httproute + namespace: default name: envoyextensionpolicy/default/policy-for-httproute/extproc/0 settings: - addressType: FQDN @@ -442,6 +454,10 @@ xdsIR: http: authority: backend-v3.gateway-conformance-infra.svc.cluster.local:8080 destination: + metadata: + kind: SecurityPolicy + name: policy-for-gateway-1 + namespace: envoy-gateway name: securitypolicy/envoy-gateway/policy-for-gateway-1/extauth/0 settings: - addressType: FQDN @@ -467,6 +483,10 @@ xdsIR: lookupFamily: IPv6 respectDnsTtl: false - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: FQDN @@ -495,6 +515,10 @@ xdsIR: http: authority: backend-v3.gateway-conformance-infra.svc.cluster.local:8080 destination: + metadata: + kind: SecurityPolicy + name: policy-for-gateway-1 + namespace: envoy-gateway name: securitypolicy/envoy-gateway/policy-for-gateway-1/extauth/0 settings: - addressType: FQDN diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-spdy.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-spdy.out.yaml index 3ff06856b4..8b288cd478 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-spdy.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-spdy.out.yaml @@ -146,6 +146,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-websocket.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-websocket.out.yaml index b3bdb0bdc3..6c8c57c8ae 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-websocket.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-http-upgrade-websocket.out.yaml @@ -147,6 +147,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-override-replace.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-override-replace.out.yaml index a4ca3be197..8109d0bcaa 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-override-replace.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-override-replace.out.yaml @@ -289,6 +289,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -318,6 +322,10 @@ xdsIR: consistentHash: sourceIP: true - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -352,6 +360,10 @@ xdsIR: tcp: connectTimeout: 20s - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-request-buffer.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-request-buffer.out.yaml index 34f12e20b8..1a5e98d7a9 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-request-buffer.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-request-buffer.out.yaml @@ -267,6 +267,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -320,6 +324,10 @@ xdsIR: port: 8080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-status-conditions.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-status-conditions.out.yaml index 9d300a13f7..831dfc2ec1 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-status-conditions.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-status-conditions.out.yaml @@ -564,6 +564,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP @@ -616,6 +620,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: envoy-gateway name: grpcroute/envoy-gateway/grpcroute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-status-fault-injection.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-status-fault-injection.out.yaml index ced724a1f1..cadb46862a 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-status-fault-injection.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-status-fault-injection.out.yaml @@ -347,6 +347,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -401,6 +405,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -431,6 +439,10 @@ xdsIR: httpStatus: 14 percentage: 0.01 - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-tracing.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-tracing.out.yaml index 16d1f7db41..822fc20f11 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-tracing.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-tracing.out.yaml @@ -164,6 +164,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-use-client-protocol.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-use-client-protocol.out.yaml index 5db0af0c2f..2fa5151586 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-use-client-protocol.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-use-client-protocol.out.yaml @@ -144,6 +144,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers-error.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers-error.out.yaml index badef02a13..a1c0f08477 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers-error.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers-error.out.yaml @@ -329,6 +329,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -377,6 +381,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -404,6 +412,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers.out.yaml index 6f457f61dc..b54e7d8204 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-circuitbreakers.out.yaml @@ -271,6 +271,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -324,6 +328,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-dns-settings.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-dns-settings.out.yaml index 9dae0ed088..b2f77f6c93 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-dns-settings.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-dns-settings.out.yaml @@ -336,6 +336,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -390,6 +394,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -419,6 +427,10 @@ xdsIR: dnsRefreshRate: 5s respectDnsTtl: false - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-healthcheck.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-healthcheck.out.yaml index e1cdf6aeea..a923135796 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-healthcheck.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-healthcheck.out.yaml @@ -696,6 +696,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -741,6 +745,10 @@ xdsIR: maxEjectionPercent: 100 splitExternalLocalOriginErrors: false - destination: + metadata: + kind: GRPCRoute + name: grpcroute-3 + namespace: default name: grpcroute/default/grpcroute-3/rule/0 settings: - addressType: IP @@ -771,6 +779,10 @@ xdsIR: timeout: 1s unhealthyThreshold: 3 - destination: + metadata: + kind: GRPCRoute + name: grpcroute-2 + namespace: default name: grpcroute/default/grpcroute-2/rule/0 settings: - addressType: IP @@ -825,6 +837,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -870,6 +886,10 @@ xdsIR: maxEjectionPercent: 10 splitExternalLocalOriginErrors: false - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -915,6 +935,10 @@ xdsIR: maxEjectionPercent: 11 splitExternalLocalOriginErrors: false - destination: + metadata: + kind: HTTPRoute + name: httproute-4 + namespace: default name: httproute/default/httproute-4/rule/0 settings: - addressType: IP @@ -955,6 +979,10 @@ xdsIR: timeout: 1s unhealthyThreshold: 3 - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-http2.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-http2.out.yaml index 3d00e68d46..fb00b3299a 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-http2.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-http2.out.yaml @@ -269,6 +269,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -321,6 +325,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-httproute-timeout.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-httproute-timeout.out.yaml index 34ac177ca9..5b1ca3dad4 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-httproute-timeout.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-httproute-timeout.out.yaml @@ -225,6 +225,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -253,6 +257,10 @@ xdsIR: traffic: {} useClientProtocol: true - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer-invalid-consistent-hash-table-size.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer-invalid-consistent-hash-table-size.out.yaml index e641eec44b..01dbe320f2 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer-invalid-consistent-hash-table-size.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer-invalid-consistent-hash-table-size.out.yaml @@ -218,6 +218,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -245,6 +249,10 @@ xdsIR: name: "" prefix: /test2 - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer.out.yaml index 8d94b62e33..63a13b2f22 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer.out.yaml @@ -439,6 +439,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -488,6 +492,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -518,6 +526,10 @@ xdsIR: slowStart: window: 5m0s - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -548,6 +560,10 @@ xdsIR: cookie: name: test - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-default-route-level-limit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-default-route-level-limit.out.yaml index f0d21eac89..76199e15fa 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-default-route-level-limit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-default-route-level-limit.out.yaml @@ -167,6 +167,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-distinct-match-type.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-distinct-match-type.out.yaml index 0ade1d738b..8667c44d9f 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-distinct-match-type.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-distinct-match-type.out.yaml @@ -167,6 +167,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-limit-unit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-limit-unit.out.yaml index 455c054435..6d74c31632 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-limit-unit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-limit-unit.out.yaml @@ -171,6 +171,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-multiple-route-level-limits.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-multiple-route-level-limits.out.yaml index bbaf6685bb..57f5c38611 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-multiple-route-level-limits.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit-invalid-multiple-route-level-limits.out.yaml @@ -174,6 +174,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit.out.yaml index 9063b95e52..7777bbd3e3 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-local-ratelimit.out.yaml @@ -170,6 +170,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-panic-threshold.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-panic-threshold.out.yaml index 0b07fbdb7d..ee0429d3d7 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-panic-threshold.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-panic-threshold.out.yaml @@ -333,6 +333,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -386,6 +390,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -414,6 +422,10 @@ xdsIR: healthCheck: panicThreshold: 10 - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-proxyprotocol.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-proxyprotocol.out.yaml index 95ea57b392..a07c7307d8 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-proxyprotocol.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-proxyprotocol.out.yaml @@ -263,6 +263,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -312,6 +316,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit-invalid-regex.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit-invalid-regex.out.yaml index f34aec124e..42ce6b0ab1 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit-invalid-regex.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit-invalid-regex.out.yaml @@ -153,6 +153,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit.out.yaml index b2ac3ca69b..0cc9879709 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-ratelimit.out.yaml @@ -295,6 +295,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -359,6 +363,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override-invalid-valueref.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override-invalid-valueref.out.yaml index 5526e72cb6..5ab2755bab 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override-invalid-valueref.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override-invalid-valueref.out.yaml @@ -312,6 +312,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -360,6 +364,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override.out.yaml index a9c4858ff3..07d1dbeeff 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-response-override.out.yaml @@ -382,6 +382,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -452,6 +456,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -501,6 +509,10 @@ xdsIR: } contentType: application/json - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-retries.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-retries.out.yaml index d2a4f079c2..a94353272f 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-retries.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-retries.out.yaml @@ -419,6 +419,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -475,6 +479,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -502,6 +510,10 @@ xdsIR: name: "" prefix: /route2 - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -529,6 +541,10 @@ xdsIR: name: "" prefix: /route3 - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-same-prefix-httproutes.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-same-prefix-httproutes.out.yaml index 5a84d9450d..32f6c67df7 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-same-prefix-httproutes.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-same-prefix-httproutes.out.yaml @@ -186,6 +186,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -216,6 +220,10 @@ xdsIR: maxParallelRequests: 4294967295 maxPendingRequests: 1 - destination: + metadata: + kind: HTTPRoute + name: httproute-1-1 + namespace: default name: httproute/default/httproute-1-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-shared-ratelimit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-shared-ratelimit.out.yaml index 9f593c4709..546211a5b0 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-shared-ratelimit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-shared-ratelimit.out.yaml @@ -296,6 +296,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -361,6 +365,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-gateway.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-gateway.out.yaml index db8bd04c04..3b3da4fb6a 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-gateway.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-gateway.out.yaml @@ -250,6 +250,10 @@ xdsIR: maxPendingRequests: 1 maxRequestsPerConnection: 1 destination: + metadata: + kind: TCPRoute + name: tls-app-1 + namespace: default name: tcproute/default/tls-app-1/rule/-1 settings: - addressType: IP @@ -308,6 +312,10 @@ xdsIR: port: 8162 route: destination: + metadata: + kind: UDPRoute + name: udp-app-1 + namespace: default name: udproute/default/udp-app-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-route.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-route.out.yaml index 7641712e50..97428ff443 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-route.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcp-udp-listeners-apply-on-route.out.yaml @@ -323,6 +323,10 @@ xdsIR: maxPendingRequests: 1 maxRequestsPerConnection: 1 destination: + metadata: + kind: TCPRoute + name: tcp-app-1 + namespace: default name: tcproute/default/tcp-app-1/rule/-1 settings: - addressType: IP @@ -381,6 +385,10 @@ xdsIR: port: 8162 route: destination: + metadata: + kind: UDPRoute + name: udp-app-1 + namespace: default name: udproute/default/udp-app-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcpkeepalive.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcpkeepalive.out.yaml index f07411bb39..c4ba71bf3a 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcpkeepalive.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-tcpkeepalive.out.yaml @@ -267,6 +267,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -318,6 +322,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-error.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-error.out.yaml index 47aa4ad818..f3e2fe090e 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-error.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-error.out.yaml @@ -144,6 +144,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-targetrefs.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-targetrefs.out.yaml index 6bee43c43c..bdc41a4ac9 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-targetrefs.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout-targetrefs.out.yaml @@ -255,6 +255,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: envoy-gateway name: grpcroute/envoy-gateway/grpcroute-1/rule/0 settings: - addressType: IP @@ -309,6 +313,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout.out.yaml index d23a39036d..dbfdd17279 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-with-timeout.out.yaml @@ -275,6 +275,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -329,6 +333,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/clienttrafficpolicy-for-tcp-listeners.out.yaml b/internal/gatewayapi/testdata/clienttrafficpolicy-for-tcp-listeners.out.yaml index 0032f5ee2f..fd461db6cc 100644 --- a/internal/gatewayapi/testdata/clienttrafficpolicy-for-tcp-listeners.out.yaml +++ b/internal/gatewayapi/testdata/clienttrafficpolicy-for-tcp-listeners.out.yaml @@ -201,6 +201,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP @@ -268,6 +272,10 @@ xdsIR: port: 8080 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/clienttrafficpolicy-http10.out.yaml b/internal/gatewayapi/testdata/clienttrafficpolicy-http10.out.yaml index 85135a766b..12b7687d48 100644 --- a/internal/gatewayapi/testdata/clienttrafficpolicy-http10.out.yaml +++ b/internal/gatewayapi/testdata/clienttrafficpolicy-http10.out.yaml @@ -522,6 +522,10 @@ xdsIR: port: 8082 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP @@ -564,6 +568,10 @@ xdsIR: port: 8083 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP @@ -592,6 +600,10 @@ xdsIR: name: "" prefix: / - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/clienttrafficpolicy-http3.out.yaml b/internal/gatewayapi/testdata/clienttrafficpolicy-http3.out.yaml index 5e185222aa..e97251f94a 100644 --- a/internal/gatewayapi/testdata/clienttrafficpolicy-http3.out.yaml +++ b/internal/gatewayapi/testdata/clienttrafficpolicy-http3.out.yaml @@ -150,6 +150,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/clienttrafficpolicy-invalid-settings.out.yaml b/internal/gatewayapi/testdata/clienttrafficpolicy-invalid-settings.out.yaml index 21f482ae79..13d1b807a7 100644 --- a/internal/gatewayapi/testdata/clienttrafficpolicy-invalid-settings.out.yaml +++ b/internal/gatewayapi/testdata/clienttrafficpolicy-invalid-settings.out.yaml @@ -407,6 +407,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -430,6 +434,10 @@ xdsIR: namespace: default name: httproute/default/httproute-1/rule/0/match/-1/* - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -480,6 +488,10 @@ xdsIR: port: 8080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -522,6 +534,10 @@ xdsIR: port: 5000 routes: - destination: + metadata: + kind: TCPRoute + name: tcp-route-1 + namespace: default name: tcproute/default/tcp-route-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/conflicting-policies.out.yaml b/internal/gatewayapi/testdata/conflicting-policies.out.yaml index 98c7dbb315..044aa6691c 100644 --- a/internal/gatewayapi/testdata/conflicting-policies.out.yaml +++ b/internal/gatewayapi/testdata/conflicting-policies.out.yaml @@ -282,6 +282,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: bdkzlmibsivuiqav + namespace: default name: httproute/default/bdkzlmibsivuiqav/rule/0 settings: - addressType: IP @@ -322,6 +326,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: mfqjpuycbgjrtdww + namespace: default name: httproute/default/mfqjpuycbgjrtdww/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/custom-filter-order.out.yaml b/internal/gatewayapi/testdata/custom-filter-order.out.yaml index bd6e1fadc3..74f368ed3f 100644 --- a/internal/gatewayapi/testdata/custom-filter-order.out.yaml +++ b/internal/gatewayapi/testdata/custom-filter-order.out.yaml @@ -242,6 +242,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-override-replace.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-override-replace.out.yaml index 901bc11bd7..671155b84a 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-override-replace.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-override-replace.out.yaml @@ -285,6 +285,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -302,6 +306,10 @@ xdsIR: extProcs: - authority: grpc-backend-2.default:8000 destination: + metadata: + kind: EnvoyExtensionPolicy + name: policy-for-route-1 + namespace: default name: envoyextensionpolicy/default/policy-for-route-1/extproc/0 settings: - metadata: @@ -325,6 +333,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -342,6 +354,10 @@ xdsIR: extProcs: - authority: grpc-backend.envoy-gateway:9000 destination: + metadata: + kind: EnvoyExtensionPolicy + name: policy-for-gateway-1 + namespace: envoy-gateway name: envoyextensionpolicy/envoy-gateway/policy-for-gateway-1/extproc/0 settings: - metadata: @@ -365,6 +381,10 @@ xdsIR: name: "" prefix: /bar - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-status-conditions.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-status-conditions.out.yaml index 7e2a3a52c9..4eecf91b99 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-status-conditions.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-status-conditions.out.yaml @@ -564,6 +564,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP @@ -616,6 +620,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: envoy-gateway name: grpcroute/envoy-gateway/grpcroute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-matching-port.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-matching-port.out.yaml index ba3d58c682..4cc4861bda 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-matching-port.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-matching-port.out.yaml @@ -147,6 +147,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-port.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-port.out.yaml index e4a52839c9..d8d101a395 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-port.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-port.out.yaml @@ -147,6 +147,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-reference-grant.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-reference-grant.out.yaml index 968c6b6857..5aadd92998 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-reference-grant.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-reference-grant.out.yaml @@ -149,6 +149,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-service.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-service.out.yaml index c8b7dd344d..080115d0b5 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-service.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-invalid-no-service.out.yaml @@ -148,6 +148,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-backendtlspolicy.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-backendtlspolicy.out.yaml index ef1439dc91..c52c284431 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-backendtlspolicy.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-backendtlspolicy.out.yaml @@ -308,6 +308,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -325,6 +329,10 @@ xdsIR: extProcs: - authority: grpc-backend-2.default:9000 destination: + metadata: + kind: EnvoyExtensionPolicy + name: policy-for-http-route + namespace: default name: envoyextensionpolicy/default/policy-for-http-route/extproc/0 settings: - addressType: IP @@ -360,6 +368,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -378,6 +390,10 @@ xdsIR: - allowModeOverride: true authority: grpc-backend.envoy-gateway:8000 destination: + metadata: + kind: EnvoyExtensionPolicy + name: policy-for-gateway + namespace: default name: envoyextensionpolicy/default/policy-for-gateway/extproc/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-mixed-backendrefs.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-mixed-backendrefs.out.yaml index f4b9f09be2..2f61e6146a 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-mixed-backendrefs.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-mixed-backendrefs.out.yaml @@ -191,6 +191,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-multiple-backendrefs.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-multiple-backendrefs.out.yaml index e6402a5665..51a65359bd 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-multiple-backendrefs.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-multiple-backendrefs.out.yaml @@ -297,6 +297,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -314,6 +318,10 @@ xdsIR: extProcs: - authority: grpc-backend.envoy-gateway:8000 destination: + metadata: + kind: EnvoyExtensionPolicy + name: policy-for-http-route + namespace: default name: envoyextensionpolicy/default/policy-for-http-route/extproc/0 settings: - addressType: IP @@ -384,6 +392,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-traffic-features.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-traffic-features.out.yaml index 21f5454676..3500b3aa15 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-traffic-features.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-extproc-with-traffic-features.out.yaml @@ -326,6 +326,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -343,6 +347,10 @@ xdsIR: extProcs: - authority: grpc-backend.envoy-gateway:8000 destination: + metadata: + kind: EnvoyExtensionPolicy + name: policy-for-http-route + namespace: default name: envoyextensionpolicy/default/policy-for-http-route/extproc/0 settings: - addressType: IP @@ -440,6 +448,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-invalid-lua.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-invalid-lua.out.yaml index f517a5598a..60a250d0f6 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-invalid-lua.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-invalid-lua.out.yaml @@ -224,6 +224,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -256,6 +260,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua-configmap.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua-configmap.out.yaml index 17f2fc1581..edd3d74806 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua-configmap.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua-configmap.out.yaml @@ -405,6 +405,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -439,6 +443,10 @@ xdsIR: name: "" prefix: /bar3 - destination: + metadata: + kind: HTTPRoute + name: httproute-4 + namespace: default name: httproute/default/httproute-4/rule/0 settings: - addressType: IP @@ -473,6 +481,10 @@ xdsIR: name: "" prefix: /bar4 - destination: + metadata: + kind: HTTPRoute + name: httproute-5 + namespace: default name: httproute/default/httproute-5/rule/0 settings: - addressType: IP @@ -507,6 +519,10 @@ xdsIR: name: "" prefix: /bar5 - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -539,6 +555,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua.out.yaml index 18ad427ff7..c6ea37218c 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-lua.out.yaml @@ -221,6 +221,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -251,6 +255,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-env-vars.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-env-vars.out.yaml index ecec08a733..5b8e5e9cd5 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-env-vars.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-env-vars.out.yaml @@ -256,6 +256,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -294,6 +298,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-targetrefs.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-targetrefs.out.yaml index 3707566d33..3a4d9ace19 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-targetrefs.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm-targetrefs.out.yaml @@ -224,6 +224,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP @@ -274,6 +278,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm.out.yaml b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm.out.yaml index 152fb211cf..a24f788861 100644 --- a/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm.out.yaml +++ b/internal/gatewayapi/testdata/envoyextensionpolicy-with-wasm.out.yaml @@ -258,6 +258,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -298,6 +302,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-als-json.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-als-json.out.yaml index fe85d2fb15..af490aee54 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-als-json.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-als-json.out.yaml @@ -153,6 +153,10 @@ xdsIR: attr1: val1 attr2: val2 destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_0_0 settings: - addressType: IP @@ -179,6 +183,10 @@ xdsIR: attr1: val1 attr2: val2 destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_0_1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-backend.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-backend.out.yaml index 78fd53529f..adb656a045 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-backend.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-backend.out.yaml @@ -138,6 +138,10 @@ xdsIR: accessLog: openTelemetry: - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_otel_0_1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-cel.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-cel.out.yaml index 9d65f98bf7..68f4e00807 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-cel.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-cel.out.yaml @@ -146,6 +146,10 @@ xdsIR: accessLog: als: - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_1_0 settings: - addressType: IP @@ -166,6 +170,10 @@ xdsIR: celMatches: - response.code >= 400 destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_otel_0_1 settings: - endpoints: diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-types.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-types.out.yaml index 7d9194e7e2..c4f0d0cba8 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-types.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-types.out.yaml @@ -272,6 +272,10 @@ xdsIR: accessLog: als: - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_2_1 settings: - addressType: IP @@ -298,6 +302,10 @@ xdsIR: this is a route log type: HTTP - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_2_2 settings: - addressType: IP @@ -317,6 +325,10 @@ xdsIR: this is a route log type: TCP - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_3_1 settings: - addressType: IP @@ -343,6 +355,10 @@ xdsIR: this is a listener log type: HTTP - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_3_2 settings: - addressType: IP @@ -362,6 +378,10 @@ xdsIR: this is a listener log type: TCP - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_4_1 settings: - addressType: IP @@ -387,6 +407,10 @@ xdsIR: this is a Global log type: HTTP - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_4_2 settings: - addressType: IP @@ -412,6 +436,10 @@ xdsIR: openTelemetry: - authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_otel_2_3 settings: - endpoints: @@ -427,6 +455,10 @@ xdsIR: this is a route log - authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_otel_3_3 settings: - endpoints: @@ -442,6 +474,10 @@ xdsIR: this is a listener log - authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_otel_4_3 settings: - endpoints: @@ -483,6 +519,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-with-traffic.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-with-traffic.out.yaml index 417f6cf891..6842e6848f 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-with-traffic.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-with-traffic.out.yaml @@ -212,6 +212,10 @@ xdsIR: accessLog: als: - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_0_1 settings: - addressType: IP @@ -262,6 +266,10 @@ xdsIR: connectTimeout: 15s type: HTTP - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_0_2 settings: - addressType: IP @@ -282,6 +290,10 @@ xdsIR: openTelemetry: - authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_otel_0_3 settings: - endpoints: diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog-without-format.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog-without-format.out.yaml index 00681aa413..c91e37be39 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog-without-format.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog-without-format.out.yaml @@ -154,6 +154,10 @@ xdsIR: accessLog: als: - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_0_1 settings: - addressType: IP @@ -177,6 +181,10 @@ xdsIR: name: accesslog type: HTTP - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_0_2 settings: - addressType: IP @@ -195,6 +203,10 @@ xdsIR: openTelemetry: - authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_otel_0_3 settings: - endpoints: diff --git a/internal/gatewayapi/testdata/envoyproxy-accesslog.out.yaml b/internal/gatewayapi/testdata/envoyproxy-accesslog.out.yaml index 41cc154de6..9ae9a6d47b 100644 --- a/internal/gatewayapi/testdata/envoyproxy-accesslog.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-accesslog.out.yaml @@ -158,6 +158,10 @@ xdsIR: accessLog: als: - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_0_1 settings: - addressType: IP @@ -183,6 +187,10 @@ xdsIR: [%START_TIME%] "%REQ(:METHOD)% %PROTOCOL%" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% "%REQ(X-FORWARDED-FOR)%" "%REQ(USER-AGENT)%" "%REQ(X-REQUEST-ID)%" "%REQ(:AUTHORITY)%" "%UPSTREAM_HOST%"\n type: HTTP - destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_als_0_2 settings: - addressType: IP @@ -203,6 +211,10 @@ xdsIR: openTelemetry: - authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: accesslog_otel_0_3 settings: - endpoints: diff --git a/internal/gatewayapi/testdata/envoyproxy-endpoint-routing-for-gateway.out.yaml b/internal/gatewayapi/testdata/envoyproxy-endpoint-routing-for-gateway.out.yaml index 60595a20c3..ea836ff0b6 100644 --- a/internal/gatewayapi/testdata/envoyproxy-endpoint-routing-for-gateway.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-endpoint-routing-for-gateway.out.yaml @@ -129,6 +129,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyproxy-endpoint-routing.out.yaml b/internal/gatewayapi/testdata/envoyproxy-endpoint-routing.out.yaml index a79d010bd4..6c1e69cc2c 100644 --- a/internal/gatewayapi/testdata/envoyproxy-endpoint-routing.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-endpoint-routing.out.yaml @@ -124,6 +124,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyproxy-preserve-route-order.out.yaml b/internal/gatewayapi/testdata/envoyproxy-preserve-route-order.out.yaml index 8959f6593a..9f7e4f4e64 100644 --- a/internal/gatewayapi/testdata/envoyproxy-preserve-route-order.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-preserve-route-order.out.yaml @@ -175,6 +175,10 @@ xdsIR: preserveRouteOrder: true routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -200,6 +204,10 @@ xdsIR: name: "" prefix: / - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/1 settings: - addressType: IP @@ -225,6 +233,10 @@ xdsIR: name: "" safeRegex: /regex/between/prefixes/* - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/2 settings: - addressType: IP @@ -250,6 +262,10 @@ xdsIR: name: "" prefix: /specific/prefix/after/less/specific - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/3 settings: - addressType: IP @@ -275,6 +291,10 @@ xdsIR: exact: /exact name: "" - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/4 settings: - addressType: IP @@ -300,6 +320,10 @@ xdsIR: name: "" safeRegex: /regex/between/exacts/* - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/5 settings: - addressType: IP @@ -325,6 +349,10 @@ xdsIR: exact: /specific/exact/after/less/specific name: "" - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/6 settings: - addressType: IP @@ -350,6 +378,10 @@ xdsIR: name: "" safeRegex: /short/regex/* - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/7 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyproxy-priority-backend.out.yaml b/internal/gatewayapi/testdata/envoyproxy-priority-backend.out.yaml index f4e966ef90..2c2e0df086 100644 --- a/internal/gatewayapi/testdata/envoyproxy-priority-backend.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-priority-backend.out.yaml @@ -300,6 +300,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -317,6 +321,10 @@ xdsIR: extProcs: - authority: grpc-backend.envoy-gateway:8000 destination: + metadata: + kind: EnvoyExtensionPolicy + name: policy-for-http-route + namespace: default name: envoyextensionpolicy/default/policy-for-http-route/extproc/0 settings: - addressType: IP @@ -390,6 +398,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyproxy-service-routing-for-gateway.out.yaml b/internal/gatewayapi/testdata/envoyproxy-service-routing-for-gateway.out.yaml index b5c24c2734..4db5670570 100644 --- a/internal/gatewayapi/testdata/envoyproxy-service-routing-for-gateway.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-service-routing-for-gateway.out.yaml @@ -129,6 +129,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - endpoints: diff --git a/internal/gatewayapi/testdata/envoyproxy-service-routing.out.yaml b/internal/gatewayapi/testdata/envoyproxy-service-routing.out.yaml index e7ad2c0690..a3ae99eb3b 100644 --- a/internal/gatewayapi/testdata/envoyproxy-service-routing.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-service-routing.out.yaml @@ -124,6 +124,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - endpoints: diff --git a/internal/gatewayapi/testdata/envoyproxy-tls-settings.out.yaml b/internal/gatewayapi/testdata/envoyproxy-tls-settings.out.yaml index 0d1ad632d0..a1d2a2bbd2 100644 --- a/internal/gatewayapi/testdata/envoyproxy-tls-settings.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-tls-settings.out.yaml @@ -242,6 +242,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-tls + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-tls/rule/0 settings: - addressType: IP @@ -303,6 +307,10 @@ xdsIR: port: 10445 routes: - destination: + metadata: + kind: TCPRoute + name: envoy-gateway + namespace: envoy-gateway name: tcproute/envoy-gateway/envoy-gateway/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/envoyproxy-tracing-backend.out.yaml b/internal/gatewayapi/testdata/envoyproxy-tracing-backend.out.yaml index 9be00dff13..7ffbe5290d 100644 --- a/internal/gatewayapi/testdata/envoyproxy-tracing-backend.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-tracing-backend.out.yaml @@ -177,6 +177,10 @@ xdsIR: port: 19003 tracing: destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway-system name: tracing settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/extensions/httproute-with-valid-extension-filter.out.yaml b/internal/gatewayapi/testdata/extensions/httproute-with-valid-extension-filter.out.yaml index aab02dbf31..dd23c6fc37 100644 --- a/internal/gatewayapi/testdata/extensions/httproute-with-valid-extension-filter.out.yaml +++ b/internal/gatewayapi/testdata/extensions/httproute-with-valid-extension-filter.out.yaml @@ -124,6 +124,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-allows-same-namespace-with-allowed-httproute.out.yaml b/internal/gatewayapi/testdata/gateway-allows-same-namespace-with-allowed-httproute.out.yaml index f4051f6613..33e797499f 100644 --- a/internal/gatewayapi/testdata/gateway-allows-same-namespace-with-allowed-httproute.out.yaml +++ b/internal/gatewayapi/testdata/gateway-allows-same-namespace-with-allowed-httproute.out.yaml @@ -113,6 +113,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-http-listener-with-hostname-intersection.out.yaml b/internal/gatewayapi/testdata/gateway-http-listener-with-hostname-intersection.out.yaml index 069e9d9f66..14a2de6dbc 100644 --- a/internal/gatewayapi/testdata/gateway-http-listener-with-hostname-intersection.out.yaml +++ b/internal/gatewayapi/testdata/gateway-http-listener-with-hostname-intersection.out.yaml @@ -189,6 +189,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP @@ -230,6 +234,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-infrastructure.out.yaml b/internal/gatewayapi/testdata/gateway-infrastructure.out.yaml index cc96a88e36..8867c0ddd8 100644 --- a/internal/gatewayapi/testdata/gateway-infrastructure.out.yaml +++ b/internal/gatewayapi/testdata/gateway-infrastructure.out.yaml @@ -131,6 +131,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-infrastructure-parametersref.out.yaml b/internal/gatewayapi/testdata/gateway-with-infrastructure-parametersref.out.yaml index 869beda275..9ed1f70a21 100644 --- a/internal/gatewayapi/testdata/gateway-with-infrastructure-parametersref.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-infrastructure-parametersref.out.yaml @@ -140,6 +140,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -172,6 +176,10 @@ xdsIR: tracing: authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway name: tracing settings: - endpoints: diff --git a/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-does-not-exist.out.yaml b/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-does-not-exist.out.yaml index 1d06e92b4b..8a97609951 100644 --- a/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-does-not-exist.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-does-not-exist.out.yaml @@ -123,6 +123,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-fallback.out.yaml b/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-fallback.out.yaml index 877e9e8711..77fc2e82d8 100644 --- a/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-fallback.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-invalid-infrastructure-parametersref-fallback.out.yaml @@ -140,6 +140,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -172,6 +176,10 @@ xdsIR: tracing: authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway name: tracing settings: - endpoints: diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-multiple-backends.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-multiple-backends.out.yaml index a01c537f3e..8f33aa5dd7 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-multiple-backends.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-multiple-backends.out.yaml @@ -106,6 +106,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-tls-secret-in-other-namespace-allowed-by-refgrant.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-tls-secret-in-other-namespace-allowed-by-refgrant.out.yaml index 2f50b88ce3..c4c88292fc 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-tls-secret-in-other-namespace-allowed-by-refgrant.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-tls-secret-in-other-namespace-allowed-by-refgrant.out.yaml @@ -120,6 +120,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-tls-terminate-and-passthrough.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-tls-terminate-and-passthrough.out.yaml index c38bbfbaca..f46c75de5d 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-tls-terminate-and-passthrough.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-tls-terminate-and-passthrough.out.yaml @@ -189,6 +189,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -230,6 +234,10 @@ xdsIR: port: 10090 routes: - destination: + metadata: + kind: TLSRoute + name: tlsroute-1 + namespace: default name: tlsroute/default/tlsroute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-udproute-with-multiple-backends.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-udproute-with-multiple-backends.out.yaml index b7720d14aa..ece8b6875e 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-udproute-with-multiple-backends.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-udproute-with-multiple-backends.out.yaml @@ -106,6 +106,10 @@ xdsIR: port: 10080 route: destination: + metadata: + kind: UDPRoute + name: udproute-1 + namespace: default name: udproute/default/udproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration-with-same-algorithm-different-fqdn.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration-with-same-algorithm-different-fqdn.out.yaml index b46bca4f16..da74ba3d95 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration-with-same-algorithm-different-fqdn.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration-with-same-algorithm-different-fqdn.out.yaml @@ -122,6 +122,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration.out.yaml index 288642010f..3bfc025bad 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-multiple-tls-configuration.out.yaml @@ -122,6 +122,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-tls-configuration.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-tls-configuration.out.yaml index 150bf1a76a..ef95706331 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-valid-tls-configuration.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-valid-tls-configuration.out.yaml @@ -119,6 +119,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-preexisting-status-condition.out.yaml b/internal/gatewayapi/testdata/gateway-with-preexisting-status-condition.out.yaml index 854c07beab..81f4296046 100644 --- a/internal/gatewayapi/testdata/gateway-with-preexisting-status-condition.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-preexisting-status-condition.out.yaml @@ -113,6 +113,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-tcproutes.out.yaml b/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-tcproutes.out.yaml index b99b366476..9031890f8b 100644 --- a/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-tcproutes.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-tcproutes.out.yaml @@ -133,6 +133,10 @@ xdsIR: port: 10162 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-udproutes.out.yaml b/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-udproutes.out.yaml index 3b39cbd7f7..85e2c33bc9 100644 --- a/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-udproutes.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-single-listener-with-multiple-udproutes.out.yaml @@ -133,6 +133,10 @@ xdsIR: port: 10162 route: destination: + metadata: + kind: UDPRoute + name: udproute-1 + namespace: default name: udproute/default/udproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-stale-status-condition.out.yaml b/internal/gatewayapi/testdata/gateway-with-stale-status-condition.out.yaml index c5fd3c0efb..682d54907f 100644 --- a/internal/gatewayapi/testdata/gateway-with-stale-status-condition.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-stale-status-condition.out.yaml @@ -119,6 +119,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-tcp-or-tls-port.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-tcp-or-tls-port.out.yaml index 460266e483..ed3a247e86 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-tcp-or-tls-port.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-tcp-or-tls-port.out.yaml @@ -126,6 +126,10 @@ xdsIR: port: 10162 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-udp-port.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-udp-port.out.yaml index 6975f23eb1..30ee22369c 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-udp-port.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-on-same-udp-port.out.yaml @@ -129,6 +129,10 @@ xdsIR: port: 10162 route: destination: + metadata: + kind: UDPRoute + name: udproute-1 + namespace: default name: udproute/default/udproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-multiple-httproutes.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-multiple-httproutes.out.yaml index e119db5e6e..6c7f49c1b3 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-multiple-httproutes.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-multiple-httproutes.out.yaml @@ -185,6 +185,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -210,6 +214,10 @@ xdsIR: name: "" prefix: /test - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -250,6 +258,10 @@ xdsIR: port: 10081 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -275,6 +287,10 @@ xdsIR: name: "" prefix: /test - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-tcp-protocol.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-tcp-protocol.out.yaml index 7071bf29f6..a60da6b474 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-tcp-protocol.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-tcp-protocol.out.yaml @@ -180,6 +180,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -215,6 +219,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-udp-protocol.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-udp-protocol.out.yaml index 4aafb6fde5..078814cdb9 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-udp-protocol.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-same-port-http-udp-protocol.out.yaml @@ -180,6 +180,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -215,6 +219,10 @@ xdsIR: port: 10080 route: destination: + metadata: + kind: UDPRoute + name: udproute-1 + namespace: default name: udproute/default/udproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-with-sectionname.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-with-sectionname.out.yaml index 11bf9a711d..80fed5409e 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-with-sectionname.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-with-sectionname.out.yaml @@ -171,6 +171,10 @@ xdsIR: port: 10162 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP @@ -190,6 +194,10 @@ xdsIR: port: 10163 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-2 + namespace: default name: tcproute/default/tcproute-2/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-without-sectionname.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-without-sectionname.out.yaml index 6125f19fbb..b8e7e6ad65 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-without-sectionname.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-tcproutes-without-sectionname.out.yaml @@ -167,6 +167,10 @@ xdsIR: port: 10161 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP @@ -186,6 +190,10 @@ xdsIR: port: 10162 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-with-sectionname.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-with-sectionname.out.yaml index b9644e2cb3..309b551a1b 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-with-sectionname.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-with-sectionname.out.yaml @@ -171,6 +171,10 @@ xdsIR: port: 10162 route: destination: + metadata: + kind: UDPRoute + name: udproute-1 + namespace: default name: udproute/default/udproute-1/rule/-1 settings: - addressType: IP @@ -190,6 +194,10 @@ xdsIR: port: 10163 route: destination: + metadata: + kind: UDPRoute + name: udproute-2 + namespace: default name: udproute/default/udproute-2/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-without-sectionname.out.yaml b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-without-sectionname.out.yaml index be4b988650..162d3b3e9c 100644 --- a/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-without-sectionname.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-two-listeners-with-udproutes-without-sectionname.out.yaml @@ -167,6 +167,10 @@ xdsIR: port: 10161 route: destination: + metadata: + kind: UDPRoute + name: udproute-1 + namespace: default name: udproute/default/udproute-1/rule/-1 settings: - addressType: IP @@ -186,6 +190,10 @@ xdsIR: port: 10162 route: destination: + metadata: + kind: UDPRoute + name: udproute-1 + namespace: default name: udproute/default/udproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/grpcroute-with-backend.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-backend.out.yaml index acec62d05d..3120ca2f91 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-backend.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-backend.out.yaml @@ -140,6 +140,11 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default + sectionName: grpcrule-1 name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -166,6 +171,11 @@ xdsIR: name: "" safeRegex: /com.[A-Z]+/[A-Za-z_][A-Za-z_0-9]* - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default + sectionName: grpcrule-1 name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/grpcroute-with-header-match.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-header-match.out.yaml index bfc3b01f93..2ad3e137a8 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-header-match.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-header-match.out.yaml @@ -117,6 +117,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/grpcroute-with-method-and-service-match.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-method-and-service-match.out.yaml index e744035e52..8bba8d7af6 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-method-and-service-match.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-method-and-service-match.out.yaml @@ -121,6 +121,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -146,6 +150,10 @@ xdsIR: exact: /com.example/Example name: "" - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/grpcroute-with-method-match.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-method-match.out.yaml index cd5b0a8aaf..1c1455d9cc 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-method-match.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-method-match.out.yaml @@ -119,6 +119,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -144,6 +148,10 @@ xdsIR: name: "" safeRegex: /(?i)\.?[a-z_][a-z_0-9]*(\.[a-z_][a-z_0-9]*)*/FooBar[0-9]+ - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/grpcroute-with-request-header-modifier.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-request-header-modifier.out.yaml index cb93852764..7b5741b10e 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-request-header-modifier.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-request-header-modifier.out.yaml @@ -133,6 +133,10 @@ xdsIR: value: - foo destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/grpcroute-with-service-match.out.yaml b/internal/gatewayapi/testdata/grpcroute-with-service-match.out.yaml index 24e8c81bdc..746479521f 100644 --- a/internal/gatewayapi/testdata/grpcroute-with-service-match.out.yaml +++ b/internal/gatewayapi/testdata/grpcroute-with-service-match.out.yaml @@ -119,6 +119,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -144,6 +148,10 @@ xdsIR: name: "" safeRegex: /com.[A-Z]+/[A-Za-z_][A-Za-z_0-9]* - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout-error.out.yaml b/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout-error.out.yaml index 4c8cd981e0..2d932a7696 100644 --- a/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout-error.out.yaml +++ b/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout-error.out.yaml @@ -151,6 +151,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout.out.yaml b/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout.out.yaml index daf673bfd8..a82d1ad0fb 100644 --- a/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout.out.yaml +++ b/internal/gatewayapi/testdata/httproute-and-backendtrafficpolicy-with-timeout.out.yaml @@ -272,6 +272,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -325,6 +329,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-different-listeners.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-different-listeners.out.yaml index 078b4f39c6..a9d35fc99b 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-different-listeners.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-different-listeners.out.yaml @@ -373,6 +373,10 @@ xdsIR: port: 10081 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -413,6 +417,10 @@ xdsIR: port: 10082 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -453,6 +461,10 @@ xdsIR: port: 10083 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -493,6 +505,10 @@ xdsIR: port: 10084 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -533,6 +549,10 @@ xdsIR: port: 10085 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -573,6 +593,10 @@ xdsIR: port: 10086 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -613,6 +637,10 @@ xdsIR: port: 10087 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -653,6 +681,10 @@ xdsIR: port: 10088 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-listeners.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-listeners.out.yaml index 0c406b7d30..40083a9ede 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-listeners.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-more-listeners.out.yaml @@ -324,6 +324,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -364,6 +368,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -404,6 +412,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -444,6 +456,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -484,6 +500,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -524,6 +544,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -564,6 +588,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -604,6 +632,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners-with-different-ports.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners-with-different-ports.out.yaml index 6815488994..bf5b4df666 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners-with-different-ports.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners-with-different-ports.out.yaml @@ -155,6 +155,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -195,6 +199,10 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners.out.yaml index 1107a98b00..41bb6fc860 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-gateway-with-two-listeners.out.yaml @@ -144,6 +144,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -184,6 +188,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-gateway.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-gateway.out.yaml index b98f952cc9..8ea37d0de7 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-gateway.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-gateway.out.yaml @@ -113,6 +113,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-matching-port.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-matching-port.out.yaml index 6fc47c1190..260a04187b 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-matching-port.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-matching-port.out.yaml @@ -117,6 +117,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-on-gateway-with-two-listeners.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-on-gateway-with-two-listeners.out.yaml index 02af9e963c..08b84b97c6 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-on-gateway-with-two-listeners.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-on-gateway-with-two-listeners.out.yaml @@ -160,6 +160,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-and-core-backendrefs.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-and-core-backendrefs.out.yaml index 23fd357cec..3a85fba33e 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-and-core-backendrefs.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-and-core-backendrefs.out.yaml @@ -219,6 +219,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-static + namespace: default name: httproute/default/httproute-static/rule/0 settings: - addressType: IP @@ -268,6 +272,10 @@ xdsIR: name: "" prefix: /1 - destination: + metadata: + kind: HTTPRoute + name: httproute-fqdn + namespace: default name: httproute/default/httproute-fqdn/rule/0 settings: - addressType: FQDN diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-backendref.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-backendref.out.yaml index 8188c4eed0..fd89eb0800 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-backendref.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-backend-backendref.out.yaml @@ -372,6 +372,10 @@ xdsIR: name: "" prefix: /1 - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: FQDN @@ -397,6 +401,10 @@ xdsIR: name: "" prefix: /3 - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-diff-address-type.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-diff-address-type.out.yaml index 2b3d404bd7..3764b8b690 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-diff-address-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-diff-address-type.out.yaml @@ -325,6 +325,10 @@ xdsIR: name: "" prefix: /2 - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-same-address-type.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-same-address-type.out.yaml index 1e82f54a5a..38acb8fb4d 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-same-address-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-backend-backendrefs-same-address-type.out.yaml @@ -321,6 +321,10 @@ xdsIR: name: "" prefix: /1 - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -357,6 +361,10 @@ xdsIR: name: "" prefix: /2 - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: FQDN diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-diff-address-type.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-diff-address-type.out.yaml index 6a7dfd2bd5..d57c147387 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-diff-address-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-diff-address-type.out.yaml @@ -121,6 +121,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: FQDN diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-same-address-type.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-same-address-type.out.yaml index f7dc3f600a..9ac8daa4d8 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-same-address-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-multiple-serviceimport-backendrefs-same-address-type.out.yaml @@ -121,6 +121,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: FQDN diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref-fqdn-address-type.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref-fqdn-address-type.out.yaml index 69c40ae2f8..bdd92b2226 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref-fqdn-address-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref-fqdn-address-type.out.yaml @@ -117,6 +117,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: FQDN diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref.out.yaml index 610860de08..3f2b7c201e 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener-with-serviceimport-backendref.out.yaml @@ -117,6 +117,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-attaching-to-listener.out.yaml b/internal/gatewayapi/testdata/httproute-attaching-to-listener.out.yaml index b4de1786fb..3708df0728 100644 --- a/internal/gatewayapi/testdata/httproute-attaching-to-listener.out.yaml +++ b/internal/gatewayapi/testdata/httproute-attaching-to-listener.out.yaml @@ -115,6 +115,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-backend-request-timeout.out.yaml b/internal/gatewayapi/testdata/httproute-backend-request-timeout.out.yaml index 9f151a3e0e..ef07eb3def 100644 --- a/internal/gatewayapi/testdata/httproute-backend-request-timeout.out.yaml +++ b/internal/gatewayapi/testdata/httproute-backend-request-timeout.out.yaml @@ -117,6 +117,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-request-timeout.out.yaml b/internal/gatewayapi/testdata/httproute-request-timeout.out.yaml index 6ce89e6fb7..042d8ceb17 100644 --- a/internal/gatewayapi/testdata/httproute-request-timeout.out.yaml +++ b/internal/gatewayapi/testdata/httproute-request-timeout.out.yaml @@ -117,6 +117,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-retry.out.yaml b/internal/gatewayapi/testdata/httproute-retry.out.yaml index e43f495878..c7c2492c4c 100644 --- a/internal/gatewayapi/testdata/httproute-retry.out.yaml +++ b/internal/gatewayapi/testdata/httproute-retry.out.yaml @@ -279,6 +279,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-no-weights.out.yaml b/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-no-weights.out.yaml index 8e2751043a..990a7da5d5 100644 --- a/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-no-weights.out.yaml +++ b/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-no-weights.out.yaml @@ -117,6 +117,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-weights.out.yaml b/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-weights.out.yaml index 785addc4f7..a166c42a3a 100644 --- a/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-weights.out.yaml +++ b/internal/gatewayapi/testdata/httproute-rule-with-multiple-backends-and-weights.out.yaml @@ -123,6 +123,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-app-protocols.out.yaml b/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-app-protocols.out.yaml index 4cba3b694d..b345ef2540 100644 --- a/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-app-protocols.out.yaml +++ b/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-app-protocols.out.yaml @@ -192,6 +192,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -228,6 +232,10 @@ xdsIR: name: "" prefix: / - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: FQDN diff --git a/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-weights.out.yaml b/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-weights.out.yaml index 9584178230..486ed82c21 100644 --- a/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-weights.out.yaml +++ b/internal/gatewayapi/testdata/httproute-rule-with-non-service-backends-and-weights.out.yaml @@ -190,6 +190,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -226,6 +230,10 @@ xdsIR: name: "" prefix: / - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: FQDN diff --git a/internal/gatewayapi/testdata/httproute-with-backendref-add-multiple-filters.out.yaml b/internal/gatewayapi/testdata/httproute-with-backendref-add-multiple-filters.out.yaml index 57ccd1ee05..fd28efae9b 100644 --- a/internal/gatewayapi/testdata/httproute-with-backendref-add-multiple-filters.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-backendref-add-multiple-filters.out.yaml @@ -146,6 +146,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/1 settings: - addressType: IP @@ -191,6 +195,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml b/internal/gatewayapi/testdata/httproute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml index 3f5267a9bb..111ac6d47b 100644 --- a/internal/gatewayapi/testdata/httproute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml @@ -115,6 +115,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-backendref-serviceimport-in-other-namespace-allowed-by-refgrant.out.yaml b/internal/gatewayapi/testdata/httproute-with-backendref-serviceimport-in-other-namespace-allowed-by-refgrant.out.yaml index e2c759a0c8..bef6839d03 100644 --- a/internal/gatewayapi/testdata/httproute-with-backendref-serviceimport-in-other-namespace-allowed-by-refgrant.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-backendref-serviceimport-in-other-namespace-allowed-by-refgrant.out.yaml @@ -117,6 +117,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-cors-filter.out.yaml b/internal/gatewayapi/testdata/httproute-with-cors-filter.out.yaml index fc18619885..fe08c53e98 100644 --- a/internal/gatewayapi/testdata/httproute-with-cors-filter.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-cors-filter.out.yaml @@ -202,6 +202,10 @@ xdsIR: - header4 maxAge: 16m40s destination: + metadata: + kind: HTTPRoute + name: httproute-cors-exact + namespace: default name: httproute/default/httproute-cors-exact/rule/0 settings: - addressType: IP @@ -238,6 +242,10 @@ xdsIR: safeRegex: https://.*\.envoyproxy\.io maxAge: 0s destination: + metadata: + kind: HTTPRoute + name: httproute-cors-wildcard + namespace: default name: httproute/default/httproute-cors-wildcard/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-credential-injection.out.yaml b/internal/gatewayapi/testdata/httproute-with-credential-injection.out.yaml index 293e986567..4220ab6130 100644 --- a/internal/gatewayapi/testdata/httproute-with-credential-injection.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-credential-injection.out.yaml @@ -184,6 +184,10 @@ xdsIR: credential: '[redacted]' name: httproutefilter/default/credential-injection-1 destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -214,6 +218,10 @@ xdsIR: name: httproutefilter/default/credential-injection-2 overwrite: true destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-empty-matches.out.yaml b/internal/gatewayapi/testdata/httproute-with-empty-matches.out.yaml index 6c6d8db775..cc9c282ff7 100644 --- a/internal/gatewayapi/testdata/httproute-with-empty-matches.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-empty-matches.out.yaml @@ -112,6 +112,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-enable-zone-discovery.out.yaml b/internal/gatewayapi/testdata/httproute-with-enable-zone-discovery.out.yaml index 1c897e4864..39eb0bbcdf 100644 --- a/internal/gatewayapi/testdata/httproute-with-enable-zone-discovery.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-enable-zone-discovery.out.yaml @@ -135,6 +135,13 @@ xdsIR: port: 10080 routes: - destination: + metadata: + annotations: + foo: bar + kind: HTTPRoute + name: httproute-1 + namespace: default + sectionName: rule-2 name: httproute/default/httproute-1/rule/1 settings: - addressType: IP @@ -165,6 +172,13 @@ xdsIR: sectionName: rule-2 name: httproute/default/httproute-1/rule/1/match/0/* - destination: + metadata: + annotations: + foo: bar + kind: HTTPRoute + name: httproute-1 + namespace: default + sectionName: rule-1 name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-add-multiple-filters.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-add-multiple-filters.out.yaml index ccd4ae9553..70f33f13d6 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-add-multiple-filters.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-add-multiple-filters.out.yaml @@ -146,6 +146,10 @@ xdsIR: value: - some-value destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-adds.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-adds.out.yaml index ef04cd6777..8cdcedf4b9 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-adds.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-adds.out.yaml @@ -164,6 +164,10 @@ xdsIR: value: - some-value destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-remove-multiple-filters.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-remove-multiple-filters.out.yaml index ce69526d5c..06eef9cd36 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-remove-multiple-filters.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-remove-multiple-filters.out.yaml @@ -129,6 +129,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-removes.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-removes.out.yaml index da73daf315..59337e5402 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-removes.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-removes.out.yaml @@ -124,6 +124,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-no-headers.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-no-headers.out.yaml index 05d55d483c..d0a8b487cf 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-no-headers.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-no-headers.out.yaml @@ -121,6 +121,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-header-filter-remove.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-filter-remove.out.yaml index 156d15d007..e04534f397 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-filter-remove.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-filter-remove.out.yaml @@ -125,6 +125,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-invalid-backend-ref-invalid-mixed-kind.out.yaml b/internal/gatewayapi/testdata/httproute-with-invalid-backend-ref-invalid-mixed-kind.out.yaml index 53d9db4085..ef6ff77d81 100644 --- a/internal/gatewayapi/testdata/httproute-with-invalid-backend-ref-invalid-mixed-kind.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-invalid-backend-ref-invalid-mixed-kind.out.yaml @@ -138,6 +138,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-metadata.out.yaml b/internal/gatewayapi/testdata/httproute-with-metadata.out.yaml index 7fc2658312..1737b662de 100644 --- a/internal/gatewayapi/testdata/httproute-with-metadata.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-metadata.out.yaml @@ -125,6 +125,13 @@ xdsIR: port: 10080 routes: - destination: + metadata: + annotations: + foo: bar + kind: HTTPRoute + name: httproute-1 + namespace: default + sectionName: rule-2 name: httproute/default/httproute-1/rule/1 settings: - addressType: IP @@ -153,6 +160,13 @@ xdsIR: sectionName: rule-2 name: httproute/default/httproute-1/rule/1/match/0/* - destination: + metadata: + annotations: + foo: bar + kind: HTTPRoute + name: httproute-1 + namespace: default + sectionName: rule-1 name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-mirror-filter-duplicates.out.yaml b/internal/gatewayapi/testdata/httproute-with-mirror-filter-duplicates.out.yaml index 10a906aae7..adad8d9226 100644 --- a/internal/gatewayapi/testdata/httproute-with-mirror-filter-duplicates.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-mirror-filter-duplicates.out.yaml @@ -131,6 +131,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-mirror-filter-multiple.out.yaml b/internal/gatewayapi/testdata/httproute-with-mirror-filter-multiple.out.yaml index 9b43c70ee1..ac27bf7aa4 100644 --- a/internal/gatewayapi/testdata/httproute-with-mirror-filter-multiple.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-mirror-filter-multiple.out.yaml @@ -156,6 +156,10 @@ xdsIR: value: - set-overwrites-values destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-mirror-filter-percentage-mirroring.out.yaml b/internal/gatewayapi/testdata/httproute-with-mirror-filter-percentage-mirroring.out.yaml index 65f9fb3b00..7433d1f414 100644 --- a/internal/gatewayapi/testdata/httproute-with-mirror-filter-percentage-mirroring.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-mirror-filter-percentage-mirroring.out.yaml @@ -135,6 +135,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-mirror-filter.out.yaml b/internal/gatewayapi/testdata/httproute-with-mirror-filter.out.yaml index 762659480f..cba9e71a0f 100644 --- a/internal/gatewayapi/testdata/httproute-with-mirror-filter.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-mirror-filter.out.yaml @@ -125,6 +125,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-multi-gateways-with-same-name.out.yaml b/internal/gatewayapi/testdata/httproute-with-multi-gateways-with-same-name.out.yaml index cb56eaaa8b..cf7c5741ca 100644 --- a/internal/gatewayapi/testdata/httproute-with-multi-gateways-with-same-name.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-multi-gateways-with-same-name.out.yaml @@ -167,6 +167,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-multiple-gateways-from-different-ns.out.yaml b/internal/gatewayapi/testdata/httproute-with-multiple-gateways-from-different-ns.out.yaml index 97b1fa6a55..3a28ae48bc 100644 --- a/internal/gatewayapi/testdata/httproute-with-multiple-gateways-from-different-ns.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-multiple-gateways-from-different-ns.out.yaml @@ -199,6 +199,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: targeted-route + namespace: envoy-gateway name: httproute/envoy-gateway/targeted-route/rule/0 settings: - addressType: IP @@ -254,6 +258,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: targeted-route + namespace: envoy-gateway name: httproute/envoy-gateway/targeted-route/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-adds.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-adds.out.yaml index 3e7157a6b3..b34d709288 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-adds.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-adds.out.yaml @@ -160,6 +160,10 @@ xdsIR: value: - some-value destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-add-multiple-filters.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-add-multiple-filters.out.yaml index 5234c21625..32309d8e78 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-add-multiple-filters.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-add-multiple-filters.out.yaml @@ -146,6 +146,10 @@ xdsIR: value: - some-value destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-adds.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-adds.out.yaml index 03bacde473..e5fc445b62 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-adds.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-adds.out.yaml @@ -164,6 +164,10 @@ xdsIR: value: - some-value destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-remove-multiple-filters.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-remove-multiple-filters.out.yaml index 9d51cdfc8a..3046d797a8 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-remove-multiple-filters.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-remove-multiple-filters.out.yaml @@ -129,6 +129,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-removes.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-removes.out.yaml index 4219ae5910..fffd1a978f 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-removes.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-duplicate-removes.out.yaml @@ -124,6 +124,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-no-headers.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-no-headers.out.yaml index f188b28b10..2cb075b815 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-no-headers.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-no-headers.out.yaml @@ -121,6 +121,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-response-header-filter-remove.out.yaml b/internal/gatewayapi/testdata/httproute-with-response-header-filter-remove.out.yaml index a403e6f58e..5c0178ab79 100644 --- a/internal/gatewayapi/testdata/httproute-with-response-header-filter-remove.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-response-header-filter-remove.out.yaml @@ -125,6 +125,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-single-rule-with-exact-path-match.out.yaml b/internal/gatewayapi/testdata/httproute-with-single-rule-with-exact-path-match.out.yaml index 815accd6d2..24e6241339 100644 --- a/internal/gatewayapi/testdata/httproute-with-single-rule-with-exact-path-match.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-single-rule-with-exact-path-match.out.yaml @@ -114,6 +114,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-single-rule-with-http-method-match.out.yaml b/internal/gatewayapi/testdata/httproute-with-single-rule-with-http-method-match.out.yaml index 040eaa09f2..8e968b09ea 100644 --- a/internal/gatewayapi/testdata/httproute-with-single-rule-with-http-method-match.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-single-rule-with-http-method-match.out.yaml @@ -112,6 +112,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-single-rule-with-path-prefix-and-exact-header-matches.out.yaml b/internal/gatewayapi/testdata/httproute-with-single-rule-with-path-prefix-and-exact-header-matches.out.yaml index fc32090087..4e97a95865 100644 --- a/internal/gatewayapi/testdata/httproute-with-single-rule-with-path-prefix-and-exact-header-matches.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-single-rule-with-path-prefix-and-exact-header-matches.out.yaml @@ -118,6 +118,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-specific-hostname-attaching-to-gateway-with-wildcard-hostname.out.yaml b/internal/gatewayapi/testdata/httproute-with-specific-hostname-attaching-to-gateway-with-wildcard-hostname.out.yaml index b51cc1b821..65576a970a 100644 --- a/internal/gatewayapi/testdata/httproute-with-specific-hostname-attaching-to-gateway-with-wildcard-hostname.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-specific-hostname-attaching-to-gateway-with-wildcard-hostname.out.yaml @@ -116,6 +116,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-two-specific-hostnames-attaching-to-gateway-with-wildcard-hostname.out.yaml b/internal/gatewayapi/testdata/httproute-with-two-specific-hostnames-attaching-to-gateway-with-wildcard-hostname.out.yaml index a6145b81ea..2dafca8627 100644 --- a/internal/gatewayapi/testdata/httproute-with-two-specific-hostnames-attaching-to-gateway-with-wildcard-hostname.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-two-specific-hostnames-attaching-to-gateway-with-wildcard-hostname.out.yaml @@ -117,6 +117,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -142,6 +146,10 @@ xdsIR: name: "" prefix: / - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-full-path-replace-http.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-full-path-replace-http.out.yaml index b897354a5b..89d97f8258 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-full-path-replace-http.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-full-path-replace-http.out.yaml @@ -124,6 +124,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname-prefix-replace.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname-prefix-replace.out.yaml index 6dc833ee2d..6e1b4a1374 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname-prefix-replace.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname-prefix-replace.out.yaml @@ -125,6 +125,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname.out.yaml index 3f978d1d2d..03a25fc1f2 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-hostname.out.yaml @@ -122,6 +122,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-invalid-filter-type.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-invalid-filter-type.out.yaml index ad9ba434ed..16731430dd 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-invalid-filter-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-invalid-filter-type.out.yaml @@ -122,6 +122,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-prefix-replace-http.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-prefix-replace-http.out.yaml index c4b43b65e9..c010440e9f 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-prefix-replace-http.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-prefix-replace-http.out.yaml @@ -124,6 +124,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-regex-match-replace-http.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-regex-match-replace-http.out.yaml index eb9979f91c..35fee00386 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-regex-match-replace-http.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-filter-regex-match-replace-http.out.yaml @@ -262,6 +262,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-missing-substitution + namespace: default name: httproute/default/httproute-missing-substitution/rule/0 settings: - addressType: IP @@ -294,6 +298,10 @@ xdsIR: pattern: .* substitution: "" - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -328,6 +336,10 @@ xdsIR: pattern: .* substitution: foo - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -356,6 +368,10 @@ xdsIR: host: name: rewrite.com - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-urlrewrite-hostname-filter.out.yaml b/internal/gatewayapi/testdata/httproute-with-urlrewrite-hostname-filter.out.yaml index b8d70f6005..2bcd164e2a 100644 --- a/internal/gatewayapi/testdata/httproute-with-urlrewrite-hostname-filter.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-urlrewrite-hostname-filter.out.yaml @@ -266,6 +266,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -297,6 +301,10 @@ xdsIR: fullReplace: null prefixMatchReplace: /rewrite - destination: + metadata: + kind: HTTPRoute + name: httproute-4 + namespace: default name: httproute/default/httproute-4/rule/0 settings: - addressType: IP @@ -326,6 +334,10 @@ xdsIR: fullReplace: null prefixMatchReplace: /rewrite - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -354,6 +366,10 @@ xdsIR: host: backend: true - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproute-with-wildcard-hostname-attaching-to-gateway-with-unset-hostname.out.yaml b/internal/gatewayapi/testdata/httproute-with-wildcard-hostname-attaching-to-gateway-with-unset-hostname.out.yaml index 7005afe234..ff89f1a6a6 100644 --- a/internal/gatewayapi/testdata/httproute-with-wildcard-hostname-attaching-to-gateway-with-unset-hostname.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-wildcard-hostname-attaching-to-gateway-with-unset-hostname.out.yaml @@ -115,6 +115,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/httproutes-with-multiple-matches.out.yaml b/internal/gatewayapi/testdata/httproutes-with-multiple-matches.out.yaml index 585db6ea41..dc66e543ab 100644 --- a/internal/gatewayapi/testdata/httproutes-with-multiple-matches.out.yaml +++ b/internal/gatewayapi/testdata/httproutes-with-multiple-matches.out.yaml @@ -300,6 +300,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-2/rule/0 settings: - addressType: IP @@ -330,6 +334,10 @@ xdsIR: exact: "yes" name: debug - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-3/rule/0 settings: - addressType: IP @@ -356,6 +364,10 @@ xdsIR: name: "" prefix: /v1/example - destination: + metadata: + kind: HTTPRoute + name: httproute-4 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-4/rule/0 settings: - addressType: IP @@ -386,6 +398,10 @@ xdsIR: name: "" prefix: /v1/status - destination: + metadata: + kind: HTTPRoute + name: httproute-5 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-5/rule/0 settings: - addressType: IP @@ -412,6 +428,10 @@ xdsIR: name: "" prefix: /v1/status - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP @@ -438,6 +458,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP @@ -464,6 +488,10 @@ xdsIR: name: "" prefix: /foo - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/merge-valid-multiple-gateways-multiple-routes.out.yaml b/internal/gatewayapi/testdata/merge-valid-multiple-gateways-multiple-routes.out.yaml index 19deb19a2b..443c88e21f 100644 --- a/internal/gatewayapi/testdata/merge-valid-multiple-gateways-multiple-routes.out.yaml +++ b/internal/gatewayapi/testdata/merge-valid-multiple-gateways-multiple-routes.out.yaml @@ -240,6 +240,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -294,6 +298,10 @@ xdsIR: port: 8888 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/merge-with-isolated-policies-2.out.yaml b/internal/gatewayapi/testdata/merge-with-isolated-policies-2.out.yaml index 60e828626e..486d319367 100644 --- a/internal/gatewayapi/testdata/merge-with-isolated-policies-2.out.yaml +++ b/internal/gatewayapi/testdata/merge-with-isolated-policies-2.out.yaml @@ -518,6 +518,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -582,6 +586,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -646,6 +654,10 @@ xdsIR: port: 10081 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -702,6 +714,10 @@ xdsIR: port: 10081 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-4 + namespace: default name: httproute/default/httproute-4/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/merge-with-isolated-policies.out.yaml b/internal/gatewayapi/testdata/merge-with-isolated-policies.out.yaml index 0373453fe0..6110df0578 100644 --- a/internal/gatewayapi/testdata/merge-with-isolated-policies.out.yaml +++ b/internal/gatewayapi/testdata/merge-with-isolated-policies.out.yaml @@ -310,6 +310,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -371,6 +375,10 @@ xdsIR: port: 8888 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-override-replace.out.yaml b/internal/gatewayapi/testdata/securitypolicy-override-replace.out.yaml index c14a36454b..8fbc433018 100644 --- a/internal/gatewayapi/testdata/securitypolicy-override-replace.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-override-replace.out.yaml @@ -321,6 +321,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -365,6 +369,10 @@ xdsIR: - x-header-8 maxAge: 33m20s - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -423,6 +431,10 @@ xdsIR: remoteJWKS: uri: https://one.example.com/jwt/public-key/jwks.json - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-client-cidr.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-client-cidr.out.yaml index aeef378d95..9054babd3e 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-client-cidr.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-client-cidr.out.yaml @@ -302,6 +302,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -330,6 +334,10 @@ xdsIR: authorization: defaultAction: Deny - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -387,6 +395,10 @@ xdsIR: isIPv6: false maskLen: 24 - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-headers-and-methods.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-headers-and-methods.out.yaml index aa56a7b33f..5a1996f431 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-headers-and-methods.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-headers-and-methods.out.yaml @@ -158,6 +158,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-jwt-claim.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-jwt-claim.out.yaml index 0e0789505d..16cd36c3c5 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-jwt-claim.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-authoriztion-jwt-claim.out.yaml @@ -171,6 +171,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-basic-auth.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-basic-auth.out.yaml index ad2fa99e23..d752458a15 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-basic-auth.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-basic-auth.out.yaml @@ -229,6 +229,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -258,6 +262,10 @@ xdsIR: name: securitypolicy/default/policy-for-http-route-1 users: '[redacted]' - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/1 settings: - addressType: IP @@ -287,6 +295,10 @@ xdsIR: name: securitypolicy/default/policy-for-http-route-1 users: '[redacted]' - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-cors.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-cors.out.yaml index 12b6deb76d..921f6b5af1 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-cors.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-cors.out.yaml @@ -421,6 +421,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -489,6 +493,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -558,6 +566,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-backend.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-backend.out.yaml index e0badf9f27..2368969813 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-backend.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-backend.out.yaml @@ -380,6 +380,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -410,6 +414,10 @@ xdsIR: grpc: authority: primary.foo.com:3000 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-1 + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0 settings: - addressType: FQDN @@ -428,6 +436,10 @@ xdsIR: - header2 name: securitypolicy/default/policy-for-http-route-1 - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/1 settings: - addressType: IP @@ -458,6 +470,10 @@ xdsIR: grpc: authority: primary.foo.com:3000 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-1 + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0 settings: - addressType: FQDN @@ -476,6 +492,10 @@ xdsIR: - header2 name: securitypolicy/default/policy-for-http-route-1 - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -501,6 +521,10 @@ xdsIR: name: "" prefix: /bar - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -531,6 +555,10 @@ xdsIR: grpc: authority: service-2.default:8080 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-3--grpc-backendref + namespace: default name: securitypolicy/default/policy-for-http-route-3--grpc-backendref/extauth/0 settings: - addressType: IP @@ -566,6 +594,10 @@ xdsIR: http: authority: backend-uds.default destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-3-http-backendref + namespace: default name: securitypolicy/default/policy-for-http-route-3-http-backendref/extauth/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-backendref.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-backendref.out.yaml index 1106356a6f..c7efd384a1 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-backendref.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-backendref.out.yaml @@ -245,6 +245,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -275,6 +279,10 @@ xdsIR: grpc: authority: grpc-backend.default:9000 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-1 + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0 settings: - addressType: IP @@ -294,6 +302,10 @@ xdsIR: - header2 name: securitypolicy/default/policy-for-http-route-1 - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/1 settings: - addressType: IP @@ -324,6 +336,10 @@ xdsIR: grpc: authority: grpc-backend.default:9000 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-1 + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0 settings: - addressType: IP @@ -343,6 +359,10 @@ xdsIR: - header2 name: securitypolicy/default/policy-for-http-route-1 - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -373,6 +393,10 @@ xdsIR: http: authority: http-backend.envoy-gateway:80 destination: + metadata: + kind: SecurityPolicy + name: policy-for-gateway-1 + namespace: default name: securitypolicy/default/policy-for-gateway-1/extauth/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-body.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-body.out.yaml index 9ca00897ee..c830d54e3f 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-body.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-body.out.yaml @@ -220,6 +220,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -252,6 +256,10 @@ xdsIR: grpc: authority: primary.foo.com:3000 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-1 + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0 settings: - addressType: FQDN @@ -270,6 +278,10 @@ xdsIR: - header2 name: securitypolicy/default/policy-for-http-route-1 - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/1 settings: - addressType: IP @@ -302,6 +314,10 @@ xdsIR: grpc: authority: primary.foo.com:3000 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-1 + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0 settings: - addressType: FQDN @@ -320,6 +336,10 @@ xdsIR: - header2 name: securitypolicy/default/policy-for-http-route-1 - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-matching-port.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-matching-port.out.yaml index 2e699a8eb3..9dc5b4cd39 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-matching-port.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-matching-port.out.yaml @@ -153,6 +153,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-port.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-port.out.yaml index 0ebefc16e1..6523d877f4 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-port.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-port.out.yaml @@ -153,6 +153,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-reference-grant.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-reference-grant.out.yaml index 7a14107985..6c86e3690e 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-reference-grant.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-reference-grant.out.yaml @@ -154,6 +154,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-service.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-service.out.yaml index 400ffab4d8..cdb4c5d7bf 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-service.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-invalid-no-service.out.yaml @@ -153,6 +153,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-recomputation.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-recomputation.out.yaml index 37e43ae676..09c9de3fcd 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-recomputation.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-recomputation.out.yaml @@ -219,6 +219,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -249,6 +253,10 @@ xdsIR: grpc: authority: primary.foo.com:3000 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-1 + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0 settings: - addressType: FQDN @@ -268,6 +276,10 @@ xdsIR: name: securitypolicy/default/policy-for-http-route-1 recomputeRoute: true - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/1 settings: - addressType: IP @@ -298,6 +310,10 @@ xdsIR: grpc: authority: primary.foo.com:3000 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-1 + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0 settings: - addressType: FQDN @@ -317,6 +333,10 @@ xdsIR: name: securitypolicy/default/policy-for-http-route-1 recomputeRoute: true - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth-with-backendtlspolicy.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth-with-backendtlspolicy.out.yaml index 305d3d00ed..1e28f95599 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth-with-backendtlspolicy.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth-with-backendtlspolicy.out.yaml @@ -298,6 +298,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -328,6 +332,10 @@ xdsIR: grpc: authority: grpc-backend.default:9000 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route + namespace: default name: securitypolicy/default/policy-for-http-route/extauth/0 settings: - addressType: IP @@ -353,6 +361,10 @@ xdsIR: - header2 name: securitypolicy/default/policy-for-http-route - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -383,6 +395,10 @@ xdsIR: http: authority: http-backend.envoy-gateway:80 destination: + metadata: + kind: SecurityPolicy + name: policy-for-gateway + namespace: default name: securitypolicy/default/policy-for-gateway/extauth/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-extauth.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-extauth.out.yaml index 97a3e965c5..67b1fe1c23 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-extauth.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-extauth.out.yaml @@ -239,6 +239,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -269,6 +273,10 @@ xdsIR: grpc: authority: grpc-backend.default:9000 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-1 + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0 settings: - addressType: IP @@ -288,6 +296,10 @@ xdsIR: - header2 name: securitypolicy/default/policy-for-http-route-1 - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/1 settings: - addressType: IP @@ -318,6 +330,10 @@ xdsIR: grpc: authority: grpc-backend.default:9000 destination: + metadata: + kind: SecurityPolicy + name: policy-for-http-route-1 + namespace: default name: securitypolicy/default/policy-for-http-route-1/extauth/0 settings: - addressType: IP @@ -337,6 +353,10 @@ xdsIR: - header2 name: securitypolicy/default/policy-for-http-route-1 - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -367,6 +387,10 @@ xdsIR: http: authority: http-backend.envoy-gateway:80 destination: + metadata: + kind: SecurityPolicy + name: policy-for-gateway-1 + namespace: default name: securitypolicy/default/policy-for-gateway-1/extauth/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt-and-invalid-oidc.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt-and-invalid-oidc.out.yaml index 42ac10fef6..18f579704f 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt-and-invalid-oidc.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt-and-invalid-oidc.out.yaml @@ -251,6 +251,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -290,6 +294,10 @@ xdsIR: remoteJWKS: uri: https://one.example.com/jwt/public-key/jwks.json - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt-backendcluster.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt-backendcluster.out.yaml index d068924aa9..9c06cb266b 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt-backendcluster.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt-backendcluster.out.yaml @@ -223,6 +223,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -259,6 +263,10 @@ xdsIR: name: foobar remoteJWKS: destination: + metadata: + kind: SecurityPolicy + name: policy-for-route + namespace: default name: securitypolicy/default/policy-for-route/jwt/0 settings: - addressType: FQDN diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt-local-jwks.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt-local-jwks.out.yaml index 5fc79a6cf6..1a756588b9 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt-local-jwks.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt-local-jwks.out.yaml @@ -383,6 +383,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -424,6 +428,10 @@ xdsIR: } name: example1 - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -465,6 +473,10 @@ xdsIR: } name: example1 - destination: + metadata: + kind: HTTPRoute + name: httproute-3 + namespace: default name: httproute/default/httproute-3/rule/0 settings: - addressType: IP @@ -506,6 +518,10 @@ xdsIR: } name: example2 - destination: + metadata: + kind: HTTPRoute + name: httproute-4 + namespace: default name: httproute/default/httproute-4/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt-optional.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt-optional.out.yaml index 90c8c605bc..ab37cb9f63 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt-optional.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt-optional.out.yaml @@ -299,6 +299,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -366,6 +370,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt-with-custom-extractor.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt-with-custom-extractor.out.yaml index cadc9e1bcf..249318b3b3 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt-with-custom-extractor.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt-with-custom-extractor.out.yaml @@ -298,6 +298,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -365,6 +369,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-jwt.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-jwt.out.yaml index a821cbacf6..e37cb6048d 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-jwt.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-jwt.out.yaml @@ -290,6 +290,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP @@ -357,6 +361,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-oidc-backendcluster.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-oidc-backendcluster.out.yaml index 7300d772de..7edeba6f8d 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-oidc-backendcluster.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-oidc-backendcluster.out.yaml @@ -228,6 +228,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -266,6 +270,10 @@ xdsIR: provider: authorizationEndpoint: https://oauth.foo.com/oauth2/v2/auth destination: + metadata: + kind: SecurityPolicy + name: policy-for-gateway + namespace: envoy-gateway name: securitypolicy/envoy-gateway/policy-for-gateway/oidc/0 settings: - addressType: FQDN diff --git a/internal/gatewayapi/testdata/securitypolicy-with-oidc-custom-cookies.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-oidc-custom-cookies.out.yaml index a279d315a7..39ca3fae2c 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-oidc-custom-cookies.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-oidc-custom-cookies.out.yaml @@ -157,6 +157,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml index ba7204b019..331caa125e 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml @@ -252,6 +252,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -301,6 +305,10 @@ xdsIR: - email - profile - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/tcproute-attaching-to-gateway-with-listener-tls-terminate.out.yaml b/internal/gatewayapi/testdata/tcproute-attaching-to-gateway-with-listener-tls-terminate.out.yaml index 42bcc2b186..0a096ccbb2 100644 --- a/internal/gatewayapi/testdata/tcproute-attaching-to-gateway-with-listener-tls-terminate.out.yaml +++ b/internal/gatewayapi/testdata/tcproute-attaching-to-gateway-with-listener-tls-terminate.out.yaml @@ -177,6 +177,10 @@ xdsIR: port: 10090 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP @@ -209,6 +213,10 @@ xdsIR: port: 10090 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-2 + namespace: default name: tcproute/default/tcproute-2/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/tcproute-rule-with-multiple-backends-and-zero-weights.out.yaml b/internal/gatewayapi/testdata/tcproute-rule-with-multiple-backends-and-zero-weights.out.yaml index 7314140168..11920e60d3 100644 --- a/internal/gatewayapi/testdata/tcproute-rule-with-multiple-backends-and-zero-weights.out.yaml +++ b/internal/gatewayapi/testdata/tcproute-rule-with-multiple-backends-and-zero-weights.out.yaml @@ -112,6 +112,10 @@ xdsIR: port: 10090 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/tcproute-with-backend.out.yaml b/internal/gatewayapi/testdata/tcproute-with-backend.out.yaml index 52e3656498..ab79f4cdda 100644 --- a/internal/gatewayapi/testdata/tcproute-with-backend.out.yaml +++ b/internal/gatewayapi/testdata/tcproute-with-backend.out.yaml @@ -122,6 +122,10 @@ xdsIR: port: 10090 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/tlsroute-attaching-to-gateway.out.yaml b/internal/gatewayapi/testdata/tlsroute-attaching-to-gateway.out.yaml index 1b72fbcb1a..8777f5274f 100644 --- a/internal/gatewayapi/testdata/tlsroute-attaching-to-gateway.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-attaching-to-gateway.out.yaml @@ -105,6 +105,10 @@ xdsIR: port: 10090 routes: - destination: + metadata: + kind: TLSRoute + name: tlsroute-1 + namespace: default name: tlsroute/default/tlsroute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/tlsroute-multiple.out.yaml b/internal/gatewayapi/testdata/tlsroute-multiple.out.yaml index 2bc745885a..5cb5765652 100644 --- a/internal/gatewayapi/testdata/tlsroute-multiple.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-multiple.out.yaml @@ -139,6 +139,10 @@ xdsIR: port: 10091 routes: - destination: + metadata: + kind: TLSRoute + name: tlsroute-1 + namespace: default name: tlsroute/default/tlsroute-1/rule/-1 settings: - addressType: IP @@ -158,6 +162,10 @@ xdsIR: snis: - foo.com - destination: + metadata: + kind: TLSRoute + name: tlsroute-2 + namespace: default name: tlsroute/default/tlsroute-2/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/tlsroute-with-backend.out.yaml b/internal/gatewayapi/testdata/tlsroute-with-backend.out.yaml index 0c694ce17e..de009e6870 100644 --- a/internal/gatewayapi/testdata/tlsroute-with-backend.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-with-backend.out.yaml @@ -125,6 +125,10 @@ xdsIR: port: 10090 routes: - destination: + metadata: + kind: TLSRoute + name: tlsroute-1 + namespace: default name: tlsroute/default/tlsroute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/tlsroute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml b/internal/gatewayapi/testdata/tlsroute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml index 08f5cb0eca..9e688c5f34 100644 --- a/internal/gatewayapi/testdata/tlsroute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-with-backendref-in-other-namespace-allowed-by-refgrant.out.yaml @@ -106,6 +106,10 @@ xdsIR: port: 10090 routes: - destination: + metadata: + kind: TLSRoute + name: tlsroute-1 + namespace: default name: tlsroute/default/tlsroute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/tlsroute-with-empty-hostname.out.yaml b/internal/gatewayapi/testdata/tlsroute-with-empty-hostname.out.yaml index 2b7ba7480e..8194f36102 100644 --- a/internal/gatewayapi/testdata/tlsroute-with-empty-hostname.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-with-empty-hostname.out.yaml @@ -104,6 +104,10 @@ xdsIR: port: 10091 routes: - destination: + metadata: + kind: TLSRoute + name: tlsroute-1 + namespace: default name: tlsroute/default/tlsroute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/tlsroute-with-empty-listener-hostname.out.yaml b/internal/gatewayapi/testdata/tlsroute-with-empty-listener-hostname.out.yaml index f919d309c7..3541eeaa6d 100644 --- a/internal/gatewayapi/testdata/tlsroute-with-empty-listener-hostname.out.yaml +++ b/internal/gatewayapi/testdata/tlsroute-with-empty-listener-hostname.out.yaml @@ -106,6 +106,10 @@ xdsIR: port: 10091 routes: - destination: + metadata: + kind: TLSRoute + name: tlsroute-1 + namespace: default name: tlsroute/default/tlsroute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/tracing-merged-multiple-routes.out.yaml b/internal/gatewayapi/testdata/tracing-merged-multiple-routes.out.yaml index a523d12d54..d7b1cccd33 100644 --- a/internal/gatewayapi/testdata/tracing-merged-multiple-routes.out.yaml +++ b/internal/gatewayapi/testdata/tracing-merged-multiple-routes.out.yaml @@ -247,6 +247,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -301,6 +305,10 @@ xdsIR: port: 8888 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -333,6 +341,10 @@ xdsIR: tracing: authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway name: tracing settings: - endpoints: diff --git a/internal/gatewayapi/testdata/tracing-multiple-routes.out.yaml b/internal/gatewayapi/testdata/tracing-multiple-routes.out.yaml index ceba0ea67a..a88db2bf61 100644 --- a/internal/gatewayapi/testdata/tracing-multiple-routes.out.yaml +++ b/internal/gatewayapi/testdata/tracing-multiple-routes.out.yaml @@ -273,6 +273,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -305,6 +309,10 @@ xdsIR: tracing: authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway name: tracing settings: - endpoints: @@ -354,6 +362,10 @@ xdsIR: port: 8888 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -386,6 +398,10 @@ xdsIR: tracing: authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway name: tracing settings: - endpoints: diff --git a/internal/gatewayapi/testdata/tracing-sampling-fraction.out.yaml b/internal/gatewayapi/testdata/tracing-sampling-fraction.out.yaml index ef6b4e0ede..3ef6f73f90 100644 --- a/internal/gatewayapi/testdata/tracing-sampling-fraction.out.yaml +++ b/internal/gatewayapi/testdata/tracing-sampling-fraction.out.yaml @@ -249,6 +249,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP @@ -303,6 +307,10 @@ xdsIR: port: 8888 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP @@ -335,6 +343,10 @@ xdsIR: tracing: authority: otel-collector.monitoring.svc.cluster.local destination: + metadata: + kind: EnvoyProxy + name: test + namespace: envoy-gateway name: tracing settings: - endpoints: diff --git a/internal/gatewayapi/testdata/udproute-rule-with-multiple-backends-and-zero-weights.out.yaml b/internal/gatewayapi/testdata/udproute-rule-with-multiple-backends-and-zero-weights.out.yaml index 0009a305ad..4580b07730 100644 --- a/internal/gatewayapi/testdata/udproute-rule-with-multiple-backends-and-zero-weights.out.yaml +++ b/internal/gatewayapi/testdata/udproute-rule-with-multiple-backends-and-zero-weights.out.yaml @@ -112,6 +112,10 @@ xdsIR: port: 10090 route: destination: + metadata: + kind: UDPRoute + name: udproute-1 + namespace: default name: udproute/default/udproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/gatewayapi/testdata/udproute-with-backend.out.yaml b/internal/gatewayapi/testdata/udproute-with-backend.out.yaml index e1e4c9e451..ba1ddb8602 100644 --- a/internal/gatewayapi/testdata/udproute-with-backend.out.yaml +++ b/internal/gatewayapi/testdata/udproute-with-backend.out.yaml @@ -122,6 +122,10 @@ xdsIR: port: 10090 route: destination: + metadata: + kind: UDPRoute + name: udproute-1 + namespace: default name: udproute/default/udproute-1/rule/-1 settings: - addressType: IP diff --git a/internal/ir/xds.go b/internal/ir/xds.go index 5cd1c85669..d492753a17 100644 --- a/internal/ir/xds.go +++ b/internal/ir/xds.go @@ -1471,6 +1471,8 @@ type RouteDestination struct { Name string `json:"name" yaml:"name"` Settings []*DestinationSetting `json:"settings,omitempty" yaml:"settings,omitempty"` // Metadata is used to enrich envoy route metadata with user and provider-specific information + // RouteDestination metadata is primarily derived from the xRoute resources. In some cases, + // the primary resource is a Policy or Envoy Proxy, when non-xRoute backendRefs are used. Metadata *ResourceMetadata `json:"metadata,omitempty" yaml:"metadata,omitempty"` } diff --git a/internal/xds/translator/accesslog.go b/internal/xds/translator/accesslog.go index ef9ffca1e1..4a55b1afda 100644 --- a/internal/xds/translator/accesslog.go +++ b/internal/xds/translator/accesslog.go @@ -530,6 +530,7 @@ func processClusterForAccessLog(tCtx *types.ResourceVersionTable, al *ir.AccessL backendConnection: traffic.BackendConnection, dns: traffic.DNS, http2Settings: traffic.HTTP2, + metadata: als.Destination.Metadata, }); err != nil { return err } @@ -558,6 +559,7 @@ func processClusterForAccessLog(tCtx *types.ResourceVersionTable, al *ir.AccessL backendConnection: traffic.BackendConnection, dns: traffic.DNS, http2Settings: traffic.HTTP2, + metadata: otel.Destination.Metadata, }); err != nil { return err } diff --git a/internal/xds/translator/cluster.go b/internal/xds/translator/cluster.go index 76fb59fcb6..cc941fc074 100644 --- a/internal/xds/translator/cluster.go +++ b/internal/xds/translator/cluster.go @@ -68,6 +68,7 @@ type xdsClusterArgs struct { dns *ir.DNS useClientProtocol bool ipFamily *egv1a1.IPFamily + metadata *ir.ResourceMetadata } type EndpointType int @@ -144,6 +145,7 @@ func buildXdsCluster(args *xdsClusterArgs) (*buildClusterResult, error) { }, }, PerConnectionBufferLimitBytes: buildBackandConnectionBufferLimitBytes(args.backendConnection), + Metadata: buildXdsMetadata(args.metadata), } // 50% is the Envoy default value for panic threshold. No need to explicitly set it in this case. @@ -1038,7 +1040,7 @@ type ExtraArgs struct { } type clusterArgs interface { - asClusterArgs(name string, settings []*ir.DestinationSetting, extras *ExtraArgs) *xdsClusterArgs + asClusterArgs(name string, settings []*ir.DestinationSetting, extras *ExtraArgs, metadata *ir.ResourceMetadata) *xdsClusterArgs } type UDPRouteTranslator struct { @@ -1048,6 +1050,7 @@ type UDPRouteTranslator struct { func (route *UDPRouteTranslator) asClusterArgs(name string, settings []*ir.DestinationSetting, extra *ExtraArgs, + metadata *ir.ResourceMetadata, ) *xdsClusterArgs { return &xdsClusterArgs{ name: name, @@ -1057,6 +1060,7 @@ func (route *UDPRouteTranslator) asClusterArgs(name string, metrics: extra.metrics, dns: route.DNS, ipFamily: extra.ipFamily, + metadata: metadata, } } @@ -1067,6 +1071,7 @@ type TCPRouteTranslator struct { func (route *TCPRouteTranslator) asClusterArgs(name string, settings []*ir.DestinationSetting, extra *ExtraArgs, + metadata *ir.ResourceMetadata, ) *xdsClusterArgs { return &xdsClusterArgs{ name: name, @@ -1082,6 +1087,7 @@ func (route *TCPRouteTranslator) asClusterArgs(name string, backendConnection: route.BackendConnection, dns: route.DNS, ipFamily: extra.ipFamily, + metadata: metadata, } } @@ -1092,6 +1098,7 @@ type HTTPRouteTranslator struct { func (httpRoute *HTTPRouteTranslator) asClusterArgs(name string, settings []*ir.DestinationSetting, extra *ExtraArgs, + metadata *ir.ResourceMetadata, ) *xdsClusterArgs { clusterArgs := &xdsClusterArgs{ name: name, @@ -1103,6 +1110,7 @@ func (httpRoute *HTTPRouteTranslator) asClusterArgs(name string, http2Settings: extra.http2Settings, useClientProtocol: ptr.Deref(httpRoute.UseClientProtocol, false), ipFamily: extra.ipFamily, + metadata: metadata, } // Populate traffic features. diff --git a/internal/xds/translator/testdata/in/xds-ir/http-route-with-metadata.yaml b/internal/xds/translator/testdata/in/xds-ir/http-route-with-metadata.yaml index 56f6492ccd..c0b2fce601 100644 --- a/internal/xds/translator/testdata/in/xds-ir/http-route-with-metadata.yaml +++ b/internal/xds/translator/testdata/in/xds-ir/http-route-with-metadata.yaml @@ -17,6 +17,14 @@ http: escapedSlashesAction: UnescapeAndRedirect routes: - destination: + metadata: + groupVersion: "gateway.networking.k8s.io/v1" + kind: "HTTPRoute" + name: "first-route-name" + namespace: "first-route-ns" + sectionName: "first-route-rule" + annotations: + foo: bar name: "first-route-dest" settings: - endpoints: @@ -44,6 +52,14 @@ http: - exact: "yes" name: debug - destination: + metadata: + groupVersion: "gateway.networking.k8s.io/v1" + kind: "HTTPRoute" + name: "second-route-name" + namespace: "second-route-ns" + sectionName: "second-route-rule" + annotations: + foo: bar name: "second-route-dest" settings: - endpoints: diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.clusters.yaml index ba595752d9..a7db25103b 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.clusters.yaml @@ -12,6 +12,16 @@ serviceName: first-route-dest ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - annotations: + foo: bar + kind: HTTPRoute + name: first-route-name + namespace: first-route-ns + sectionName: first-route-rule name: first-route-dest perConnectionBufferLimitBytes: 32768 type: EDS @@ -29,6 +39,16 @@ serviceName: second-route-dest ignoreHealthOnHostRemoval: true lbPolicy: LEAST_REQUEST + metadata: + filterMetadata: + envoy-gateway: + resources: + - annotations: + foo: bar + kind: HTTPRoute + name: second-route-name + namespace: second-route-ns + sectionName: second-route-rule name: second-route-dest perConnectionBufferLimitBytes: 32768 type: EDS diff --git a/internal/xds/translator/tracing.go b/internal/xds/translator/tracing.go index fb8de98677..8910856d09 100644 --- a/internal/xds/translator/tracing.go +++ b/internal/xds/translator/tracing.go @@ -143,6 +143,7 @@ func processClusterForTracing(tCtx *types.ResourceVersionTable, tracing *ir.Trac backendConnection: traffic.BackendConnection, dns: traffic.DNS, http2Settings: traffic.HTTP2, + metadata: tracing.Destination.Metadata, }) } diff --git a/internal/xds/translator/translator.go b/internal/xds/translator/translator.go index 5118ffd329..1e33c73dbd 100644 --- a/internal/xds/translator/translator.go +++ b/internal/xds/translator/translator.go @@ -529,6 +529,7 @@ func (t *Translator) addRouteToRouteConfig( httpRoute.Destination.Settings, &HTTPRouteTranslator{httpRoute}, ea, + httpRoute.Destination.Metadata, ) if err != nil { errs = errors.Join(errs, err) @@ -543,7 +544,8 @@ func (t *Translator) addRouteToRouteConfig( setting.Name, tSettings, &HTTPRouteTranslator{httpRoute}, - ea) + ea, + httpRoute.Destination.Metadata) if err != nil { errs = errors.Join(errs, err) } @@ -564,6 +566,7 @@ func (t *Translator) addRouteToRouteConfig( tSocket: nil, endpointType: EndpointTypeStatic, metrics: metrics, + metadata: mrr.Destination.Metadata, }); err != nil { errs = errors.Join(errs, err) } @@ -690,7 +693,8 @@ func (t *Translator) processTCPListenerXdsTranslation( route.Destination.Name, route.Destination.Settings, &TCPRouteTranslator{route}, - &ExtraArgs{metrics: metrics}); err != nil { + &ExtraArgs{metrics: metrics}, + route.Destination.Metadata); err != nil { errs = errors.Join(errs, err) } if route.TLS != nil && route.TLS.Terminate != nil { @@ -781,7 +785,8 @@ func processUDPListenerXdsTranslation( route.Destination.Name, route.Destination.Settings, &UDPRouteTranslator{route}, - &ExtraArgs{metrics: metrics}); err != nil { + &ExtraArgs{metrics: metrics}, + route.Destination.Metadata); err != nil { errs = errors.Join(errs, err) } } @@ -879,8 +884,9 @@ func processXdsCluster(tCtx *types.ResourceVersionTable, settings []*ir.DestinationSetting, route clusterArgs, extras *ExtraArgs, + metadata *ir.ResourceMetadata, ) error { - return addXdsCluster(tCtx, route.asClusterArgs(name, settings, extras)) + return addXdsCluster(tCtx, route.asClusterArgs(name, settings, extras, metadata)) } // findXdsSecret finds a xds secret with the same name, and returns nil if there is no match. diff --git a/internal/xds/translator/utils.go b/internal/xds/translator/utils.go index 11dc8f87a8..d369d63cb0 100644 --- a/internal/xds/translator/utils.go +++ b/internal/xds/translator/utils.go @@ -167,6 +167,7 @@ func createExtServiceXDSCluster(rd *ir.RouteDestination, traffic *ir.TrafficFeat endpointType: endpointType, dns: traffic.DNS, http2Settings: traffic.HTTP2, + metadata: rd.Metadata, }) } From ed986a739a458181bc0d918de80950547fb0553c Mon Sep 17 00:00:00 2001 From: Guy Daich Date: Wed, 30 Apr 2025 14:51:37 -0500 Subject: [PATCH 3/8] fix lint Signed-off-by: Guy Daich --- internal/gatewayapi/route.go | 6 +++--- internal/xds/translator/accesslog.go | 4 ++-- internal/xds/translator/cluster.go | 8 ++++---- internal/xds/translator/tracing.go | 2 +- internal/xds/translator/translator.go | 2 +- internal/xds/translator/utils.go | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/internal/gatewayapi/route.go b/internal/gatewayapi/route.go index 269dc2e498..39ef6d7c83 100644 --- a/internal/gatewayapi/route.go +++ b/internal/gatewayapi/route.go @@ -8,7 +8,6 @@ package gatewayapi import ( "fmt" "net" - "sigs.k8s.io/controller-runtime/pkg/client" "sort" "strconv" "strings" @@ -18,6 +17,7 @@ import ( discoveryv1 "k8s.io/api/discovery/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/utils/ptr" + "sigs.k8s.io/controller-runtime/pkg/client" gwapiv1 "sigs.k8s.io/gateway-api/apis/v1" gwapiv1a2 "sigs.k8s.io/gateway-api/apis/v1alpha2" mcsapiv1a1 "sigs.k8s.io/mcs-api/pkg/apis/v1alpha1" @@ -1524,7 +1524,7 @@ func (t *Translator) processServiceImportDestinationSetting( Protocol: protocol, Endpoints: endpoints, AddressType: addrType, - Metadata: buildResourceMetadata(serviceImport, ptr.To(gwapiv1.SectionName(strconv.Itoa(int(*backendRef.Port))))), + Metadata: buildResourceMetadata(serviceImport, ptr.To(gwapiv1.SectionName(strconv.Itoa(int(*backendRef.Port))))), } } @@ -1571,7 +1571,7 @@ func (t *Translator) processServiceDestinationSetting( Endpoints: endpoints, AddressType: addrType, ZoneAwareRoutingEnabled: isZoneAwareRoutingEnabled(service), - Metadata: buildResourceMetadata(service, ptr.To(gwapiv1.SectionName(strconv.Itoa(int(*backendRef.Port))))), + Metadata: buildResourceMetadata(service, ptr.To(gwapiv1.SectionName(strconv.Itoa(int(*backendRef.Port))))), } } diff --git a/internal/xds/translator/accesslog.go b/internal/xds/translator/accesslog.go index 4a55b1afda..552ea41df1 100644 --- a/internal/xds/translator/accesslog.go +++ b/internal/xds/translator/accesslog.go @@ -530,7 +530,7 @@ func processClusterForAccessLog(tCtx *types.ResourceVersionTable, al *ir.AccessL backendConnection: traffic.BackendConnection, dns: traffic.DNS, http2Settings: traffic.HTTP2, - metadata: als.Destination.Metadata, + metadata: als.Destination.Metadata, }); err != nil { return err } @@ -559,7 +559,7 @@ func processClusterForAccessLog(tCtx *types.ResourceVersionTable, al *ir.AccessL backendConnection: traffic.BackendConnection, dns: traffic.DNS, http2Settings: traffic.HTTP2, - metadata: otel.Destination.Metadata, + metadata: otel.Destination.Metadata, }); err != nil { return err } diff --git a/internal/xds/translator/cluster.go b/internal/xds/translator/cluster.go index cc941fc074..f33cd3d800 100644 --- a/internal/xds/translator/cluster.go +++ b/internal/xds/translator/cluster.go @@ -145,7 +145,7 @@ func buildXdsCluster(args *xdsClusterArgs) (*buildClusterResult, error) { }, }, PerConnectionBufferLimitBytes: buildBackandConnectionBufferLimitBytes(args.backendConnection), - Metadata: buildXdsMetadata(args.metadata), + Metadata: buildXdsMetadata(args.metadata), } // 50% is the Envoy default value for panic threshold. No need to explicitly set it in this case. @@ -1060,7 +1060,7 @@ func (route *UDPRouteTranslator) asClusterArgs(name string, metrics: extra.metrics, dns: route.DNS, ipFamily: extra.ipFamily, - metadata: metadata, + metadata: metadata, } } @@ -1087,7 +1087,7 @@ func (route *TCPRouteTranslator) asClusterArgs(name string, backendConnection: route.BackendConnection, dns: route.DNS, ipFamily: extra.ipFamily, - metadata: metadata, + metadata: metadata, } } @@ -1110,7 +1110,7 @@ func (httpRoute *HTTPRouteTranslator) asClusterArgs(name string, http2Settings: extra.http2Settings, useClientProtocol: ptr.Deref(httpRoute.UseClientProtocol, false), ipFamily: extra.ipFamily, - metadata: metadata, + metadata: metadata, } // Populate traffic features. diff --git a/internal/xds/translator/tracing.go b/internal/xds/translator/tracing.go index 8910856d09..1315473497 100644 --- a/internal/xds/translator/tracing.go +++ b/internal/xds/translator/tracing.go @@ -143,7 +143,7 @@ func processClusterForTracing(tCtx *types.ResourceVersionTable, tracing *ir.Trac backendConnection: traffic.BackendConnection, dns: traffic.DNS, http2Settings: traffic.HTTP2, - metadata: tracing.Destination.Metadata, + metadata: tracing.Destination.Metadata, }) } diff --git a/internal/xds/translator/translator.go b/internal/xds/translator/translator.go index 1e33c73dbd..854b457a16 100644 --- a/internal/xds/translator/translator.go +++ b/internal/xds/translator/translator.go @@ -566,7 +566,7 @@ func (t *Translator) addRouteToRouteConfig( tSocket: nil, endpointType: EndpointTypeStatic, metrics: metrics, - metadata: mrr.Destination.Metadata, + metadata: mrr.Destination.Metadata, }); err != nil { errs = errors.Join(errs, err) } diff --git a/internal/xds/translator/utils.go b/internal/xds/translator/utils.go index d369d63cb0..5f6c527e77 100644 --- a/internal/xds/translator/utils.go +++ b/internal/xds/translator/utils.go @@ -167,7 +167,7 @@ func createExtServiceXDSCluster(rd *ir.RouteDestination, traffic *ir.TrafficFeat endpointType: endpointType, dns: traffic.DNS, http2Settings: traffic.HTTP2, - metadata: rd.Metadata, + metadata: rd.Metadata, }) } From 9633900b85a48540e9865c2a417b39feaea77bd1 Mon Sep 17 00:00:00 2001 From: Guy Daich Date: Wed, 30 Apr 2025 15:01:35 -0500 Subject: [PATCH 4/8] rebase Signed-off-by: Guy Daich --- ...kendtrafficpolicy-strategic-merge.out.yaml | 16 +++++++++++ ...nvoyproxy-tls-settings-invalid-ns.out.yaml | 4 +++ .../envoyproxy-tls-settings-invalid.out.yaml | 4 +++ ...route-with-mismatch-port-protocol.out.yaml | 4 +++ ...-listeners-with-overlapping-certs.out.yaml | 27 +++++++++++++++++++ ...h-overlapping-hostnames-and-certs.out.yaml | 18 +++++++++++++ ...teners-with-overlapping-hostnames.out.yaml | 27 +++++++++++++++++++ .../httproute-dynamic-resolver.out.yaml | 4 +++ 8 files changed, 104 insertions(+) diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge.out.yaml index f7cdccc6c8..1cad529e8a 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge.out.yaml @@ -271,12 +271,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -304,12 +312,20 @@ xdsIR: tcp: connectTimeout: 10s - destination: + metadata: + kind: GRPCRoute + name: grpcroute-1 + namespace: default name: grpcroute/default/grpcroute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: grpcroute/default/grpcroute-1/rule/0/backend/0 protocol: GRPC weight: 1 diff --git a/internal/gatewayapi/testdata/envoyproxy-tls-settings-invalid-ns.out.yaml b/internal/gatewayapi/testdata/envoyproxy-tls-settings-invalid-ns.out.yaml index 98a08206af..956fda32d3 100644 --- a/internal/gatewayapi/testdata/envoyproxy-tls-settings-invalid-ns.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-tls-settings-invalid-ns.out.yaml @@ -271,6 +271,10 @@ xdsIR: port: 10445 routes: - destination: + metadata: + kind: TCPRoute + name: envoy-gateway + namespace: envoy-gateway name: tcproute/envoy-gateway/envoy-gateway/rule/-1 name: tcproute/envoy-gateway/envoy-gateway tls: diff --git a/internal/gatewayapi/testdata/envoyproxy-tls-settings-invalid.out.yaml b/internal/gatewayapi/testdata/envoyproxy-tls-settings-invalid.out.yaml index 775ff25869..fa54d669cc 100644 --- a/internal/gatewayapi/testdata/envoyproxy-tls-settings-invalid.out.yaml +++ b/internal/gatewayapi/testdata/envoyproxy-tls-settings-invalid.out.yaml @@ -270,6 +270,10 @@ xdsIR: port: 10445 routes: - destination: + metadata: + kind: TCPRoute + name: envoy-gateway + namespace: envoy-gateway name: tcproute/envoy-gateway/envoy-gateway/rule/-1 name: tcproute/envoy-gateway/envoy-gateway tls: diff --git a/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-mismatch-port-protocol.out.yaml b/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-mismatch-port-protocol.out.yaml index 3330e20c84..997d206101 100644 --- a/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-mismatch-port-protocol.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-listener-with-tcproute-with-mismatch-port-protocol.out.yaml @@ -102,5 +102,9 @@ xdsIR: port: 10162 routes: - destination: + metadata: + kind: TCPRoute + name: tcproute-1 + namespace: default name: tcproute/default/tcproute-1/rule/-1 name: tcproute/default/tcproute-1 diff --git a/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-certs.out.yaml b/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-certs.out.yaml index 0b7bdfa2e4..ecb0743336 100644 --- a/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-certs.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-certs.out.yaml @@ -206,12 +206,21 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -249,12 +258,21 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -292,12 +310,21 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-hostnames-and-certs.out.yaml b/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-hostnames-and-certs.out.yaml index d95a9413a8..3086d59c0c 100644 --- a/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-hostnames-and-certs.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-hostnames-and-certs.out.yaml @@ -170,12 +170,21 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -213,12 +222,21 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-hostnames.out.yaml b/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-hostnames.out.yaml index 4f60b08c32..12ee94410b 100644 --- a/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-hostnames.out.yaml +++ b/internal/gatewayapi/testdata/gateway-with-multiple-https-listeners-with-overlapping-hostnames.out.yaml @@ -206,12 +206,21 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -249,12 +258,21 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -292,12 +310,21 @@ xdsIR: port: 10443 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + kind: Service + name: service-1 + namespace: envoy-gateway + sectionName: "8080" name: httproute/envoy-gateway/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-dynamic-resolver.out.yaml b/internal/gatewayapi/testdata/httproute-dynamic-resolver.out.yaml index 8164485596..ad6c0d7595 100644 --- a/internal/gatewayapi/testdata/httproute-dynamic-resolver.out.yaml +++ b/internal/gatewayapi/testdata/httproute-dynamic-resolver.out.yaml @@ -189,6 +189,10 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - isDynamicResolver: true From 06dcad18011fa8f70129f96c7f2f10d2f30ba464 Mon Sep 17 00:00:00 2001 From: Guy Daich Date: Wed, 30 Apr 2025 15:23:19 -0500 Subject: [PATCH 5/8] fix gen Signed-off-by: Guy Daich --- internal/ir/zz_generated.deepcopy.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/ir/zz_generated.deepcopy.go b/internal/ir/zz_generated.deepcopy.go index eb5f63edb8..7ca0d72df2 100644 --- a/internal/ir/zz_generated.deepcopy.go +++ b/internal/ir/zz_generated.deepcopy.go @@ -919,6 +919,11 @@ func (in *DestinationSetting) DeepCopyInto(out *DestinationSetting) { *out = new(DestinationFilters) (*in).DeepCopyInto(*out) } + if in.Metadata != nil { + in, out := &in.Metadata, &out.Metadata + *out = new(ResourceMetadata) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationSetting. @@ -3041,6 +3046,11 @@ func (in *RouteDestination) DeepCopyInto(out *RouteDestination) { } } } + if in.Metadata != nil { + in, out := &in.Metadata, &out.Metadata + *out = new(ResourceMetadata) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteDestination. From ccde906cd3a72033baa798d2f20a4d395addc2ec Mon Sep 17 00:00:00 2001 From: Guy Daich Date: Wed, 14 May 2025 18:57:20 -0500 Subject: [PATCH 6/8] rebase Signed-off-by: Guy Daich --- ...icy-strategic-merge-global-ratelimit.out.yaml | 16 ++++++++++++++++ ...licy-strategic-merge-local-ratelimit.out.yaml | 16 ++++++++++++++++ ...y-strategic-merge-with-multi-parents.out.yaml | 16 ++++++++++++++++ ...teway-namespace-mode-infra-httproute.out.yaml | 16 ++++++++++++++++ .../testdata/httproute-dynamic-resolver.out.yaml | 4 ++++ ...with-api-key-auth-duplicated-api-key.out.yaml | 8 ++++++++ ...proute-with-header-match-diff-number.out.yaml | 16 ++++++++++++++++ ...ttproute-with-header-match-diff-type.out.yaml | 16 ++++++++++++++++ ...tproute-with-query-match-diff-number.out.yaml | 16 ++++++++++++++++ ...httproute-with-query-match-diff-type.out.yaml | 16 ++++++++++++++++ release-notes/current.yaml | 1 + 11 files changed, 141 insertions(+) diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-global-ratelimit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-global-ratelimit.out.yaml index c70c9d724a..d9fd832c89 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-global-ratelimit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-global-ratelimit.out.yaml @@ -317,12 +317,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -396,12 +404,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-local-ratelimit.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-local-ratelimit.out.yaml index e0eb784ada..0593305633 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-local-ratelimit.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-local-ratelimit.out.yaml @@ -315,12 +315,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -395,12 +403,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-with-multi-parents.out.yaml b/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-with-multi-parents.out.yaml index 1c466803e1..cbb3471608 100644 --- a/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-with-multi-parents.out.yaml +++ b/internal/gatewayapi/testdata/backendtrafficpolicy-strategic-merge-with-multi-parents.out.yaml @@ -291,12 +291,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -349,12 +357,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/gateway-namespace-mode-infra-httproute.out.yaml b/internal/gatewayapi/testdata/gateway-namespace-mode-infra-httproute.out.yaml index 8d453faf57..bce08a6385 100644 --- a/internal/gatewayapi/testdata/gateway-namespace-mode-infra-httproute.out.yaml +++ b/internal/gatewayapi/testdata/gateway-namespace-mode-infra-httproute.out.yaml @@ -296,12 +296,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -342,12 +350,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-2 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-dynamic-resolver.out.yaml b/internal/gatewayapi/testdata/httproute-dynamic-resolver.out.yaml index ad6c0d7595..c2f9b43301 100644 --- a/internal/gatewayapi/testdata/httproute-dynamic-resolver.out.yaml +++ b/internal/gatewayapi/testdata/httproute-dynamic-resolver.out.yaml @@ -211,6 +211,10 @@ xdsIR: namespace: default name: httproute/default/httproute-1/rule/0/match/-1/gateway_envoyproxy_io - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - isDynamicResolver: true diff --git a/internal/gatewayapi/testdata/httproute-with-api-key-auth-duplicated-api-key.out.yaml b/internal/gatewayapi/testdata/httproute-with-api-key-auth-duplicated-api-key.out.yaml index 6abda8770c..93de024558 100644 --- a/internal/gatewayapi/testdata/httproute-with-api-key-auth-duplicated-api-key.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-api-key-auth-duplicated-api-key.out.yaml @@ -153,12 +153,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-header-match-diff-number.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-match-diff-number.out.yaml index 8952792385..adeafa01db 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-match-diff-number.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-match-diff-number.out.yaml @@ -169,12 +169,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -197,12 +205,20 @@ xdsIR: name: "" prefix: / - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-header-match-diff-type.out.yaml b/internal/gatewayapi/testdata/httproute-with-header-match-diff-type.out.yaml index 454c35bc9a..db7fe2d524 100644 --- a/internal/gatewayapi/testdata/httproute-with-header-match-diff-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-header-match-diff-type.out.yaml @@ -166,12 +166,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -191,12 +199,20 @@ xdsIR: name: "" prefix: / - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-query-match-diff-number.out.yaml b/internal/gatewayapi/testdata/httproute-with-query-match-diff-number.out.yaml index 2929ac417a..e0fc786aee 100644 --- a/internal/gatewayapi/testdata/httproute-with-query-match-diff-number.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-query-match-diff-number.out.yaml @@ -169,12 +169,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 @@ -197,12 +205,20 @@ xdsIR: name: name safeRegex: .* - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/internal/gatewayapi/testdata/httproute-with-query-match-diff-type.out.yaml b/internal/gatewayapi/testdata/httproute-with-query-match-diff-type.out.yaml index b1dee44820..27a83f2eb9 100644 --- a/internal/gatewayapi/testdata/httproute-with-query-match-diff-type.out.yaml +++ b/internal/gatewayapi/testdata/httproute-with-query-match-diff-type.out.yaml @@ -166,12 +166,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-2 + namespace: default name: httproute/default/httproute-2/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-2/rule/0/backend/0 protocol: HTTP weight: 1 @@ -191,12 +199,20 @@ xdsIR: exact: "1234" name: id - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1 diff --git a/release-notes/current.yaml b/release-notes/current.yaml index 3271a4f907..275247ee98 100644 --- a/release-notes/current.yaml +++ b/release-notes/current.yaml @@ -8,6 +8,7 @@ security updates: | # New features or capabilities added in this release. new features: | + - Added XDS metadata for clusters and endpoints from xRoute and bug fixes: | From 9b6f6f6ae00283d1dd394b56979b115271668e5d Mon Sep 17 00:00:00 2001 From: Guy Daich Date: Tue, 20 May 2025 17:43:48 -0500 Subject: [PATCH 7/8] fix endpoint metadata level Signed-off-by: Guy Daich --- .../translate/in/default-resources.yaml | 1 + .../translate/out/default-resources.all.yaml | 83 +++++----- .../out/from-gateway-api-to-xds.all.json | 150 +++++++++--------- .../out/from-gateway-api-to-xds.all.yaml | 80 +++++----- .../out/from-gateway-api-to-xds.endpoint.yaml | 80 +++++----- ...-single-route-single-match-to-xds.all.json | 30 ++-- ...-single-route-single-match-to-xds.all.yaml | 16 +- .../out/no-service-cluster-ip.all.yaml | 16 +- internal/xds/translator/cluster.go | 8 +- .../http-route-with-metadata.endpoints.yaml | 32 ++-- ...th-tlsbundle-multiple-certs.endpoints.yaml | 28 ++-- 11 files changed, 264 insertions(+), 260 deletions(-) diff --git a/internal/cmd/egctl/testdata/translate/in/default-resources.yaml b/internal/cmd/egctl/testdata/translate/in/default-resources.yaml index bf2af30da4..91a413c4b1 100644 --- a/internal/cmd/egctl/testdata/translate/in/default-resources.yaml +++ b/internal/cmd/egctl/testdata/translate/in/default-resources.yaml @@ -109,6 +109,7 @@ spec: name: providedBackend port: 8000 weight: 1 + name: rule-1 matches: - path: type: PathPrefix diff --git a/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml b/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml index dd09dc36e0..e1c8190985 100644 --- a/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml @@ -446,6 +446,7 @@ httpRoutes: - path: type: PathPrefix value: / + name: rule-1 status: parents: - conditions: @@ -784,17 +785,17 @@ xds: address: 1.1.1.1 portValue: 8000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: providedBackend - namespace: default - sectionName: "8000" loadBalancingWeight: 1 locality: region: httproute/default/backend/rule/0/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: providedBackend + namespace: default + sectionName: "8000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: grpcroute/default/backend/rule/0 @@ -806,17 +807,17 @@ xds: address: 1.1.1.1 portValue: 9000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: providedBackend - namespace: default - sectionName: "9000" loadBalancingWeight: 1 locality: region: grpcroute/default/backend/rule/0/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: providedBackend + namespace: default + sectionName: "9000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: tcproute/default/backend/rule/-1 @@ -828,17 +829,17 @@ xds: address: 1.2.3.4 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "3000" loadBalancingWeight: 1 locality: region: tcproute/default/backend/rule/-1/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: tlsroute/default/backend/rule/-1 @@ -850,17 +851,17 @@ xds: address: 1.2.3.4 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "3000" loadBalancingWeight: 1 locality: region: tlsroute/default/backend/rule/-1/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: udproute/default/backend/rule/-1 @@ -872,17 +873,17 @@ xds: address: 1.2.3.4 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "3000" loadBalancingWeight: 1 locality: region: udproute/default/backend/rule/-1/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" - '@type': type.googleapis.com/envoy.admin.v3.ClustersConfigDump dynamicActiveClusters: - cluster: @@ -908,6 +909,7 @@ xds: - kind: HTTPRoute name: backend namespace: default + sectionName: rule-1 name: httproute/default/backend/rule/0 perConnectionBufferLimitBytes: 32768 type: EDS @@ -1565,6 +1567,7 @@ xds: - kind: HTTPRoute name: backend namespace: default + sectionName: rule-1 name: httproute/default/backend/rule/0/match/0/www_example_com route: cluster: httproute/default/backend/rule/0 diff --git a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json index eab8eabe5b..ac020e294a 100644 --- a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json +++ b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json @@ -352,26 +352,26 @@ } } }, - "loadBalancingWeight": 1, - "metadata": { - "filterMetadata": { - "envoy-gateway": { - "resources": [ - { - "kind": "Service", - "name": "backend", - "namespace": "default", - "sectionName": "3000" - } - ] - } - } - } + "loadBalancingWeight": 1 } ], "loadBalancingWeight": 1, "locality": { "region": "httproute/default/backend/rule/0/backend/0" + }, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "default", + "sectionName": "3000" + } + ] + } + } } } ] @@ -393,26 +393,26 @@ } } }, - "loadBalancingWeight": 1, - "metadata": { - "filterMetadata": { - "envoy-gateway": { - "resources": [ - { - "kind": "Service", - "name": "backend", - "namespace": "default", - "sectionName": "9000" - } - ] - } - } - } + "loadBalancingWeight": 1 } ], "loadBalancingWeight": 1, "locality": { "region": "grpcroute/default/backend/rule/0/backend/0" + }, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "default", + "sectionName": "9000" + } + ] + } + } } } ] @@ -434,26 +434,26 @@ } } }, - "loadBalancingWeight": 1, - "metadata": { - "filterMetadata": { - "envoy-gateway": { - "resources": [ - { - "kind": "Service", - "name": "backend", - "namespace": "default", - "sectionName": "3000" - } - ] - } - } - } + "loadBalancingWeight": 1 } ], "loadBalancingWeight": 1, "locality": { "region": "tcproute/default/backend/rule/-1/backend/0" + }, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "default", + "sectionName": "3000" + } + ] + } + } } } ] @@ -475,26 +475,26 @@ } } }, - "loadBalancingWeight": 1, - "metadata": { - "filterMetadata": { - "envoy-gateway": { - "resources": [ - { - "kind": "Service", - "name": "backend", - "namespace": "default", - "sectionName": "3000" - } - ] - } - } - } + "loadBalancingWeight": 1 } ], "loadBalancingWeight": 1, "locality": { "region": "tlsroute/default/backend/rule/-1/backend/0" + }, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "default", + "sectionName": "3000" + } + ] + } + } } } ] @@ -516,26 +516,26 @@ } } }, - "loadBalancingWeight": 1, - "metadata": { - "filterMetadata": { - "envoy-gateway": { - "resources": [ - { - "kind": "Service", - "name": "backend", - "namespace": "default", - "sectionName": "3000" - } - ] - } - } - } + "loadBalancingWeight": 1 } ], "loadBalancingWeight": 1, "locality": { "region": "udproute/default/backend/rule/-1/backend/0" + }, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "default", + "sectionName": "3000" + } + ] + } + } } } ] diff --git a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml index 0797c9f644..c8ddd01d8b 100644 --- a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml @@ -201,17 +201,17 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "3000" loadBalancingWeight: 1 locality: region: httproute/default/backend/rule/0/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: grpcroute/default/backend/rule/0 @@ -223,17 +223,17 @@ xds: address: 1.1.1.1 portValue: 9000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "9000" loadBalancingWeight: 1 locality: region: grpcroute/default/backend/rule/0/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "9000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: tcproute/default/backend/rule/-1 @@ -245,17 +245,17 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "3000" loadBalancingWeight: 1 locality: region: tcproute/default/backend/rule/-1/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: tlsroute/default/backend/rule/-1 @@ -267,17 +267,17 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "3000" loadBalancingWeight: 1 locality: region: tlsroute/default/backend/rule/-1/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: udproute/default/backend/rule/-1 @@ -289,17 +289,17 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "3000" loadBalancingWeight: 1 locality: region: udproute/default/backend/rule/-1/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" - '@type': type.googleapis.com/envoy.admin.v3.ClustersConfigDump dynamicActiveClusters: - cluster: diff --git a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.endpoint.yaml b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.endpoint.yaml index 0351899faf..43759a2a0c 100644 --- a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.endpoint.yaml +++ b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.endpoint.yaml @@ -13,17 +13,17 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "3000" loadBalancingWeight: 1 locality: region: httproute/default/backend/rule/0/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: grpcroute/default/backend/rule/0 @@ -35,17 +35,17 @@ xds: address: 1.1.1.1 portValue: 9000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "9000" loadBalancingWeight: 1 locality: region: grpcroute/default/backend/rule/0/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "9000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: tcproute/default/backend/rule/-1 @@ -57,17 +57,17 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "3000" loadBalancingWeight: 1 locality: region: tcproute/default/backend/rule/-1/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: tlsroute/default/backend/rule/-1 @@ -79,17 +79,17 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "3000" loadBalancingWeight: 1 locality: region: tlsroute/default/backend/rule/-1/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" - endpointConfig: '@type': type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment clusterName: udproute/default/backend/rule/-1 @@ -101,14 +101,14 @@ xds: address: 1.1.1.1 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: default - sectionName: "3000" loadBalancingWeight: 1 locality: region: udproute/default/backend/rule/-1/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: default + sectionName: "3000" diff --git a/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.json b/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.json index 78fdacd001..b7051f5469 100644 --- a/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.json +++ b/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.json @@ -352,26 +352,26 @@ } } }, - "loadBalancingWeight": 1, - "metadata": { - "filterMetadata": { - "envoy-gateway": { - "resources": [ - { - "kind": "Service", - "name": "backend", - "namespace": "envoy-gateway-system", - "sectionName": "3000" - } - ] - } - } - } + "loadBalancingWeight": 1 } ], "loadBalancingWeight": 1, "locality": { "region": "httproute/envoy-gateway-system/backend/rule/0/backend/0" + }, + "metadata": { + "filterMetadata": { + "envoy-gateway": { + "resources": [ + { + "kind": "Service", + "name": "backend", + "namespace": "envoy-gateway-system", + "sectionName": "3000" + } + ] + } + } } } ] diff --git a/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.yaml b/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.yaml index 76c3f34aff..f56c075117 100644 --- a/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/jwt-single-route-single-match-to-xds.all.yaml @@ -201,17 +201,17 @@ xds: address: 7.7.7.7 portValue: 3000 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: envoy-gateway-system - sectionName: "3000" loadBalancingWeight: 1 locality: region: httproute/envoy-gateway-system/backend/rule/0/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: envoy-gateway-system + sectionName: "3000" - '@type': type.googleapis.com/envoy.admin.v3.ClustersConfigDump dynamicActiveClusters: - cluster: diff --git a/internal/cmd/egctl/testdata/translate/out/no-service-cluster-ip.all.yaml b/internal/cmd/egctl/testdata/translate/out/no-service-cluster-ip.all.yaml index c58d02fb24..b3e3bda8c0 100644 --- a/internal/cmd/egctl/testdata/translate/out/no-service-cluster-ip.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/no-service-cluster-ip.all.yaml @@ -201,17 +201,17 @@ xds: address: 1.2.3.4 portValue: 8080 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: backend - namespace: envoy-gateway-system - sectionName: "8080" loadBalancingWeight: 1 locality: region: httproute/envoy-gateway-system/routes/rule/0/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: backend + namespace: envoy-gateway-system + sectionName: "8080" - '@type': type.googleapis.com/envoy.admin.v3.ClustersConfigDump dynamicActiveClusters: - cluster: diff --git a/internal/xds/translator/cluster.go b/internal/xds/translator/cluster.go index f33cd3d800..e33c8cdc07 100644 --- a/internal/xds/translator/cluster.go +++ b/internal/xds/translator/cluster.go @@ -632,7 +632,6 @@ func buildXdsClusterLoadAssignment(clusterName string, destSettings []*ir.Destin for i, ds := range destSettings { var metadata *corev3.Metadata - resourceMetadata := buildXdsMetadata(ds.Metadata) if ds.TLS != nil { metadata = &corev3.Metadata{ @@ -644,11 +643,6 @@ func buildXdsClusterLoadAssignment(clusterName string, destSettings []*ir.Destin }, }, } - if resourceMetadata != nil { - metadata.FilterMetadata[envoyGatewayXdsMetadataNamespace] = resourceMetadata.FilterMetadata[envoyGatewayXdsMetadataNamespace] - } - } else { - metadata = resourceMetadata } // If zone aware routing is enabled for a backendRefs we include endpoint zone info in localities. @@ -696,6 +690,7 @@ func buildZonalLocalities(metadata *corev3.Metadata, ds *ir.DestinationSetting) }, LbEndpoints: endPts, Priority: ptr.Deref(ds.Priority, 0), + Metadata: buildXdsMetadata(ds.Metadata), } localities = append(localities, locality) } @@ -734,6 +729,7 @@ func buildWeightedLocalities(metadata *corev3.Metadata, ds *ir.DestinationSettin }, LbEndpoints: endpoints, Priority: 0, + Metadata: buildXdsMetadata(ds.Metadata), } // Set locality weight diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.endpoints.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.endpoints.yaml index 5db57f0337..fc253823c6 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.endpoints.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-with-metadata.endpoints.yaml @@ -7,17 +7,17 @@ address: 7.7.7.7 portValue: 8080 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: http-backend - namespace: default - sectionName: "8080" loadBalancingWeight: 1 locality: region: first-route-dest/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: http-backend + namespace: default + sectionName: "8080" - clusterName: second-route-dest endpoints: - lbEndpoints: @@ -27,14 +27,14 @@ address: 8.8.8.8 portValue: 8080 loadBalancingWeight: 1 - metadata: - filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: http-backend - namespace: default - sectionName: "8080" loadBalancingWeight: 1 locality: region: second-route-dest/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: http-backend + namespace: default + sectionName: "8080" diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-with-tlsbundle-multiple-certs.endpoints.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-with-tlsbundle-multiple-certs.endpoints.yaml index a48d672a6e..1fb6017ca5 100755 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-with-tlsbundle-multiple-certs.endpoints.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-with-tlsbundle-multiple-certs.endpoints.yaml @@ -9,17 +9,19 @@ loadBalancingWeight: 1 metadata: filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: http-backend - namespace: default - sectionName: "8080" envoy.transport_socket_match: name: httproute/envoy-gateway/httproute-btls/rule/0/tls/0 loadBalancingWeight: 1 locality: region: httproute/envoy-gateway/httproute-btls/rule/0/backend/0 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: http-backend + namespace: default + sectionName: "8080" - lbEndpoints: - endpoint: address: @@ -29,17 +31,19 @@ loadBalancingWeight: 1 metadata: filterMetadata: - envoy-gateway: - resources: - - kind: Service - name: http-backend2 - namespace: default - sectionName: "8080" envoy.transport_socket_match: name: httproute/envoy-gateway/httproute-btls/rule/0/tls/1 loadBalancingWeight: 1 locality: region: httproute/envoy-gateway/httproute-btls/rule/0/backend/1 + metadata: + filterMetadata: + envoy-gateway: + resources: + - kind: Service + name: http-backend2 + namespace: default + sectionName: "8080" - clusterName: httproute/envoy-gateway/httproute-btls-2/rule/0 endpoints: - lbEndpoints: From 4170b9c4d1d9db7da2ee7f57912f893089f4ed05 Mon Sep 17 00:00:00 2001 From: Guy Daich Date: Tue, 20 May 2025 18:03:15 -0500 Subject: [PATCH 8/8] fix gen Signed-off-by: Guy Daich --- .../testdata/backendtlspolicy-subjectaltnames.out.yaml | 9 +++++++++ ...securitypolicy-with-oidc-and-jwt-passthrough.out.yaml | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/internal/gatewayapi/testdata/backendtlspolicy-subjectaltnames.out.yaml b/internal/gatewayapi/testdata/backendtlspolicy-subjectaltnames.out.yaml index 215860c4ea..8eb8b38557 100644 --- a/internal/gatewayapi/testdata/backendtlspolicy-subjectaltnames.out.yaml +++ b/internal/gatewayapi/testdata/backendtlspolicy-subjectaltnames.out.yaml @@ -154,12 +154,21 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-btls + namespace: envoy-gateway name: httproute/envoy-gateway/httproute-btls/rule/0 settings: - addressType: IP endpoints: - host: 10.244.0.11 port: 8080 + metadata: + kind: Service + name: http-backend + namespace: backends + sectionName: "8080" name: httproute/envoy-gateway/httproute-btls/rule/0/backend/0 protocol: HTTP tls: diff --git a/internal/gatewayapi/testdata/securitypolicy-with-oidc-and-jwt-passthrough.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-oidc-and-jwt-passthrough.out.yaml index 6f46ebd269..96d434f3ca 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-oidc-and-jwt-passthrough.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-oidc-and-jwt-passthrough.out.yaml @@ -162,12 +162,20 @@ xdsIR: port: 10080 routes: - destination: + metadata: + kind: HTTPRoute + name: httproute-1 + namespace: default name: httproute/default/httproute-1/rule/0 settings: - addressType: IP endpoints: - host: 7.7.7.7 port: 8080 + metadata: + name: service-1 + namespace: default + sectionName: "8080" name: httproute/default/httproute-1/rule/0/backend/0 protocol: HTTP weight: 1