Skip to content

[V8] RFC-0045: Stack Management Reason#3718

Draft
simonjjones wants to merge 24 commits intocloudfoundry:v8from
simonjjones:v8-stack-management-reason
Draft

[V8] RFC-0045: Stack Management Reason#3718
simonjjones wants to merge 24 commits intocloudfoundry:v8from
simonjjones:v8-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 24 commits December 1, 2025 14:38
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>
…erface

- Display reason: whenever stack state is non-ACTIVE, even if reason is empty
- Update CloudControllerClient and Actor interfaces for 3-arg UpdateStack
- Add StateReason field to Stack resource
- 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>
@simonjjones simonjjones changed the title V8 stack management reason [V8] RFC-0045: Stack Management Reason Feb 13, 2026
@simonjjones simonjjones marked this pull request as draft February 13, 2026 17:41
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