Commit graph

5164 commits

Author SHA1 Message Date
Komal
b531038d33
[codegen/schema] - Add deprecation messages for enum values (#5521) 2020-10-07 09:32:00 -07:00
Mikhail Shilkov
879066a60b
Execute self-contained .NET binary (#5519)
* Execute self-contained .NET binary
* Skip dotnet lookup for self-contained binaries
2020-10-07 11:46:24 +02:00
Vivek Lakshmanan
2b67c6ea81
Merge pull request #5514 from pulumi/vl/AddGoConfigGen
[codegen] Add support for config generation in go programgen
2020-10-06 16:54:41 -07:00
Vivek Lakshmanan
e49ba01f8f PR comments 2020-10-06 16:13:49 -07:00
Vivek Lakshmanan
ea75755d88 Add test scaffolding for azure provider 2020-10-06 16:13:30 -07:00
Justin Van Patten
df75f0ed95
Support remote components in .NET (#5485) 2020-10-06 10:19:22 -07:00
Vivek Lakshmanan
8f7874b3e2 Handle aliases correctly for invokes 2020-10-05 22:57:00 -07:00
Vivek Lakshmanan
739b664046 Add support for go config generation 2020-10-05 22:55:41 -07:00
Luke Hoban
1803eb2978
Merge pull request #5512 from pulumi/lukehoban/fix_5484
Testing https://github.com/pulumi/pulumi/pull/5484
2020-10-05 17:08:00 -07:00
Luke Hoban
32f13fabfa Merge branch 'fix_gzip_compression' of https://github.com/birdypme/pulumi into birdypme-fix_gzip_compression 2020-10-05 13:52:23 -07:00
Joe Duffy
12e5e46c73
Handle blank project names in 'new' (#5504)
The logic for validating prompted values in 'new' wasn't quite right,
leading to the possibility of creating Pulumi.yaml files with blank
project names.

This manifests in various ways and I've hit it a number of times
over the past few months because of the way we handle project/stack
name conflicts in 'new' -- which itself is a bit annoying too:

https://github.com/pulumi/pulumi/blob/master/pkg/cmd/pulumi/new.go#L206-L207

Because we substitue a default value of "", and because the prompting
logic assumed default values are always valid, we would skip validation
and therefore accept a blank Pulumi.yaml file.

This generates an invalid project which causes errors elsewhere, such as

    error: failed to load Pulumi project located at ".../Pulumi.yaml":
        project is missing a 'name' attribute

I hit this all the time with our getting started guide because I've
gone through it so many times and have leftover stacks from prior
run-throughs. I wouldn't be surprised if a lot of people hit this.

The solution here validates all values, including the default.

Note also that we failed to validate the value used by 'new --yes'
which meant you could bypass all validation by passing --yes, leading
to similar outcomes.

I've added a couple new tests for these cases. There is a risk we
depend on illegal default values somewhere which will now be rejected,
but that would seem strange, and assuming the tests pass, I would
assume that's not true. Let me know if that's wrong.

Fixes pulumi/pulumi#3255.
2020-10-05 13:40:24 -07:00
Mikhail Shilkov
98f04cd2fc
Ensure top-level precedence to avoid flaky tests (#5508) 2020-10-05 19:50:51 +02:00
Mikhail Shilkov
3a2d7356a2
Quit if a static passphrase is invalid (#5507) 2020-10-05 14:57:48 +01:00
Luke Hoban
3be1ea9592
Fix panic with logs (#5503)
Fixes #5112.
2020-10-02 14:09:34 -07:00
Mike Metral
08c8848375 feat(autoapi): expose EnvVars LocalWorkspaceOption to set in ctor 2020-10-02 09:01:28 -07:00
Julien Champseix
408d3cf219
Merge branch 'master' into fix_gzip_compression 2020-10-02 09:41:21 +02:00
Lee Briggs
9d5a4d742a
add analyzer policy to Docker images (#5495) 2020-10-01 16:11:55 -07:00
stack72
b901292228 Prepare for v2.11.2 release 2020-10-01 23:09:23 +01:00
Justin Van Patten
97c006b5ce
[sdk/python] Fix secret regression (#5496)
A recent change to output deserialization resulted in secrets being returned unwrapped. This change addresses the regression, ensuring any unwrapped secret values are rewrapped before being returned.
2020-10-01 14:57:51 -07:00
stack72
0b1124635e Updating the build ref for the docker images actions 2020-10-01 09:01:19 +01:00
Julien Champseix
f2b75b1e5f Merge branch 'master' into fix_gzip_compression 2020-10-01 09:22:12 +02:00
Julien Champseix
f9eae8b8e9 Merge branch 'master' of https://github.com/pulumi/pulumi 2020-10-01 09:17:14 +02:00
Julien Champseix
3df5d55256 removed superfluous Flush() 2020-10-01 09:07:30 +02:00
Lee Briggs
cedab0003b
Prepare for v2.11.1 release 2020-09-30 17:13:03 -07:00
Lee Briggs
ca79cddb50
revert builds back to travis (#5486) 2020-09-30 15:46:52 -07:00
Justin Van Patten
9bcf02e7ed
Support remote components in Python (#5375) 2020-09-30 14:09:20 -07:00
Julien Champseix
15bb586fa3 updated CHANGELOG 2020-09-30 23:06:13 +02:00
Julien Champseix
88c556d2fe restored contract.IgnoreClose on gzip reader, but only when pointer is valid 2020-09-30 22:57:09 +02:00
Levi Blackstone
38172999e7
[codegen] Extract common test logic (#5480) 2020-09-30 14:41:52 -06:00
Julien Champseix
370125868d Merge branch 'master' of github.com:birdypme/pulumi 2020-09-30 22:31:36 +02:00
Julien Champseix
bcac6cf1d7 only close the gzip reader if a valid pointer was returned 2020-09-30 21:52:35 +02:00
Lee Briggs
d4263acbcf
Prepare for v2.11.0 release 2020-09-30 11:00:47 -07:00
Lee Briggs
9944ec13f3
prep for release (#5481) 2020-09-30 18:09:49 +01:00
Lee Briggs
ad16104985
Implement release workflow (#5468) 2020-09-30 17:44:07 +01:00
Levi Blackstone
64602798b1
[codegen/python] Don't generate get methods for ComponentResources (#5459) 2020-09-30 10:16:25 -06:00
Komal
59b906eb76
Update nodejs gen-tests (#5477) 2020-09-29 16:00:03 -07:00
Mikhail Shilkov
5e3c14c8be
[dotnet] Allow resources to define outputs of Output<object> (#5465) 2020-09-28 18:00:02 +02:00
Paul Stack
a7e0aabeb2
Merge pull request #5456 from pulumi/bump-docker-go-version
Bump the Go version in our containers to be latest v1.14.x version - our latest tested version
2020-09-27 20:33:30 +01:00
Julien Champseix
2aa950f7de call Close() explicitly after compressing bytes
this writes the expected gzip checksum data mandatory for decompression
2020-09-25 23:17:37 +02:00
Levi Blackstone
f048c04782
[codegen/nodejs] Add support for ResourceType and isComponent (#5454) 2020-09-25 13:35:27 -06:00
stack72
1d06698d7e Bump the Go version in our containers to be latest v1.14.x version - our latest tested version 2020-09-25 15:10:46 +01:00
jetvova
b4c2a3521c
Fixed issue #5014 (Missing Pulumi console tags on Windows) (#5406)
Co-authored-by: Paul Stack <public@paulstack.co.uk>
2020-09-25 15:04:18 +01:00
Paul Stack
6e0163b248
Tag sdk containers as latest (#5438) 2020-09-25 12:17:05 +01:00
Levi Blackstone
9363f606b6
[codegen/schema] Add IsComponent to resource schema (#5395)
Add support for ComponentResources to the schema by
adding a new IsComponent field to the Resource spec.
2020-09-23 18:23:46 -06:00
Levi Blackstone
81580289a7
[codegen/python] Handle ResourceType (#5444) 2020-09-23 13:39:25 -06:00
Pat Gavlin
3278b6bf91
Simplify types more precisely. (#5440)
Instead of simplifying any module that ends with `/<name>`, only simplify
types where `<name>` matches the type name portion after camel-casing.
This continues to simplify tfbridge types like `aws:s3/bucket:Bucket`,
but would not simplify a type like `aws:s3:Bucket`.
2020-09-22 10:34:16 -07:00
Levi Blackstone
3ea59ebbb8
[codegen/schema]: Add ResourceType to support resource refs (#5325) 2020-09-22 11:09:27 -06:00
Lee Briggs
95bc138b41
add master branch workflow (#5386) 2020-09-21 16:20:05 -07:00
Komal
a334b60193
Only allow type-matching enum values (#5417)
* Only allow type-matching enum values

* More tests and fixes
2020-09-21 12:23:04 -07:00
Justin Van Patten
971a8bbacf Prepare for v2.10.2 2020-09-21 11:51:56 -07:00