This message was deleted.
# automation-api
s
This message was deleted.
c
According to the code, it's not possible 😕
m
What would be a possible solution/idea on how you would pass the informations?
c
That's a good question. I am not sure about that. Maybe by adding a
default_provider_parameters
to
StackSettings
, and a few
${PROVIDER_NAME}ProviderArgs
classes? We'd end up with something like this:
Copy code
pulumi.automation.select_stack(
    'foo',
    work_dir='/path/to/project',
    opts=LocalWorkspaceOptions(
        stack_settings={
            'foo': StackSettings(
                default_provider_parameters=[
                    KubernetesProviderArgs(kubeconfig=kubeconfig),
                ],
            ),
        },
    ),
)
Not super pretty but it would do the trick. Of course, that may be too complicated for an edge case. For now, I pass the
kubeconfig
as a configuration value and it works. I can definitely live with this.
👀 1
m
If you want, open an issue for this we can discuss this idea with a larger audience.
c
Not sure it's a good idea to pollute the project's Github with every potentially bad idea I have. 😅 I'll work with my current implementation for a while so I get a better understand of what I actually need.
😄 1