Skip to content

Commit fadf6de

Browse files
committed
add allocated ports
1 parent 1933fbe commit fadf6de

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

network.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ type PodNetwork struct {
3434

3535
// PodEndpoint describes an endpoint for a pod's container
3636
type PodEndpoint struct {
37-
Name string `json:"name,omitempty"`
38-
ContainerPort int `json:"containerPort,omitempty"`
39-
HostPort int `json:"hostPort,omitempty"`
40-
Protocol []string `json:"protocol,omitempty"`
41-
Labels map[string]string `json:"labels,omitempty"`
37+
Name string `json:"name,omitempty"`
38+
ContainerPort int `json:"containerPort,omitempty"`
39+
HostPort int `json:"hostPort,omitempty"`
40+
AllocatedHostPort int `json:"allocatedHostPort,omitempty"`
41+
Protocol []string `json:"protocol,omitempty"`
42+
Labels map[string]string `json:"labels,omitempty"`
4243
}
4344

4445
// NewPodNetwork creates an empty PodNetwork

0 commit comments

Comments
 (0)