Documentation ¶
Index ¶
Constants ¶
View Source
const ( SubnetSet = "subnets" LocalPodSet = "local-pod-ip-nat" IPSetPrefix = "ovn" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { BindSocket string OvsSocket string KubeConfigFile string KubeClient kubernetes.Interface NodeName string ServiceClusterIPRange string }
Configuration is the daemon conf
func ParseFlags ¶
func ParseFlags() (*Configuration, error)
ParseFlags will parse cmd args then init kubeClient and configuration TODO: validate configuration
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller watch pod and namespace changes to update iptables, ipset and ovs qos
func NewController ¶
func NewController(config *Configuration, informerFactory informers.SharedInformerFactory) (*Controller, error)
NewController init a daemon controller
func (*Controller) Run ¶
func (c *Controller) Run(stopCh <-chan struct{}) error
Run starts controller
Click to show internal directories.
Click to hide internal directories.