Documentation
¶
Index ¶
- type Config
- type NodeController
- type NodeControllerConfig
- type PodController
- func (s *PodController) DeletePodFromSource(ctx context.Context, srcPod *corev1.Pod) error
- func (s *PodController) DeletePodToSource(ctx context.Context, pod *corev1.Pod) (err error)
- func (s *PodController) Start(ctx context.Context) error
- func (s *PodController) SyncPodStatusFromSource(ctx context.Context, srcPod *corev1.Pod) error
- func (s *PodController) SyncPodToSource(ctx context.Context, pod *corev1.Pod) error
- type PodControllerConfig
- type Sublet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SubclusterName string NodeName string Client kubernetes.Interface SourceNodeName string SourceClient kubernetes.Interface SourceNamespace string DnsServers []string DnsSearches []string }
type NodeController ¶
type NodeController struct {
// contains filtered or unexported fields
}
func NewNodeController ¶
func NewNodeController(conf NodeControllerConfig) (*NodeController, error)
func (*NodeController) SyncNodeFromSource ¶
type NodeControllerConfig ¶
type NodeControllerConfig struct { NodeName string Client kubernetes.Interface SourceNodeName string SourceClient kubernetes.Interface }
type PodController ¶
type PodController struct {
// contains filtered or unexported fields
}
func NewPodController ¶
func NewPodController(conf PodControllerConfig) (*PodController, error)
func (*PodController) DeletePodFromSource ¶
func (*PodController) DeletePodToSource ¶
DeletePodToSource deletes the specified pod out of memory.
func (*PodController) SyncPodStatusFromSource ¶
func (*PodController) SyncPodToSource ¶
type PodControllerConfig ¶
type PodControllerConfig struct { SubclusterName string NodeName string Client kubernetes.Interface SourceNodeName string SourceClient kubernetes.Interface SourceNamespace string DnsServers []string DnsSearches []string }
Click to show internal directories.
Click to hide internal directories.