Skip to content

Commit

Permalink
fix(rules): add Azure AKS
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 18, 2023
1 parent 395ee92 commit 6f2355a
Show file tree
Hide file tree
Showing 7 changed files with 44 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 @@ -64,6 +64,7 @@ exports[`all > should match everything 1`] = `
"aws.timestream",
"aws.translate",
"azure",
"azure.aks",
"azure.ci",
"betterstack",
"bigcommerce",
Expand Down
14 changes: 14 additions & 0 deletions src/rules/hosting/azure.aks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { register } from '../../register.js';

register({
tech: 'azure.aks',
name: 'Azure AKS',
type: 'hosting',
dependencies: [
{
type: 'terraform.resource',
name: /^azurerm_kubernetes_/,
example: 'azurerm_kubernetes_cluster',
},
],
});
4 changes: 4 additions & 0 deletions src/rules/hosting/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ register({
{ type: 'githubAction', name: 'azure/login' },
{ type: 'githubAction', name: 'azure/CLI' },
{ type: 'githubAction', name: 'azure/powershell' },
{ type: 'docker', name: 'bitnami/azure-cli' },
{ type: 'docker', name: 'cimg/azure' },
{ type: 'docker', name: 'webdevops/azure-devops-exporter' },
{ type: 'docker', name: 'webdevops/azure-metrics-exporter' },
],
});
1 change: 1 addition & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import './aws.js';
import './aws.lambda.js';
import './aws.lightsail.js';
import './azure.js';
import './azure.aks.js';
import './cloudflare.js';
import './cloudflare.pages.js';
import './cloudflare.workers.js';
Expand Down
21 changes: 21 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`docker > should match everything 1`] = `
"aws.dynamodb",
"aws.lambda",
"aws.s3",
"azure",
"caddy",
"clickhouse",
"couchbase",
Expand Down Expand Up @@ -125,6 +126,11 @@ exports[`docker > should match everything 2`] = `
"atlassian/jira-software",
"0.0.0",
],
[
"docker",
"bitnami/azure-cli",
"0.0.0",
],
[
"docker",
"bitnami/discourse",
Expand All @@ -150,6 +156,11 @@ exports[`docker > should match everything 2`] = `
"cassandra",
"0.0.0",
],
[
"docker",
"cimg/azure",
"0.0.0",
],
[
"docker",
"clickhouse/clickhouse-server",
Expand Down Expand Up @@ -365,6 +376,16 @@ exports[`docker > should match everything 2`] = `
"vault",
"0.0.0",
],
[
"docker",
"webdevops/azure-devops-exporter",
"0.0.0",
],
[
"docker",
"webdevops/azure-metrics-exporter",
"0.0.0",
],
[
"docker",
"zookeeper",
Expand Down
2 changes: 2 additions & 0 deletions src/rules/spec/terraform/__snapshots__/resource.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ exports[`terraform (resource) > should match everything 1`] = `
"aws.sns",
"aws.sqs",
"aws.timestream",
"azure",
"azure.aks",
"cloudflare",
"cloudflare.pages",
"cloudflare.workers",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export type AllowedKeys =
| 'aws.timestream'
| 'aws.translate'
| 'aws'
| 'azure.aks'
| 'azure.ci'
| 'azure'
| 'bash'
Expand Down

0 comments on commit 6f2355a

Please sign in to comment.