Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support grpc probe #4344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
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
Loading