Skip to content

COBS-2050: add doctl insights log-export commands - #2161

Draft
dmamidala-glitch wants to merge 2 commits into
digitalocean:mainfrom
dmamidala-glitch:dmamidala/cobs-2050-log-export-doctl
Draft

dmamidala-glitch wants to merge 2 commits into
digitalocean:mainfrom
dmamidala-glitch:dmamidala/cobs-2050-log-export-doctl

Conversation

@dmamidala-glitch

Copy link
Copy Markdown
Contributor

Summary

  • Adds doctl insights log-export destination (create/get/list/update/delete/test) and policy (create/get/list/update/delete)
  • Bumps godo to the post-merge log-export commit (cd95557) so clients match the public /v2/insights/log-export/ API
  • Update destinations seed headers from WritableHeaders() so secrets are preserved unless explicitly replaced

Test plan

  • go test ./commands/ -run Insights
  • go test ./commands/displayers/ -run LogExport
  • Round-trip destination + policy against stage2 (DIGITALOCEAN_API_URL=https://api.s2r1.internal.digitalocean.com/)

Depends on: digitalocean/godo#1256 (merged). Parent: COBS-2050 / APICLI-5711.

Made with Cursor

dmamidala-glitch and others added 2 commits December 1, 2026 10:35
Expose log-export destination and policy CRUD (plus destination test)
against godo@cd95557, preserving secret headers via WritableHeaders on update.

Co-authored-by: Cursor <cursoragent@cursor.com>
Always GET before update and seed omitted/null headers from WritableHeaders (and policy resource_urns from the current list); only an explicit empty array clears them.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant