Explorar o código

chore: Remove warning comment when port is not exposed

Exposing ports is largely deprecated because it doesn't actually do
anything in Docker.
Richard Hansen %!s(int64=2) %!d(string=hai) anos
pai
achega
2760ead490
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      nginx.tmpl

+ 0 - 3
nginx.tmpl

@@ -116,9 +116,6 @@ upstream {{ .Upstream }} {
     # Exposed ports: {{ $container.Addresses }}
     # Default virtual port: {{ $defaultPort }}
     # VIRTUAL_PORT: {{ $container.Env.VIRTUAL_PORT }}
-        {{- if not $address }}
-    # /!\ Virtual port not exposed
-        {{- end }}
         {{- range $knownNetwork := $networks }}
             {{- range $containerNetwork := sortObjectsByKeysAsc $container.Networks "Name" }}
                 {{- if (and (ne $containerNetwork.Name "ingress") (or (eq $knownNetwork.Name $containerNetwork.Name) (eq $knownNetwork.Name "host"))) }}