Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## [2025-02-19] - v1.136.1

### Fixed:

- Uptime not displaying in Longview ([#11667](https://github.com/linode/manager/pull/11667))

## [2025-02-11] - v1.136.0


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1291,16 +1291,16 @@ describe('LKE cluster updates', () => {
});

it('can add labels and taints', () => {
const mockNewSimpleLabel = 'my-label-key: my-label-value';
const mockNewDNSLabel = 'my-label-key.io/app: my-label-value';
const mockNewSimpleLabel = 'my_label.-key: my_label.-value';
const mockNewDNSLabel = 'my_label-key.io/app: my_label.-value';
const mockNewTaint: Taint = {
key: 'my-taint-key',
value: 'my-taint-value',
key: 'my_taint.-key',
value: 'my_taint.-value',
effect: 'NoSchedule',
};
const mockNewDNSTaint: Taint = {
key: 'my-taint-key.io/app',
value: 'my-taint-value',
key: 'my_taint-key.io/app',
value: 'my_taint.-value',
effect: 'NoSchedule',
};
const mockNodePoolUpdated = nodePoolFactory.build({
Expand All @@ -1309,8 +1309,8 @@ describe('LKE cluster updates', () => {
nodes: mockNodes,
taints: [mockNewTaint, mockNewDNSTaint],
labels: {
'my-label-key': 'my-label-value',
'my-label-key.io/app': 'my-label-value',
'my_label-key': 'my_label.-value',
'my_label-key.io/app': 'my_label.-value',
},
});

Expand Down
2 changes: 1 addition & 1 deletion packages/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "linode-manager",
"author": "Linode",
"description": "The Linode Manager website",
"version": "1.136.0",
"version": "1.136.1",
"private": true,
"type": "module",
"bugs": {
Expand Down
46 changes: 23 additions & 23 deletions packages/manager/src/factories/longviewDisks.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Factory from 'src/factories/factoryProxy';

import {
Disk,
LongviewDisk,
LongviewCPU,
import type {
CPU,
LongviewSystemInfo,
LongviewNetworkInterface,
Disk,
InboundOutboundNetwork,
LongviewNetwork,
LongviewMemory,
LongviewCPU,
LongviewDisk,
LongviewLoad,
LongviewMemory,
LongviewNetwork,
LongviewNetworkInterface,
LongviewSystemInfo,
Uptime,
} from 'src/features/Longview/request.types';

Expand Down Expand Up @@ -38,25 +38,25 @@ export const diskFactory = Factory.Sync.makeFactory<Disk>({
childof: 0,
children: 0,
dm: 0,
isswap: 0,
mounted: 1,
reads: [mockStats[0]],
write_bytes: [mockStats[1]],
writes: [mockStats[2]],
fs: {
total: [mockStats[3]],
free: [mockStats[6]],
ifree: [mockStats[4]],
itotal: [mockStats[5]],
path: '/',
free: [mockStats[6]],
total: [mockStats[3]],
},
isswap: 0,
mounted: 1,
read_bytes: [mockStats[0]],
reads: [mockStats[0]],
write_bytes: [mockStats[1]],
writes: [mockStats[2]],
});

export const cpuFactory = Factory.Sync.makeFactory<CPU>({
system: [mockStats[7]],
wait: [mockStats[8]],
user: [mockStats[9]],
wait: [mockStats[8]],
});

export const longviewDiskFactory = Factory.Sync.makeFactory<LongviewDisk>({
Expand Down Expand Up @@ -117,15 +117,15 @@ export const longviewNetworkFactory = Factory.Sync.makeFactory<LongviewNetwork>(

export const LongviewMemoryFactory = Factory.Sync.makeFactory<LongviewMemory>({
Memory: {
swap: {
free: [mockStats[12]],
used: [mockStats[0]],
},
real: {
used: [mockStats[13]],
free: [mockStats[14]],
buffers: [mockStats[15]],
cache: [mockStats[16]],
free: [mockStats[14]],
used: [mockStats[13]],
},
swap: {
free: [mockStats[12]],
used: [mockStats[0]],
},
},
});
Expand All @@ -135,5 +135,5 @@ export const LongviewLoadFactory = Factory.Sync.makeFactory<LongviewLoad>({
});

export const UptimeFactory = Factory.Sync.makeFactory<Uptime>({
uptime: 84516.53,
Uptime: 84516.53,
});
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const IconSection = React.memo((props: Props) => {
props.longviewClientData?.SysInfo?.cpu?.type ??
'CPU information not available';

const uptime = props.longviewClientData?.uptime ?? null;
const uptime = props.longviewClientData?.Uptime ?? null;
const formattedUptime =
uptime !== null ? `Up ${formatUptime(uptime)}` : 'Uptime not available';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const LongviewClientHeader = enhanced(

const hostname =
longviewClientData.SysInfo?.hostname ?? 'Hostname not available';
const uptime = longviewClientData?.uptime ?? null;
const uptime = longviewClientData?.Uptime ?? null;
const formattedUptime =
uptime !== null ? `Up ${formatUptime(uptime)}` : 'Uptime not available';
const packages = longviewClientData?.Packages ?? null;
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/src/features/Longview/request.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export interface LastUpdated {
}

export interface Uptime {
uptime: number;
Uptime: number;
}

export interface LongviewPackage {
Expand Down
7 changes: 7 additions & 0 deletions packages/validation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2025-02-19] - v0.60.1

### Fixed:

- Inability to add LKE Node Pool Labels with underscore in key ([#11682](https://github.com/linode/manager/pull/11682))


## [2025-02-11] - v0.60.0


Expand Down
2 changes: 1 addition & 1 deletion packages/validation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linode/validation",
"version": "0.60.0",
"version": "0.60.1",
"description": "Yup validation schemas for use with the Linode APIv4",
"type": "module",
"main": "lib/index.cjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/validation/src/kubernetes.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const kubernetesControlPlaneACLPayloadSchema = object().shape({
const alphaNumericValidCharactersRegex = /^[a-zA-Z0-9]([a-zA-Z0-9-._]*[a-zA-Z0-9])?$/;

// DNS subdomain key (example.com/my-app)
const dnsKeyRegex = /^[a-zA-Z0-9]([a-zA-Z0-9-./]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?)*$/;
const dnsKeyRegex = /^[a-zA-Z0-9]([a-zA-Z0-9-._/]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?)*$/;

const MAX_DNS_KEY_TOTAL_LENGTH = 128;
const MAX_DNS_KEY_SUFFIX_LENGTH = 62;
Expand Down
Loading