I'm trying to create a suspended job to run later ...
# kubernetes
c
I'm trying to create a suspended job to run later with pulumi but for some reason its creating pods and pulumi is waiting for the execution of the job - is this normal?
Copy code
new kx.Job(appName, { 
  metadata: {
    name: appName,
    namespace
  },
  spec: new kx.PodBuilder(
    {
      containers: [
        {
          image: dockerImageName,
          env: applicationEnvironment
        }
      ],
      restartPolicy: "Never"
    }
  ).asJobSpec({
    suspend: true,
    backoffLimit: 1
  })
});
q
You can add an annotation to the resource to disable the await behaviour:
<http://pulumi.com/skipAwait:|pulumi.com/skipAwait:> “true”