This commit is contained in:
Colin 2024-08-29 11:46:11 -04:00
parent 305f38a0ad
commit ac6e8a87c2
8 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -203,7 +203,7 @@ func parseJSONVolumeMounts(jsonStr string) []string {
parts := strings.Split(data, "\"")
source := parts[3]
destination := parts[7]
volumeMounts = append(volumeMounts, source+":"+destination)
volumeMounts = append(volumeMounts, fmt.Sprintf("%s:%s", source, destination))
}
}
return volumeMounts
@ -217,7 +217,7 @@ func parseJSONPorts(jsonStr string) []string {
parts := strings.Split(data, "\"")
hostPort := parts[3]
containerPort := strings.Split(parts[1], "/")[0]
ports = append(ports, hostPort+":"+containerPort)
ports = append(ports, fmt.Sprintf("%s:%s", hostPort, containerPort))
}
}
return ports