Skip to content

Commit

Permalink
fix(rules): add GKE
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Jun 29, 2023
1 parent d81b1c0 commit 272ee8e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const list: TechItem[] = [
{ key: 'gcp.pubsub', name: 'PubSub', type: 'messaging' },
{ key: 'gcp.gce', name: 'Compute Engine', type: 'hosting' },
{ key: 'gcp.gcs', name: 'Cloud Storage', type: 'hosting' },
{ key: 'gcp.gke', name: 'GKE', type: 'hosting' },
{ key: 'gcp.sql', name: 'Cloud SQL', type: 'db' },
{ key: 'gitlabci', name: 'Gitlab CI', type: 'ci' },
{ key: 'github', name: 'Github', type: 'tool' },
Expand Down
8 changes: 8 additions & 0 deletions src/rules/hosting/gcp.gke.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../rules.js';

register({
tech: 'gcp.gke',
dependencies: [
{ type: 'terraform.resource', name: 'google_container_cluster' },
],
});
1 change: 1 addition & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import './flyio.js';
import './gcp.cloudrun.js';
import './gcp.gce.js';
import './gcp.gcs.js';
import './gcp.gke.js';
import './gcp.js';
import './github.pages.js';
import './heroku.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ exports[`terraform (resource) > should match everything 1`] = `
"gcp.cloudrun",
"gcp.gce",
"gcp.gcs",
"gcp.gke",
"gcp.pubsub",
"gcp.sql",
"terraform",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export type AllowedKeys =
| 'gcp.cloudrun'
| 'gcp.gce'
| 'gcp.gcs'
| 'gcp.gke'
| 'gcp.pubsub'
| 'gcp.sql'
| 'gcp'
Expand Down

0 comments on commit 272ee8e

Please sign in to comment.