Skip to content

Commit

Permalink
fix(rules): add some missing Terraform provider
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 4, 2023
1 parent c97479a commit b3dd1bc
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/rules/app/grafana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@ register({
tech: 'grafana',
name: 'Grafana',
type: 'app',
dependencies: [{ type: 'docker', name: 'grafana/grafana-enterprise' }],
dependencies: [
{ type: 'docker', name: 'grafana/grafana-enterprise' },

{
type: 'terraform',
name: 'registry.terraform.io/grafana/grafana',
},
],
});
4 changes: 4 additions & 0 deletions src/rules/db/clickhouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ register({
{ type: 'npm', name: /^@clickhouse\//, example: '@clickhouse/client' },
{ type: 'docker', name: 'clickhouse/clickhouse-server' },
{ type: 'golang', name: 'github.com/ClickHouse/clickhouse-go' },
{
type: 'terraform',
name: 'registry.terraform.io/ClickHouse/clickhouse',
},
],
});
4 changes: 4 additions & 0 deletions src/rules/db/couchbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ register({
{ type: 'docker', name: /couchbase/, example: 'couchbase:0.0.0' },
{ type: 'rust', name: 'couchbase' },
{ type: 'ruby', name: 'couchbase' },
{
type: 'terraform',
name: 'registry.terraform.io/couchbasecloud/couchbasecapella',
},
],
});
4 changes: 4 additions & 0 deletions src/rules/etl/airbyte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ register({
type: 'etl',
dependencies: [
{ type: 'docker', name: /^airbyte\//, example: 'airbyte/worker' },
{
type: 'terraform',
name: 'registry.terraform.io/airbytehq/airbyte',
},
],
});
5 changes: 4 additions & 1 deletion src/rules/messaging/apache_kafka.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ register({
tech: 'apache_kafka',
name: 'Apache Kafka',
type: 'db',
dependencies: [{ type: 'docker', name: 'bitnami/kafka' }],
dependencies: [
{ type: 'docker', name: 'bitnami/kafka' },
{ type: 'terraform', name: 'registry.terraform.io/confluentinc/confluent' },
],
});
4 changes: 4 additions & 0 deletions src/rules/saas/splunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ register({
tech: 'splunk',
name: 'Splunk',
type: 'saas',
dependencies: [
{ type: 'terraform', name: 'registry.terraform.io/splunk/splunk' },
{ type: 'terraform', name: 'registry.terraform.io/splunk/splunkconfig' },
],
});
6 changes: 6 additions & 0 deletions src/rules/spec/terraform/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

exports[`terraform (lockfile) > should match everything 1`] = `
[
"airbyte",
"alibabacloud",
"apache_kafka",
"auth0",
"aws",
"azure",
"clickhouse",
"cockroachdb",
"couchbase",
"datadog",
"elasticsearch",
"elasticstack",
Expand All @@ -15,6 +19,7 @@ exports[`terraform (lockfile) > should match everything 1`] = `
"gcp",
"github",
"gitlab",
"grafana",
"hashicorp_vault",
"helm",
"heroku",
Expand All @@ -30,6 +35,7 @@ exports[`terraform (lockfile) > should match everything 1`] = `
"slack",
"snowflake",
"snyk",
"splunk",
"terraform",
"vercel",
]
Expand Down

0 comments on commit b3dd1bc

Please sign in to comment.