Skip to content

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

Merged
ndeloof merged 1 commit intocompose-spec:masterfrom
ndeloof:options_types
Oct 2, 2023
Merged

define Options type for (driver) options we pass as-is to runtime#467
ndeloof merged 1 commit intocompose-spec:masterfrom
ndeloof:options_types

Conversation

@ndeloof
Copy link
Copy Markdown
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

…r runtine

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof requested review from glours, laurazard and milas and removed request for laurazard and milas September 28, 2023 15:04
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
Copy Markdown
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
Copy Markdown
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
@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