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
-1
View File
@@ -90,7 +90,6 @@ func parseV1V2(files []string) (kobject.KomposeObject, error) {
func loadPorts(composePorts []string, expose []string) ([]kobject.Ports, error) {
kp := []kobject.Ports{}
exist := map[string]bool{}
for _, cp := range composePorts {
var hostIP string
-2
View File
@@ -222,7 +222,6 @@ func loadV3Volumes(volumes []types.ServiceVolumeConfig) []string {
// expose ports will be treated as TCP ports
func loadV3Ports(ports []types.ServicePortConfig, expose []string) []kobject.Ports {
komposePorts := []kobject.Ports{}
exist := map[string]bool{}
for _, port := range ports {
@@ -235,7 +234,6 @@ func loadV3Ports(ports []types.ServicePortConfig, expose []string) []kobject.Por
HostIP: "",
Protocol: strings.ToUpper(port.Protocol),
})
exist[cast.ToString(port.Target)+port.Protocol] = true
}