Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filestate/upgrade: Support backfilling projects for detached stack
Adds an option to the filestate upgrade operation that, when supplied, allows the caller to fill project names for stacks for which we could not guess a project name. The caller supplies a function with the following signature, taking a list of stack names and returning a list of project names in the same order. func(stacks []Name) (projects []Name, err error) A caller like the CLI can use this hook to prompt the user for input, allowing users to fill in project names for stacks.
- Loading branch information
Showing
3 changed files
with
181 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...roject-names-for-stacks-where-the-project-name-could-not-be-automatically-determined.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
changes: | ||
- type: chore | ||
scope: backend/filestate | ||
description: Add an option to the Upgrade operation allowing injection of an external source of project names for stacks where the project name could not be automatically determined. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters