Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Specify number of deployments to retain when pruning during release #1230

Merged
merged 9 commits into from
Mar 25, 2021

Conversation

mitchellh
Copy link
Contributor

Fixes #988

This adds two new CLI flags to up and release:

  • -prune to disable pruning completely (not recommended, defaults true to prune)
  • -prune-retain to specify how many existing deployments to retain, defaults to "2".

The -prune-retain flag can be set to 0 to remove all previous deploys.

This only allows setting this via the CLI (or very raw API) today. In the future we should investigate exposing this more completely in waypoint.hcl files, the UI, etc. But this gets in a minimal solution to help the folks in #988.

@mitchellh mitchellh added this to the 0.3.0 milestone Mar 24, 2021
@mitchellh mitchellh requested a review from a team March 24, 2021 20:38
Copy link
Contributor

@evanphx evanphx left a comment

Choose a reason for hiding this comment

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

Clarify the logic and wording around it being the unrelease deployments, not total deployments.

Copy link
Member

@briancain briancain left a comment

Choose a reason for hiding this comment

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

🍇 👍🏻

@mitchellh mitchellh merged commit 3cfd66b into main Mar 25, 2021
@mitchellh mitchellh deleted the feature/prune-retain branch March 25, 2021 15:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customize pruning count for platform
3 participants