straight-cartoon-24485
12/14/2024, 3:41 AMpulumi up
then I ran into: https://www.pulumi.com/docs/iac/concepts/options/additionalsecretoutputs/ (but I'd need the opposite of it, i.e.: disable a secret—is that possible? So that the diff engine sees the value has not changed)
or maybe I'm using https://www.pulumi.com/docs/iac/concepts/options/ignorechanges/ wrong
I have a "cluster" resource with "nodes" in it, and I do something like:
new Cluster(`cluster-${clusterConfig.name}`, clusterArgs, {
provider: pvecluster,
ignoreChanges: ["nodes[*].connection"]
})
but I'm not sure of the syntax; any examples?
the native go provider structs look something like this:
type Cluster struct {
pulumi.CustomResourceState
Name pulumi.StringOutput `pulumi:"name"`
Nodes []Node `pulumi:"nodes"`
Status pulumi.StringOutput `pulumi:"status"`
}
type Node struct {
Host string `pulumi:"host"`
Connection *Connection `pulumi:"connection"`
}
type Connection struct {
Host string `pulumi:"host"`
User *string `pulumi:"user,optional"`
PrivateKey string `pulumi:"privateKey" provider:"secret"`
PrivateKeyPass string `pulumi:"privateKeyPass,optional" provider:"secret"`
Port *int `pulumi:"port,optional"`
}
melodic-tomato-39005
12/16/2024, 7:03 AMpulumi:name
• pulumi:optional
• provider:secret
• provider:replaceOnChanges
• provider:type=…