Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Aug 12, 2024
1 parent 2945e43 commit 739c154
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[submodule "modules/canary-checker"]
path = modules/canary-checker
url = https://github.com/flanksource/canary-checker.git
commit = 8897c67d86a15ce1afcdec26ada3ccf29133c34a
[submodule "docs-vale-package"]
path = docs-vale-package
url = https://github.com/flanksource/docs-vale-package
Expand Down
1 change: 0 additions & 1 deletion canary-checker/docs/reference/1-webhook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Webhook
---


import TransformFields from '../concepts/expressions/_transform_fields.mdx'

# <Icon name="webhook" /> Webhook
Expand Down
2 changes: 1 addition & 1 deletion mission-control/docs/installation/artifacts.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ title: Artifacts

## 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 simply ignored.

Example:

Expand Down
2 changes: 1 addition & 1 deletion modules/config-db
Submodule config-db updated 93 files
+4 −4 .github/workflows/lint.yml
+4 −4 .github/workflows/release.yml
+2 −2 .github/workflows/test.yml
+4 −2 .releaserc
+23 −1 Makefile
+5 −2 api/cache.go
+13 −0 api/context.go
+72 −4 api/v1/common.go
+46 −0 api/v1/gcp.go
+16 −0 api/v1/http.go
+116 −1 api/v1/interface.go
+16 −1 api/v1/kubernetes.go
+48 −0 api/v1/slack.go
+76 −0 api/v1/terraform.go
+5 −0 api/v1/types.go
+309 −10 api/v1/zz_generated.deepcopy.go
+1 −1 build/Dockerfile
+113 −0 changes/fingerprint.go
+42 −0 changes/fingerprint_test.go
+19 −0 changes/testdata/change_1.json
+19 −0 changes/testdata/change_2.json
+20 −0 changes/testdata/change_3.json
+20 −0 changes/testdata/change_4.json
+85 −0 chart/README.md
+3,013 −415 chart/crds/configs.flanksource.com_scrapeconfigs.yaml
+48 −2 chart/templates/_helpers.tpl
+11 −0 chart/templates/configmap.yaml
+49 −2 chart/templates/deployment.yaml
+10 −10 chart/templates/serviceaccount.yaml
+4 −1 chart/templates/servicemonitor.yaml
+662 −0 chart/values.schema.json
+103 −36 chart/values.yaml
+14 −0 cmd/root.go
+61 −8 cmd/server.go
+30 −0 cmd/shutdown.go
+18 −3 config/schemas/config_aws.schema.json
+18 −3 config/schemas/config_azure.schema.json
+18 −3 config/schemas/config_azuredevops.schema.json
+18 −3 config/schemas/config_file.schema.json
+18 −3 config/schemas/config_githubactions.schema.json
+22 −4 config/schemas/config_kubernetes.schema.json
+18 −3 config/schemas/config_kubernetesfile.schema.json
+18 −3 config/schemas/config_sql.schema.json
+18 −3 config/schemas/config_trivy.schema.json
+821 −102 config/schemas/scrape_config.schema.json
+8 −6 db/config.go
+1 −0 db/models/config_change.go
+14 −1 db/models/config_item.go
+206 −135 db/update.go
+36 −0 fixtures/http-scraper.yaml
+34 −0 fixtures/slack.yaml
+14 −0 fixtures/terraform.yaml
+122 −101 go.mod
+248 −204 go.sum
+69 −58 hack/generate-schemas/go.mod
+139 −118 hack/generate-schemas/go.sum
+4 −0 jobs/jobs.go
+1 −1 jobs/suite_test.go
+2 −1 scrapers/aws/aws.go
+7 −1 scrapers/aws/aws_session.go
+6 −2 scrapers/aws/cloudtrail.go
+28 −0 scrapers/changes/changes_suite_test.go
+160 −0 scrapers/changes/extraction.go
+123 −0 scrapers/changes/extraction_test.go
+19 −12 scrapers/changes/rules.go
+4 −71 scrapers/changes/template_utils.go
+6 −0 scrapers/common.go
+11 −6 scrapers/cron.go
+65 −0 scrapers/gcp/cloud_logging.go
+343 −0 scrapers/gcp/gcp.go
+106 −0 scrapers/http/http.go
+93 −0 scrapers/kubernetes/context.go
+3 −4 scrapers/kubernetes/events_watch.go
+114 −0 scrapers/kubernetes/exclusions.go
+44 −0 scrapers/kubernetes/hook_argo.go
+77 −0 scrapers/kubernetes/hook_aws.go
+59 −0 scrapers/kubernetes/hook_azure.go
+39 −0 scrapers/kubernetes/hook_flux.go
+60 −0 scrapers/kubernetes/hooks.go
+2 −0 scrapers/kubernetes/informers.go
+71 −0 scrapers/kubernetes/ketall.go
+129 −374 scrapers/kubernetes/kubernetes.go
+134 −0 scrapers/kubernetes/resource_map.go
+163 −69 scrapers/processors/json.go
+6 −5 scrapers/processors/script.go
+3 −1 scrapers/run.go
+1 −7 scrapers/run_now.go
+4 −5 scrapers/runscrapers.go
+245 −0 scrapers/slack/api.go
+182 −0 scrapers/slack/slack.go
+26 −0 scrapers/terraform/models.go
+150 −0 scrapers/terraform/terraform.go
+58 −0 utils/memory.go
2 changes: 1 addition & 1 deletion modules/duty
Submodule duty updated 56 files
+5 −3 README.md
+10 −7 connection/http.go
+1 −1 connection/zz_generated.deepcopy.go
+3 −0 context/connection.go
+0 −1 context/properties.go
+4 −0 db/utils.go
+5 −4 go.mod
+8 −6 go.sum
+3 −3 hack/migrate/go.mod
+6 −6 hack/migrate/go.sum
+1 −1 job/job.go
+2 −1 migrate/migrate.go
+8 −0 models/agents.go
+3 −3 models/artifacts.go
+17 −0 models/canary.go
+8 −0 models/comments.go
+13 −0 models/common.go
+17 −0 models/components.go
+62 −14 models/config.go
+8 −0 models/connections.go
+4 −0 models/event_queue.go
+8 −0 models/evidences.go
+4 −0 models/hypotheses.go
+44 −1 models/incidents.go
+4 −0 models/integrations.go
+7 −8 models/job_history.go
+8 −0 models/logging_backends.go
+8 −0 models/notifications.go
+11 −3 models/people.go
+32 −0 models/playbooks.go
+5 −1 models/properties.go
+8 −0 models/responders.go
+8 −0 models/teams.go
+22 −0 query/commons.go
+79 −0 query/config_relations.go
+33 −9 query/resource_selector.go
+20 −0 schema/config.hcl
+2 −1 tests/agents_test.go
+1 −4 tests/config_changes_test.go
+136 −168 tests/config_relationship_test.go
+1 −1 tests/config_summary_test.go
+1 −2 tests/config_type_summary_test.go
+162 −262 tests/fixtures/dummy/all.go
+8 −9 tests/getters_test.go
+34 −5 tests/matchers.go
+4 −1 tests/properties_test.go
+191 −153 tests/query_resource_selector_test.go
+3 −0 tests/setup/common.go
+8 −0 types/auth.go
+11 −2 types/resource_selector.go
+1 −1 types/resource_selector_test.go
+16 −0 types/zz_generated.deepcopy.go
+0 −185 upstream/event_consumer.go
+80 −32 views/006_config_views.sql
+6 −75 views/012_changelog_trigger_func.sql
+17 −9 views/015_job_history.sql
2 changes: 1 addition & 1 deletion modules/mission-control
Submodule mission-control updated 63 files
+1 −1 .github/workflows/lint.yml
+4 −4 .github/workflows/release.yml
+2 −2 .github/workflows/test.yml
+3 −2 agent/agent.go
+6 −3 api/global.go
+25 −13 api/v1/connection_types.go
+3 −3 api/v1/playbook_types.go
+22 −2 api/v1/zz_generated.deepcopy.go
+2 −2 artifacts/controllers.go
+3 −5 auth/clerk_client.go
+19 −7 auth/controllers.go
+26 −16 auth/kratos.go
+16 −15 auth/middleware.go
+4 −4 auth/mock.go
+8 −4 auth/utils.go
+4 −2 catalog/controllers.go
+10 −7 cmd/root.go
+7 −37 cmd/server.go
+69 −0 cmd/token.go
+92 −2 config/crds/mission-control.flanksource.com_connections.yaml
+6 −0 config/crds/mission-control.flanksource.com_incidentrules.yaml
+21 −2 config/crds/mission-control.flanksource.com_playbooks.yaml
+34 −28 config/schemas/connection.schema.json
+6 −0 config/schemas/incident-rules.schema.json
+6 −0 config/schemas/playbook-spec.schema.json
+6 −0 config/schemas/playbook.schema.json
+2 −1 connection/controllers.go
+59 −63 db/connections.go
+39 −0 db/info.go
+9 −5 db/people.go
+114 −0 echo/kube_config_download.go
+50 −0 echo/properties.go
+27 −0 echo/search.go
+82 −78 echo/serve.go
+5 −1 events/event_queue.go
+43 −0 events/ring.go
+42 −42 go.mod
+88 −83 go.sum
+30 −28 hack/generate-schemas/go.mod
+64 −59 hack/generate-schemas/go.sum
+20 −9 notification/events.go
+8 −3 notification/send.go
+22 −38 playbook/controllers.go
+38 −12 playbook/events.go
+1 −1 playbook/playbook.go
+48 −1 playbook/playbook_test.go
+6 −6 playbook/run_consumer.go
+1 −1 playbook/suite_test.go
+59 −0 rbac/adapter.go
+6 −3 rbac/controllers.go
+129 −109 rbac/init.go
+74 −34 rbac/middleware.go
+0 −102 rbac/middleware_test.go
+14 −0 rbac/model.ini
+165 −38 rbac/objects.go
+45 −0 rbac/policies.yaml
+183 −0 rbac/policy.go
+236 −0 tests/middleware_test.go
+1 −1 upstream/controllers.go
+0 −28 upstream/events.go
+1 −32 upstream/suite_test.go
+2 −35 upstream/upstream_test.go
+3 −0 vars/vars.go

0 comments on commit 739c154

Please sign in to comment.