fix: change the port ID definition in kubernetes.go file (#1515)

This commit is contained in:
AhmedGrati
2022-08-16 07:57:43 -04:00
committed by GitHub
parent 1b040dd299
commit 6512dd3dd4
7 changed files with 4 additions and 12 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ package kobject
import (
"path/filepath"
"strconv"
"time"
dockerCliTypes "github.com/docker/cli/cli/compose/types"
@@ -196,7 +197,7 @@ type Ports struct {
// ID returns an unique id for this port settings, to avoid conflict
func (port *Ports) ID() string {
return string(port.ContainerPort) + port.Protocol
return strconv.Itoa(int(port.ContainerPort)) + port.Protocol
}
// Volumes holds the volume struct of container