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

Allow Pulumi.yaml to set default plugin version #15714

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

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Mar 17, 2024

Description

This allows the Pulumi.yaml to specify the default version for a provider plugin. This is mostly of use in YAML where we don't have a generated SDK to fill in 'version' for every resource request for us.

An obvious follow up to this is to also use this to set the default plugin download url.

Note that YAML does already have a way to support this, by declaring a provider resource and tagging it as "default". This just makes that logic more first-class supported by the engine given that this providers section is probably going to become more common to use with local SDK generation, parameterised providers, and possibly plugin version lock files.

Checklist

  • I have run make tidy to update any new dependencies
  • I have run make lint to verify my code passes the lint check
    • I have formatted my code using gofumpt
  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version

@pulumi-bot
Copy link
Contributor

pulumi-bot commented Mar 17, 2024

Changelog

[uncommitted] (2024-03-17)

Features

  • [engine] Default provider versions can be set in Pulumi.yaml
    #15714

@Frassle Frassle force-pushed the fraser/pluginVersionDefault branch 2 times, most recently from 0f84a99 to 35d4408 Compare March 17, 2024 13:47
@Frassle Frassle force-pushed the fraser/pluginVersionDefault branch from 35d4408 to 173ef2d Compare March 17, 2024 21:30
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

2 participants