From 626251930a6b2856e48b1cbbdd3a7d4702f4c511 Mon Sep 17 00:00:00 2001 From: Michael Vittrup Larsen Date: Thu, 13 Apr 2023 16:05:56 +0200 Subject: [PATCH] Clarify value processing --- ...nded-configuration-w-policy-attachments.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/doc/extended-configuration-w-policy-attachments.md b/doc/extended-configuration-w-policy-attachments.md index 7c899889..9f65e6fc 100644 --- a/doc/extended-configuration-w-policy-attachments.md +++ b/doc/extended-configuration-w-policy-attachments.md @@ -104,16 +104,15 @@ The *bifrost-gateway-controller* merges values before rendering templates using the following order of precedence (aka. as *hierarchy* in GEP-713): -Increasing order of precedence: - -- `GatewayConfig` in same namespace as `Gateway` - -- `GatewayClassConfig` in the same namespace as `Gateway` when `Gateway` - reference `GatewayClassConfig` indirectly through `GatewayClass`. - -- `GatewayClassConfig` in *bifrost-gateway-controller* namespace when - `Gateway` reference `GatewayClassConfig` indirectly through - `GatewayClass`. +Increasing order of precedence for defaults, decreasing order of +precedence for override's as defined by GEP-713: + +- Values from `GatewayClassBlueprint` +- Values from `GatewayClassConfig` in controller namespace (aka. global policies) +- Values from `GatewayClassConfig` in `Gateway`/`HTTPRoute` local namespace targeting namespace +- Values from `GatewayClassConfig` in `Gateway`/`HTTPRoute` local namespace targeting Gateway/HTTPRoute +- Values from `GatewayConfig` in `Gateway`/`HTTPRoute` local namespace, targeting namespace +- Values from `GatewayConfig` in `Gateway`/`HTTPRoute` local namespace, targeting `Gateway`/`HTTPRoute` resource If there are multiple policies targeting the same resource and setting the same variable, the result is undefined (see also [Conflict