Skip to content

Commit f352380

Browse files
authored
Adding ip family (#46)
* Adding ip family
1 parent 8c02172 commit f352380

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/clusters.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ export async function createCluster(
8181
maxNodeCount?: number,
8282
instanceType?: string,
8383
nodeGroups?: nodeGroup[],
84-
tags?: tag[]
84+
tags?: tag[],
85+
ipFamily?: string
8586
): Promise<Cluster> {
86-
return await createClusterWithLicense(vendorPortalApi, clusterName, k8sDistribution, k8sVersion, "", clusterTTL, diskGib, nodeCount, minNodeCount, maxNodeCount, instanceType, nodeGroups, tags);
87+
return await createClusterWithLicense(vendorPortalApi, clusterName, k8sDistribution, k8sVersion, "", clusterTTL, diskGib, nodeCount, minNodeCount, maxNodeCount, instanceType, nodeGroups, tags, ipFamily);
8788
}
8889

8990
export async function createClusterWithLicense(
@@ -99,7 +100,8 @@ export async function createClusterWithLicense(
99100
maxNodeCount?: number,
100101
instanceType?: string,
101102
nodeGroups?: nodeGroup[],
102-
tags?: tag[]
103+
tags?: tag[],
104+
ipFamily?: string
103105
): Promise<Cluster> {
104106
const http = await vendorPortalApi.client();
105107

@@ -135,6 +137,9 @@ export async function createClusterWithLicense(
135137
if (tags) {
136138
reqBody["tags"] = tags;
137139
}
140+
if (ipFamily) {
141+
reqBody["ip_family"] = ipFamily;
142+
}
138143

139144
const uri = `${vendorPortalApi.endpoint}/cluster`;
140145
const res = await http.post(uri, JSON.stringify(reqBody));

src/releases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export async function reportCompatibilityResult(vendorPortalApi: VendorPortalApi
304304
// 1. get the app id from the app slug
305305
const app = await getApplicationDetails(vendorPortalApi, appSlug);
306306

307-
// 2. promote the release
307+
// 2. report the compatibility result
308308
await reportCompatibilityResultByAppId(vendorPortalApi, app.id, releaseSequence, compatibilityResult);
309309
}
310310

0 commit comments

Comments
 (0)