-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recognize the new core project-level config block #379
Conversation
My understanding of @AaronFriel's explanation around this was that YAML was going to stop looking at the config block directly and look at config and configSecretKeys in the run request from the engine instead. |
So YAML would use the Go SDK to do things like cc @iwahbe |
We already use the go SDK to pull config values, see pulumi-yaml/pkg/pulumiyaml/run.go Lines 845 to 850 in 0197f65
In the past, we needed to read the config to known what values to pull into scope, and what defaults to provide. If defaults will be handled for us, we can just inject config values into our scope and error (during topologicallySortedResources) when attempting to use missing values. I don't see why changing the implementation should change the user syntax. |
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.
It would be great to start seeing tests for getPulumiConfNodes
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.
Misclicked on approve
5685502
to
5fed3a9
Compare
Parsing the config block is complicated already, and will get more so when we introduce new sources of config. Even now, consider the following 3 files: Pulumi.yaml:
Pulumi.dev.yaml:
src/Main.yaml:
I can see how we will need the information though. Right now, I think we can continue going through |
a6a04d5
to
48ff676
Compare
ffc1394
to
0df7581
Compare
I think that might sync well with the ideas of code generating config types for the other languages. We should try to make sure those two things use the same language. |
ad51509
to
22b226b
Compare
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.
I left some comments. There are a couple places to clean up, but I think its getting close.
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.
I left 1 very minor nit, but LGTM!
Fixes #369