busy-island-31180
11/14/2023, 3:09 AMignoreChanges
for a ConfigGroup
within the Kubernetes provider?
https://github.com/pulumi/pulumi-kubernetes/issues/2666stale-answer-34162
11/14/2023, 5:56 PMbusy-island-31180
11/14/2023, 6:45 PMstale-answer-34162
11/14/2023, 6:46 PMbusy-island-31180
11/14/2023, 6:46 PMConfigGroup
resourcestale-answer-34162
11/14/2023, 6:54 PMbusy-island-31180
11/14/2023, 6:55 PM[]map[string]any
so I can see what's inside, and dynamically construct the ignoreChanges
array from that.dry-keyboard-94795
11/14/2023, 10:39 PMAlias
for IgnoreChanges
.
https://www.pulumi.com/registry/packages/kubernetes/api-docs/yaml/configgroup/#yaml-with-transformationsbusy-island-31180
11/16/2023, 4:46 AMignoreChanges
into specific resources.// Set a resource alias for a previous name.
func(state map[string]interface{}, opts ...pulumi.ResourceOption) {
if state["kind"] == "Deployment" {
aliases := pulumi.Aliases([]pulumi.Alias{
{
Name: pulumi.String("oldName"),
},
})
opts = append(opts, aliases)
}
},
uh... this shouldn't work... opts
isn't a pointer.. this append operation would remain local to the this transformation function (it would not be visible to the code that calls this transformation)dry-keyboard-94795
11/16/2023, 10:11 AMbusy-island-31180
11/16/2023, 9:46 PM