pulumi / pulumi-digitalocean

A DigitalOcean Pulumi resource package, providing multi-language access to DigitalOcean
Apache License 2.0
83 stars 13 forks source link

[Epic] Add support for droplet-action #882

Open cowwoc opened 4 hours ago

cowwoc commented 4 hours ago

Overview

Provide a way to register droplet actions (like a shutsown hook) using Pulumi code. For example, a user should be able to run the equivalent of doctl compute droplet-action shut-down <droplet-id> --action-type=pre-delete --exec="/path/to/your/pre-delete-script.sh" from pulumi.

Key KPIs

Ability to register all the possible droplet action types.

Key Stakeholders

Key Deliverables

References 📔

cowwoc commented 4 hours ago

This would allow nodes to leave docker swarms or k8s gracefully instead of waiting for the cluster to time out non-responsive nodes.