Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusMessageScanRequestProcessing = "scanning is in progress" StatusMessageScanRequestSuccessful = "scan request submitted" StatusMessageScanRequestFailed = "scan request failed" StatusMessageInstallRequestFailed = "install request failed" StatusMessageInstallRequestProcessing = "installation is in progress" StatusMessageInstallRequestSuccessful = "install request submitted" )
Variables ¶
View Source
var LCIMRequestResultToString = map[commonv1alpha1.RequestResult]RequestResult{ commonv1alpha1.RequestResult_REQUEST_RESULT_UNSPECIFIED: "", commonv1alpha1.RequestResult_REQUEST_RESULT_SCHEDULED: RequestResultScheduled, commonv1alpha1.RequestResult_REQUEST_RESULT_SUCCESS: RequestResultSuccess, commonv1alpha1.RequestResult_REQUEST_RESULT_FAILURE: RequestResultFailure, }
View Source
var LCIMScanResultToString = map[commonv1alpha1.ScanResult]v1alpha1.ScanResult{ commonv1alpha1.ScanResult_SCAN_RESULT_UNSPECIFIED: "", commonv1alpha1.ScanResult_SCAN_RESULT_SUCCESS: v1alpha1.ScanSuccess, commonv1alpha1.ScanResult_SCAN_RESULT_FAILURE: v1alpha1.ScanFailure, }
Functions ¶
This section is empty.
Types ¶
type MachineReconciler ¶
type MachineReconciler struct { client.Client machinev1alpha1connect.MachineServiceClient Namespace string Horizon time.Duration Log logr.Logger Scheme *runtime.Scheme }
MachineReconciler reconciles a Machine object.
func (*MachineReconciler) SetupWithManager ¶
func (r *MachineReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type MachineTypeReconciler ¶
type MachineTypeReconciler struct { client.Client machinetypev1alpha1connect.MachineTypeServiceClient Horizon time.Duration Log logr.Logger Scheme *runtime.Scheme }
MachineTypeReconciler reconciles a MachineType object.
func (*MachineTypeReconciler) SetupWithManager ¶
func (r *MachineTypeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OnboardingReconciler ¶
type OnboardingReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme RequeuePeriod time.Duration ScanPeriod metav1.Duration }
OnboardingReconciler watches for OOB objects and creates corresponding MachineType and Machine objects.
func (*OnboardingReconciler) SetupWithManager ¶
func (r *OnboardingReconciler) SetupWithManager(mgr ctrl.Manager) error
type RequestResult ¶
type RequestResult string
const ( InstallScheduled = "Scheduled" InstallFailed = "Failed" RequestResultScheduled RequestResult = "Scheduled" RequestResultSuccess RequestResult = "Success" RequestResultFailure RequestResult = "Failure" )
func (RequestResult) IsFailure ¶
func (r RequestResult) IsFailure() bool
func (RequestResult) IsScheduled ¶
func (r RequestResult) IsScheduled() bool
func (RequestResult) IsSuccess ¶
func (r RequestResult) IsSuccess() bool
Click to show internal directories.
Click to hide internal directories.