Repository navigation
Add DigitalOcean plugin #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
clarkd
wants to merge
7
commits into
main
Choose a base branch
from
work/dc/digital-ocean
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c46c76b
Add DigitalOcean plugin
clarkd ba70f65
Add DigitalOcean relationships, VPCs, projects and DO-style navigation
clarkd a1ac267
Add DigitalOcean dashboard screenshots and drop unresolved statusGrid…
clarkd d65bd1b
Add CODEOWNERS entry for the DigitalOcean plugin
clarkd 9321402
Clarify DigitalOcean setup validation scope and capitalise Kubernetes
clarkd 230c95f
Count DigitalOcean node pools from the imported cluster property
clarkd 207081f
Add DigitalOcean Harness Runtime and Signals coverage
clarkd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "steps": [ | ||
| { | ||
| "displayName": "Authenticate", | ||
| "dataStream": { "name": "account" }, | ||
| "required": true, | ||
| "error": "Could not authenticate with DigitalOcean. Check that the personal access token is valid, has not expired, and has the account:read scope.", | ||
| "success": "Connected to DigitalOcean successfully." | ||
| } | ||
| ] | ||
| } | ||
20 changes: 20 additions & 0 deletions
20
plugins/DigitalOcean/v1/correlationRules/relate-agent-session-to-environment.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "displayName": "Environment runs Agent Session", | ||
| "source": { | ||
| "types": "Agent Session" | ||
| }, | ||
| "target": { | ||
| "types": "Environment" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "configId", | ||
| "operator": "equals", | ||
| "targetProperty": "rawId" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "started from", | ||
| "reverse": "runs" | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
plugins/DigitalOcean/v1/correlationRules/relate-droplet-to-kubernetes-cluster.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "displayName": "Kubernetes Cluster has Droplet as node", | ||
| "source": { | ||
| "types": "Droplet" | ||
| }, | ||
| "target": { | ||
| "types": "Kubernetes Cluster" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "kubernetesClusterId", | ||
| "operator": "equals", | ||
| "targetProperty": "rawId" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "node of", | ||
| "reverse": "has node" | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
plugins/DigitalOcean/v1/correlationRules/relate-load-balancer-to-droplet.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "displayName": "Load Balancer routes to Droplet", | ||
| "source": { | ||
| "types": "Load Balancer" | ||
| }, | ||
| "target": { | ||
| "types": "Droplet" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "primaryBackendDropletId", | ||
| "operator": "equals", | ||
| "targetProperty": "rawId" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "routes to", | ||
| "reverse": "receives traffic from" | ||
| } | ||
| } |
30 changes: 30 additions & 0 deletions
30
plugins/DigitalOcean/v1/correlationRules/relate-resources-to-project.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { | ||
| "displayName": "Project contains resources", | ||
| "source": { | ||
| "types": ["Droplet", "App", "Kubernetes Cluster", "Database", "Load Balancer", "Agent"] | ||
| }, | ||
| "bridge": { | ||
| "types": "Project Resource" | ||
| }, | ||
| "target": { | ||
| "types": "Project" | ||
| }, | ||
| "sourceConditions": [ | ||
| { | ||
| "sourceProperty": "rawId", | ||
| "operator": "equals", | ||
| "targetProperty": "resourceId" | ||
| } | ||
| ], | ||
| "targetConditions": [ | ||
| { | ||
| "sourceProperty": "projectId", | ||
| "operator": "equals", | ||
| "targetProperty": "rawId" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "in project", | ||
| "reverse": "contains" | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
plugins/DigitalOcean/v1/correlationRules/relate-resources-to-vpc.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "displayName": "VPC contains resources", | ||
| "source": { | ||
| "types": ["Droplet", "Kubernetes Cluster", "Load Balancer", "Database"] | ||
| }, | ||
| "target": { | ||
| "types": "VPC" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "vpcUuid", | ||
| "operator": "equals", | ||
| "targetProperty": "rawId" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "in", | ||
| "reverse": "contains" | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
plugins/DigitalOcean/v1/correlationRules/relate-trigger-to-agent-session.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "displayName": "Trigger is bound to Agent Session", | ||
| "source": { | ||
| "types": "Trigger" | ||
| }, | ||
| "target": { | ||
| "types": "Agent Session" | ||
| }, | ||
| "conditions": [ | ||
| { | ||
| "sourceProperty": "boundSessionId", | ||
| "operator": "equals", | ||
| "targetProperty": "rawId" | ||
| } | ||
| ], | ||
| "labels": { | ||
| "forward": "bound to", | ||
| "reverse": "driven by" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| [ | ||
| { | ||
| "name": "Account", | ||
| "sourceType": "Account", | ||
| "icon": "building", | ||
| "singular": "Account", | ||
| "plural": "Accounts" | ||
| }, | ||
| { | ||
| "name": "Droplet", | ||
| "sourceType": "Droplet", | ||
| "icon": "server", | ||
| "singular": "Droplet", | ||
| "plural": "Droplets" | ||
| }, | ||
| { | ||
| "name": "App", | ||
| "sourceType": "App", | ||
| "icon": "rocket", | ||
| "singular": "App", | ||
| "plural": "Apps" | ||
| }, | ||
| { | ||
| "name": "Kubernetes Cluster", | ||
| "sourceType": "Kubernetes Cluster", | ||
| "icon": "dharmachakra", | ||
| "singular": "Kubernetes Cluster", | ||
| "plural": "Kubernetes Clusters" | ||
| }, | ||
| { | ||
| "name": "Database", | ||
| "sourceType": "Database", | ||
| "icon": "database", | ||
| "singular": "Database", | ||
| "plural": "Databases" | ||
| }, | ||
| { | ||
| "name": "Load Balancer", | ||
| "sourceType": "Load Balancer", | ||
| "icon": "network-wired", | ||
| "singular": "Load Balancer", | ||
| "plural": "Load Balancers" | ||
| }, | ||
| { | ||
| "name": "Agent", | ||
| "sourceType": "Agent", | ||
| "icon": "robot", | ||
| "singular": "Agent", | ||
| "plural": "Agents" | ||
| }, | ||
| { | ||
| "name": "VPC", | ||
| "sourceType": "VPC", | ||
| "icon": "cloud", | ||
| "singular": "VPC", | ||
| "plural": "VPCs" | ||
| }, | ||
| { | ||
| "name": "Project", | ||
| "sourceType": "Project", | ||
| "icon": "folder-open", | ||
| "singular": "Project", | ||
| "plural": "Projects" | ||
| }, | ||
| { | ||
| "name": "Project Resource", | ||
| "sourceType": "Project Resource", | ||
| "icon": "link", | ||
| "singular": "Project Resource", | ||
| "plural": "Project Resources" | ||
| }, | ||
| { | ||
| "name": "Environment", | ||
| "sourceType": "Environment", | ||
| "icon": "cube", | ||
| "singular": "Environment", | ||
| "plural": "Environments" | ||
| }, | ||
| { | ||
| "name": "Agent Session", | ||
| "sourceType": "Agent Session", | ||
| "icon": "terminal", | ||
| "singular": "Agent Session", | ||
| "plural": "Agent Sessions" | ||
| }, | ||
| { | ||
| "name": "Trigger", | ||
| "sourceType": "Trigger", | ||
| "icon": "bolt", | ||
| "singular": "Trigger", | ||
| "plural": "Triggers" | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| { | ||
| "name": "account", | ||
| "displayName": "Account", | ||
| "description": "The DigitalOcean account and team the token belongs to, with its status and resource limits", | ||
| "tags": [ | ||
| "Account" | ||
| ], | ||
| "baseDataSourceName": "httpRequestUnscoped", | ||
| "visibility": { | ||
| "type": "hidden" | ||
| }, | ||
| "config": { | ||
| "httpMethod": "get", | ||
| "endpointPath": "v2/account", | ||
| "pathToData": "account", | ||
| "expandInnerObjects": true | ||
| }, | ||
| "matches": "none", | ||
| "metadata": [ | ||
| { | ||
| "name": "team.uuid", | ||
| "displayName": "Team ID", | ||
| "shape": "string", | ||
| "visible": false | ||
| }, | ||
| { | ||
| "name": "team.name", | ||
| "displayName": "Team", | ||
| "shape": "string", | ||
| "role": "label" | ||
| }, | ||
| { | ||
| "name": "email", | ||
| "displayName": "Email", | ||
| "shape": "string" | ||
| }, | ||
| { | ||
| "name": "status", | ||
| "displayName": "Status", | ||
| "shape": "string" | ||
| }, | ||
| { | ||
| "name": "health", | ||
| "displayName": "Health", | ||
| "computed": true, | ||
| "valueExpression": "{{ $['status'] }}", | ||
| "shape": [ | ||
| "state", | ||
| { | ||
| "map": { | ||
| "success": [ | ||
| "active" | ||
| ], | ||
| "warning": [ | ||
| "warning" | ||
| ], | ||
| "error": [ | ||
| "locked" | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "status_message", | ||
| "displayName": "Status Message", | ||
| "shape": "string" | ||
| }, | ||
| { | ||
| "name": "droplet_limit", | ||
| "displayName": "Droplet Limit", | ||
| "shape": "number" | ||
| }, | ||
| { | ||
| "name": "floating_ip_limit", | ||
| "displayName": "Reserved IP Limit", | ||
| "shape": "number" | ||
| }, | ||
| { | ||
| "name": "email_verified", | ||
| "displayName": "Email Verified", | ||
| "shape": "boolean" | ||
| }, | ||
| { | ||
| "name": "uuid", | ||
| "displayName": "User ID", | ||
| "shape": "string", | ||
| "visible": false | ||
| } | ||
| ], | ||
| "timeframes": false | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.