-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating the parameter generation to add some opinions (#169)
Parameters without a default are automatically required by porter
- Loading branch information
1 parent
0ad8554
commit 2f31e0e
Showing
6 changed files
with
120 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
mixins: | ||
- exec | ||
|
||
name: HELLO | ||
version: 0.1.0 | ||
description: "An example Porter configuration" | ||
invocationImage: jeremyrickard/porter-hello:latest | ||
|
||
parameters: | ||
- name: command | ||
type: string | ||
default: "echo Hello World" | ||
|
||
install: | ||
- description: "Install Hello World" | ||
exec: | ||
command: | ||
source: bundle.parameters.command | ||
|
||
uninstall: | ||
- description: "Uninstall Hello World" | ||
exec: | ||
command: bash | ||
arguments: | ||
- -c | ||
- echo Goodbye World |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,31 @@ | ||
mixins: | ||
- exec | ||
|
||
name: HELLO | ||
version: 0.1.0 | ||
description: "An example Porter configuration" | ||
invocationImage: jeremyrickard/porter-hello:latest | ||
|
||
parameters: | ||
- name: command | ||
type: string | ||
default: "echo Hello World" | ||
- name: command2 | ||
type: string | ||
|
||
install: | ||
- description: "Install Hello World" | ||
exec: | ||
command: bash | ||
arguments: | ||
- -c | ||
- source: bundle.parameters.command | ||
|
||
|
||
uninstall: | ||
- description: "Uninstall Hello World" | ||
exec: | ||
command: bash | ||
arguments: | ||
- -c | ||
- echo Goodbye World |