Skip to content
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

define Options type for (driver) options we pass as-is to runtime #467

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Sep 28, 2023

introduce Options as an explicit type for map[string]string driver options we pass as-is to container runtime

@ndeloof ndeloof requested review from milas, laurazard and glours and removed request for milas and laurazard September 28, 2023 15:04
@@ -979,18 +982,18 @@ type IPAMPool struct {
Subnet string `yaml:"subnet,omitempty" json:"subnet,omitempty"`
Gateway string `yaml:"gateway,omitempty" json:"gateway,omitempty"`
IPRange string `yaml:"ip_range,omitempty" json:"ip_range,omitempty"`
AuxiliaryAddresses map[string]string `yaml:"aux_addresses,omitempty" json:"aux_addresses,omitempty"`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder this one should be defined as a map[string]net.IPAddr and we rely on ParseIP for parsing and validation

Copy link
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ndeloof ndeloof merged commit 588d586 into compose-spec:master Oct 2, 2023
8 checks passed
@ndeloof ndeloof deleted the options_types branch October 2, 2023 10:12
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