This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 327
core: add support for input variables #1548
Merged
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
3f98486
add variables to config
krantzinator 1582729
more vars funcs for eventual refactoring
krantzinator 3d753bd
add some var stuff to runner op and project
krantzinator aca5eb6
add var flags to the job
krantzinator 2d7fc58
finish adding vars to the job
krantzinator e138aa8
testdata for variables_test.go
krantzinator e022a81
make format
krantzinator 89926ac
move variables into separate package
krantzinator bcf37a4
fixup some comments; pt1 of CollectInputVars refactor
krantzinator 0de16e7
move file parsing to func
krantzinator 39affd2
fix test to actually test CollectInputValues
krantzinator 29bbe16
more test cases
krantzinator 80802eb
renamed func; added helper for file parse; some tests
krantzinator 47cfa24
make Source a struct with precedence; update test; add sort
krantzinator 4e2328c
comments and TODOs
krantzinator adf05f0
files are a slice
krantzinator 12962a9
evalcontext take 1
krantzinator 813ecee
initial refactor; add evalcontext for input vars
krantzinator 1a938bb
fix temporary var name
krantzinator ada9ad1
update tests with cty null value
krantzinator 87882d9
rename symbol
krantzinator 20a941f
go mod tidy
krantzinator bc165d8
add new test file
krantzinator dbb258e
fix errant reordering of client.GetProject on runner
krantzinator 845a47f
add vcs file parsing on runner
krantzinator 95ce1a6
update tests per file loading changes
krantzinator 73df665
add bool and int types to variables proto
krantzinator b581a75
num/bool support on protos
krantzinator d416828
rename vars
krantzinator c5607cc
tried to commit file/vcs combo separately; mildly successful
krantzinator fbc23a4
refactor struct relationships and precedence sorting
krantzinator bf25ed5
add missing error; remove old comment
krantzinator ec2c0b8
i think i forgot to commit this?
krantzinator 05bbc5a
update tests for refactor
krantzinator 08f7898
re-add support for hcl types
krantzinator 59d4bc4
test cleanup; add docs; add test for vcs load
krantzinator 5b84387
fmt
krantzinator 82d9694
doc cleanup
krantzinator 1f85a9a
remove requirement for default value
krantzinator e851aba
changelog
krantzinator 6399c01
update doc comment
krantzinator de034eb
proto
krantzinator c8d9631
fix usage docs
krantzinator 9722ea9
add slightly more info in doc comment
krantzinator c9115aa
more doc comment cleanup
krantzinator 9bf40a2
typo
krantzinator f6a7878
first pass at PR comments
krantzinator c904b84
rename a func; move decode into variables pkg
krantzinator 8a0ded9
fmt
krantzinator 6b376da
fill in empty error msg
krantzinator c3863eb
add doc comments to protobuf; add hcl parsing to cli/env raw values
krantzinator be9e72e
remove unused code
krantzinator 7afbaa1
fmt
krantzinator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:feature | ||
core: Add support for input variables | ||
``` |
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,23 @@ | ||
project = "foo" | ||
|
||
app "web" { | ||
config { | ||
env = { | ||
static = "hello" | ||
} | ||
} | ||
|
||
build {} | ||
|
||
deploy {} | ||
} | ||
|
||
variable "dinosaur" { | ||
default = "longneck" | ||
type = string | ||
} | ||
|
||
variable "dinosaur" { | ||
default = "bigtooth" | ||
type = string | ||
} |
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,18 @@ | ||
project = "foo" | ||
|
||
app "web" { | ||
config { | ||
env = { | ||
static = "hello" | ||
} | ||
} | ||
|
||
build {} | ||
|
||
deploy {} | ||
} | ||
|
||
variable "bees" { | ||
default = "buzz" | ||
type = bool | ||
} |
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,19 @@ | ||
project = "foo" | ||
|
||
app "web" { | ||
config { | ||
env = { | ||
static = "hello" | ||
} | ||
} | ||
|
||
build {} | ||
|
||
deploy {} | ||
} | ||
|
||
variable "bees" { | ||
default = "buzz" | ||
description = "This is my description" | ||
type = notatype | ||
} |
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,19 @@ | ||
project = "foo" | ||
|
||
app "web" { | ||
config { | ||
env = { | ||
static = "hello" | ||
} | ||
} | ||
|
||
build {} | ||
|
||
deploy {} | ||
} | ||
|
||
variable "bees" { | ||
default = "buzz" | ||
description = "This is my description" | ||
type = string | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note that this is surely a candidate for bold feature (that we don't support automating yet). So no action you have to do @krantzinator but just for us to know when we cut a release and build the changelog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10-4