cloudinit/system/flannel.go

18 lines
457 B
Go
Raw Normal View History

package system
import (
"github.com/coreos/coreos-cloudinit/config"
)
// flannel is a top-level structure which embeds its underlying configuration,
// config.Flannel, and provides the system-specific Unit().
type Flannel struct {
config.Flannel
}
// Units generates a Unit file drop-in for flannel, if any flannel options were
// configured in cloud-config
func (fl Flannel) Units() []Unit {
2014-11-25 14:00:53 +00:00
return dropinFromConfig(fl.Flannel, "flanneld.service")
}