fix: requested changes

This commit is contained in:
Daniel Hougaard
2024-12-16 15:32:38 +01:00
parent 0366506213
commit 2ac110f00e
7 changed files with 61 additions and 49 deletions
+1 -2
View File
@@ -1126,8 +1126,7 @@ export const INTEGRATION = {
shouldAutoRedeploy: "Used by Render to trigger auto deploy.",
secretGCPLabel: "The label for GCP secrets.",
secretAWSTag: "The tags for AWS secrets.",
azureUseLabels:
"If enabled, each secret will be given a label that represents which Infisical environment they belong to.",
azureLabel: "Define which label to assign to secrets created in Azure App Configuration.",
githubVisibility:
"Define where the secrets from the Github Integration should be visible. Option 'selected' lets you directly define which repositories to sync secrets to.",
githubVisibilityRepoIds:
@@ -422,9 +422,9 @@ const syncSecretsAzureAppConfig = async ({
})
},
{
...(metadata.azureUseLabels && {
...(metadata.azureLabel && {
params: {
label: integration.environment.slug
label: metadata.azureLabel
}
}),
@@ -447,9 +447,9 @@ const syncSecretsAzureAppConfig = async ({
headers: {
Authorization: `Bearer ${accessToken}`
},
...(metadata.azureUseLabels && {
...(metadata.azureLabel && {
params: {
label: integration.environment.slug
label: metadata.azureLabel
}
}),
// we force IPV4 because docker setup fails with ipv6
@@ -35,7 +35,7 @@ export const IntegrationMetadataSchema = z.object({
.optional()
.describe(INTEGRATION.CREATE.metadata.secretAWSTag),
azureUseLabels: z.boolean().optional().describe(INTEGRATION.CREATE.metadata.azureUseLabels),
azureLabel: z.string().optional().describe(INTEGRATION.CREATE.metadata.azureLabel),
githubVisibility: z
.union([z.literal("selected"), z.literal("private"), z.literal("all")])