By default, Kong Operator generates unique, dynamic names for KonnectGatewayControlPlane resources created from a Gateway.
The gateway-operator.konghq.com/static-naming: "true" annotation instructs Kong Operator to use a static, predictable name for the generated control plane based on the Gateway’s namespace and name (for example, default-hybrid). This enables you to configure references before the control plane is created.
When static naming is enabled, Kong Operator derives the name for the KonnectGatewayControlPlane using the following logic:
- If the Gateway is in the same namespace as Kong Operator, the name will be the same as the Gateway name.
- If the Gateway is in a different namespace, the name will be the Gateway name prefixed with the namespace.