Skip to content

Commit

Permalink
fix(rules): add Grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 3, 2023
1 parent 8cc8a1d commit 4b8d5f7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ exports[`all > should match everything 1`] = `
"gitlab.ci",
"golang",
"googleanalytics",
"grafana",
"hashicorp_vault",
"helm",
"heroku",
Expand Down
8 changes: 8 additions & 0 deletions src/rules/app/grafana.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'grafana',
name: 'Grafana',
type: 'app',
dependencies: [{ type: 'docker', name: 'grafana/grafana-enterprise' }],
});
1 change: 1 addition & 0 deletions src/rules/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './caddy.js';
import './grafana.js';
import './httpd.js';
import './kibana.js';
import './nginx.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ exports[`docker > should match everything 1`] = `
"deno",
"docker",
"elasticsearch",
"grafana",
"hashicorp_vault",
"httpd",
"influxdb",
Expand Down Expand Up @@ -87,6 +88,11 @@ exports[`docker > should match everything 2`] = `
"elasticsearch",
"0.0.0",
],
[
"docker",
"grafana/grafana-enterprise",
"0.0.0",
],
[
"docker",
"httpd",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export type AllowedKeys =
| 'gitlab'
| 'golang'
| 'googleanalytics'
| 'grafana'
| 'hashicorp_vault'
| 'helm'
| 'heroku'
Expand Down

0 comments on commit 4b8d5f7

Please sign in to comment.