wonderful-pillow-93632
10/09/2024, 9:49 AMdependsOn
to specify which cluster to create it in. I tried to use:
const cluster = containerservice.getManagedClusterOutput({
resourceGroupName: clusterRgName,
resourceName: clusterName
})
const namespace = new kubernetes.core.v1.Namespace(
"Create namespace",
{
metadata: { name: "my-namespace" },
}, {
dependsOn: [cluster] // Type 'GetManagedClusterResult' is missing the following properties from type 'Resource': urn, getProvider
}
);
But this returns a GetManagedClusterResult
not a pulumi.Resource
. How would I go about fetching the actual resource in a different stack, is it possible?