Skip to content

Don't JSON-encode provider config#1308

Open
blampe wants to merge 2 commits intomainfrom
no-json
Open

Don't JSON-encode provider config#1308
blampe wants to merge 2 commits intomainfrom
no-json

Conversation

@blampe
Copy link
Contributor

@blampe blampe commented Jan 11, 2024

See pulumi/pulumi#15032 for context.


public static final ProviderArgs Empty = new ProviderArgs();

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

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
Contributor

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
Contributor

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