summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrvashi Mohnani <umohnani@redhat.com>2021-09-30 12:50:34 -0400
committerUrvashi Mohnani <umohnani@redhat.com>2021-09-30 12:53:25 -0400
commita1dce3a0dfea48428cd07c016b9f3cf9a32978ff (patch)
tree300a6cc23b75d7c6e468caf25ed4353843ccc7a3
parent2a3c70fd9ce72bf619e7ad0bc28e2f0653657649 (diff)
downloadpodman-a1dce3a0dfea48428cd07c016b9f3cf9a32978ff.tar.gz
podman-a1dce3a0dfea48428cd07c016b9f3cf9a32978ff.tar.bz2
podman-a1dce3a0dfea48428cd07c016b9f3cf9a32978ff.zip
Add expose type map[uint16]string to description
Swagger-go doesn't generate the types correctly for some complicated structs. We are seeing this with the expose option for container create, it is showing up as any. Add a line to the description to highlight that the type is map[uint16]string. [NO TESTS NEEDED] Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
-rw-r--r--pkg/specgen/specgen.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/specgen/specgen.go b/pkg/specgen/specgen.go
index 7aa27487a..70b2aa1ef 100644
--- a/pkg/specgen/specgen.go
+++ b/pkg/specgen/specgen.go
@@ -411,7 +411,7 @@ type ContainerNetworkConfig struct {
// Expose is a number of ports that will be forwarded to the container
// if PublishExposedPorts is set.
// Expose is a map of uint16 (port number) to a string representing
- // protocol. Allowed protocols are "tcp", "udp", and "sctp", or some
+ // protocol i.e map[uint16]string. Allowed protocols are "tcp", "udp", and "sctp", or some
// combination of the three separated by commas.
// If protocol is set to "" we will assume TCP.
// Only available if NetNS is set to Bridge or Slirp, and