Skip to content

Commit

Permalink
fix: support grpc probe
Browse files Browse the repository at this point in the history
Signed-off-by: sekfung <[email protected]>
  • Loading branch information
sekfung committed Nov 19, 2024
1 parent 3eeabe8 commit 47c1e4a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ module.exports = {
// List > Edit YAML
// List > Re-create
// List > Delete
GRPC_PORT: 'GRPC Port',
};
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ module.exports = {
TCP_PORT: 'Comprobación de puerto TCP',
// List > Create > Storage Settings
MOUNT_PATH_IN_USE: 'El punto de montaje ya está en uso',
GRPC_PORT: 'Comprobación de puerto GRPC',
};
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ module.exports = {
TCP_PORT: 'TCP 端口檢查',
// List > Create > Storage Settings
MOUNT_PATH_IN_USE: '掛載路徑已使用,請輸入其他掛載路徑。',
GRPC_PORT: 'GRPC 端口檢查',
};
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ module.exports = {
TCP_PORT: 'TCP 端口',
// List > Create > Storage Settings
MOUNT_PATH_IN_USE: '挂载路径已被使用,请输入其他挂载路径。',
GRPC_PORT: 'GRPC 端口',
};
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ function ProbeRecord({ probe, title, tagType, noTime = false }: Props) {
} else if ('tcpSocket' in probe) {
probeType = 'TCP_PORT';
probeDetail = `Open socket on port ${probe.tcpSocket.port} (TCP)`;
} else if ('grpc' in probe) {
probeType = 'GRPC_PORT'
probeDetail = `Open grpc on port ${probe.grpc.port} (GRPC)`;
} else {
const { command = [] } = probe.exec;
probeType = 'COMMAND';
Expand Down

0 comments on commit 47c1e4a

Please sign in to comment.