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?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by