Skip to content

Commit

Permalink
Web: Add EC2 name when listing instances in Discover flow (#33179)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoandredinis committed Oct 10, 2023
1 parent aed761f commit b6825b5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ export const Ec2InstanceList = ({
);
},
},
{
altKey: 'name',
headerText: 'Name',
render: ({ labels, ec2InstanceExists }) => (
<Cell disabledText={disabledText} disabled={ec2InstanceExists}>
{labels.find(label => label.name === 'Name')?.value}
</Cell>
),
},
{
key: 'hostname',
headerText: 'Hostname',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,26 @@ const ec2InstancesResponse = [
subnetId: 'test',
},
},
{
id: 'ec2-instance-5',
kind: 'node',
clusterId: 'cluster',
hostname: 'ec2-hostname-5',
tags: [
{ name: 'instance', value: 'ec2-5' },
{ name: 'Name', value: 'My EC2 Box' },
],
addr: 'ec2.5.com',
tunnel: false,
subKind: 'openssh-ec2-ice',
sshLogins: ['test'],
aws: {
accountId: 'test-account',
instanceId: 'instance-ec2-5',
region: 'us-west-1',
vpcId: 'test',
integration: 'test',
subnetId: 'test',
},
},
];

0 comments on commit b6825b5

Please sign in to comment.