Documentation
¶
Index ¶
- type ControllerManager
- func (cm *ControllerManager) FindContainer(containerID string) (*corev1.Pod, *corev1.ContainerStatus, bool)
- func (cm *ControllerManager) FindMirrorPod(hash string) (*corev1.Pod, error)
- func (cm *ControllerManager) FindPod(podID string) (*corev1.Pod, error)
- func (cm *ControllerManager) GetNamespace(name string) (*corev1.Namespace, error)
- func (cm *ControllerManager) GetNode() (*corev1.Node, error)
- func (cm *ControllerManager) ListNamespaces() ([]corev1.Namespace, error)
- func (cm *ControllerManager) Start(ctx context.Context)
- func (cm *ControllerManager) WaitCRDs(ctx context.Context, crds map[string]struct{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerManager ¶
type ControllerManager struct {
Manager ctrlManager.Manager
// contains filtered or unexported fields
}
ControllerManager is responsible for running controller-runtime controllers, and interacting with Kubernetes API server in general. If you need to interact with Kubernetes API server, this is the place to start.
func Get ¶
func Get() *ControllerManager
func (*ControllerManager) FindContainer ¶
func (cm *ControllerManager) FindContainer(containerID string) (*corev1.Pod, *corev1.ContainerStatus, bool)
func (*ControllerManager) FindMirrorPod ¶
func (cm *ControllerManager) FindMirrorPod(hash string) (*corev1.Pod, error)
func (*ControllerManager) FindPod ¶
func (cm *ControllerManager) FindPod(podID string) (*corev1.Pod, error)
func (*ControllerManager) GetNamespace ¶
func (cm *ControllerManager) GetNamespace(name string) (*corev1.Namespace, error)
func (*ControllerManager) ListNamespaces ¶
func (cm *ControllerManager) ListNamespaces() ([]corev1.Namespace, error)
func (*ControllerManager) Start ¶
func (cm *ControllerManager) Start(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.