sparse-intern-71089
11/14/2023, 3:09 AMstale-answer-34162
11/14/2023, 5:56 PMbusy-island-31180
11/14/2023, 6:45 PMbusy-island-31180
11/14/2023, 6:46 PMstale-answer-34162
11/14/2023, 6:46 PMbusy-island-31180
11/14/2023, 6:46 PMbusy-island-31180
11/14/2023, 6:47 PMbusy-island-31180
11/14/2023, 6:54 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 PMdry-keyboard-94795
11/14/2023, 10:43 PMAlias
for IgnoreChanges
.
https://www.pulumi.com/registry/packages/kubernetes/api-docs/yaml/configgroup/#yaml-with-transformationsbusy-island-31180
11/16/2023, 4:46 AMbusy-island-31180
11/16/2023, 4:47 AMignoreChanges
into specific resources.busy-island-31180
11/16/2023, 4:47 AMbusy-island-31180
11/16/2023, 4:47 AMbusy-island-31180
11/16/2023, 4:56 AM// 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)busy-island-31180
11/16/2023, 4:59 AMbusy-island-31180
11/16/2023, 5:00 AMdry-keyboard-94795
11/16/2023, 10:11 AMbusy-island-31180
11/16/2023, 9:46 PMbusy-island-31180
11/16/2023, 9:54 PM