dazzling-oxygen-84405
10/02/2024, 11:28 AMkubernetes.yaml.ConfigGroup
to kubernetes.yaml.v2.ConfigGroup
, without recreating all of the resources? I can't quite figure out if there is an alias I can specify that will work here.dazzling-oxygen-84405
10/02/2024, 12:24 PMexport function migrateManifest(
parentUrn: pulumi.Input<string>,
args: pulumi.ResourceTransformArgs
): pulumi.ResourceTransformResult {
parentUrn = pulumi.output(parentUrn).apply((urn) => urn.split("::").slice(0, -1).join("::"));
const oldName = args.name.split(":").slice(1).join(":");
const aliases = [pulumi.interpolate`${parentUrn}$kubernetes:yaml:ConfigFile$${args.type}::${oldName}`];
return { props: args.props, opts: pulumi.mergeOptions(args.opts, { aliases }) };
}