calm-action-78008
08/25/2023, 10:35 AMPulumi.yaml
name: abc
runtime: nodejs
description: A minimal Kubernetes TypeScript Pulumi program
pulumi:disable-default-providers: ["*"]
I would like to force all resources to explicitly use a provider. But when I run pulumi up
, it still uses the default provider, instead of producing an error message. Am I doing something wrong?
Example code:
const deployment = new k8s.apps.v1.Deployment("nginx", {
spec: {
selector: { matchLabels: appLabels },
replicas: 1,
template: {
metadata: { labels: appLabels },
spec: { containers: [{ name: "nginx", image: "nginx" }] }
}
}
}); // is missing explicit provider
billowy-army-68599
Pulumi.<stackname>.yaml
calm-action-78008
08/25/2023, 2:58 PMbillowy-army-68599