0

Update karpenter private fargate subnet ids

by
Published Oct 17, 2025

Update karpenter private fargate subnet ids

Script qovery Verified

The script

Submitted by hugo697 Bun
Verified 235 days ago
1
//native
2
/**
3
 * Update karpenter private fargate subnet ids
4
 * Update karpenter private fargate subnet ids
5
 */
6
export async function main(auth: RT.Qovery, organizationId: string, clusterId: string, body: Body) {
7
	const url = new URL(
8
		`https://api.qovery.com/organization/${organizationId}/cluster/${clusterId}/karpenterPrivateSubnetIds`
9
	)
10

11
	const response = await fetch(url, {
12
		method: 'PUT',
13
		headers: {
14
			'Content-Type': 'application/json',
15
			Authorization: 'Token ' + auth.apiKey
16
		},
17
		body: JSON.stringify(body)
18
	})
19
	if (!response.ok) {
20
		const text = await response.text()
21
		throw new Error(`${response.status} ${text}`)
22
	}
23
	return await response.text()
24
}
25

26
/* eslint-disable */
27
/**
28
 * This file was automatically generated by json-schema-to-typescript.
29
 * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
30
 * and run json-schema-to-typescript to regenerate this file.
31
 */
32

33
export interface Body {
34
	eks_karpenter_fargate_subnets_zone_a_ids?: string[]
35
	eks_karpenter_fargate_subnets_zone_b_ids?: string[]
36
	eks_karpenter_fargate_subnets_zone_c_ids?: string[]
37
	[k: string]: unknown
38
}
39