-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable setting custom values during porter build. (#1900)
* Enable custom values for porter build command Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com> * Add description and example for nested value Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com> * Change function name to FlattenMap and move it to its own package Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com> * Remove checking for parsedCustoms Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com> * Use existing porter.yaml for testing and remove the other one Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com> * Update testfiles Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com> * Fix integration test Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com> * Add documentation to custom section of Porter manifest Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com> * Use StringArrayVar instead of StringSliceVar for --custom flag on porter build Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com> * Add explanation on how the --custom flag will be processed during the build process Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com> * Updated docs using mage build Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com> * Update doc based on review Signed-off-by: joshuabezaleel <joshua.bezaleel@gmail.com>
- Loading branch information
1 parent
4a7fd67
commit 62435ad
Showing
16 changed files
with
250 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
schemaVersion: 1.0.0-alpha.1 | ||
name: porter-hello | ||
version: 0.1.0 | ||
description: "An example Porter configuration" | ||
registry: "localhost:5000" | ||
custom: | ||
key1: editedValue1 | ||
key2: | ||
nestedKey2: editedValue2 | ||
mixins: | ||
- exec | ||
install: | ||
- exec: | ||
description: "Install Hello World" | ||
command: ./helpers.sh | ||
arguments: | ||
- install | ||
status: | ||
- exec: | ||
description: "World Status" | ||
command: ./helpers.sh | ||
arguments: | ||
- status | ||
uninstall: | ||
- exec: | ||
description: "Uninstall Hello World" | ||
command: ./helpers.sh | ||
arguments: | ||
- uninstall | ||
# comments n stuff |
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
Oops, something went wrong.