Skip to content

Added Address type #442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

TheDevtop
Copy link

@TheDevtop TheDevtop commented Jun 2, 2025

This type enables the plugin to properly handle secondary IP addresses.
As the current Podman API requires ref.

Origins

The DHCP server in my network prioritizes IPv6 over IPv4. When starting a podman container via the CNI (macvlan+dhcp) it would error json: cannot unmarshal object into Go struct field Inspect Network Settings.Network Settings.S econdaryIPv6Addresses of type string.

After some research I found out that Podman indeed returns a list of Address instead of a single string.

@TheDevtop
Copy link
Author

Additional info:

  • Podman version 5.5.0
  • Nomad Podman driver version 0.6.2
  • Nomad version 1.10.1
  • CNI version 1.7.1
  • CNI type macvlan
  • CNI ipam dhcp

@TheDevtop
Copy link
Author

TheDevtop commented Jun 6, 2025

Related to #401 and #402

@tgross
Copy link
Member

tgross commented Jun 9, 2025

Thanks for this PR @TheDevtop. But I'm going to close this in lieu of #402 as that has the correct JSON tags.

@tgross tgross closed this Jun 9, 2025
@github-project-automation github-project-automation bot moved this from Needs Triage to Done in Nomad - Community Issues Triage Jun 9, 2025
@TheDevtop TheDevtop deleted the bugfix/secondaryip branch June 10, 2025 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants