Documentation ¶
Overview ¶
Package controllers is a generated GoMock package.
Index ¶
- Constants
- func GetKubeClientSchemes(schemes *runtime.Scheme) *runtime.Scheme
- type AgentClusterReconciler
- func (r *AgentClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *AgentClusterReconciler) SetAgentClusterInstallRef(ctx context.Context, log logrus.FieldLogger, ...) (ctrl.Result, error)
- func (r *AgentClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
- type AgentMachineReconciler
- type MockRemoteClientHandler
- type MockRemoteClientHandlerMockRecorder
- type NodeProviderIDReconciler
- type RemoteClientHandler
Constants ¶
const (
AgentMachineFinalizerName = "agentmachine." + aiv1beta1.Group + "/deprovision"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentClusterReconciler ¶
AgentClusterReconciler reconciles a AgentCluster object
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 ¶
AgentMachineReconciler reconciles a AgentMachine object
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 ¶
func (m *MockRemoteClientHandler) EXPECT() *MockRemoteClientHandlerMockRecorder
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 ¶
func (r *NodeProviderIDReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
+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