mirror of
https://github.com/rancher/plugins.git
synced 2025-08-29 15:57:26 +00:00
Add macvlan to linux multicall binary
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
1255b64eed
commit
098cc198b7
@ -16,6 +16,7 @@ import (
|
||||
hostlocal "github.com/containernetworking/plugins/plugins/ipam/host-local"
|
||||
"github.com/containernetworking/plugins/plugins/main/bridge"
|
||||
"github.com/containernetworking/plugins/plugins/main/loopback"
|
||||
"github.com/containernetworking/plugins/plugins/main/macvlan"
|
||||
"github.com/containernetworking/plugins/plugins/meta/bandwidth"
|
||||
"github.com/containernetworking/plugins/plugins/meta/firewall"
|
||||
"github.com/containernetworking/plugins/plugins/meta/flannel"
|
||||
@ -30,6 +31,7 @@ func main() {
|
||||
reexec.Register("flannel", flannel.Main)
|
||||
reexec.Register("host-local", hostlocal.Main)
|
||||
reexec.Register("loopback", loopback.Main)
|
||||
reexec.Register("macvlan", macvlan.Main)
|
||||
reexec.Register("portmap", portmap.Main)
|
||||
if !reexec.Init() {
|
||||
_, _ = fmt.Fprintln(os.Stderr, bv.BuildString("plugins"))
|
||||
|
@ -12,7 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package main
|
||||
package macvlan
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
@ -426,7 +426,7 @@ func cmdDel(args *skel.CmdArgs) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func main() {
|
||||
func Main() {
|
||||
skel.PluginMain(cmdAdd, cmdCheck, cmdDel, version.All, bv.BuildString("macvlan"))
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package main
|
||||
package macvlan_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
@ -12,7 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package main
|
||||
package macvlan
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
Loading…
Reference in New Issue
Block a user