forked from LaconicNetwork/kompose
fix: change the port ID definition in kubernetes.go file (#1515)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user