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

Don't JSON-encode provider config #1308

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Don't JSON-encode provider config #1308

wants to merge 2 commits into from

Conversation

blampe
Copy link
Contributor

@blampe blampe commented Jan 11, 2024

See pulumi/pulumi#15032 for context.

@@ -18,14 +18,14 @@ public final class ProviderArgs extends com.pulumi.resources.ResourceArgs {

public static final ProviderArgs Empty = new ProviderArgs();

@Import(name="cacheEnabled", json=true)
Copy link
Member

Choose a reason for hiding this comment

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

Reminder here to remove json from the ImportAnnotation or at least mark deprecated.

@EronWright
Copy link
Contributor

EronWright commented Oct 31, 2024

Should this code in kubernetes provider be changed (from this PR)? It synthesizes the @import annotation for custom resource properties. Just wanting to confirm.

https://github.com/pulumi/pulumi-kubernetes/blob/e49daf0ebf8b9a30de8853c363781166e687d3e7/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/Util.java#L46-L50

@t0yv0
Copy link
Member

t0yv0 commented Nov 1, 2024

@EronWright I think the CustomResource feature introduced in:

https://github.com/pulumi/pulumi-kubernetes/pull/3020/files#diff-842f1f409f5a9ae544bb27542564a1e90ccab80a818faa702731ac2048395e11

Is not actually affected, afaik, correct me if I am wrong it only affects custom resources that are not providers? The JSON encoding is only affecting explicit providers (and, as we found out, default providers), but I'm hoping it has no interaction with #3020.

Happy to discuss further.

@t0yv0
Copy link
Member

t0yv0 commented Nov 1, 2024

We will need to add a flag here for a flagged rollout and resurrect this change.

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.

3 participants