Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
b08f5f08
Unverified
Commit
b08f5f08
authored
Jan 16, 2025
by
Yann Hodique
Committed by
GitHub
Jan 16, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(kurtosis-devnet): expose private ports (#13789)
parent
0c940ad3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
deployment.go
kurtosis-devnet/pkg/descriptors/deployment.go
+3
-2
inspect.go
kurtosis-devnet/pkg/kurtosis/sources/inspect/inspect.go
+8
-0
No files found.
kurtosis-devnet/pkg/descriptors/deployment.go
View file @
b08f5f08
package
descriptors
type
PortInfo
struct
{
Host
string
`json:"host"`
Port
int
`json:"port"`
Host
string
`json:"host"`
Port
int
`json:"port"`
PrivatePort
int
`json:"private_port"`
}
// EndpointMap is a map of service names to their endpoints.
...
...
kurtosis-devnet/pkg/kurtosis/sources/inspect/inspect.go
View file @
b08f5f08
...
...
@@ -71,6 +71,14 @@ func (e *Inspector) ExtractData(ctx context.Context) (*InspectData, error) {
}
}
for
port
,
portSpec
:=
range
svcCtx
.
GetPrivatePorts
()
{
// avoid non-mapped ports, we shouldn't have to use them.
if
p
,
ok
:=
portMap
[
port
];
ok
{
p
.
PrivatePort
=
int
(
portSpec
.
GetNumber
())
portMap
[
port
]
=
p
}
}
if
len
(
portMap
)
!=
0
{
data
.
UserServices
[
svc
]
=
portMap
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment