pipecd icon indicating copy to clipboard operation
pipecd copied to clipboard

Support disabling the LiveState feature

Open t-kikuc opened this issue 1 year ago • 4 comments

What would you like to be added:

  • Support disabling the LiveState feature for a platform-provider.

Why is this needed:

  • For those who don't need DriftDetection and LiveState UI, the LiveState feature is not necessary.
  • LiveState feature calls a lot of APIs (e.g. AWS, GCP, etc.), but it would lead to higher cost.
    • Especially, the number of API calls tends to be higher for function platforms like Lambda/CloudRun.

t-kikuc avatar Oct 08 '24 11:10 t-kikuc

💡 An idea of implementation is like this: https://github.com/pipe-cd/pipecd/commit/82988086a99232d6908a7d1ce245ffa7629750ac

t-kikuc avatar Oct 08 '24 12:10 t-kikuc

I think the configuration for features like livestate or drift detection to be on/off should belong to application configuration instead of piped platform provider or plugin config since users may use the same platform/plugin config of piped to manage various applications with different attentions, wdyt? 🤔

khanhtc1202 avatar Oct 08 '24 13:10 khanhtc1202

Disabling LiveState&DriftDetection for each app does not have an effect on reducing API calls. Even if LiveState of only one app is enabled, livestatestore will fetch all resources.

t-kikuc avatar Oct 08 '24 13:10 t-kikuc

FYI, it seems that there was a similar issue with disabling drift detection: https://github.com/pipe-cd/pipecd/issues/4508. This is implemented as a temporary option for the terraform provider in the piped config. https://pipecd.dev/docs-v0.49.x/user-guide/managing-piped/configuration-reference/#platformproviderterraformconfig

ffjlabo avatar Oct 16 '24 01:10 ffjlabo

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Apr 15 '25 00:04 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity. Feel free to reopen if still applicable.

github-actions[bot] avatar Apr 23 '25 00:04 github-actions[bot]