I'd like to bootstrap a cluster with a few namespa...
# general
e
I'd like to bootstrap a cluster with a few namespaces. I've configured them, pulumi says they're created, but I verified they are not. What's wrong with this code?
Copy code
// Create some namespaces
for (let name of config.require("dev-namespaces").split(",")) {
  console.log(name);
  let ns = new k8s.core.v1.Namespace("mustang-"+name, {
    metadata: {
      name: name,
      labels: {
        name: name,
      },
    },
  }, {provider: cluster.provider});
}
Is there a better way to create a namespace?
c
hmm that looks right.
kubectl
is pointed at that cluster, right?
e
correct
c
can you paste the output of the pulumi up
e
the original one where they "created"?
lost that output
c
hmm
whatโ€™s
pulumi refresh
say?
e
hmmm... refresh says 'deleted'
c
๐Ÿ˜
e
followed by
pulumi up
it says they were re-created
c
when you accept the refresh and run pulumi up what happens
ok are they there now?
e
and magically now they appeared ๐Ÿ˜•
c
๐Ÿ˜
hmm
hard to say what happened.
e
I may have screwed up somewhere along the line. But doesn't
refresh
deleting them suggest they were created in the first place?