Documentation
¶
Index ¶
Constants ¶
View Source
const VPN = "vpn"
Variables ¶
This section is empty.
Functions ¶
func AddContainer ¶
func AddContainer(spec *v1.PodSpec, c *PodRouteConfig)
func RemoveContainer ¶
Types ¶
type PodHandler ¶
type PodHandler struct {
// contains filtered or unexported fields
}
func NewPodHandler ¶
func NewPodHandler(factory cmdutil.Factory, podInterface coreV1.PodInterface, info *resource.Info, config *PodRouteConfig) *PodHandler
func (*PodHandler) InjectVPNContainer ¶
func (h *PodHandler) InjectVPNContainer() error
func (*PodHandler) Rollback ¶
func (h *PodHandler) Rollback(reset bool) error
type PodRouteConfig ¶
type ServiceHandler ¶
type ServiceHandler struct {
// contains filtered or unexported fields
}
func NewServiceHandler ¶
func NewServiceHandler(factory cmdutil.Factory, serviceInterface coreV1.ServiceInterface, info *resource.Info, config *PodRouteConfig) *ServiceHandler
func (*ServiceHandler) InjectVPNContainer ¶
func (h *ServiceHandler) InjectVPNContainer() error
InjectVPNContainer try to find controllers using pod, using UnstructuredHandler to handler it, if can not find supported svcType, then delete it after backup
func (*ServiceHandler) Rollback ¶
func (h *ServiceHandler) Rollback(reset bool) error
type UnstructuredHandler ¶
type UnstructuredHandler struct {
// contains filtered or unexported fields
}
func NewUnstructuredHandler ¶
func NewUnstructuredHandler( factory cmdutil.Factory, info *runtimeresource.Info, config *PodRouteConfig, ) *UnstructuredHandler
func (*UnstructuredHandler) InjectVPNContainer ¶
func (h *UnstructuredHandler) InjectVPNContainer() error
InjectVPNContainer todo if can't find any pod with same label, needs to create a pod or not ?
func (*UnstructuredHandler) Rollback ¶
func (h *UnstructuredHandler) Rollback(reset bool) error
Click to show internal directories.
Click to hide internal directories.