freezing-flag-53289
03/03/2020, 12:15 AMparent:
block of another resource? I got stuck because I can unwrap the promise to check the string, but I can't seem to do that and keep a reference to the resource which is what I actually need.
For example, say I created a bunch of kubernetes.core.v1.Namespace
resources in a function and now I have an array of them. What's the right way to do this:
// namespaces is an array of kubernetes.core.v1.Namespace
const myNamespace = namespaces.find(
ns => ns.metadata.name === 'mynamespace' // Usual Output<string> is not a string problem
);
// Use mynamespace as parent
new k8s.helm.v2.Chart(
'myChart',
{
path: chartPath,
},
{
parent: myNamespace
}
);
tall-librarian-49374
03/03/2020, 8:17 AM