Merge pull request #2179 from rhansen/swarm
fix: Partially revert "chore: Remove support for legacy swarm"
This commit is contained in:
commit
afd6544702
1 changed files with 8 additions and 0 deletions
|
@ -41,6 +41,14 @@
|
||||||
{{- $ip := "" }}
|
{{- $ip := "" }}
|
||||||
# networks:
|
# networks:
|
||||||
{{- range sortObjectsByKeysAsc $.container.Networks "Name" }}
|
{{- range sortObjectsByKeysAsc $.container.Networks "Name" }}
|
||||||
|
{{- /*
|
||||||
|
* TODO: Only ignore the "ingress" network for Swarm tasks (in case
|
||||||
|
* the user is not using Swarm mode and names a network "ingress").
|
||||||
|
*/}}
|
||||||
|
{{- if eq .Name "ingress" }}
|
||||||
|
# {{ .Name }} (ignored)
|
||||||
|
{{- continue }}
|
||||||
|
{{- end }}
|
||||||
{{- if and (not (index $.globals.networks .Name)) (not $.globals.networks.host) }}
|
{{- if and (not (index $.globals.networks .Name)) (not $.globals.networks.host) }}
|
||||||
# {{ .Name }} (unreachable)
|
# {{ .Name }} (unreachable)
|
||||||
{{- continue }}
|
{{- continue }}
|
||||||
|
|
Loading…
Reference in a new issue