controllers

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package controllers is a generated GoMock package.

Index

Constants

View Source
const (
	AgentMachineFinalizerName = "agentmachine." + aiv1beta1.Group + "/deprovision"
)

Variables

This section is empty.

Functions

func GetKubeClientSchemes

func GetKubeClientSchemes(schemes *runtime.Scheme) *runtime.Scheme

Types

type AgentClusterReconciler

type AgentClusterReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logrus.FieldLogger
}

AgentClusterReconciler reconciles a AgentCluster object

func (*AgentClusterReconciler) Reconcile

func (r *AgentClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*AgentClusterReconciler) SetAgentClusterInstallRef

func (r *AgentClusterReconciler) SetAgentClusterInstallRef(ctx context.Context, log logrus.FieldLogger, clusterDeployment *hivev1.ClusterDeployment) (ctrl.Result, error)

func (*AgentClusterReconciler) SetupWithManager

func (r *AgentClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type AgentMachineReconciler

type AgentMachineReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logrus.FieldLogger
}

AgentMachineReconciler reconciles a AgentMachine object

func (*AgentMachineReconciler) Reconcile

func (r *AgentMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*AgentMachineReconciler) SetupWithManager

func (r *AgentMachineReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type MockRemoteClientHandler

type MockRemoteClientHandler struct {
	// contains filtered or unexported fields
}

MockRemoteClientHandler is a mock of RemoteClientHandler interface.

func NewMockRemoteClientHandler

func NewMockRemoteClientHandler(ctrl *gomock.Controller) *MockRemoteClientHandler

NewMockRemoteClientHandler creates a new mock instance.

func (*MockRemoteClientHandler) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRemoteClientHandler) GetRemoteClient

func (m *MockRemoteClientHandler) GetRemoteClient(ctx context.Context, secretNamespace string) (client.Client, error)

GetRemoteClient mocks base method.

type MockRemoteClientHandlerMockRecorder

type MockRemoteClientHandlerMockRecorder struct {
	// contains filtered or unexported fields
}

MockRemoteClientHandlerMockRecorder is the mock recorder for MockRemoteClientHandler.

func (*MockRemoteClientHandlerMockRecorder) GetRemoteClient

func (mr *MockRemoteClientHandlerMockRecorder) GetRemoteClient(ctx, secretNamespace interface{}) *gomock.Call

GetRemoteClient indicates an expected call of GetRemoteClient.

type NodeProviderIDReconciler

type NodeProviderIDReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logrus.FieldLogger
	RemoteClientHandler
}

NodeProviderIDReconciler reconciles a AgentMachine object

func (*NodeProviderIDReconciler) Reconcile

+kubebuilder:rbac:groups=capi-provider.agent-install.openshift.io,resources=agentmachines,verbs=get;list;watch +kubebuilder:rbac:groups=capi-provider.agent-install.openshift.io,resources=agentmachines/status,verbs=get

func (*NodeProviderIDReconciler) SetupWithManager

func (r *NodeProviderIDReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RemoteClientHandler

type RemoteClientHandler interface {
	GetRemoteClient(ctx context.Context, secretNamespace string) (client.Client, error)
}

func NewRemoteClient

func NewRemoteClient(localClient client.Client, scheme *runtime.Scheme) RemoteClientHandler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL