Documentation ¶
Index ¶
- Constants
- func FindOpenshiftNetwork(ctx context.Context, dynamicClient dynamic.Interface) (*unstructured.Unstructured, error)
- func FindPod(ctx context.Context, k8sClientset clientset.Interface, labelSelector string) (*corev1.Pod, error)
- type ConnectionHandler
- type GatewayRouteController
- type GatewayRouteHandler
- func (h *GatewayRouteHandler) GetName() string
- func (h *GatewayRouteHandler) GetNetworkPlugins() []string
- func (h *GatewayRouteHandler) Init() error
- func (h *GatewayRouteHandler) RemoteEndpointCreated(endpoint *submarinerv1.Endpoint) error
- func (h *GatewayRouteHandler) RemoteEndpointRemoved(endpoint *submarinerv1.Endpoint) error
- func (h *GatewayRouteHandler) TransitionToGateway() error
- func (h *GatewayRouteHandler) TransitionToNonGateway() error
- type Handler
- func (ovn *Handler) GetName() string
- func (ovn *Handler) GetNetworkPlugins() []string
- func (ovn *Handler) Init() error
- func (ovn *Handler) LegacyCleanup()
- func (ovn *Handler) LocalEndpointCreated(endpoint *submV1.Endpoint) error
- func (ovn *Handler) LocalEndpointRemoved(endpoint *submV1.Endpoint) error
- func (ovn *Handler) LocalEndpointUpdated(endpoint *submV1.Endpoint) error
- func (ovn *Handler) RemoteEndpointCreated(endpoint *submV1.Endpoint) error
- func (ovn *Handler) RemoteEndpointRemoved(endpoint *submV1.Endpoint) error
- func (ovn *Handler) RemoteEndpointUpdated(endpoint *submV1.Endpoint) error
- func (ovn *Handler) Stop(uninstall bool) error
- func (ovn *Handler) TransitionToGateway() error
- func (ovn *Handler) TransitionToNonGateway() error
- type NonGatewayRouteController
- type NonGatewayRouteHandler
- func (h *NonGatewayRouteHandler) GetName() string
- func (h *NonGatewayRouteHandler) GetNetworkPlugins() []string
- func (h *NonGatewayRouteHandler) Init() error
- func (h *NonGatewayRouteHandler) RemoteEndpointCreated(endpoint *submarinerv1.Endpoint) error
- func (h *NonGatewayRouteHandler) RemoteEndpointRemoved(endpoint *submarinerv1.Endpoint) error
- func (h *NonGatewayRouteHandler) TransitionToGateway() error
- func (h *NonGatewayRouteHandler) TransitionToNonGateway() error
Constants ¶
View Source
const ( IPTCPOverHead = 40 ExpectedIPSECOverhead = 62 MSSFor1500MTU = 1500 - IPTCPOverHead - ExpectedIPSECOverhead )
TODO: if the #1022 workaround needs to be sustained for some time, instead of this we should be calculating the PMTU with a tool like tracepath between the gateway endpoints, reporting back so we can use such information here.
View Source
const (
OVNK8sMgmntIntfName = "ovn-k8s-mp0"
)
Variables ¶
This section is empty.
Functions ¶
func FindOpenshiftNetwork ¶ added in v0.16.0
func FindOpenshiftNetwork(ctx context.Context, dynamicClient dynamic.Interface) (*unstructured.Unstructured, error)
Types ¶
type ConnectionHandler ¶ added in v0.16.0
type ConnectionHandler struct {
// contains filtered or unexported fields
}
func NewConnectionHandler ¶ added in v0.16.0
func NewConnectionHandler(k8sClientset clientset.Interface, dynamicClient dynamic.Interface) *ConnectionHandler
type GatewayRouteController ¶ added in v0.16.0
type GatewayRouteController struct {
// contains filtered or unexported fields
}
func NewGatewayRouteController ¶ added in v0.16.0
func NewGatewayRouteController(config watcher.Config, connectionHandler *ConnectionHandler, namespace string, ) (*GatewayRouteController, error)
type GatewayRouteHandler ¶ added in v0.16.0
type GatewayRouteHandler struct { event.HandlerBase // contains filtered or unexported fields }
func NewGatewayRouteHandler ¶ added in v0.16.0
func NewGatewayRouteHandler(env *environment.Specification, smClientSet submarinerClientset.Interface) *GatewayRouteHandler
func (*GatewayRouteHandler) GetName ¶ added in v0.16.0
func (h *GatewayRouteHandler) GetName() string
func (*GatewayRouteHandler) GetNetworkPlugins ¶ added in v0.16.0
func (h *GatewayRouteHandler) GetNetworkPlugins() []string
func (*GatewayRouteHandler) Init ¶ added in v0.16.0
func (h *GatewayRouteHandler) Init() error
func (*GatewayRouteHandler) RemoteEndpointCreated ¶ added in v0.16.0
func (h *GatewayRouteHandler) RemoteEndpointCreated(endpoint *submarinerv1.Endpoint) error
func (*GatewayRouteHandler) RemoteEndpointRemoved ¶ added in v0.16.0
func (h *GatewayRouteHandler) RemoteEndpointRemoved(endpoint *submarinerv1.Endpoint) error
func (*GatewayRouteHandler) TransitionToGateway ¶ added in v0.16.0
func (h *GatewayRouteHandler) TransitionToGateway() error
func (*GatewayRouteHandler) TransitionToNonGateway ¶ added in v0.16.0
func (h *GatewayRouteHandler) TransitionToNonGateway() error
type Handler ¶
type Handler struct { event.HandlerBase // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler(env *environment.Specification, smClientSet clientset.Interface, k8sClientset *kubernetes.Clientset, dynamicClient dynamic.Interface, watcherConfig *watcher.Config, ) *Handler
func (*Handler) GetNetworkPlugins ¶
func (*Handler) LegacyCleanup ¶ added in v0.16.0
func (ovn *Handler) LegacyCleanup()
TODO need to be removed when the clusters are fully upgraded to new implementation.
func (*Handler) LocalEndpointCreated ¶
func (*Handler) LocalEndpointRemoved ¶
func (*Handler) LocalEndpointUpdated ¶
func (*Handler) RemoteEndpointCreated ¶
func (*Handler) RemoteEndpointRemoved ¶
func (*Handler) RemoteEndpointUpdated ¶
func (*Handler) TransitionToGateway ¶
func (*Handler) TransitionToNonGateway ¶
type NonGatewayRouteController ¶ added in v0.16.0
type NonGatewayRouteController struct {
// contains filtered or unexported fields
}
func NewNonGatewayRouteController ¶ added in v0.16.0
func NewNonGatewayRouteController(config watcher.Config, connectionHandler *ConnectionHandler, k8sClientSet clientset.Interface, namespace string, ) (*NonGatewayRouteController, error)
type NonGatewayRouteHandler ¶ added in v0.16.0
type NonGatewayRouteHandler struct { event.HandlerBase // contains filtered or unexported fields }
func NewNonGatewayRouteHandler ¶ added in v0.16.0
func NewNonGatewayRouteHandler(smClientSet submarinerClientset.Interface, k8sClientset *clientset.Clientset) *NonGatewayRouteHandler
func (*NonGatewayRouteHandler) GetName ¶ added in v0.16.0
func (h *NonGatewayRouteHandler) GetName() string
func (*NonGatewayRouteHandler) GetNetworkPlugins ¶ added in v0.16.0
func (h *NonGatewayRouteHandler) GetNetworkPlugins() []string
func (*NonGatewayRouteHandler) Init ¶ added in v0.16.0
func (h *NonGatewayRouteHandler) Init() error
func (*NonGatewayRouteHandler) RemoteEndpointCreated ¶ added in v0.16.0
func (h *NonGatewayRouteHandler) RemoteEndpointCreated(endpoint *submarinerv1.Endpoint) error
func (*NonGatewayRouteHandler) RemoteEndpointRemoved ¶ added in v0.16.0
func (h *NonGatewayRouteHandler) RemoteEndpointRemoved(endpoint *submarinerv1.Endpoint) error
func (*NonGatewayRouteHandler) TransitionToGateway ¶ added in v0.16.0
func (h *NonGatewayRouteHandler) TransitionToGateway() error
func (*NonGatewayRouteHandler) TransitionToNonGateway ¶ added in v0.16.0
func (h *NonGatewayRouteHandler) TransitionToNonGateway() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.