From b9c8802e142f852449eb0b1bee8a77f209dfda5e Mon Sep 17 00:00:00 2001 From: Samuel Bodin <1637651+bodinsamuel@users.noreply.github.com> Date: Sat, 21 Oct 2023 15:54:36 +0200 Subject: [PATCH] fix(rules): add Qovery Cluster --- src/rules/__snapshots__/index.test.ts.snap | 1 + src/rules/hosting/index.ts | 1 + src/rules/hosting/qovery.cluster.ts | 8 ++++++++ .../spec/terraform/__snapshots__/resource.test.ts.snap | 1 + src/types/techs.ts | 1 + 5 files changed, 12 insertions(+) create mode 100644 src/rules/hosting/qovery.cluster.ts diff --git a/src/rules/__snapshots__/index.test.ts.snap b/src/rules/__snapshots__/index.test.ts.snap index 0d05c01d..a2032d33 100644 --- a/src/rules/__snapshots__/index.test.ts.snap +++ b/src/rules/__snapshots__/index.test.ts.snap @@ -284,6 +284,7 @@ exports[`all > should match everything 1`] = ` "puppeteer", "python", "qovery", + "qovery.cluster", "qovery.database", "rabbitmq", "react", diff --git a/src/rules/hosting/index.ts b/src/rules/hosting/index.ts index 91845d0f..ca52605d 100644 --- a/src/rules/hosting/index.ts +++ b/src/rules/hosting/index.ts @@ -25,6 +25,7 @@ import './koyeb.js'; import './kubernetes.js'; import './mongodbatlas.js'; import './platformsh.js'; +import './qovery.cluster.js'; import './render.js'; import './replit.js'; import './sitecore.js'; diff --git a/src/rules/hosting/qovery.cluster.ts b/src/rules/hosting/qovery.cluster.ts new file mode 100644 index 00000000..c4fac51d --- /dev/null +++ b/src/rules/hosting/qovery.cluster.ts @@ -0,0 +1,8 @@ +import { register } from '../../register.js'; + +register({ + tech: 'qovery.cluster', + name: 'Qovery Cluster', + type: 'hosting', + dependencies: [{ type: 'terraform.resource', name: 'qovery_cluster' }], +}); diff --git a/src/rules/spec/terraform/__snapshots__/resource.test.ts.snap b/src/rules/spec/terraform/__snapshots__/resource.test.ts.snap index d534bf80..434f26d3 100644 --- a/src/rules/spec/terraform/__snapshots__/resource.test.ts.snap +++ b/src/rules/spec/terraform/__snapshots__/resource.test.ts.snap @@ -81,6 +81,7 @@ exports[`terraform (resource) > should match everything 1`] = ` "gcp.tasks", "jira", "qovery", + "qovery.cluster", "qovery.database", "terraform", ] diff --git a/src/types/techs.ts b/src/types/techs.ts index 1b0cc177..44a08ac8 100644 --- a/src/types/techs.ts +++ b/src/types/techs.ts @@ -303,6 +303,7 @@ export type AllowedKeys = | 'prismacloud' | 'puppeteer' | 'python' + | 'qovery.cluster' | 'qovery.database' | 'qovery' | 'rabbitmq'