Finish optimizing qovery integration, add docs for it

This commit is contained in:
Tuan Dang
2023-09-19 14:43:20 +01:00
parent e3ef826f52
commit b6219e14f0
11 changed files with 16 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 971 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@@ -15,11 +15,11 @@ Prerequisites:
Obtain a Qovery API Token in Settings > API Token. Obtain a Qovery API Token in Settings > API Token.
![integrations qovery api token](../../images/integrations-qovery-api-token.png) ![integrations qovery api token](../../images/integrations/qovery/integrations-qovery-token.png)
Press on the Qovery tile and input your Qovery API TOken to grant Infisical access to your Qovery account. Press on the Qovery tile and input your Qovery API Token to grant Infisical access to your Qovery account.
![integrations qovery authorization](../../images/integrations-qovery-auth.png) ![integrations qovery authorization](../../images/integrations/qovery/integrations-qovery-auth.png)
<Info> <Info>
If this is your project's first cloud integration, then you'll have to grant If this is your project's first cloud integration, then you'll have to grant
@@ -32,8 +32,12 @@ Press on the Qovery tile and input your Qovery API TOken to grant Infisical acce
Select which Infisical environment secrets you want to sync to Qovery and press create integration to start syncing secrets. Select which Infisical environment secrets you want to sync to Qovery and press create integration to start syncing secrets.
![integrations Infisial settings](../../images/integrations-qovery-infisical.png) ![integrations qovery create](../../images/integrations/qovery/integrations-qovery-create-1.png)
Select your Qovery organization, project, and environment to which you want to sync secrets to. Next to that, select which scope you want secrets to (Application, Job, or Container). After you are done, hit "Create Integration." ![integrations qovery create](../../images/integrations/qovery/integrations-qovery-create-2.png)
![integrations Qovery settings](../../images/integrations-qovery-qovery.png) <Note>
Infisical supports syncing secrets to various Qovery scopes including applications, jobs, or containers.
</Note>
![integrations qovery settings](../../images/integrations/qovery/integrations-qovery.png)

View File

@@ -164,6 +164,8 @@ const fetchIntegrationAuthQoveryProjects = async ({
integrationAuthId: string; integrationAuthId: string;
orgId: string; orgId: string;
}) => { }) => {
if (orgId === "none") return [];
const { const {
data: { projects } data: { projects }
} = await apiRequest.get<{ projects: Project[] }>( } = await apiRequest.get<{ projects: Project[] }>(
@@ -185,6 +187,8 @@ const fetchIntegrationAuthQoveryEnvironments = async ({
integrationAuthId: string; integrationAuthId: string;
projectId: string; projectId: string;
}) => { }) => {
if (projectId === "none") return [];
const { const {
data: { environments } data: { environments }
} = await apiRequest.get<{ environments: Environment[] }>( } = await apiRequest.get<{ environments: Environment[] }>(
@@ -208,6 +212,8 @@ const fetchIntegrationAuthQoveryScopes = async ({
environmentId: string; environmentId: string;
scope: "job" | "application" | "container"; scope: "job" | "application" | "container";
}) => { }) => {
if (environmentId === "none") return [];
if (scope === "application") { if (scope === "application") {
const { const {
data: { apps } data: { apps }