Goal
You will remove Engineering’s local dependency on the Platform configuration without changing any resources in Konnect.
Replace the local reference
The initial apply loaded all three directories together. That allowed the
relationship in engineering/model.yaml to resolve against
platform/ai-gateway.yaml:
ai_gateway_models:
- ref: engineering-assistant
ai_gateway: !ref platform-aigw#id
type: model
Engineering cannot resolve that ref when it loads only its own file. Open
engineering/model.yaml in your editor and change the relationship to:
ai_gateway_models:
- ref: engineering-assistant
ai_gateway: !lookup { name: platform-aigw }
type: model
Apply Engineering independently
Apply only the Engineering configuration:
kongctl apply -f engineering/model.yaml
Notice how you only give this apply operation the single
engineering model declaration file.
The result should be a no-op:
No changes needed. Resources match configuration.
The relationship source changed, but the desired Engineering model did not.
During planning, kongctl resolves the lookup to the same Platform AI Gateway
ID used by the initial shared apply.