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

Implement a blocklist and improve errors when unsupported resources are created #158

Merged
merged 2 commits into from
Apr 26, 2022

Conversation

AaronFriel
Copy link
Contributor

@AaronFriel AaronFriel commented Apr 20, 2022

We don't support resources that are implemented by the SDK in each language of the resource provider instead of in the provider binary. This technique is also known as an "overlay" when generating SDKs.

We emit some error messages with references to the issues to support these in YAML indirectly:

See:

For Helm Chart resources, we recommend the user try the Helm Release resource instead.

Fixes #157

@AaronFriel AaronFriel requested a review from iwahbe April 20, 2022 23:41
@AaronFriel AaronFriel added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Apr 21, 2022
pkg/pulumiyaml/run.go Outdated Show resolved Hide resolved
Copy link
Member

@iwahbe iwahbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except one optional nit, LGTM.

"kubernetes:yaml:ConfigGroup": "https://github.com/pulumi/pulumi-kubernetes/issues/1971",
}

var exists = struct{}{}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: It seems strange to alias struct{}{}. I think it requires less mental effort to read the literal (struct{}{}).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced with literals, which apparently can just be {}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better error message on unsupported resource types
2 participants