Skip to content

Commit

Permalink
chore: fix vale suggestions (#273)
Browse files Browse the repository at this point in the history
* chore: fix vale suggestions

* fix: prettier suggestions
  • Loading branch information
yashmehrotra authored Sep 5, 2024
1 parent cf02e80 commit 669e846
Show file tree
Hide file tree
Showing 26 changed files with 42 additions and 34 deletions.
4 changes: 4 additions & 0 deletions canary-checker/docs/comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Canary checker can replace the following exporters:
| [github_actions_exporter](https://github.com/cpanato/github_actions_exporter) | | |
| [filestat_exporter](https://github.com/michael-doubez/filestat_exporter) | | |

<!-- vale off -->

### Prometheus Alert Manager

### Blackbox Exporter
Expand All @@ -36,3 +38,5 @@ Kuberhealthy serves the status of all checks on a simple JSON status page, a [Pr
https://cloudprober.org/

### Karma Alert Dashboard

<!-- vale on -->
2 changes: 1 addition & 1 deletion canary-checker/docs/comparisons/blackbox-exporter.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Canary-Checker vs Prometheus blackbox exporter

[Prometheus Blackbox Exporter](https://github.com/prometheus/blackbox_exporter) is a prometheus exporter for probing HTTP, HTTPS, DNS, TCP, ICMP and gRPC.
[Prometheus Blackbox Exporter](https://github.com/prometheus/blackbox_exporter) is a prometheus exporter for probing HTTP, HTTPS, DNS, TCP, ICMP, and gRPC.

| | Blackbox Exporter | Canary Checker |
| ------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
Expand Down
4 changes: 2 additions & 2 deletions canary-checker/docs/concepts/_artifacts.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Artifacts allow you to archive files generated by some checks to a file store of

## Setting up artifact store

One of the above Filestores can be used as the global artifact store. To setup an artifact store, pass the connection name of the store using the `artifact-connection` flag. If the artifact connection isn't setup, the artifacts are simply ignored.
One of the above Filestores can be used as the global artifact store. To setup an artifact store, pass the connection name of the store using the `artifact-connection` flag. If the artifact connection isn't setup, the artifacts are ignored.

Example:

Expand Down Expand Up @@ -70,7 +70,7 @@ artifacts
### Ex2. Archiving artifacts from stdout/stderr
The path field accepts two special paths
The path field accepts two paths:
- `/dev/stdout`
- `/dev/stderr`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
field: "invalid",
description: "Set to true if the check is not configured correctly, and can never pass",
scheme: "bool",
priority: 2,
priority: 2,
required: false
},
{
Expand All @@ -37,7 +37,7 @@
},
{
field: "duration",
description: "Time in ms to use for the duration of the check",
description: "Time in ms for duration of the check",
scheme: "int64",
priority: 2,
required: false
Expand All @@ -53,7 +53,7 @@

{
field: "name",
description: "Name of the check to use, the name will be used to lookup existing checks to update",
description: "Name of the check to use, the name is used to lookup existing checks to update",
priority: 2,
scheme: "string",
required: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
```
:::info
Do not return anything from the function, e.g. instead of `return "hello" + "world"` use just `"hello" + "world"`
Do not return anything from the function, e.g. instead of `return "hello" + "world"` use `"hello" + "world"`
:::

See <CommonLink to="javascript">JavaScript</CommonLink> for more details and a function reference.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Health Evaluation
All checks expose a health stats of passing (Green) or failing (Red), for example the HTTP check fails if the status is `200 >= code < 299`
these default behaviors can be changed using the `test` field:

In the example below the http check will fail if the SSL certificate expiry age is below 7 days
In the example below the http check fails if the SSL certificate expiry age is below 7 days

```yaml title=http-check-expr.yaml
apiVersion: canaries.flanksource.com/v1
Expand Down
6 changes: 2 additions & 4 deletions canary-checker/docs/concepts/expressions/transforms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ title: Transformation

import TransformFields from './_transform_fields.mdx'



The `transform` can be used to convert one canary check into multiple checks programmatically.

```yaml
Expand Down Expand Up @@ -36,11 +34,11 @@ spec:
JSON.stringify(out);
```
In the above example, the check will return multiple alerts from alertmanager. By default, all of those alerts will be grouped in a single check.
In the above example, the check returns multiple alerts from alertmanager. By default, all those alerts are grouped in a single check.
But if we want to display each alert as its own check in the UI, we can use the `transform` function for this. The transform function takes a `Template` as input and the output from the template expected are the checks in JSON format.

For example, if there are 9 different alerts, each alert will have its own check that can be managed and interacted with equally.
For example, if there are 9 different alerts, each alert has its own check that can be managed and interacted with equally.

<TransformFields/>

Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/concepts/metrics/stateful-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ metadata:
: '{}'
```
This snippet will retrieve the `last_result.results.max` value from the last execution ensuring data is not duplicated or missed
This snippet retrieves the `last_result.results.max` value from the last execution ensuring data is not duplicated or missed

```go
"@timestamp" : {
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/concepts/secret-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ spec:
```
:::note
For service account token issuing the canary-checker service account `canary-checker-sa` will need to be granted permissions to issue tokens using:
For service account token issuing the canary-checker service account `canary-checker-sa` needs to be granted permissions to issue tokens using:

```yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/examples/k6.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
command: ["/start.sh"]
```
Using the [k6-junit](https://github.com/l-ross/k6-junit) utility to export JUnit results to the `testResults` folder, canary-checker will pick up the results and make then available display formating and health evaluation.
Using the [k6-junit](https://github.com/l-ross/k6-junit) utility to export JUnit results to the `testResults` folder, canary-checker picks up the results and make then available display formatting and health evaluation.

```bash title="start.sh"
mkdir -p /tmp/junit-results
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/examples/newman.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
command: ["/start.sh"]
```
By configuring newman to export JUnit to the `testResults` folder, canary-checker will pick up the results and make then available display formatting and health evaluation.
By configuring newman to export JUnit to the `testResults` folder, canary-checker picks up the results and make then available display formatting and health evaluation.

```bash title="start.sh"
set -x
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/examples/playwright.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
command: ["/start.sh"]
```
By configuring playwright to export JUnit to the `testResults` folder, canary-checker will pick up the results and make then available display formatting and health evaluation.
By configuring playwright to export JUnit to the `testResults` folder, canary-checker picks up the results and make then available display formatting and health evaluation.

```bash title="start.sh"
mkdir -p /tmp/junit-results
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/examples/sftp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: SFTP Connection

# <Icon name="sftp" /> SFTPConnection

Checks the contents of a folder over SFTP for size, age and count.
Checks the contents of a folder over SFTP for size, age, and count.

See [Folder](../reference/folder) for a full description.

Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/examples/smb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: SMB/CIFS

# <Icon name="smb" /> Windows File Share (SMB/CIFS)

Checks the contents of a Windows / CIFS file share for size, age and count.
Checks the contents of a Windows / CIFS file share for size, age, and count.

See [Folder](../reference/folder) for a full description.

Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/reference/1-elasticsearch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Elasticsearch

# <Icon name="elasticsearch" /> ElasticSearch

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

:::info Opensearch
To connect to Opensearch use `opensearch` field instead of `elasticsearch`
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/scripting/_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Functions in scripts are a combination of gomplate and sprig
| [time.Now](https://docs.gomplate.ca/functions/time/#timenow) | | |
| [time.Parse](https://docs.gomplate.ca/functions/time/#timeparse) | Parses a timestamp defined by the given layout | |
| [time.ParseDuration](https://docs.gomplate.ca/functions/time/#timeparseduration) | Parses a duration string. This wraps [`time.ParseDuration`](https://golang.org/pkg/time/#ParseDuration). | |
| [time.Since](https://docs.gomplate.ca/functions/time/#timesince) | Returns the time elapsed since a given tim | |
| [time.Since](https://docs.gomplate.ca/functions/time/#timesince) | Returns the time elapsed since a given time | |
| [time.Unix](https://docs.gomplate.ca/functions/time/#timeunix) | Returns the local `Time` corresponding to the given Unix time | |
| [time.Until](https://docs.gomplate.ca/functions/time/#timeuntil) | Returns the duration until a given time. | |
| [uuid.V1](https://docs.gomplate.ca/functions/uuid/#uuidv1) | Create a version 1 UUID | |
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/scripting/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
```
:::tip Troubleshooting
You can print to the console for rapid development e.g. `console.log(JSON.stringify(json))`, this will only be shown in the logs
You can print to the console for rapid development e.g. `console.log(JSON.stringify(json))`, this is only shown in the logs
:::

### Underscore
Expand Down
8 changes: 4 additions & 4 deletions canary-checker/docs/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Depending on the check this might include:
- Access to cloud APIs, such as AWS, GCP or Azure API interfaces
- Locally installed binaries invoked by `exec` scripts

The following local settings will affect the permissions available for use by the canary-checker executable:
The following local settings affects the permissions available for use by the canary-checker executable:

- The active kubectl context as specified in `KUBECONFIG`
- The AWS profile specified in `AWS_DEFAULT_PROFILE` or `AWS_PROFILE`, or the AWS credentials specified by `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`
Expand All @@ -51,7 +51,7 @@ canary-checker run -v test-canary.yaml
```
</Step>

## Trigger a run fom the CLI
## Trigger a run from the CLI


To run a canary outside of its normal schedule add the `next-runtime` annotation:
Expand Down 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 will return 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 will be sanitized)

Check warning on line 93 in canary-checker/docs/troubleshooting.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] canary-checker/docs/troubleshooting.mdx#L93

[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": "canary-checker/docs/troubleshooting.mdx", "range": {"start": {"line": 93, "column": 112}}}, "severity": "WARNING"}
:::

**Trace Levels**
Expand Down Expand Up @@ -126,7 +126,7 @@ Database level logging can be enabled using `--db-log-level`
| `debug` (1) | Print SQL statements without parameters |
| `trace` (2) | Print SQL statements with parameters |
And Kubernetes Operator loggined with `--k8s-log-level`
And Kubernetes Operator logging with `--k8s-log-level`
| Level | Description |
| :---------- | :-------------------------------------- |
Expand Down
4 changes: 2 additions & 2 deletions canary-checker/docs/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Invoke-WebRequest -Uri https://github.com/flanksource/canary-checker/blob/master

### (Optional)

If you require a [specific version of Canary Checker](https://github.com/flanksource/canary-checker/releases) or want to build your own to test, place the executable in the same folder as the required powershell script above. Otherwise, the powershell install script will download the latest release.
If you require a [specific version of Canary Checker](https://github.com/flanksource/canary-checker/releases) or want to build your own to test, place the executable in the same folder as the required powershell script above. Otherwise, the powershell install script downloads the latest release.

## 3. Create a canary

Expand Down Expand Up @@ -57,7 +57,7 @@ To test our canary config without installing it, use the below

## 4. Install Canary Checker as a service

The powershell install script is able to download all requirements , if the windows machine does not have internet access you will need to manually download the [prerequisites](/##-1.-check-prerequisites) and place them in the script folder.
The powershell install script is able to download all requirements, if the windows machine does not have internet access you might need to manually download the [prerequisites](/##-1.-check-prerequisites) and place them in the script folder.

```
.\install-service.ps1 -configfile .\canary-checker.yaml -operation install
Expand Down
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 62 files
+5 −0 .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
+0 −60 api/v1/scrapeconfig_types.go
+2 −42 api/v1/types.go
+1 −1 api/v1/zz_generated.deepcopy.go
+2 −12 build/Dockerfile
+0 −8 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
+3 −9 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
+52 −84 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
+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
+2 −2 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 69 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
+12 −3 models/playbooks.go
+0 −1 models/source.go
+1 −1 models/topology.go
+0 −9 postgrest/postgrest.go
+1 −1 query/topology.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
+0 −1 tests/job_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
+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 71 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
+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
+5 −16 echo/serve.go
+47 −61 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 −108 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
+14 −14 snapshot/dump.go
+9 −10 snapshot/snapshot.go
+1 −2 upstream/controllers.go
3 changes: 2 additions & 1 deletion styles/Flanksource/Ablist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ swap:
insomniacs: people who have insomnia
intellectually disabled: person with an intellectual disability
intellectually disabled people: people with intellectual disabilities
invalid: turned off|has a disability|person with a disability|people with disabilities
# Disabling this as this is a field
# invalid: turned off|has a disability|person with a disability|people with disabilities
junkie: person with a drug addiction|person recovering from a drug addiction
junkies: people with a drug addiction|people recovering from a drug addiction
lame: boring|dull
Expand Down
1 change: 0 additions & 1 deletion styles/Flanksource/ProfanityUnlikely.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ tokens:
- ethiopian
- ethnic
- european
- executed
- executioner
- explosion
- fairies
Expand Down
6 changes: 6 additions & 0 deletions styles/ignore/words-with-suggestions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ canary_check
canary_check_duration
canary_check_failed_count
canary_check_info
canary_check_success_count
capitalizations
Chartmuseum
check_id
Expand Down Expand Up @@ -132,6 +133,7 @@ ignoredRules
incidentcommander
ingressHost
ingressTimeout
inlining
insecure_tls
ip
javascript
Expand Down Expand Up @@ -337,3 +339,7 @@ responseCodes
responseContent
thresholdMillis
maxSSLExpiry
unencrypted
etcd
Bitnami
imcp

0 comments on commit 669e846

Please sign in to comment.