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

Demonstrate optional+computed #1901

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Apr 24, 2024

Wanted to double-check how pulumi projects Optional+Computed properties. These properties may be omitted by the user program (hence Optional) but still may be set by the provider (hence Computed).

Looks like currently bridge maps this to a non-required input (definitely right) but a required output. I wonder if TF model requires the provider to populate these properties or allows nulls.

https://developer.hashicorp.com/terraform/plugin/sdkv2/schemas/schema-behaviors#computed a bit inconclusive but my intuition is that it's possible for a provider to leave Computed+Optional as unset.

Copy link

codecov bot commented Apr 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.25%. Comparing base (9124a58) to head (320abf6).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1901      +/-   ##
==========================================
- Coverage   60.25%   60.25%   -0.01%     
==========================================
  Files         328      328              
  Lines       44322    44322              
==========================================
- Hits        26706    26705       -1     
- Misses      16120    16121       +1     
  Partials     1496     1496              

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

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.

None yet

1 participant