Skip to content

[CDTOOL-1690] add platform integrations command group - #1868

Open
anthony-gomez-fastly wants to merge 4 commits into
mainfrom
CDTOOL-1690-platform-integrations
Open

[CDTOOL-1690] add platform integrations command group#1868
anthony-gomez-fastly wants to merge 4 commits into
mainfrom
CDTOOL-1690-platform-integrations

Conversation

@anthony-gomez-fastly

@anthony-gomez-fastly anthony-gomez-fastly commented Jul 31, 2026

Copy link
Copy Markdown
Member

Change summary

Add fastly integration commands to manage platform integrations, covering create, update, delete, describe, list, and list-types operations for Datadog, Jira Issue, JSM, Opsgenie, and Splunk On-Call.

Delete, List, and Describe are generic, create and update are specific to the integration type

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

@anthony-gomez-fastly
anthony-gomez-fastly force-pushed the CDTOOL-1690-platform-integrations branch from 99646d8 to 6a6cbec Compare July 31, 2026 14:28
Add `fastly integration` commands to manage platform integrations,
covering create, update, delete, describe, list, and list-types
operations for Datadog, Jira Issue, JSM, Opsgenie, and Splunk On-Call.
@anthony-gomez-fastly
anthony-gomez-fastly force-pushed the CDTOOL-1690-platform-integrations branch from 6a6cbec to 667c85e Compare July 31, 2026 14:53
@anthony-gomez-fastly
anthony-gomez-fastly marked this pull request as ready for review July 31, 2026 14:53
@anthony-gomez-fastly
anthony-gomez-fastly requested a review from a team as a code owner July 31, 2026 14:53
c.CmdClause = parent.Command("describe", "Retrieve a single notification integration").Alias("get")

// Required.
c.CmdClause.Arg("id", "Integration ID").Required().StringVar(&c.Input.ID)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete and describe at the integration level only take ID as an arg, so i made them positional args instead of named ones

@anthony-gomez-fastly
anthony-gomez-fastly marked this pull request as draft July 31, 2026 15:02
@anthony-gomez-fastly
anthony-gomez-fastly marked this pull request as ready for review July 31, 2026 15:28

@kpfleming kpfleming left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small change and a couple of outstanding questions.


// Required.
c.CmdClause.Arg("id", "Integration ID").Required().StringVar(&c.ID)
c.CmdClause.Flag("api-key", "Datadog API key").Required().StringVar(&c.APIKey)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the API documentation they haven't provided separate request body schemas for 'create' and 'update', so that's why the api-key is listed as required for both. I suspect it's not actually requireed for 'update' though, the user should be able to modify the name or description without having to provide the API key again. Let's talk to the SDS team to confirm which attributes are actually required in 'update' operations, so we can relax the requirements in this update command (and the ones for the other integrations too).

// knownIntegrationTypes lists the integration type values with dedicated CLI
// sub-families, offered as shell-completion hints for --type. Other type
// values (e.g. legacy integration types) are still accepted.
var knownIntegrationTypes = []string{

@kpfleming kpfleming Jul 31, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these types are new in the CLI, so why are they listed in this slice differently?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, i mixed them from the go-fastly import, i'll standardize

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 4e0ab0d0

Comment thread CHANGELOG.md Outdated
anthony-gomez-fastly and others added 2 commits July 31, 2026 14:56
Co-authored-by: Kevin P. Fleming <kpfleming@users.noreply.github.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.

2 participants