kind-napkin-56243
11/25/2025, 3:52 PMpulumi preview functionality from the operator.
I want to use the protect keyword against certain resources and then for preview to give an unambigious "allowed/forbidden" about a given change - so ideally, a preview that would destroy and replace a protected resource should fail and not retry.
By default it seems like the stack continues retrying the preview operation according to the normal backoff/retry timer. Is there a way to configure retry count in the stack definition? I don't see an option in the docs here: https://github.com/pulumi/pulumi-kubernetes-operator/blob/master/docs/stacks.md
eg any way to do something like this in a chart?
apiVersion: pulumi.com/v1
kind: Stack
[...]
spec:
preview: {{ .pulumi.preview | default false }}
retryMaxAttempts: {{ if .pulumi.preview }}1{{ else }}8{{ end }}
Edit: seems like this may be appropriate, trying it:
retryMaxBackoffDurationSeconds: {{ if .pulumi.preview }}120{{ else }}86400{{ end }}kind-napkin-56243
11/25/2025, 4:17 PMRetryingPreviewAfterFailure distinct from RetryingAfterFailure
I'm not sure how often we would want to retry previews - presumably only if there was something blocking execution that needed to be modified externally to the stack, like Pulumi itself missing permissions on the cloud provider?steep-plastic-74107
11/25/2025, 6:13 PMkind-napkin-56243
11/27/2025, 9:58 AMkind-napkin-56243
11/27/2025, 10:29 AMretryMaxBackoffDurationSeconds doesn't do what I hoped (cause the stack to enter a 'stalled' state after that number of failures). It simply continues retrying after that timeout indefinitely as far as I can see.
I think there may not be a Kubernetes-operator-driven way to implement the 'preview pass/fail' workflow we were hoping at the moment.