From f352380d2bb7e5b081e3ebcc79ffedfa01d16835 Mon Sep 17 00:00:00 2001 From: Josh De Winne Date: Mon, 20 May 2024 20:42:03 -0700 Subject: [PATCH] Adding ip family (#46) * Adding ip family --- src/clusters.ts | 11 ++++++++--- src/releases.ts | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/clusters.ts b/src/clusters.ts index 45dd401..f1c340a 100644 --- a/src/clusters.ts +++ b/src/clusters.ts @@ -81,9 +81,10 @@ export async function createCluster( maxNodeCount?: number, instanceType?: string, nodeGroups?: nodeGroup[], - tags?: tag[] + tags?: tag[], + ipFamily?: string ): Promise { - return await createClusterWithLicense(vendorPortalApi, clusterName, k8sDistribution, k8sVersion, "", clusterTTL, diskGib, nodeCount, minNodeCount, maxNodeCount, instanceType, nodeGroups, tags); + return await createClusterWithLicense(vendorPortalApi, clusterName, k8sDistribution, k8sVersion, "", clusterTTL, diskGib, nodeCount, minNodeCount, maxNodeCount, instanceType, nodeGroups, tags, ipFamily); } export async function createClusterWithLicense( @@ -99,7 +100,8 @@ export async function createClusterWithLicense( maxNodeCount?: number, instanceType?: string, nodeGroups?: nodeGroup[], - tags?: tag[] + tags?: tag[], + ipFamily?: string ): Promise { const http = await vendorPortalApi.client(); @@ -135,6 +137,9 @@ export async function createClusterWithLicense( if (tags) { reqBody["tags"] = tags; } + if (ipFamily) { + reqBody["ip_family"] = ipFamily; + } const uri = `${vendorPortalApi.endpoint}/cluster`; const res = await http.post(uri, JSON.stringify(reqBody)); diff --git a/src/releases.ts b/src/releases.ts index c1e50ca..00a9624 100644 --- a/src/releases.ts +++ b/src/releases.ts @@ -304,7 +304,7 @@ export async function reportCompatibilityResult(vendorPortalApi: VendorPortalApi // 1. get the app id from the app slug const app = await getApplicationDetails(vendorPortalApi, appSlug); - // 2. promote the release + // 2. report the compatibility result await reportCompatibilityResultByAppId(vendorPortalApi, app.id, releaseSequence, compatibilityResult); }