Skip to content

Commit caa3e97

Browse files
Merge pull request #12662 from linode/staging
Release v1.148.0 - staging → master
2 parents 7df4088 + b1654bc commit caa3e97

File tree

403 files changed

+9303
-3550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

403 files changed

+9303
-3550
lines changed

docs/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,25 @@ List any change(s) relevant to the reviewer.
99
- ...
1010
- ...
1111

12+
### Scope 🚢
13+
14+
Upon production release, changes in this PR will be visible to:
15+
16+
- [ ] All customers
17+
- [ ] Some customers (e.g. in Beta or Limited Availability)
18+
- [ ] No customers / Not applicable
19+
1220
## Target release date 🗓️
1321

1422
Please specify a release date (and environment, if applicable) to guarantee timely review of this PR. If exact date is not known, please approximate and update it as needed.
1523

1624
## Preview 📷
1725

18-
**Include a screenshot or screen recording of the change.**
26+
**Include a screenshot `<img src="" />` or video `<video src="" />` of the change.**
1927

2028
:lock: Use the [Mask Sensitive Data](https://cloud.linode.com/profile/settings) setting for security.
2129

22-
:bulb: Use `<video src="" />` tag when including recordings in table.
30+
:bulb: For changes requiring multiple steps to validate, prefer a video for clarity.
2331

2432
| Before | After |
2533
| ------- | ------- |
@@ -78,7 +86,7 @@ Please specify a release date (and environment, if applicable) to guarantee time
7886

7987
</details>
8088

81-
---
89+
<!-- This content will not appear in the rendered Markdown
8290
8391
## Commit message and pull request title format standards
8492
@@ -98,4 +106,4 @@ Please specify a release date (and environment, if applicable) to guarantee time
98106
99107
**Example:** `feat: [M3-1234] - Allow user to view their login history`
100108
101-
---
109+
-->

packages/api-v4/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
## [2025-08-12] - v0.146.0
2+
3+
4+
### Added:
5+
6+
- ACLP: `string` type for `capabilityServiceTypeMapping` constant ([#12573](https://github.com/linode/manager/pull/12573))
7+
8+
### Changed:
9+
10+
- Update `LinodeIPsResponseIPV6` to include `vpc` array ([#12600](https://github.com/linode/manager/pull/12600))
11+
12+
### Removed:
13+
14+
- Unnecessary in-progress event.status type during earlier development ([#12512](https://github.com/linode/manager/pull/12512))
15+
- `getNodePoolBeta` in favor of `getNodePool` ([#12596](https://github.com/linode/manager/pull/12596))
16+
- `createNodePoolBeta` in favor of `createNodePool` ([#12596](https://github.com/linode/manager/pull/12596))
17+
- `updateNodePoolBeta` in favor of `updateNodePool` ([#12596](https://github.com/linode/manager/pull/12596))
18+
- `CreateNodePoolDataBeta` in favor of `CreateNodePoolData` ([#12596](https://github.com/linode/manager/pull/12596))
19+
- `UpdateNodePoolDataBeta` in favor of `UpdateNodePoolData` ([#12596](https://github.com/linode/manager/pull/12596))
20+
21+
### Upcoming Features:
22+
23+
- Add optional vpc_id and subnet_id fields to CreateKubeClusterPayload for LKE-E ([#12551](https://github.com/linode/manager/pull/12551))
24+
- Add validation to Create Stream POST request ([#12557](https://github.com/linode/manager/pull/12557))
25+
- Add GET API endpoints for Destinations ([#12559](https://github.com/linode/manager/pull/12559))
26+
- Remove the docs and costs from streams and destinations landing pages and stream create form ([#12572](https://github.com/linode/manager/pull/12572))
27+
- Add type and update cluster payload and interface to support optional stack_type field for LKE-E ([#12594](https://github.com/linode/manager/pull/12594))
28+
129
## [2025-07-29] - v0.145.0
230

331

packages/api-v4/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@linode/api-v4",
3-
"version": "0.145.0",
3+
"version": "0.146.0",
44
"homepage": "https://github.com/linode/manager/tree/develop/packages/api-v4",
55
"bugs": {
66
"url": "https://github.com/linode/manager/issues"

packages/api-v4/src/cloudpulse/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export interface DeleteAlertPayload {
365365
}
366366

367367
export const capabilityServiceTypeMapping: Record<
368-
MetricsServiceType,
368+
AlertServiceType | MetricsServiceType | string,
369369
AccountCapability
370370
> = {
371371
linode: 'Linodes',
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { BETA_API_ROOT } from '../constants';
2+
import Request, { setMethod, setParams, setURL, setXFilter } from '../request';
3+
4+
import type { Filter, ResourcePage as Page, Params } from '../types';
5+
import type { Destination } from './types';
6+
7+
/**
8+
* Returns all the information about a specified Destination.
9+
*
10+
* @param destinationId { number } The ID of the Destination to access.
11+
*
12+
*/
13+
export const getDestination = (destinationId: number) =>
14+
Request<Destination>(
15+
setURL(
16+
`${BETA_API_ROOT}/monitor/streams/destinations/${encodeURIComponent(destinationId)}`,
17+
),
18+
setMethod('GET'),
19+
);
20+
21+
/**
22+
* Returns a paginated list of Destinations.
23+
*
24+
*/
25+
export const getDestinations = (params?: Params, filter?: Filter) =>
26+
Request<Page<Destination>>(
27+
setURL(`${BETA_API_ROOT}/monitor/streams/destinations`),
28+
setMethod('GET'),
29+
setParams(params),
30+
setXFilter(filter),
31+
);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export * from './destinations';
2+
13
export * from './streams';
24

35
export * from './types';

packages/api-v4/src/datastream/streams.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { createStreamSchema } from '@linode/validation';
2+
13
import { BETA_API_ROOT } from '../constants';
24
import Request, {
35
setData,
@@ -41,7 +43,7 @@ export const getStreams = (params?: Params, filter?: Filter) =>
4143
*/
4244
export const createStream = (data: CreateStreamPayload) =>
4345
Request<Stream>(
44-
setData(data), // @TODO (DPS-34044) add validation schema
46+
setData(data, createStreamSchema),
4547
setURL(`${BETA_API_ROOT}/monitor/streams`),
4648
setMethod('POST'),
4749
);

packages/api-v4/src/datastream/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ export const destinationType = {
4444
export type DestinationType =
4545
(typeof destinationType)[keyof typeof destinationType];
4646

47-
export interface Destination {
47+
export interface Destination extends AuditData {
4848
details: DestinationDetails;
4949
id: number;
5050
label: string;
5151
type: DestinationType;
52+
version: string;
5253
}
5354

5455
export type DestinationDetails =
@@ -86,7 +87,7 @@ interface ClientCertificateDetails {
8687
type AuthenticationType = 'basic' | 'none';
8788

8889
interface Authentication {
89-
details: AuthenticationDetails;
90+
details?: AuthenticationDetails;
9091
type: AuthenticationType;
9192
}
9293

packages/api-v4/src/kubernetes/nodePools.ts

Lines changed: 5 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
nodePoolBetaSchema,
3-
nodePoolSchema,
4-
} from '@linode/validation/lib/kubernetes.schema';
1+
import { nodePoolSchema } from '@linode/validation/lib/kubernetes.schema';
52

63
import { API_ROOT, BETA_API_ROOT } from '../constants';
74
import Request, {
@@ -15,11 +12,8 @@ import Request, {
1512
import type { Filter, ResourcePage as Page, Params } from '../types';
1613
import type {
1714
CreateNodePoolData,
18-
CreateNodePoolDataBeta,
1915
KubeNodePoolResponse,
20-
KubeNodePoolResponseBeta,
2116
UpdateNodePoolData,
22-
UpdateNodePoolDataBeta,
2317
} from './types';
2418

2519
/**
@@ -36,7 +30,9 @@ export const getNodePools = (
3630
setMethod('GET'),
3731
setParams(params),
3832
setXFilter(filters),
39-
setURL(`${API_ROOT}/lke/clusters/${encodeURIComponent(clusterID)}/pools`),
33+
setURL(
34+
`${BETA_API_ROOT}/lke/clusters/${encodeURIComponent(clusterID)}/pools`,
35+
),
4036
);
4137

4238
/**
@@ -46,21 +42,6 @@ export const getNodePools = (
4642
*/
4743
export const getNodePool = (clusterID: number, nodePoolID: number) =>
4844
Request<KubeNodePoolResponse>(
49-
setMethod('GET'),
50-
setURL(
51-
`${API_ROOT}/lke/clusters/${encodeURIComponent(
52-
clusterID,
53-
)}/pools/${encodeURIComponent(nodePoolID)}`,
54-
),
55-
);
56-
57-
/**
58-
* getNodePoolBeta
59-
*
60-
* Returns a single node pool with additional beta fields
61-
*/
62-
export const getNodePoolBeta = (clusterID: number, nodePoolID: number) =>
63-
Request<KubeNodePoolResponseBeta>(
6445
setMethod('GET'),
6546
setURL(
6647
`${BETA_API_ROOT}/lke/clusters/${encodeURIComponent(
@@ -76,26 +57,11 @@ export const getNodePoolBeta = (clusterID: number, nodePoolID: number) =>
7657
*/
7758
export const createNodePool = (clusterID: number, data: CreateNodePoolData) =>
7859
Request<KubeNodePoolResponse>(
79-
setMethod('POST'),
80-
setURL(`${API_ROOT}/lke/clusters/${encodeURIComponent(clusterID)}/pools`),
81-
setData(data, nodePoolSchema),
82-
);
83-
84-
/**
85-
* createNodePool
86-
*
87-
* Adds a node pool to the specified cluster with beta fields.
88-
*/
89-
export const createNodePoolBeta = (
90-
clusterID: number,
91-
data: CreateNodePoolDataBeta,
92-
) =>
93-
Request<KubeNodePoolResponseBeta>(
9460
setMethod('POST'),
9561
setURL(
9662
`${BETA_API_ROOT}/lke/clusters/${encodeURIComponent(clusterID)}/pools`,
9763
),
98-
setData(data, nodePoolBetaSchema),
64+
setData(data, nodePoolSchema),
9965
);
10066

10167
/**
@@ -118,26 +84,6 @@ export const updateNodePool = (
11884
setData(data, nodePoolSchema),
11985
);
12086

121-
/**
122-
* updateNodePoolBeta
123-
*
124-
* Change the type, count, upgrade_strategy, or k8_version of a node pool
125-
*/
126-
export const updateNodePoolBeta = (
127-
clusterID: number,
128-
nodePoolID: number,
129-
data: Partial<UpdateNodePoolDataBeta>,
130-
) =>
131-
Request<KubeNodePoolResponseBeta>(
132-
setMethod('PUT'),
133-
setURL(
134-
`${BETA_API_ROOT}/lke/clusters/${encodeURIComponent(
135-
clusterID,
136-
)}/pools/${encodeURIComponent(nodePoolID)}`,
137-
),
138-
setData(data, nodePoolBetaSchema),
139-
);
140-
14187
/**
14288
* deleteNodePool
14389
*

0 commit comments

Comments
 (0)