Skip to content

Commit

Permalink
fix(rules): add HAProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 23, 2023
1 parent 14c5320 commit ca6bb32
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 @@ -194,6 +194,7 @@ exports[`all > should match everything 1`] = `
"golangcilint",
"googleanalytics",
"grafana",
"haproxy",
"hashicorp_vault",
"healthchecksio",
"helm",
Expand Down
8 changes: 8 additions & 0 deletions src/rules/app/haproxy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'haproxy',
name: 'HAProxy',
type: 'app',
dependencies: [{ type: 'docker', name: 'haproxy' }],
});
1 change: 1 addition & 0 deletions src/rules/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import './consul.js';
import './discourse.js';
import './grafana.js';
import './httpd.js';
import './haproxy.js';
import './kibana.js';
import './kong.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 @@ -38,6 +38,7 @@ exports[`docker > should match everything 1`] = `
"goacmelego",
"golangcilint",
"grafana",
"haproxy",
"hashicorp_vault",
"httpd",
"influxdb",
Expand Down Expand Up @@ -334,6 +335,11 @@ exports[`docker > should match everything 2`] = `
"grafana/grafana-enterprise",
"0.0.0",
],
[
"docker",
"haproxy",
"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 @@ -209,6 +209,7 @@ export type AllowedKeys =
| 'golangcilint'
| 'googleanalytics'
| 'grafana'
| 'haproxy'
| 'hashicorp_vault'
| 'healthchecksio'
| 'helm'
Expand Down

0 comments on commit ca6bb32

Please sign in to comment.