Skip to content

Commit

Permalink
chore: fix vale suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Sep 5, 2024
1 parent 0a45781 commit 0ebfe02
Show file tree
Hide file tree
Showing 26 changed files with 67 additions and 37 deletions.
2 changes: 1 addition & 1 deletion canary-checker/docs/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ db:

The helm chart creates a postgres server statefulset, with a random password and default port, along with a new database.

To specify a username and password for the chart-managed Postgres server, create a secret in the namespace that the chart will install to, named `postgres-connection`, which contains `POSTGRES_USER` and `POSTGRES_PASSWORD` keys.
To specify a username and password for the chart-managed Postgres server, create a secret in the namespace that the chart installs to, named `postgres-connection`, which contains `POSTGRES_USER` and `POSTGRES_PASSWORD` keys.

## Connecting to an existing database

Expand Down
5 changes: 2 additions & 3 deletions canary-checker/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The canary checker itself only presents an API. To view the data graphically, th

| Parameter | Description |
|------------------------------------|---------------------------------------------------------------|
| `flanksource-ui.ingress.host` | URL at which the UI will be accessed |
| `flanksource-ui.ingress.host` | URL at which the UI is accessed |
| `flanksource-ui.ingress.annotations` | Map of annotations required by the ingress controller or certificate issuer |
| `flanksource-ui.ingress.tls` | Map of configuration options for TLS |

Expand All @@ -96,5 +96,4 @@ If you have any questions about canary checker:
* File an [issue](https://github.com/flanksource/canary-checker/issues/new) - (We do provide user support via Github Issues, so don't worry if your issue a real bug or not)
* [Flanksource](https://www.flanksource.com) provides both commercial support for canary checker and a SaaS offering called Mission Control.
Your feedback is always welcome!
Your feedback is always welcome.
6 changes: 3 additions & 3 deletions canary-checker/docs/health-checks.mc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: Health Checks
<img src="/img/health-checks.svg" style={{width: "900px"}}/>


Mission control provides the ability to define and run periodic health checks against services, infrastructure and applications.
Mission control provides the ability to define and run periodic health checks against services, infrastructure, and applications.

<Step step={1} name="Synthetic" style="list">
Synthetic checks are periodically run by canary checker to directly test services/applications by generating requests using http, sql, mongo, redis, ldap, etc.
Expand Down Expand Up @@ -46,14 +46,14 @@ Evaluate the health of checks using scripts in CEL, Javascript or Go Templating.
## Dashboard

<Step step={1} name="Dashboard" style="list">
The health checks page provides a high level view of the overall health of all services, infrastructure and applications. It surfaces recent failures and provides a high level latency and reliability metrics.
The health checks page provides a high level view of the overall health of all services, infrastructure, and applications. It surfaces recent failures and provides a high level latency and reliability metrics.

![](./images/canary-dashboard.png)
</Step>

<Step step={2} name="Topology" style="list">

Health checks can be associated with components in a [topology](topology/concepts/health-checks) and will then show up in the topology card:
Health checks can be associated with components in a [topology](topology/concepts/health-checks) and then shows up in the topology card:

![](./images/topology-health-checks.png)
</Step>
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/reference/1-alert-manager.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sidebar_class_name: popular

Checks [Prometheus AlertManager](https://prometheus.io/docs/alerting/latest/alertmanager/) for any firing alerts.

The following example [transforms](../concepts/expressions/transforms) the list of alerts so that each alert becomes a single check result. Without the transform the health check will fail if any alerts are firing.
The following example [transforms](../concepts/expressions/transforms) the list of alerts so that each alert becomes a single check result. Without the transform the health check fails if any alerts are firing.

```yaml title="alert-manager-check.yaml" file=../../../modules/canary-checker/fixtures/datasources/alertmanager_mix.yaml
apiVersion: canaries.flanksource.com/v12
Expand Down
7 changes: 3 additions & 4 deletions canary-checker/docs/reference/1-exec.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ See [image-variants](/reference/canary-checker/image-variants)
},
{
field: "connections",
description: "Setup connections for the script (eg: aws credentials)",
description: "Setup connections for the script (e.g.: aws credentials)",
scheme: "[`ExecConnection`](#exec-connection)",
}
]}/>
Expand All @@ -57,8 +57,7 @@ See [image-variants](/reference/canary-checker/image-variants)
<SkipOSS>
### Exec Connection

Exec connections allow you to specify credentials for a list of CLI tools that are needed by your scripts. Eg: You can specify the AWS connection name and the credential files along with the necessary environment variables
will be setup on the host running the script.
Exec connections allow you to specify credentials for a list of CLI tools that are needed by your scripts. Eg: You can specify the AWS connection name and the credential files along with the necessary environment variables are setup on the host running the script.

| Field | Description | Type | Required |
| ------- | ---------------- | ------------------------------------------------------- | -------- |
Expand Down Expand Up @@ -104,6 +103,6 @@ See [artifacts](/installation/artifacts)
</details>

<Fields connection="git" rows={[
{field: "destination", description: "Destination is the full path to where the contents of the URL should be downloaded to. If left empty, the sha256 hash of the URL will be used as the dir name", type: "string"},
{field: "destination", description: "Destination is the full path to where the contents of the URL should be downloaded to. If left empty, the sha256 hash of the URL is used as the dir name", type: "string"},
]}/>

4 changes: 2 additions & 2 deletions canary-checker/docs/reference/1-folder.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Folder

# <Icon name="smb" /> Folder

Checks the contents of a folder for size, age and count. Folder based checks are useful in a number of scenarios:
Checks the contents of a folder for size, age, and count. Folder based checks are useful in a number of scenarios:

- Verifying that backups have been uploaded and are the appropriate size
- Checking that logs or other temporary files are being cleaned up
Expand Down Expand Up @@ -43,7 +43,7 @@ spec:
{field: "minAge", description: "The youngest age a file can be", scheme: "Duration"},
{field: "maxAge", description: "The oldest age a file can be, often used to check for unprocessed files or files that have not been cleaned up", scheme: "Duration"},
{field: "minSize", description: "The minimum file size, can be used to detect backups that did not upload successfully", scheme: "Size"},
{field: "maxSize", description: "The maximim file size", scheme: "Size"}
{field: "maxSize", description: "The maximum file size", scheme: "Size"}

]}/>

Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/reference/1-http.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ spec:
| `metadata.labels` | _map[string]string_ |
| `{fields from []env}` | any |

Variables defined in `env` will be available to template with the name that's configured on the spec.
Variables defined in `env` are available to template with the name that's configured on the spec.
Eg: In the following spec, the vars `my_secret_path` and `my_secret_var`, defined in `env`, are available during templating.

<details summary="Templating request body from env variables">
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/reference/1-icmp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: ICMP

# <Icon name="icmp" /> ICMP

Performs ICMP (ping) requests for information on ICMP packet loss, duration and response.
Performs ICMP (ping) requests for information on ICMP packet loss, duration, and response.

:::info
Canary checker supports both `privileged` and `unprivileged` ping modes using the `PING_MODE` environment variable or `pingMode` helm value.
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/reference/1-junit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ JUnit check performs a Unit test, parses the JUnit test reports in a container a
| `status` | One of `passed`, `skipped`, `failed` or `error` | _string_ |
| `message` | Description optionally included with a skipped, | _string_ |
| `properties` | Additional info about the test | `map[string]string` |
| `error` | Any errors encountered when running atest | _string_ |
| `error` | Any errors encountered when running a test | _string_ |
| `stdout` | Standard output produced during test | _string_ |
| `stderr` | Standard error output produced during test | _string_ |

Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/reference/1-kubernetes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The Kubernetes check performs requests on Kubernetes resources such as Pods to g
{field: "kind", description: "Kubernetes object kind", scheme: 'string', required: true},
{field: "resource", description: " Queries resources related to specified Kubernetes object ", scheme: 'ResourceSelector'},
{field: "namespaceSelector", description: "Namespace of the Kubernetes object",scheme: 'ResourceSelector'},
{field: "namespace", description: "Failing checks will be placed in this namespace, useful if you have shared namespaces"},
{field: "namespace", description: "Failing checks are placed in this namespace, useful if you have shared namespaces"},
{field: "ignore", description: "Ignore the specified resources from the fetched resources. Can be a glob pattern.", scheme: '[]glob'},
{field: "healthy", description: "Fail the check if any resources are unhealthy", scheme: 'bool'},
{field: "ready", description: "Fail the check if any resources are not ready", scheme: 'bool'},
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/reference/1-sql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AzureSqlServer} from "@flanksource/icons/mi"

# <AzureSqlServer/> SQL

This check will try to connect to a specified Postgres database, run a query against it and verify the results.
This check connects to a specified Postgres database, run a query against it and verify the results.

```yaml
apiVersion: canaries.flanksource.com/v1
Expand Down
4 changes: 2 additions & 2 deletions canary-checker/docs/reference/3-containerd.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_class_name: beta

# <Icon name="containerd" /> ContainerD / Docker

This check will try to pull a Docker image from specified registry using containerd and then verify its checksum and size.
This check pulls a Docker image from specified registry using containerd and then verify its checksum and size.

:::note Root Privileges Required
The containerd and docker health checks require access to a working socket that is mounted at runtime
Expand Down Expand Up @@ -63,7 +63,7 @@ spec:
## Pushing images
This check will try to push a Docker image to a specified registry using containerd.
This check pushes a Docker image to a specified registry using containerd.
```yaml
apiVersion: canaries.flanksource.com/v1
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/reference/3-gcs-database-backup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
| Field | Description | Scheme | Required |
| ------------- | ----------------------------------------------------------- | ---------------------------------------------- | -------- |
| **`gcp`** | Connect to GCP project and instance | [_GCPDatabase_](#gcpdatabase) | Yes |
| **`maxAge`** | Max age for backup allowed, eg. 5h30m | _Duration_ | |
| **`maxAge`** | Max age for backup allowed, e.g. 5h30m | _Duration_ | |
| **`name`** | Name of the check, must be unique within the canary | `string` | Yes |
| `description` | Description for the check | `string` | |
| `icon` | Icon for overwriting default icon on the dashboard | `string` | |
Expand Down
6 changes: 3 additions & 3 deletions canary-checker/docs/reference/3-namespace.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ spec:
| `httpTimeout` | | int64 | |
| `icon` | Icon for overwriting default icon on the dashboard | *string* | |
| `ingressHost` | URL to be used by the ingress to expose the created pod | *string* | |
| `ingressName` | Name to use for the ingress object that will expose the created pod | *string* | |
| `ingressName` | Name to use for the ingress object that exposes the created pod | *string* | |
| `ingressTimeout` | Maximum time to wait for an HTTP connection to the created pod | *int64* | |
| `name` | Name of the check | string | |
| `namespaceAnnotations` | Metadata annotations to apply to created namespace | *map[string]string* | |
| `namespaceLabels` | Metadata labels to apply to created namespace | *map[string]string* | |
| `namespaceNamePrefix` | Prefix string to identity namespace | *string* | |
| `path` | Path on which the created pod will respond to requests | *string* | |
| `path` | Path on which the created pod responds to requests | *string* | |
| **`podSpec`** | Spec of pod to be created in check namespace | *string* | Yes |
|`port` | Port on which the created pod will serve traffic | *int64* | |
|`port` | Port on which the created pod serves traffic | *int64* | |
| `priorityClass` | Pod priority class | *string* | |
| `readyTimeout` | Specify readiness timeout for namespace | *int64* | |
| `scheduleTimeout` | Maximum time between pod created and pod running | *int64* | |
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/reference/3-restic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The Restic check:
<HealthCheck name="redis" connection="url" rows={[
{field: "repository", description: "The restic repository path e.g., `rest: https://user:pass@host:8000/` or rest: `https://host:8000/` or `s3:s3.amazonaws.com/bucket_name`", required: true},
{field: "maxAge", description: "Max age for backup freshness check", required: true, scheme: "Duration"},
{field: "checkIntegrity", description: "When enabled will check the Integrity and consistency of the restic repository", scheme: "boolean"},
{field: "checkIntegrity", description: "When enabled it checks the Integrity and consistency of the restic repository", scheme: "boolean"},
{field: "caCert", description: "Path to CA certificate for self-signed certificates", scheme: "string"},
{field: "password", description: "Password for encrypted repositories", scheme: "EnvVar"},
{field: "awsConnectionName", description: "AWS connection name for S3 repositories", scheme: "aws"}
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/reference/_connections.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ spec:
| Field | Description | Scheme |
| ------------ | ------------------------------------------------------------ | ------------------------------------------------- |
| `connection` | Path of existing connection e.g. `connection://sftp/instance`<br /> Mutually exclusive with `username` <br /><Commercial /> | <CommonLink to="connection" >*Connection*</CommonLink> |
| `username` | utually exclusive with `connection` | <CommonLink to="authentication">*EnvVar*</CommonLink> |
| `username` | Mutually exclusive with `connection` | <CommonLink to="authentication">*EnvVar*</CommonLink> |
| `password` | <SkipOSS>Mutually exclusive with `connection`</SkipOSS> | <CommonLink to="authentication">*EnvVar*</CommonLink> |
| `host` | Custom AWS Cloudwatch endpoint | *string* |
| `port` | Default to `22` | int |
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/reference/jmeter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Jmeter
<Standard />
<FullImage />

This check will execute the JMeter CLI to execute the JMX test plan on the specified host.
This check executes the JMeter CLI to execute the JMX test plan on the specified host.

```yaml
apiVersion: canaries.flanksource.com/v1
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ which results in an output similar to the below:
![](/img/trace-screenshot.png)

:::danger Sensitive Data & Excessive Logging
Trace level logging returns the HTTP response body which may contain sensitive data (The authorization headers will be sanitized)
Trace level logging returns the HTTP response body which may contain sensitive data (The authorization headers are sanitized)
:::

**Trace Levels**
Expand Down
4 changes: 2 additions & 2 deletions mission-control/docs/how-it-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Mission Control uses Kubernetes Custom Resources Definitions as the underlying c
| <a href="/config-db"><div class="flex flex-row"><Icon name="k8s-customresourcedefinition" size={22}/>ScrapeConfig</div> </a> | Configures scrapers to run periodically | Config items, analysis, change, cost |
| <a href="/canary-checker"><Icon name="k8s-customresourcedefinition">Canary</Icon> </a> | Runs health checks using HTTP, SQL, S3, kubectl, etc. | 1 or more checks (Health) |
| <a href="/notifications"><Icon name="k8s-customresourcedefinition">Notification</Icon> </a> | Sends notifications based on events | Email, Slack, etc |
| <a href="/playbooks"><Icon name="k8s-customresourcedefinition">Playbook</Icon> </a> | Defines playbooks that can be run on config items, health checks and componets | Pull Request, CLI, Webhook |
<a href="/reference/connections"><Icon name="k8s-customresourcedefinition">Connection</Icon> </a> | Re-usable connections with secure external lookup to Kuebrnetes secrets, configmaps, service accounts and Helm values | URL, username, password, etc |
| <a href="/playbooks"><Icon name="k8s-customresourcedefinition">Playbook</Icon> </a> | Defines playbooks that can be run on config items, health checks and components | Pull Request, CLI, Webhook |
<a href="/reference/connections"><Icon name="k8s-customresourcedefinition">Connection</Icon> </a> | Re-usable connections with secure external lookup to Kubernetes secrets, configmaps, service accounts and Helm values | URL, username, password, etc |
<a href="/topology"><Icon name="k8s-customresourcedefinition">Topology</Icon> </a> | Combines configs, health checks and lookups to form cards | Component |


Expand Down
2 changes: 1 addition & 1 deletion mission-control/docs/notifications/channels/matrix.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ Either omit them or URL encode them, I.E. `rooms=%23alias:server` or `rooms=alia
### TLS

If you do not have TLS enabled on the server you can disable it by providing `disableTLS=yes`. This will effectively

Check warning on line 43 in mission-control/docs/notifications/channels/matrix.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] mission-control/docs/notifications/channels/matrix.mdx#L43

[Flanksource.FutureTense] Use present tense verbs, not future tense verbs like 'will'. Say '(event) happens' instead of '(event) will happen'.
Raw output
{"message": "[Flanksource.FutureTense] Use present tense verbs, not future tense verbs like 'will'. Say '(event) happens' instead of '(event) will happen'.", "location": {"path": "mission-control/docs/notifications/channels/matrix.mdx", "range": {"start": {"line": 43, "column": 101}}}, "severity": "WARNING"}
use `http` intead of `https` for the API calls.
use `http` instead of `https` for the API calls.
2 changes: 1 addition & 1 deletion modules/canary-checker
Submodule canary-checker updated 77 files
+5 −0 .github/dependabot.yml
+1 −1 .github/workflows/lint.yml
+4 −0 .golangci.yml
+5 −10 Makefile
+5 −20 api/context/context.go
+0 −10 api/v1/checks.go
+0 −1 api/v1/common.go
+1 −5 api/v1/component_types.go
+1 −4 api/v1/system_types.go
+1 −1 build/full/Dockerfile
+1 −1 build/minimal/Dockerfile
+0 −3 canary-checker.properties
+1 −1 chart/Chart.yaml
+0 −37 chart/Makefile
+0 −108 chart/README.md
+0 −17 chart/README.md.tpl
+0 −111 chart/ci/full-values.yaml
+0 −9 chart/deref.ts
+0 −15 chart/templates/clusterrole.yaml
+12 −0 chart/templates/clusterrolebinding.yaml
+3 −33 chart/templates/deployment.yaml
+0 −1 chart/values.schema.deref.json
+0 −554 chart/values.schema.json
+69 −347 chart/values.yaml
+6 −8 checks/aws_config.go
+6 −6 checks/aws_config_rule.go
+6 −9 checks/cloudwatch.go
+2 −2 checks/exec.go
+5 −6 checks/folder.go
+15 −11 checks/folder_s3.go
+18 −3 checks/folder_sftp.go
+16 −12 checks/folder_smb.go
+17 −51 checks/http.go
+1 −2 checks/jmeter.go
+24 −5 checks/kubernetes.go
+34 −12 checks/kubernetes_resource.go
+3 −20 checks/runchecks.go
+59 −7 checks/s3.go
+1 −1 checks/sql.go
+1 −2 checks/tcp.go
+1 −1 cmd/docs.go
+8 −10 cmd/offline.go
+23 −19 cmd/operator.go
+45 −19 cmd/root.go
+5 −14 cmd/run.go
+7 −4 cmd/serve.go
+4 −6 cmd/topology.go
+1 −0 config/canary-dev.yaml
+6 −32 config/deploy/crd.yaml
+6 −32 config/deploy/manifests.yaml
+10 −28 config/schemas/canary.schema.json
+10 −34 config/schemas/component.schema.json
+0 −3 config/schemas/health_awsconfig.schema.json
+0 −3 config/schemas/health_awsconfigrule.schema.json
+0 −3 config/schemas/health_cloudwatch.schema.json
+0 −3 config/schemas/health_exec.schema.json
+10 −13 config/schemas/health_folder.schema.json
+0 −3 config/schemas/health_s3.schema.json
+10 −37 config/schemas/topology.schema.json
+3 −2 fixtures/datasources/s3_bucket_pass.yaml
+0 −3 fixtures/k8s/kubernetes_resource_pod_exit_code_pass.yaml
+54 −80 go.mod
+104 −151 go.sum
+225 −0 hack/generate-schemas/go.mod
+2,135 −0 hack/generate-schemas/go.sum
+7 −1 main.go
+0 −25 pkg/api.go
+2 −9 pkg/db/canary.go
+157 −0 pkg/db/init.go
+36 −0 pkg/db/postgrest.go
+253 −0 pkg/kube.go
+0 −9 pkg/results.go
+4 −19 pkg/runner/runner.go
+0 −98 pkg/runner/runner_test.go
+0 −4 pkg/system_api.go
+13 −1 pkg/topology/run.go
+6 −4 test/run_test.go
2 changes: 1 addition & 1 deletion modules/config-db
Submodule config-db updated 68 files
+14 −3 .github/dependabot.yml
+0 −2 .github/workflows/lint.yml
+0 −24 .github/workflows/test.yml
+3 −12 .gitignore
+12 −37 Makefile
+18 −44 api/cache.go
+6 −27 api/context.go
+0 −2 api/global.go
+2 −3 api/v1/aws.go
+14 −17 api/v1/common.go
+0 −60 api/v1/scrapeconfig_types.go
+2 −42 api/v1/types.go
+3 −3 api/v1/zz_generated.deepcopy.go
+2 −12 build/Dockerfile
+2 −9 chart/crds/configs.flanksource.com_scrapeconfigs.yaml
+2 −2 cmd/offline.go
+28 −12 cmd/operator.go
+51 −13 cmd/root.go
+15 −86 cmd/run.go
+72 −29 cmd/server.go
+11 −8 config/schemas/config_aws.schema.json
+14 −17 config/schemas/scrape_config.schema.json
+18 −18 db/changes.go
+1 −1 db/config_scraper.go
+0 −121 db/diff.go
+141 −0 db/init.go
+2 −7 db/models/config_change.go
+0 −11 db/models/config_item.go
+47 −0 db/postgrest.go
+1 −1 db/testdata/person-new.json
+15 −15 db/testdata/person.diff
+1 −7 db/testdata/simple-new.json
+2 −7 db/testdata/simple-old.json
+4 −11 db/testdata/simple.diff
+50 −227 db/update.go
+11 −100 db/update_test.go
+20 −0 db/utils.go
+0 −22 external/diffgen/Cargo.lock
+0 −12 external/diffgen/Cargo.toml
+0 −6 external/diffgen/libdiffgen.h
+0 −41 external/diffgen/src/lib.rs
+0 −16 fixtures/data/echo-playbook.yaml
+0 −12 fixtures/file-crd-sync.yaml
+53 −85 go.mod
+94 −269 go.sum
+0 −2 hack/generate-schemas/.gitignore
+224 −0 hack/generate-schemas/go.mod
+2,140 −0 hack/generate-schemas/go.sum
+2 −7 hack/generate-schemas/main.go
+0 −37 rustdiffgen.go
+30 −69 scrapers/aws/aws.go
+120 −0 scrapers/aws/aws_session.go
+14 −16 scrapers/aws/cost.go
+7 −61 scrapers/cron.go
+41 −9 scrapers/kubernetes/events_watch.go
+7 −14 scrapers/kubernetes/informers.go
+10 −7 scrapers/kubernetes/kubernetes.go
+10 −4 scrapers/kubernetes/kubernetes_file.go
+1 −1 scrapers/processors/json.go
+3 −5 scrapers/run.go
+1 −1 scrapers/runscrapers.go
+14 −49 scrapers/runscrapers_test.go
+1 −1 scrapers/slack/slack.go
+0 −1 testdata/.gitignore
+58 −0 utils/kube/exec.go
+242 −0 utils/kube/kube.go
+35 −0 utils/kube/kube_test.go
+58 −0 utils/memory.go
2 changes: 1 addition & 1 deletion modules/duty
Submodule duty updated 77 files
+3 −1 .github/workflows/lint.yml
+1 −1 .github/workflows/test.yaml
+0 −3 .gitignore
+1 −13 Makefile
+7 −32 api/config.go
+0 −13 cache/cache.go
+5 −83 connection/aws.go
+0 −28 connection/azure.go
+0 −1 connection/connection.go
+0 −117 connection/environment.go
+0 −320 connection/git.go
+0 −16 connection/s3.go
+16 −47 connection/sftp.go
+21 −47 connection/smb.go
+0 −91 connection/zz_generated.deepcopy.go
+0 −4 context/accessors.go
+10 −60 context/context.go
+24 −55 context/envvar.go
+1 −45 context/metrics.go
+3 −3 context/properties.go
+5 −11 db.go
+7 −29 echo/debug.go
+29 −0 envvar.go
+0 −50 functions/pre_alter_columns.sql
+63 −105 go.mod
+337 −256 go.sum
+0 −2 hack/migrate/.gitignore
+203 −0 hack/migrate/go.mod
+2,374 −0 hack/migrate/go.sum
+0 −1 hack/migrate/main.go
+6 −18 job/cleanup.go
+30 −94 job/job.go
+1 −1 job/job_test.go
+0 −191 kubernetes/dynamic.go
+30 −117 kubernetes/k8s.go
+0 −139 leader/election.go
+1 −1 models/canary.go
+0 −12 models/common.go
+12 −15 models/components.go
+2 −2 models/config.go
+0 −8 models/connections.go
+0 −2 models/notifications.go
+0 −16 models/people.go
+21 −17 models/playbooks.go
+0 −1 models/source.go
+1 −1 models/topology.go
+0 −9 postgrest/postgrest.go
+4 −7 query/checks.go
+4 −7 query/components.go
+9 −12 query/config.go
+5 −16 query/resource_selector.go
+1 −1 query/topology.go
+2 −2 relationship_selector.go
+5 −6 schema/config.hcl
+0 −9 schema/notifications.hcl
+1 −1 schema/vars.hcl
+0 −84 shell/interpreter.go
+0 −224 shell/shell.go
+0 −23 shell/zz_generated.deepcopy.go
+0 −42 shutdown/shutdown.go
+13 −127 start.go
+3 −3 tests/getters_test.go
+0 −1 tests/job_test.go
+0 −66 tests/query_resource_selector_test.go
+22 −11 tests/setup/common.go
+1 −1 tests/upstream_test.go
+4 −2 types/zz_generated.deepcopy.go
+0 −62 upstream/agent_status_ring.go
+27 −42 upstream/controllers.go
+3 −18 views/006_config_views.sql
+0 −1 views/010_topology.sql
+10 −16 views/011_users.sql
+0 −1 views/015_job_history.sql
+0 −1 views/018_playbooks.sql
+0 −1 views/031_casbin_effect.sql
+1 −0 views/031_truncate_casbin.sql
+1 −0 views/032_playbook_nulls.sql
2 changes: 1 addition & 1 deletion modules/mission-control
Submodule mission-control updated 77 files
+1 −1 .github/workflows/build.yml
+1 −1 .github/workflows/codeql.yml
+1 −2 .github/workflows/lint.yml
+5 −5 .github/workflows/release.yml
+1 −1 .github/workflows/scorecard.yml
+1 −14 .github/workflows/test.yml
+4 −4 Dockerfile
+3 −13 Makefile
+2 −0 api/global.go
+0 −7 api/v1/notification_types.go
+6 −43 api/v1/playbook_actions.go
+1 −1 api/v1/playbook_types.go
+1 −7 api/v1/zz_generated.deepcopy.go
+2 −3 artifacts/jobs.go
+0 −8 auth/admin_user.go
+2 −4 auth/kratos.go
+2 −2 auth/kratos_client.go
+7 −19 auth/middleware.go
+18 −67 cmd/playbook.go
+0 −1 cmd/root.go
+8 −15 cmd/server.go
+40 −0 cmd/shutdown.go
+2 −7 cmd/sync.go
+0 −11 config/crds/mission-control.flanksource.com_notifications.yaml
+3 −94 config/crds/mission-control.flanksource.com_playbooks.yaml
+0 −9 config/schemas/notification.schema.json
+2 −13 config/schemas/playbook-spec.schema.json
+2 −13 config/schemas/playbook.schema.json
+3 −1 connection/controllers.go
+7 −7 db/components.go
+3 −3 db/config.go
+21 −0 db/init.go
+9 −11 db/notifications.go
+0 −110 echo/people.go
+5 −19 echo/serve.go
+48 −62 go.mod
+93 −210 go.sum
+0 −2 hack/generate-schemas/.gitignore
+221 −0 hack/generate-schemas/go.mod
+2,144 −0 hack/generate-schemas/go.sum
+1 −1 hack/generate-schemas/main.go
+7 −54 notification/events.go
+0 −80 notification/notification_test.go
+51 −89 notification/send.go
+44 −20 notification/shoutrrr.go
+0 −38 notification/slack.go
+0 −159 notification/template.go
+0 −28 notification/templates/check.failed
+0 −28 notification/templates/check.passed
+0 −26 notification/templates/component.health
+0 −26 notification/templates/config.db.update
+0 −26 notification/templates/config.health
+0 −1 pkg/clients/aws/aws.go
+5 −29 pkg/clients/git/connectors/connectors.go
+15 −28 pkg/clients/git/connectors/git_access_token.go
+4 −3 pkg/clients/git/connectors/git_ssh.go
+12 −12 pkg/clients/git/git.go
+1 −1 playbook/actions/exec.go
+22 −69 playbook/actions/gitops.go
+2 −2 playbook/actions/gitops_test.go
+1 −2 playbook/actions/notification.go
+7 −6 playbook/controllers.go
+1 −1 playbook/events_test.go
+6 −6 playbook/params.go
+6 −6 playbook/playbook.go
+5 −5 playbook/playbook_test.go
+1 −1 playbook/run_consumer.go
+1 −1 playbook/runner/agent.go
+22 −27 playbook/runner/exec.go
+2 −0 playbook/runner/runner.go
+0 −5 rbac/init.go
+1 −1 rbac/objects.go
+1 −1 rbac/policies.yaml
+0 −1 rbac/policy.go
+14 −14 snapshot/dump.go
+9 −10 snapshot/snapshot.go
+1 −2 upstream/controllers.go
1 change: 0 additions & 1 deletion styles/Flanksource/ProfanityUnlikely.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ tokens:
- cocktail
- coconut
- coconuts
- color
- colored
- coloured
- communist
Expand Down
33 changes: 33 additions & 0 deletions styles/ignore/words-with-suggestions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -343,3 +343,36 @@ unencrypted
etcd
Bitnami
imcp
argocd
fluxcd
kustomize
Kustomization
originAnnotations
Gitea
flanksource
AIOps
oneOf
API's
clientHost
fromName
starttls
shoutrrr
botmail
botkey
parseMode
botfather
kustomization
kustomizations
hardcoded
gitops
cel
mysql
templatedBody
workflow_dispatch
buildMetadata
getAction
maxLength
declaratively
CEL's
dependabot
unescaped

0 comments on commit 0ebfe02

Please sign in to comment.