wso2 / wso2/api-platform

gateway-controller deployment push to platform-api fails with 400 due to APIConfiguration schema mismatch

Open
#1,318 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
71
Forks
111
Avg merge
1d 14h
Merged PRs (30d)
110

Description

Description

When deployment_push_enabled = true, the gateway-controller's HTTP push to POST /api/internal/v1/apis/:apiId/gateway-deployments fails with HTTP 400:

"Invalid request body:
  Key: 'DeploymentNotification.Configuration.Version' Error: required
  Key: 'DeploymentNotification.Configuration.Spec.Name' Error: required
  Key: 'DeploymentNotification.Configuration.Spec.Upstreams' Error: required"

Steps to Reproduce

  1. Start platform-api and gateway-controller with deployment_push_enabled = true
  2. Deploy any API via ap gateway apply
  3. Gateway-controller calls POST /api/internal/v1/apis/:apiId/gateway-deployments
  4. Platform-api returns 400

Expected Behavior

The deployment notification should be accepted by platform-api and the API deployment state should be recorded.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the gateway-controller request for POST /api/internal/v1/apis/:apiId/gateway-deployments with the platform-api APIConfiguration schema, starting from the deployment_push_enabled flow. Reproduce with ap gateway apply; done means the notification is accepted without HTTP 400 and the API deployment state is recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.