diff options
Diffstat (limited to 'libpod/kube.go')
-rw-r--r-- | libpod/kube.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/kube.go b/libpod/kube.go index ee6c99af0..d47f47f1c 100644 --- a/libpod/kube.go +++ b/libpod/kube.go @@ -580,7 +580,8 @@ func ocicniPortMappingToContainerPort(portMappings []types.OCICNIPortMapping) ([ var protocol v1.Protocol switch strings.ToUpper(p.Protocol) { case "TCP": - protocol = v1.ProtocolTCP + // do nothing as it is the default protocol in k8s, there is no need to explicitly + // add it to the generated yaml case "UDP": protocol = v1.ProtocolUDP default: |