Skip to content

Conversation

@thaJeztah
Copy link
Member

pkg/compose: defaultNetworkSettings: return early for unsupported features

pkg/compose: defaultNetworkSettings: slight refactor

  • use an intermediate serviceNetworks slice so that we don't have to call service.NetworksByPriority multiple times.
  • shift the primary network from the slice (if any), so that we can drop some checks for "additional networks"
  • group code related to setting up the primary network as first step, then append remaining networks.

What I did

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

thaJeztah and others added 7 commits February 10, 2026 13:49
Also update TestDefaultNetworkSettings:
Test that the network with the highest priority is returned as
"primary" network, and other networks as extra networks.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Format layer progress details with minimal efforts as new UI
does not render individual layers

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Format layer progress details with minimal efforts as new UI does
not render individual layers.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
…ture

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- use an intermediate serviceNetworks slice so that we don't have
  to call service.NetworksByPriority multiple times.
- shift the primary network from the slice (if any), so that
  we can drop some checks for "additional networks"
- group code related to setting up the primary network as first
  step, then append remaining networks.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants