numerous-airport-64744
02/20/2024, 3:43 PMerror: pulumi:providers:k0s resource 'myProvider': property noDrain value {true} has a problem: Field 'noDrain' on 'provider.Config' must be a 'bool'; got 'string' instead
Without explicitly configuring it this already happens through the annotation configuration of the configuration struct:
a.SetDefault(&c.NoDrain, false, "PULUMI_K0S_NO_DRAIN")
If I remove the defaults from the configuration struct it stops happening.
For me it looks like that all parameters are assumed to be strings somewhere internally. If I initialize the provider in the tests through the integration server I don't get the error.
You can find the PR here incl. the definition of the provider configuration etc.
Anyone any idea why the data types are getting messed up?
Let me know if this should go to a specific Slack channel.
Thanks,
Flonumerous-airport-64744
02/21/2024, 12:03 AMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by