With the Pulumi Operator, is there a way to have i...
# kubernetes
g
With the Pulumi Operator, is there a way to have it reconcile/check for drift, but not actually apply? e.g.
pulumi preview
, or should I use a different approach?
m
Unfortunately no, but there is an open issue you could add your upvote to: Consider adding preview· pulumi-kubernetes-operator/16
Actually, looking at the API, I think it might be possible to specify a preview operation by setting the UpdateType to preview in the
UpdateTemplate
on the Stack CRD https://github.com/pulumi/pulumi-kubernetes-operator/blob/15215026eff2f1d7a9d8ecaa5dc9bebcc20affe1/operator/api/pulumi/shared/stack_types.go#L172 But it is a little obscure, it would probably be better if we had more of a "top-level" way of specifying this.
g
Ah interesting, I guess an undocumented "feature" could still help here. But yes added a +1! I think there's a lot of value of the operator being a simple drift-detector without actual reconciliation. That would make the choice to leverage it easier since it can be introduced more safely into our ecosystem (e.g. ensuring
protect=True
is on all resources, etc).
Basically having the operator operate like Atlantis does with Terraform would be more ideal for certain workflows for some users I think.