Skip to content

[main] RFC-0045: Stack management reason#3719

Open
simonjjones wants to merge 23 commits intocloudfoundry:mainfrom
simonjjones:stack-management-reason
Open

[main] RFC-0045: Stack management reason#3719
simonjjones wants to merge 23 commits intocloudfoundry:mainfrom
simonjjones:stack-management-reason

Conversation

@simonjjones
Copy link
Contributor

Thank you for contributing to the CF CLI! Please read the following:

  • Please make sure you have implemented changes in line with the contributing guidelines
  • We're not allowed to accept any PRs without a signed CLA, no matter how small.
    If your contribution falls under a company CLA but your membership is not public, expect delays while we confirm.
  • All new code requires tests to protect against regressions.
  • Contributions must be made against the appropriate branch. See the contributing guidelines
  • Contributions must conform to our style guide. Please reach out to us if you have questions.

Note: Please create separate PR for every branch (main and v8) as needed.

Description of the Change

This PR covers additional CLI implementation details for RFC-0045: Enhance Stack Handling in Cloud Foundry. It adds an additional state reason field to output of the cf stack & cf update-stack commands, as well as adding the ability to modify the state reason to the cf update-stack command. This PR relies on changes already implemented in the Cloud Controller API and released in 1.226.0

Why Is This PR Valuable?

These changes will be required for consumers to interact with the new features available in the Cloud Controller, the RFC has been accepted, indicating the changes are valuable.

Applicable Issues

N/A

How Urgent Is The Change?

This should be released promptly, so that consumers can begin to use the newly implemented CAPI features

Other Relevant Parties

Who else is affected by the change?

The Cloud Controller changes have already been released

simonjjones and others added 23 commits January 20, 2026 10:27
Signed-off-by: Simon Jones <simonjones@vmware.com>
Signed-off-by: Simon Jones <simonjones@vmware.com>
Signed-off-by: Simon Jones <simonjones@vmware.com>
Signed-off-by: Simon Jones <simonjones@vmware.com>
Signed-off-by: Simon Jones <simonjones@vmware.com>
Signed-off-by: Simon Jones <simonjones@vmware.com>
Signed-off-by: Simon Jones <simonjones@vmware.com>
Signed-off-by: Simon Jones <simonjones@vmware.com>
Signed-off-by: Simon Jones <simonjones@vmware.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
- Update help description expectations to include "and current state"
- Add state column to stacks listing assertions
- Consolidate stack exists test contexts and add state assertions
- Add state exclusion assertion to --guid test

Co-authored-by: Cursor <cursoragent@cursor.com>
…erface

- Display reason: whenever stack state is non-ACTIVE, even if reason is empty
- Update CloudControllerClient and Actor interfaces for 3-arg UpdateStack
- Regenerate fakes for updated interfaces
- Fix duplicate Execute call in update-stack reason test

Co-authored-by: Cursor <cursoragent@cursor.com>
- update-stack: test empty reason for non-active state, test reason with --reason flag
- stack: test no reason for active state, test empty reason for non-active state, test reason for non-active state with reason

Co-authored-by: Cursor <cursoragent@cursor.com>
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