-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(admin-api): add cascade
querystring parameter to support force delete workspace
#5506
feat(admin-api): add cascade
querystring parameter to support force delete workspace
#5506
Conversation
✅ Deploy Preview for kongdocs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Note: Only Kong employees can add labels due to a GitHub limitation. |
|
||
Recursively delete a workspace. Normally, deleting a workspace requires its entities to be deleted first. This option allows you to recursively delete a workspace without manually deleting its entities first. | ||
|
||
``` | ||
DELETE /workspaces/{name or id}?recursive=true | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recursively delete a workspace. Normally, deleting a workspace requires its entities to be deleted first. This option allows you to recursively delete a workspace without manually deleting its entities first. | |
``` | |
DELETE /workspaces/{name or id}?recursive=true | |
``` | |
### Recursively delete a workspace | |
Normally, deleting a workspace requires its entities to be deleted first. This option allows you to recursively delete a workspace without manually deleting its entities first. | |
<div class="endpoint delete">/workspaces/{name or id}?recursive=true</div> | |
Not sure about phrasing yet. I think we need to have a stronger warning here to be absolutely sure they want to do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
Recursively delete a workspace
Deleting a workspace requires first deleting its entities. This option allows you to delete a workspace without manually deleting its entities first, as it handles the entity deletion before the workspace is deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slight rephrase:
Deleting a workspace requires deleting its entities first. This option lets you delete a workspace without manually deleting its entities first, as it handles the entity deletion before the workspace is deleted.
Otherwise, looks good.
Q: Does deleting a workspace using this method leave all of the entities orphaned, or will they be deleted as well? |
workspace's core entities will be deleted when the workspace was deleted by using the above method. |
@lena-larionova This has been moved to 3.4, could you please add a github milestone for 3.4 and move this there? |
Temporarily closing. Will reopen when we have a 3.4 branch to push to. Marked with 3.4 milestone so we'll see it in the queue. |
c0d34df
to
d671261
Compare
Here are the candidates for the user-facing parameter names. Vote an accurate one, or feel free to add a new one.
|
recursive
querystring parameter to support force delete workspacecascade
querystring parameter to support force delete workspace
@vm-001 harry mentioned that this will change the behavior in Kong Manager. That means that this doc also needs updating: https://deploy-preview-5506--kongdocs.netlify.app/gateway/latest/kong-manager/workspaces/#edit-a-workspace |
@hbagdi @lena-larionova |
Co-authored-by: lena-larionova <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, merging despite failing test. A previous commit broke it, I'll fix separately.
* version bump for gateway 3.4 * Bump kong-plugins submodule (#5682) * feat(logging): add workspace name in the logging payload (#5251) (#5585) * feat(logging): add workspace name in the logging payload (#5251) Co-authored-by: lena.larionova <[email protected]> * update the ee-version --------- Co-authored-by: lena.larionova <[email protected]> * feat(opentelemetry): add AWS header propagation (#5732) * feat(opentelemetry): add AWS header propagation * Add a changelog entry for AWS header propagation --------- Co-authored-by: lena-larionova <[email protected]> * docs(secrets-management): update docs with vault rotation and some small adjustments ### Summary In Kong 3.4 we added support for secrets rotation using TTLs. This commit adds a section to Kong docs about it. There are some small adjustments to secrets management docs as well. Signed-off-by: Aapo Talvensaari <[email protected]> * bump version for support tables to 3.4 * feat(admin-api): add `cascade` querystring parameter to support force delete workspace (#5506) * add recursive querystring parameter * rename to cascade * Update app/_src/gateway/admin-api/workspaces/reference.md Co-authored-by: lena-larionova <[email protected]> --------- Co-authored-by: lena-larionova <[email protected]> * fix: remove unnecessary tab tags in secrets rotation * fix version number typo * Add changelog entry for 3.4.x changes in the ip-restriction plugin (#5736) * Add changelog entry for 3.4.x changes in the ip-restriction plugin * minor formatting edit --------- Co-authored-by: lena-larionova <[email protected]> * feat(opentelemetry): support the parameter as referenceable (#5809) * [DOCU-3224] Remove cassandra from 3.4 (#5803) * remove cassandra * Update app/_src/gateway/kong-enterprise/analytics/reports.md Co-authored-by: Diana <[email protected]> --------- Co-authored-by: Diana <[email protected]> * chore(*): add more explanation when using EKS IRSA to access RDS database (#5831) * chore(*): add more explanation when using EKS IRSA to access RDS database * Update app/_src/gateway/kong-enterprise/aws-iam-auth-to-rds-database.md Co-authored-by: lena-larionova <[email protected]> --------- Co-authored-by: lena-larionova <[email protected]> * Add new distros, drop End-Of-Life distributions, and rename amazonlinux-2022 to 2023 (#5770) * Drop End-Of-Life distributions, and rename amazonlinux-2022 to 2023 * Update distro support for 3.4 * Add rhel9 fips support in 3.4 * Add rhel9 arm64 support * fix issue of 3.2, 3.3, and 3.4 not displaying * re-add ubuntu 18.04 to versions prior to 3.4 with EOL date --------- Co-authored-by: Andy Zhang <[email protected]> Co-authored-by: lena-larionova <[email protected]> Co-authored-by: lena.larionova <[email protected]> * chore: 3.3 > 3.4 nav changes (#5863) update 3.4 nav to match 3.3 * docs(consumer-groups): add api-specs for first-class consumer-group changes (#5873) * rename, repoint to 3.4 * fix issue with parameters --------- Co-authored-by: Angel <[email protected]> * chore: Update configuration reference for gateway 3.4 (#5881) * update autodoc-conf-ee script with latest badges * generate config ref for 3.4; update autogen script for config ref * [Autodocs] PDK and API documentation (#5882) * PDK docs * vale * fix if_version * API specs * kong.vault fix * Migrate from Cassandra to PostgreSQL (#5885) * first commit * add more info * Apply suggestions from code review Co-authored-by: lena-larionova <[email protected]> * more feedback * navbar changes, rename * image move * Update app/_src/gateway/migrate-cassandra-to-postgres.md Co-authored-by: lena-larionova <[email protected]> --------- Co-authored-by: lena-larionova <[email protected]> * AdminAPI - Add cascade query param to workspace endpoints, fix issue with validate plugin endpoint. (#5894) * add few missing things to the AdminAPIs * change contact info * fix boolean in quotes * remove quotes * add link to docs * feat: Remove Alpine instructions from Docker install instructions for 3.4 (#5886) * Remove Alpine instructions from Docker install doc Signed-off-by: Diana <[email protected]> * Conditionally render Alpine tiles on install page Signed-off-by: Diana <[email protected]> * Fix Vale warning Signed-off-by: Diana <[email protected]> --------- Signed-off-by: Diana <[email protected]> * docs(secrets-management): update docs with vault rotation and some small adjustments (#5779) * docs(secrets-management): update docs with vault rotation and some small adjustments In Kong 3.4 we added support for secrets rotation using TTLs. This commit adds a section to Kong docs about it. There are some small adjustments to secrets management docs as well. Signed-off-by: Aapo Talvensaari <[email protected]> * Apply suggestions from code review Co-authored-by: Hans Hübner <[email protected]> * Update app/_src/gateway/kong-enterprise/secrets-management/secrets-rotation.md Co-authored-by: Joshua Schmid <[email protected]> * Update app/_src/gateway/kong-enterprise/secrets-management/backends/aws-sm.md * Update app/_src/gateway/kong-enterprise/secrets-management/advanced-usage.md * Update app/_src/gateway/kong-enterprise/secrets-management/backends/gcp-sm.md * Update app/_src/gateway/kong-enterprise/secrets-management/backends/hashicorp-vault.md * docs(secrets-mgmt): act on feedback * docs(secrets): add defaults * Fix accidental submodule update Signed-off-by: Diana <[email protected]> * Apply suggestions from code review * Fix Vale errors Signed-off-by: Diana <[email protected]> * Fix last few Vale errors and fix table formatting Signed-off-by: Diana <[email protected]> --------- Signed-off-by: Aapo Talvensaari <[email protected]> Signed-off-by: Diana <[email protected]> Co-authored-by: Hans Hübner <[email protected]> Co-authored-by: Enrique García Cota <[email protected]> Co-authored-by: Joshua Schmid <[email protected]> Co-authored-by: Diana <[email protected]> * Feat: Kong Manager OSS documentation (#5864) * Add placeholder page Signed-off-by: Diana <[email protected]> * Add KM OSS screenshot, fill out KM OSS overview page, edit ports page Signed-off-by: Diana <[email protected]> * Add note about KM OSS to get started, add KM OSS to list of things OSS users can use on the main page Signed-off-by: Diana <[email protected]> * Fix broken KM link * Fix broken links in old versions, appease Vale Signed-off-by: Diana <[email protected]> * Add conditional rendering to KM ports Signed-off-by: Diana <[email protected]> * Make small fixes, apply code review feedback Signed-off-by: Diana <[email protected]> * Manually conditionally render badges for KM OSS params Signed-off-by: Diana <[email protected]> * Change Kong Manager Free to Kong Manager Enterprise Signed-off-by: Diana <[email protected]> * Add KM OSS icon, fix if_version in config file Signed-off-by: Diana <[email protected]> * Fix path to image, add links to concept pages Signed-off-by: Diana <[email protected]> * Fix icon color Co-authored-by: lena-larionova <[email protected]> * Fix sidebar test Signed-off-by: Diana <[email protected]> --------- Signed-off-by: Diana <[email protected]> Co-authored-by: lena-larionova <[email protected]> * [DOCU-3167] Update references to Amazon Linux 2023 (#5841) * Change AWS 2022 to AWS 2023 Signed-off-by: Diana <[email protected]> * Fix cloudsmith links, change our Signed-off-by: Diana <[email protected]> * Apply suggestions from code review Co-authored-by: Isa Farnik <[email protected]> * Fix AWS 2023 yum install steps, edit the Amazon install options Signed-off-by: Diana <[email protected]> --------- Signed-off-by: Diana <[email protected]> Co-authored-by: Isa Farnik <[email protected]> * Update expression router documentation for kong 3.4 (#5889) docs(expression): update expression for kong 3.4 * deprecated `overrides` endpoint note, cascade endpoint added to workspace delete. (#5907) * deprecated endpoint note, cascade endpoint added to markdown. * Add feedback from Lena * [Docu-3170] Support for scoping plugins by consumer group. (#5874) * Consumer groups main adds * fix: add missing "to" to KongPlugin guide * Add `no_consumer_group` to third-party plugins schemas * bump plugins submodule * Add support for `Enable on consumer group` tab * More plugins * vale * broken link * vale * fix broken link * Feedback * update plugins submodule to update config * redirects for consumer groups API documentation * add deprecation * last bit of feedback * add details about mixed version kGW setups * Apply suggestions from code review Co-authored-by: lena-larionova <[email protected]> * vale * Apply suggestions from code review Co-authored-by: Diana <[email protected]> Co-authored-by: lena-larionova <[email protected]> * feedback * fix last precedence thing --------- Co-authored-by: Travis Raines <[email protected]> Co-authored-by: Fabian Rodriguez <[email protected]> Co-authored-by: lena-larionova <[email protected]> Co-authored-by: Diana <[email protected]> * chore: Copy over nav changes from 3.3 to 3.4 (#5908) copy over nav changes from 3.3 to 3.4 * Chore: Fix vale, Update Github action (#5895) * test vale * fix it I think * edit .vale.ini * try again * test new action * test * test again * test * test * test * remove vale test items * chore: Add 3.4 version to Gateway upgrade doc (#5911) Add 3.4 version to upgrade doc Signed-off-by: Diana <[email protected]> * Add documentation for Gateway 3.4 Wasm support (#5840) * wasm docs WIP * wasm docs review changes * addressing reviewdog comments * cursed typo * review comments addressed and some config changes * refine configuration instructions * quotes around config * use `export` instead of changing user's conf * copy edit * Update app/_src/gateway/plugin-development/wasm.md Co-authored-by: Vinicius Mignot <[email protected]> * Update app/_src/gateway/plugin-development/wasm.md Co-authored-by: Hisham Muhammad <[email protected]> * Change "WasmX" to "Kong using WebAssembly" Co-authored-by: Hisham Muhammad <[email protected]> * Update app/_src/gateway/plugin-development/wasm.md Co-authored-by: Hisham Muhammad <[email protected]> * Avoid first-person plural * typo * fix vale to not flag Wasm * more vale fixes * Update app/_src/gateway/reference/wasm.md Co-authored-by: Hisham Muhammad <[email protected]> * Update app/_src/gateway/reference/wasm.md Co-authored-by: Hisham Muhammad <[email protected]> * Update app/_src/gateway/reference/wasm.md Co-authored-by: Hisham Muhammad <[email protected]> * keep list ordered * review suggestion * Update app/_src/gateway/plugin-development/wasm.md * title-case Kong DB entities * reword [proxy-]wasm language support explanation * typo: increase => increased * add note about lack of testing for other SDKs * reword proxy-wasm limitations and link to ngx_wasm_module * explain: route filters are executed after service filters * reword declarative/kong.yml instruction * dictionary: add new terms * make proxy-wasm link consistent between pages * explain: lua plugin interaction * fix typos * Update app/_src/gateway/reference/wasm.md Co-authored-by: Thibault Charbonnier <[email protected]> * wrapping * reword Lua plugin vs wasm filter ordering warning * copy edit --------- Co-authored-by: Vinicius Mignot <[email protected]> Co-authored-by: Angel <[email protected]> Co-authored-by: Angel <[email protected]> Co-authored-by: Hisham Muhammad <[email protected]> Co-authored-by: Thibault Charbonnier <[email protected]> * chore: Update plugins submodule for 3.4 (#5912) update plugins submodule for 3.4 * chore: Changelog for Kong Gateway 3.4.0.0 (#5905) * 3.4 changelog draft * all the formatting and clean up and links * descriptions and links for a bunch of new features * fix typos and disable vale * Apply suggestions from code review Co-authored-by: Angel <[email protected]> * fix a typo --------- Co-authored-by: Angel <[email protected]> * chore: Breaking changes in Kong Gateway 3.4 (#5914) * remove vitals changelog entry, change was reverted * breaking changes for 3.4 * appease vale * add zipkin to queue param affected plugins list * fix typo * chore: Add gpg/rsa gateway-34 repo keys (#5919) * chore: add compatibility issues for v3.4 (#5918) * chore: add compatibility issues for v3.4 Adds version compatibility issues for gateway v3.4. Removes D155 due to a reversal of support for datadog-tracing between v3.2 and v3.2.2. Adds a few other non v3.4 changeIDs. * typos and docs link --------- Signed-off-by: Aapo Talvensaari <[email protected]> Signed-off-by: Diana <[email protected]> Co-authored-by: Michael Heap <[email protected]> Co-authored-by: Xiaoyan Rao <[email protected]> Co-authored-by: Antoine Labarussias <[email protected]> Co-authored-by: Aapo Talvensaari <[email protected]> Co-authored-by: Yusheng Li <[email protected]> Co-authored-by: Hans Hübner <[email protected]> Co-authored-by: Yufu Zhao <[email protected]> Co-authored-by: Diana <[email protected]> Co-authored-by: Qirui(Keery) Nie <[email protected]> Co-authored-by: Wangchong Zhou <[email protected]> Co-authored-by: Andy Zhang <[email protected]> Co-authored-by: Joshua Schmid <[email protected]> Co-authored-by: Angel <[email protected]> Co-authored-by: Angel <[email protected]> Co-authored-by: Enrique García Cota <[email protected]> Co-authored-by: Isa Farnik <[email protected]> Co-authored-by: Chrono <[email protected]> Co-authored-by: Travis Raines <[email protected]> Co-authored-by: Fabian Rodriguez <[email protected]> Co-authored-by: Michael Martin <[email protected]> Co-authored-by: Vinicius Mignot <[email protected]> Co-authored-by: Hisham Muhammad <[email protected]> Co-authored-by: Thibault Charbonnier <[email protected]> Co-authored-by: Amy Goldsmith <[email protected]> Co-authored-by: Alex Gaesser <[email protected]>
Description
Introduces a new query parameter
cascade
for workspace delete API to support workspace cascade delete.Testing instructions
Netlify link: https://deploy-preview-5506--kongdocs.netlify.app/
Checklist
main
for immediate publishing, or a release branch: e.g.release/gateway-3.2
,release/deck-1.17
)https://github.com/Kong/kong-ee/pull/5915
FTI-4731