Skip to content

Commit b6cfe73

Browse files
Remove hardcoded instance profile for importIntegration mutation (#391)
* Remove hardcoded instance profile to use true default * Increment spectral version
1 parent 753a2f6 commit b6cfe73

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/spectral/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prismatic-io/spectral",
3-
"version": "10.14.0",
3+
"version": "10.15.0",
44
"description": "Utility library for building Prismatic connectors and code-native integrations",
55
"keywords": ["prismatic"],
66
"main": "dist/index.js",

packages/spectral/src/serverTypes/convertIntegration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ const codeNativeIntegrationYaml = <
213213
configPages,
214214
userLevelConfigPages,
215215
scopedConfigVars,
216-
instanceProfile = "Default Instance Profile",
216+
instanceProfile,
217217
componentRegistry = {},
218218
}: IntegrationDefinition<TInputs, TActionInputs, TPayload, TAllowsBranching, TResult>,
219219
referenceKey: string,
@@ -295,7 +295,7 @@ const codeNativeIntegrationYaml = <
295295
preprocessFlowConfig?.flowNameField,
296296
),
297297
flows: flows.map((flow) => convertFlow(flow, componentRegistry, referenceKey)),
298-
defaultInstanceProfile: instanceProfile,
298+
...(instanceProfile && { defaultInstanceProfile: instanceProfile }),
299299
configPages: [
300300
...convertConfigPages(configPages, false),
301301
...convertConfigPages(userLevelConfigPages, true),

packages/spectral/src/types/IntegrationDefinition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export type IntegrationDefinition<
7777
/** Scoped ConfigVars for this integration. */
7878
scopedConfigVars?: ScopedConfigVarMap;
7979
/** Instance Profile used for this integration.
80-
* @default "Default Instance Profile"
80+
* If not specified, the tenant's default Instance Profile will be used.
8181
*/
8282
instanceProfile?: string;
8383
/**

0 commit comments

Comments
 (0)