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 the ability to add provider warnings #410

Open
Yantrio opened this issue Apr 22, 2024 · 2 comments · May be fixed by #1123
Open

Add the ability to add provider warnings #410

Yantrio opened this issue Apr 22, 2024 · 2 comments · May be fixed by #1123
Assignees
Labels
enhancement New feature or request

Comments

@Yantrio
Copy link
Member

Yantrio commented Apr 22, 2024

Description of the feature you are looking for.

tofu understands that if the .Warnings field is populated when fetching metadata about a provider that it should display those warnings to the end user.

Right now we don't have a method to add a warning to a provider or a specific provider version in this registry. We should allow people to fill in a form for a whole provider, or just a provider version to add warnings that will be displayed when users try to install a provider.

@Yantrio Yantrio added the enhancement New feature or request label Apr 22, 2024
@cube2222
Copy link
Contributor

I'd prefer doing this in a non-freeform way if possible.

That is, introducing fields like "mark_as_bad": bool that we would then translate to standardized error messages when rendering.

@abstractionfactory
Copy link
Contributor

abstractionfactory commented Sep 27, 2024

The way this is currently implemented in OpenTofu and legacy Terraform using an undocumented warnings field in the version listing response. This applies to all versions of a provider, there is currently no way to issue a per-version warning.

References:

abstractionfactory added a commit that referenced this issue Oct 11, 2024
Fixes #751: Deprecate maas/terraform-provider-maas

Signed-off-by: AbstractionFactory <[email protected]>
@abstractionfactory abstractionfactory linked a pull request Oct 11, 2024 that will close this issue
abstractionfactory added a commit that referenced this issue Oct 11, 2024
Fixes #751: Deprecate maas/terraform-provider-maas

Signed-off-by: AbstractionFactory <[email protected]>
abstractionfactory added a commit to opentofu/libregistry that referenced this issue Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants