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

[Epic] Programmatic Default Providers #16171

Open
2 of 11 tasks
tgummerer opened this issue May 10, 2024 · 1 comment
Open
2 of 11 tasks

[Epic] Programmatic Default Providers #16171

tgummerer opened this issue May 10, 2024 · 1 comment
Assignees
Labels
kind/epic Large new features or investments

Comments

@tgummerer
Copy link
Collaborator

tgummerer commented May 10, 2024

Providers in pulumi can be instantiated in two different ways. One is implicitly through the program. If the user doesn’t set an explicit provider for a resource, the resource automatically gets a default provider assigned. On the other hand, providers that have been created beforehand can be passed along to the resource registration request and that provider will be used to create the resource.

There is currently no way to set up a default provider for all the resources in a particular pulumi program. This especially in combination with default providers can lead to confusion, as it’s easy to forget to pass in a provider to some resource, and then there could be multiple resources with different provider settings in the same program. For example for the kubernetes provider, someone could carefully set one up, and then forget to pass that provider to a kubernetes resource. That would then create a new kubernetes default provider based on a local kubeconfig, which is probably not what the user wanted.

This issue is to track the work to allow users to programmatically set up a default provider for all the resources a provider supports.

Related issues: #2059

Design (M103)

Implementation Plan

M104

  • Prototype programmatic default providers

M105

Future

Announce

@tgummerer tgummerer added the kind/epic Large new features or investments label May 10, 2024
@pulumi-bot pulumi-bot reopened this May 10, 2024
@pulumi-bot
Copy link
Contributor

Cannot close issue:

  • does not have required labels: resolution/

Please fix these problems and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/epic Large new features or investments
Projects
None yet
Development

No branches or pull requests

2 participants