Skip to content

Add --dry-run flag with predicted-changes summary and deployment outputs - #275

Draft
vkalapov wants to merge 1 commit into
masterfrom
feature/LMCROSSITXSADEPLOY-3716-dry-run
Draft

vkalapov wants to merge 1 commit into
masterfrom
feature/LMCROSSITXSADEPLOY-3716-dry-run

Conversation

@vkalapov

Copy link
Copy Markdown
Contributor

Description:

Adds --dry-run to the cf deploy command. When set, the flag is forwarded
to the deploy service; once the operation completes the CLI reads
operation.DryRunResult and prints a colour-coded predicted-changes summary
instead of a success message.

What changes:

  • Operation model in clients/models/operation.go gains DryRunResult
    (struct with AppsToCreate/Update/Delete, ServicesToCreate/Update/Delete,
    RoutesToCreate/Delete string slices) and Outputs map.
  • --dry-run flag registered on the deploy command and passed through to the
    backend request.
  • printDryRunResult renders the changeset with colour (green +, yellow ~,
    red -) and prints any deployment outputs.

Issue:

LMCROSSITXSADEPLOY-3716

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.

1 participant