Skip to content

Commit

Permalink
add allocated ports
Browse files Browse the repository at this point in the history
  • Loading branch information
harryge00 committed Dec 31, 2018
1 parent 1933fbe commit fadf6de
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions network.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ type PodNetwork struct {

// PodEndpoint describes an endpoint for a pod's container
type PodEndpoint struct {
Name string `json:"name,omitempty"`
ContainerPort int `json:"containerPort,omitempty"`
HostPort int `json:"hostPort,omitempty"`
Protocol []string `json:"protocol,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Name string `json:"name,omitempty"`
ContainerPort int `json:"containerPort,omitempty"`
HostPort int `json:"hostPort,omitempty"`
AllocatedHostPort int `json:"allocatedHostPort,omitempty"`
Protocol []string `json:"protocol,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
}

// NewPodNetwork creates an empty PodNetwork
Expand Down

0 comments on commit fadf6de

Please sign in to comment.