k8snetworkplumbingwg / network-attachment-definition-client

A Golang Kubernetes client
Apache License 2.0
12 stars 37 forks source link

Comply with de-facto standard for multiple interfaces single ADD request #70

Closed maiqueb closed 1 month ago

maiqueb commented 1 month ago

The de-facto standard says that only a single interface can report the default knob enabled.

Thus, this commit changes the code to assert that behavior when multiple interfaces are passed.

It only implements the part of the proposal where we indicate that if multiple interfaces are passed for the default network, only the first of them is marked as the default.

A follow-up PR will handle the default route premise.

Fixes: #69

maiqueb commented 1 month ago

/cc @dougbtv