Skip to content

[v8] New command "cleanup-outdated-service-bindings"#3712

Merged
anujc25 merged 2 commits intocloudfoundry:v8from
sap-contributions:v8_cleanup_outdated_service_bindings_rebased
Mar 4, 2026
Merged

[v8] New command "cleanup-outdated-service-bindings"#3712
anujc25 merged 2 commits intocloudfoundry:v8from
sap-contributions:v8_cleanup_outdated_service_bindings_rebased

Conversation

@jochenehret
Copy link
Contributor

Description of the Change

The PR introduces a new command "cleanup-outdated-service-bindings". It allows the user to easily clean up multiple service bindings by removing the oldest binding(s) for a given application. The number of bindings to keep can be specified. The cleanup action can also be narrowed down to a specific service instance.

Note: This PR depends on #3711 (enable multi binding feature for integration tests).

Why Is This PR Valuable?

Allows users to clean up old service bindings with one CF CLI command.

Applicable Issues

https://github.com/cloudfoundry/community/blob/main/toc/rfc/rfc-0040-service-binding-rotation.md#cf-cli

How Urgent Is The Change?

Not super-urgent.

Other Relevant Parties

* deletes outdated service credential bindings for a given app
* can be narrowed down to bindings of one specific service instance
* number of bindings to keep can also be specified (default: 1)
* for the full workflow, see https://github.com/cloudfoundry/community/blob/main/toc/rfc/rfc-0040-service-binding-rotation.md#cf-cli
Copy link
Contributor

@anujc25 anujc25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks

@anujc25 anujc25 merged commit fad4bcb into cloudfoundry:v8 Mar 4, 2026
38 of 44 checks passed
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.

3 participants