Hi! I am trying this example: <https://github.com/...
# pulumi-kubernetes-operator
Hi! I am trying this example: https://github.com/pulumi/pulumi-kubernetes-operator/blob/master/examples/aws-s3/index.ts . I successfully created stack and I see 3 new buckets on S3. After that I deleted 1 S3 bucket. I expected that it will be recreated automatically, but it did not. Even if I run
pulumi up
the bucket is not created. What I am missing?
the only thing I found is this warning
so, in case of manual execution, I would run
pulumi refresh
pulumi up
to re-created deleted bucket
but how to achieve the same with pulumi operator ?
Copy code
const mystack = new k8s.apiextensions.CustomResource("stack3", {
    apiVersion: '<http://pulumi.com/v1|pulumi.com/v1>',
    kind: 'Stack',
    spec: {
        stack: stackName,
        projectRepo: stackProjectRepo,
        resyncFrequencySeconds: 60,
        refresh: true,
        //branch: "refs/heads/master",
        branch: "master",
        envRefs: { ...
Hi ! In our case, we added
resyncFrequencySeconds: 240
. It will automatically refresh and update the stack every 240 seconds, even if no change is detected from git repo (https://github.com/pulumi/pulumi-kubernetes-operator/blob/master/docs/stacks.md)
yes, I have this variable in my code
resyncFrequencySeconds: 60,
My bad, I didn’t see you already had the variable in your Stack
well, in mentioned pulumi example old operator version is used
Copy code
image: "pulumi/pulumi-kubernetes-operator:v1.0.0",
upgrading to 1.8.0 fixed the issue
@brainy-beach-36627 thank you for taking a look anyway)
The operator does not do drift detection by default. You need to set the field
in the stack object; then it will run the stack, whether or not the commit or branch HEAD has changed.