pulumi/pkg/codegen/testing/test/testdata/kubernetes-pod-pp/kubernetes-pod.pp

37 lines
922 B
Puppet

resource bar "kubernetes:core/v1:Pod" {
apiVersion = "v1"
metadata = {
namespace = "foo"
name = "bar"
}
spec = {
containers = [
{
name = "nginx"
image = "nginx:1.14-alpine"
ports = [{ containerPort = 80 }]
resources = {
limits = {
memory = "20Mi"
cpu = 0.2
}
}
},
{
name = "nginx2"
image = "nginx:1.14-alpine"
ports = [{ containerPort = 80 }]
resources = {
limits = {
memory = "20Mi"
cpu = 0.2
}
}
}
]
}
}
// Test that we can assign from a constant without type errors
kind = bar.kind