Skip to content

Commit 2eea28e

Browse files
committed
chore: update mission-control source references
1 parent daeb7a6 commit 2eea28e

File tree

28 files changed

+44
-44
lines changed

28 files changed

+44
-44
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
For all mdx/md files in @docs/canary-checker/ and @docs/mission-control/ that have `<!-- Source: ... -->` comments pointing to Go source files:
1+
For all mdx/md files in @docs/canary-checker/ and @docs/mission-control/ that have `<!-- Source: ... -->` comments pointing to Go source files:
22

3-
1. Update the Source comments to use `#StructName` format without line numbers (e.g., `checks.go#HTTPCheck` not `checks.go:117#HTTPCheck`)
3+
1. Update the Source comments to use `#StructName` format without line numbers (e.g., `checks.go#HTTPCheck` not `checks.go:117#HTTPCheck`)
44

5-
2. For each documented struct, compare ALL public fields from the Go source against the documentation and:
6-
- Add any missing fields
7-
- Fix incorrect field names (check json/yaml tags - use the json/yaml tag name, not the Go field name)
8-
- If json/yaml tag differ from each other, warn user
9-
- Fix incorrect schemes/types (e.g., `Duration` vs `int`, `bool` vs `string`)
10-
- Fix incorrect nested structures (check if fields are inline or nested under a parent key)
11-
- Remove fields that don't exist in the Go struct
12-
- For inline embedded structs, verify which fields they provide
5+
2. For each documented struct, compare ALL public fields from the Go source against the documentation and:
6+
- Add any missing fields
7+
- Fix incorrect field names (check json/yaml tags - use the json/yaml tag name, not the Go field name)
8+
- If json/yaml tag differ from each other, warn user
9+
- Fix incorrect schemes/types (e.g., `Duration` vs `int`, `bool` vs `string`)
10+
- Fix incorrect nested structures (check if fields are inline or nested under a parent key)
11+
- Remove fields that don't exist in the Go struct
12+
- For inline embedded structs, verify which fields they provide
1313

14-
3. For _canary-spec.mdx, ensure all check types from CanarySpec are listed with correct field names matching the json/yaml tags
14+
3. For \_canary-spec.mdx, ensure all check types from CanarySpec are listed with correct field names matching the json/yaml tags
1515

16-
Pay attention to:
17-
- yaml tags like `yaml:"env"` mean the field name in docs should be `env`, not the Go field name
18-
- Inline embedded structs (e.g., `Connection`, `Description`, `Templatable`) - their fields appear at the same level
19-
- Pointer vs value types for nested structs
20-
- Deprecated fields should be marked as such
21-
- ignore private fields
16+
Pay attention to:
2217

18+
- yaml tags like `yaml:"env"` mean the field name in docs should be `env`, not the Go field name
19+
- Inline embedded structs (e.g., `Connection`, `Description`, `Templatable`) - their fields appear at the same level
20+
- Pointer vs value types for nested structs
21+
- Deprecated fields should be marked as such
22+
- ignore private fields

mission-control/docs/guide/config-db/scrapers/aws.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_custom_props:
77

88
# <Icon name="aws"/> AWS
99

10-
<!-- Source: modules/config-db/api/v1/aws.go:12#AWS -->
10+
<!-- Source: modules/config-db/api/v1/aws.go#AWS -->
1111

1212
This config type is used to scrape information about your AWS infrastructure.
1313

mission-control/docs/guide/config-db/scrapers/azure-devops.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { AzureDevopsPipeline } from "@flanksource/icons/mi"
99

1010
# <AzureDevopsPipeline/> Azure Devops
1111

12-
<!-- Source: modules/config-db/api/v1/azure.go:8#AzureDevops -->
12+
<!-- Source: modules/config-db/api/v1/azure.go#AzureDevops -->
1313

1414
The Azure Devops scraper will create a new configuration item for each unique pipeline (combination of name and variables).
1515

mission-control/docs/guide/config-db/scrapers/azure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_custom_props:
77

88
# <Icon name="azure"/> Azure
99

10-
<!-- Source: modules/config-db/api/v1/azure.go:25#Azure -->
10+
<!-- Source: modules/config-db/api/v1/azure.go#Azure -->
1111

1212
The Azure scrapers scrapes your azure account to fetch all the resources & save them as configs.
1313

mission-control/docs/guide/config-db/scrapers/clickhouse.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Custom from './_custom.mdx'
1010

1111
# <Icon name="simple-icons:clickhouse"/> Clickhouse
1212

13-
<!-- Source: modules/config-db/api/v1/clickhouse.go:9#Clickhouse -->
13+
<!-- Source: modules/config-db/api/v1/clickhouse.go#Clickhouse -->
1414

1515
The Clickhouse scraper executes SQL queries against a Clickhouse database or cloud storage systems (AWS S3, Azure Blob Storage) and creates configuration items from the query results. This allows you to treat data stored in Clickhouse or cloud storage as configuration items that can be tracked and monitored.
1616

mission-control/docs/guide/config-db/scrapers/file.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_custom_props:
99

1010
import Custom from './_custom.mdx'
1111

12-
<!-- Source: modules/config-db/api/v1/file.go:10#File -->
12+
<!-- Source: modules/config-db/api/v1/file.go#File -->
1313

1414
The `file` scraper is used to create config items from files in a local folder (or git). This can be used to track changes in files like `/etc/hosts` or `/etc/passwd`, or for service metadata stored in git.
1515

mission-control/docs/guide/config-db/scrapers/gcp.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_custom_props:
77

88
# <Icon name="google-cloud"/> GCP
99

10-
<!-- Source: modules/config-db/api/v1/gcp.go:47#GCP -->
10+
<!-- Source: modules/config-db/api/v1/gcp.go#GCP -->
1111

1212
The GCP scrapers scrapes your GCP account to fetch all the resources & save them as configs.
1313

mission-control/docs/guide/config-db/scrapers/github.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar_custom_props:
88

99
# <Icon name="github"/> Github
1010

11-
<!-- Source: modules/config-db/api/v1/github.go:7#GitHubActions -->
11+
<!-- Source: modules/config-db/api/v1/github.go#GitHubActions -->
1212

1313
The file config type is set to scrape configurations or configurations in common with the related elements that can be specified in the fields; `type`, and `id`. The paths to the configuration(s) to be scraped is set with the field `path` as a list.
1414

mission-control/docs/guide/config-db/scrapers/http.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Custom from './_custom.mdx'
99

1010
# <Icon name="http"/> HTTP
1111

12-
<!-- Source: modules/config-db/api/v1/http.go:8#HTTP -->
12+
<!-- Source: modules/config-db/api/v1/http.go#HTTP -->
1313

1414
The HTTP scraper allows you to collect data from HTTP endpoints and APIs. It supports various authentication methods and data transformation capabilities.
1515

mission-control/docs/guide/config-db/scrapers/kubernetes-file.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_custom_props:
77

88
# <Icon name="k8s-pod"/> Kubernetes File
99

10-
<!-- Source: modules/config-db/api/v1/kubernetes.go:271#KubernetesFile -->
10+
<!-- Source: modules/config-db/api/v1/kubernetes.go#KubernetesFile -->
1111

1212
The KubernetesFile config type is used to scrape the contents of files inside Kubernetes Pods.
1313

0 commit comments

Comments
 (0)