mirror of https://github.com/k3s-io/k3s
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
703 B
24 lines
703 B
6 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"path/filepath"
|
||
|
|
||
|
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/meta/flannel"
|
||
|
"github.com/containernetworking/plugins/plugins/meta/portmap"
|
||
|
"github.com/docker/docker/pkg/reexec"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
os.Args[0] = filepath.Base(os.Args[0])
|
||
|
reexec.Register("host-local", hostlocal.Main)
|
||
|
reexec.Register("bridge", bridge.Main)
|
||
|
reexec.Register("flannel", flannel.Main)
|
||
|
reexec.Register("loopback", loopback.Main)
|
||
|
reexec.Register("portmap", portmap.Main)
|
||
|
reexec.Init()
|
||
|
}
|