sparse-intern-71089
12/27/2022, 1:56 PMclever-painter-96148
12/27/2022, 2:38 PMmany-telephone-49025
12/27/2022, 3:29 PMclever-painter-96148
12/27/2022, 3:49 PMdefault_provider_parameters
to StackSettings
, and a few ${PROVIDER_NAME}ProviderArgs
classes?
We'd end up with something like this:
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.many-telephone-49025
12/27/2022, 3:51 PMclever-painter-96148
12/27/2022, 3:54 PM