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

Add a regression test for #2534 #3859

Merged
merged 3 commits into from
Apr 24, 2024
Merged

Add a regression test for #2534 #3859

merged 3 commits into from
Apr 24, 2024

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Apr 23, 2024

This makes sure that AWS targetGroup can be imported without error.

It currently passes on the latest version of the provider, but #2534 shows that it had a history of silently regressing. This test will keep us from regressing this again.

This makes sure that AWS targetGroup can be imported without error.
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

Copy link

Is README.md missing any configuration options?

assumeRoleWithWebIdentity not found in Configuration section
customCaBundle not found in Configuration section
defaultTags not found in Configuration section
ec2MetadataServiceEndpoint not found in Configuration section
ec2MetadataServiceEndpointMode not found in Configuration section
httpProxy not found in Configuration section
httpsProxy not found in Configuration section
ignoreTags not found in Configuration section
noProxy not found in Configuration section
retryMode not found in Configuration section
s3UsEast1RegionalEndpoint not found in Configuration section
sharedConfigFiles not found in Configuration section
skipRequestingAccountId not found in Configuration section
stsRegion not found in Configuration section
tokenBucketRateLimiterCapacity not found in Configuration section
useDualstackEndpoint not found in Configuration section

Please add a description for each of these options to README.md. Details about them can be found in either the upstream docs or schema.json.

@t0yv0 t0yv0 enabled auto-merge (squash) April 24, 2024 16:33
@t0yv0 t0yv0 merged commit fcacac6 into master Apr 24, 2024
23 checks passed
@t0yv0 t0yv0 deleted the t0yv0/fix-target-group-import branch April 24, 2024 18:09
VenelinMartinov added a commit to pulumi/pulumi-gcp that referenced this pull request Apr 26, 2024
fixes #1916

This patches the upstream handling of labels to import `labels` and
`pulumiLabels` as well as `effectiveLabels`. Note we handle
`defaultLabels` on the provider by removing them from the imported
`labels`.

This allows for storage buckets to be imported cleanly along with their
labels.

The upstream provider does not import these properties. [The TF GCP
provider
allows](https://www.hashicorp.com/blog/terraform-google-provider-adds-updates-to-default-labels)
for non-managed labels on resources. this PR changes this in our
provider - it will now import ALL labels and assume they are all managed
in pulumi by default. Note that we still allow manually editing the
inputs after importing.

There is no way to fix #1916
without this though - we either have to assume the labels are managed by
pulumi or none are.


Note that I adopted the import machinery from
pulumi/pulumi-aws#3859

I've opened #1959 as a
possible follow-up if we decide to fix this behaviour for other
resources. Implementation might be tricky.

---------

Co-authored-by: Ian Wahbe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants