Skip to content
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

Revamp config support #414

Merged
merged 19 commits into from
Apr 19, 2022
Merged

Revamp config support #414

merged 19 commits into from
Apr 19, 2022

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Apr 19, 2022

Description

Fixes # (issue)

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@t0yv0 t0yv0 mentioned this pull request Apr 19, 2022
3 tasks
@t0yv0 t0yv0 added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Apr 19, 2022
Copy link
Contributor

@pawelprazak pawelprazak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really nice!

the Java code needs to be de-go-ified ;)

pkg/codegen/jvm/gen.go Show resolved Hide resolved
pkg/codegen/jvm/gen_defaults.go Show resolved Hide resolved
return enumTypes
}

func (dg *defaultsGen) unEitherTypeShape(typeShape TypeShape) (bool, TypeShape, TypeShape) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

those un*TypeShape(...) look like they should be on the TypeShape itself, this one esp. looks useful for #138

@pawelprazak
Copy link
Contributor

I'm doing a PR to this PR to help out with the Java part, and better understand limitations of our Environment and Config implementations we have right now.

@pawelprazak pawelprazak mentioned this pull request Apr 19, 2022
3 tasks
@pawelprazak
Copy link
Contributor

instead of making you do the changes from my review please take this one :)
#418

@t0yv0 t0yv0 marked this pull request as ready for review April 19, 2022 13:27
@t0yv0 t0yv0 requested a review from pawelprazak April 19, 2022 13:30
@t0yv0
Copy link
Member Author

t0yv0 commented Apr 19, 2022

Filed #420 bug discovered here.

Also noting that Union and Either handling is a little sketchy, but at least seems to produce compiling code for now. We may need to revisit.

There's a few further simplifications this opens up, including removing typeInitializer and removing jumbo constructor branch, but I couldn't work it out last night perhaps later.

@t0yv0 t0yv0 mentioned this pull request Apr 19, 2022
3 tasks
Copy link
Contributor

@pawelprazak pawelprazak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@t0yv0 t0yv0 merged commit 6c44a12 into main Apr 19, 2022
@pulumi-bot pulumi-bot deleted the t0yv0/revamp-config branch April 19, 2022 14:05
t0yv0 added a commit that referenced this pull request May 3, 2022
* Rebasing

* Merging testdata

* Add mini-azuread test case

* Fix merge

* Fix handling secret outputs

* Accept changes

* Fix generation of custom-named props like public_

* Implement secret() helper

* [codegen] built and added added providers/pulumi-aws-native/

* [codegen] built and added added providers/pulumi-aws/

* [codegen] built and added added providers/pulumi-azure-native/

* [codegen] built and added added providers/pulumi-docker/

* [codegen] built and added added providers/pulumi-eks/

* [codegen] built and added added providers/pulumi-gcp/

* [codegen] built and added added providers/pulumi-google-native/

* [codegen] built and added added providers/pulumi-kubernetes/

* Pass lint

* Code style improvements and cleanup

Co-authored-by: Paweł Prażak <pprazak@virtuslab.com>
t0yv0 added a commit that referenced this pull request May 3, 2022
* Rebasing

* Merging testdata

* Add mini-azuread test case

* Fix merge

* Fix handling secret outputs

* Accept changes

* Fix generation of custom-named props like public_

* Implement secret() helper

* [codegen] built and added added providers/pulumi-aws-native/

* [codegen] built and added added providers/pulumi-aws/

* [codegen] built and added added providers/pulumi-azure-native/

* [codegen] built and added added providers/pulumi-docker/

* [codegen] built and added added providers/pulumi-eks/

* [codegen] built and added added providers/pulumi-gcp/

* [codegen] built and added added providers/pulumi-google-native/

* [codegen] built and added added providers/pulumi-kubernetes/

* Pass lint

* Code style improvements and cleanup

Co-authored-by: Paweł Prażak <pprazak@virtuslab.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants