salmon-account-74572
12/16/2024, 7:40 PMpulumi-talos
provider (cc @limited-rainbow-51650): I'm trying to work around issue #93 by manually assigning the different fields instead of passing a composite output. For example:
workerCfg := machine.GetConfigurationOutput(ctx, machine.GetConfigurationOutputArgs{
// code omitted for brevity
MachineSecrets: machine.MachineSecretArgs{
Certs: talosSecrets.MachineSecrets.Certs(),
Cluster: talosSecrets.MachineSecrets.Cluster(),
// code omitted for brevity
},
})
This seems to work fine for machine secrets, but for client configuration not so much (using client.GetConfigurationClientConfigurationArgs
). Apparently, the type is missing a ToClientConfigurationOutput
method, according to my IDE's warning and the output of pulumi up
.
Is there a workaround similar to machine.MachineSecretsArgs
but for client configuration in Go? This issue seems to imply the workaround works in Python.salmon-account-74572
12/16/2024, 8:13 PMmachine.NewConfigurationApply
, even though the field is called ClientConfiguration
the type is machine.ClientConfigurationArgs
, which allows you to individually specify the CA certificate, client certificate, and client key. This is true also for machine.NewBootstrap
.
When using client.GetConfigurationOutput
is when you'd use the type client.GetConfigurationClientConfigurationArgs
to manually specify the CA certificate, client certificate, and client key.
I'm running pulumi up
right now and will post back here shortly to confirm my workaround.salmon-account-74572
12/16/2024, 10:14 PM