Skip to content

Only initialize custom resources if provider is not parameterized#4030

Merged
thomas11 merged 3 commits into
masterfrom
tkappler/parameterize-customresources-2
Mar 18, 2025
Merged

Only initialize custom resources if provider is not parameterized#4030
thomas11 merged 3 commits into
masterfrom
tkappler/parameterize-customresources-2

Conversation

@thomas11

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

Does the PR have any schema changes?

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

Comment thread provider/pkg/provider/provider.go
@codecov

codecov Bot commented Mar 17, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 66.66667% with 4 lines in your changes missing coverage. Please review.

Project coverage is 57.85%. Comparing base (4ed8d3b) to head (14b7783).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
provider/pkg/provider/provider.go 62.50% 2 Missing and 1 partial ⚠️
provider/cmd/pulumi-gen-azure-native/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4030      +/-   ##
==========================================
+ Coverage   57.84%   57.85%   +0.01%     
==========================================
  Files          83       83              
  Lines       13369    13375       +6     
==========================================
+ Hits         7733     7738       +5     
- Misses       5037     5038       +1     
  Partials      599      599              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread provider/pkg/provider/provider.go Outdated
@thomas11 thomas11 enabled auto-merge (squash) March 18, 2025 06:13
@thomas11 thomas11 force-pushed the tkappler/parameterize-customresources-2 branch from 4963b1a to 14b7783 Compare March 18, 2025 11:08
@thomas11 thomas11 merged commit fdcf15a into master Mar 18, 2025
@thomas11 thomas11 deleted the tkappler/parameterize-customresources-2 branch March 18, 2025 11:39
thomas11 added a commit that referenced this pull request Mar 18, 2025
…resource to parameterized (#4032)

This integration test proves that
1. `pulumi package add` works and produces a usable SDK,
2. users can migrate from a default resource (here, a storage account)
to a parameterized one without replacement, and
3. the default provider and parameterized ones can be used in the same
program without issues.

**This PR contains and requires #4030, otherwise the test will fail.**
@pulumi-bot

Copy link
Copy Markdown
Contributor

This PR has been shipped in release v2.89.2.

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.

3 participants