Skip to content

feat: Updated OpenAPI file for cloud gateway-addon.#184

Closed
shivaygupta-dotcom wants to merge 5 commits intorelease/0.16.0from
feature/cloud-gateway-addon
Closed

feat: Updated OpenAPI file for cloud gateway-addon.#184
shivaygupta-dotcom wants to merge 5 commits intorelease/0.16.0from
feature/cloud-gateway-addon

Conversation

@shivaygupta-dotcom
Copy link
Contributor

@shivaygupta-dotcom shivaygupta-dotcom commented Feb 18, 2026

Summary

In this PR,

  1. We are adding changes to support cloud-gateway add on.
  2. Syncing with platform-api repo.

Issues resolved

Related PRs on platform-api (if any)

Checklist ✅

  • Features being added are live
  • Added/updated examples (if applicable)
  • Added/updated acceptance tests (if applicable)
  • Updated CHANGELOG.md to clearly mention any breaking changes, new features and bug fixes
  • Clean commit history (reset to the current release (release/x.y.z) and git cherry-pick if necessary)

@harshadixit12
Copy link
Contributor

@shivaygupta-dotcom have we tested what happens if the add on name is changed and we run terraform-apply?

@shivaygupta-dotcom
Copy link
Contributor Author

@shivaygupta-dotcom have we tested what happens if the add on name is changed and we run terraform-apply?

@harshadixit12, I just tested this locally and it looks like the API treats a rename as a brand-new resource creation. Because of that, it’s hitting a restriction that prevents the update from going through.

error from API:

{"status":400,"title":"Invalid Request","instance":"kong:trace:15998110656216816935","detail":"Control plane 'b5522f7b-bb43-4b94-941e-27019b03b694' already has an add-on of kind 'managed-cache.v0'. Only one
│ add-on of a kind is allowed per control plane.","invalid_parameters":[]}

@harshadixit12
Copy link
Contributor

like the API treats a rename as a brand-new resource creation.

This is expected - since there is no update operation defined. Can we find out from cloud gateways team why we get this error when trying to recreate?
We can consider having a retry configured if this is expected.

@shivaygupta-dotcom
Copy link
Contributor Author

like the API treats a rename as a brand-new resource creation.

This is expected - since there is no update operation defined. Can we find out from cloud gateways team why we get this error when trying to recreate? We can consider having a retry configured if this is expected.

Writing here for future reference:
Had discussion with cgw team, the diff which we are facing between deletion and creation while running terraform apply is expected, as while deleting addOn they use kafka events and it takes some time to process the deletion event of the addOn, while terraform expects deletion and creation in real time. This will be fixed in future when they will start support update operation.

slack thread: https://kongstrong.slack.com/archives/C090KKNC5ED/p1771828352493879?thread_ts=1770713778.491859&cid=C090KKNC5ED

@shivaygupta-dotcom
Copy link
Contributor Author

closing this as alot of conflicts.
opening this new PR with only cgw add-on changes: #187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants