Skip to content

Commit b3a3043

Browse files
avoid replacing app_protocol
1 parent b7dedb5 commit b3a3043

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/pkg/cli/compose/fixup.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ func fixupPostgresService(svccfg *composeTypes.ServiceConfig, provider client.Pr
246246
if port.Mode == Mode_INGRESS || port.Mode == "" {
247247
svccfg.Ports[i].Mode = Mode_HOST
248248
svccfg.Ports[i].Published = "" // ignore published port in host mode
249-
svccfg.Ports[i].AppProtocol = "" // ignore app_protocol in host mode
250249
}
251250
}
252251
}
@@ -316,7 +315,6 @@ func fixupRedisService(svccfg *composeTypes.ServiceConfig, provider client.Provi
316315
if port.Mode == Mode_INGRESS || port.Mode == "" {
317316
svccfg.Ports[i].Mode = Mode_HOST
318317
svccfg.Ports[i].Published = "" // ignore published port in host mode
319-
svccfg.Ports[i].AppProtocol = "" // ignore app_protocol in host mode
320318
}
321319
}
322320
}

0 commit comments

Comments
 (0)