Skip to content

Commit

Permalink
Adding ip family (#46)
Browse files Browse the repository at this point in the history
* Adding ip family
  • Loading branch information
jdewinne authored May 21, 2024
1 parent 8c02172 commit f352380
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions src/clusters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ export async function createCluster(
maxNodeCount?: number,
instanceType?: string,
nodeGroups?: nodeGroup[],
tags?: tag[]
tags?: tag[],
ipFamily?: string
): Promise<Cluster> {
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(
Expand All @@ -99,7 +100,8 @@ export async function createClusterWithLicense(
maxNodeCount?: number,
instanceType?: string,
nodeGroups?: nodeGroup[],
tags?: tag[]
tags?: tag[],
ipFamily?: string
): Promise<Cluster> {
const http = await vendorPortalApi.client();

Expand Down Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/releases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f352380

Please sign in to comment.