Hi, does anyone know how can I make pulumi to dete...
# getting-started
h
Hi, does anyone know how can I make pulumi to detect failed helm releases? Release fails but it does not detects it and doesn't try to re-release again when I re-run the pulumi
Copy code
helm_chart = k8s.helm.v3.Release(
            chart_name,
            k8s.helm.v3.ReleaseArgs(
                chart=chart_path,
                version=version,
                values=helm_values,
                namespace=namespace,
                timeout=600,
                name=chart_name
            )
        )
l
It likely isn't noticing that it's failed on re-runs because its state isn't being refreshed. When you run
pulumi up
, are you passing
--refresh
, or do you have
Copy code
options:
  refresh: always
in your
Pulumi.yaml
? If not, try it
h
Hi thank you for the message, I was using
pulumi refresh
before running
pulumi up.
Now I tried
pulumi up --refresh
but it did not detect the failed release again
l
That's odd - I'm not sure then, sorry
h
I couldn't fix my Pulumi problem, therefore i manually re-deployed the helm, pulumi still didn't detect any change though.
q
I'd recommend to use the
atomic
option for helm releases. That way, a failed upgrade gets rolled back automatically