Documentation
¶
Index ¶
- type DataBackupReconciler
- func (r *DataBackupReconciler) ControllerName() string
- func (r *DataBackupReconciler) GetChartsDirectory() string
- func (r *DataBackupReconciler) GetOperationType() dataoperation.OperationType
- func (r *DataBackupReconciler) GetReleaseNameSpacedName(object client.Object) types.NamespacedName
- func (r *DataBackupReconciler) GetTargetDataset(object client.Object) (*v1alpha1.Dataset, error)
- func (r *DataBackupReconciler) Reconcile(context context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *DataBackupReconciler) RemoveTargetDatasetStatusInProgress(dataset *v1alpha1.Dataset)
- func (r *DataBackupReconciler) SetTargetDatasetStatusInProgress(dataset *v1alpha1.Dataset)
- func (r *DataBackupReconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error
- func (r *DataBackupReconciler) UpdateOperationApiStatus(object client.Object, opStatus *v1alpha1.OperationStatus) error
- func (r *DataBackupReconciler) UpdateStatusByHelmStatus(ctx runtime.ReconcileRequestContext, object client.Object, ...) (err error)
- func (r *DataBackupReconciler) UpdateStatusInfoForCompleted(object client.Object, infos map[string]string) error
- func (r *DataBackupReconciler) Validate(ctx runtime.ReconcileRequestContext, object client.Object) ([]v1alpha1.Condition, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataBackupReconciler ¶
type DataBackupReconciler struct {
Scheme *runtime.Scheme
*controllers.OperationReconciler
}
DataBackupReconciler reconciles a DataBackup object
func NewDataBackupReconciler ¶
func NewDataBackupReconciler(client client.Client, log logr.Logger, scheme *runtime.Scheme, recorder record.EventRecorder) *DataBackupReconciler
NewDataBackupReconciler returns a DataBackupReconciler
func (*DataBackupReconciler) ControllerName ¶ added in v0.9.0
func (r *DataBackupReconciler) ControllerName() string
func (*DataBackupReconciler) GetChartsDirectory ¶ added in v0.9.0
func (r *DataBackupReconciler) GetChartsDirectory() string
func (*DataBackupReconciler) GetOperationType ¶ added in v0.9.0
func (r *DataBackupReconciler) GetOperationType() dataoperation.OperationType
func (*DataBackupReconciler) GetReleaseNameSpacedName ¶ added in v0.9.0
func (r *DataBackupReconciler) GetReleaseNameSpacedName(object client.Object) types.NamespacedName
func (*DataBackupReconciler) GetTargetDataset ¶ added in v0.9.0
func (*DataBackupReconciler) Reconcile ¶
func (r *DataBackupReconciler) Reconcile(context context.Context, req ctrl.Request) (ctrl.Result, error)
+kubebuilder:rbac:groups=data.fluid.io,resources=databackups,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=data.fluid.io,resources=databackups/status,verbs=get;update;patch Reconcile reconciles the DataBackup object
func (*DataBackupReconciler) RemoveTargetDatasetStatusInProgress ¶ added in v0.9.0
func (r *DataBackupReconciler) RemoveTargetDatasetStatusInProgress(dataset *v1alpha1.Dataset)
func (*DataBackupReconciler) SetTargetDatasetStatusInProgress ¶ added in v0.9.0
func (r *DataBackupReconciler) SetTargetDatasetStatusInProgress(dataset *v1alpha1.Dataset)
func (*DataBackupReconciler) SetupWithManager ¶
func (r *DataBackupReconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error
SetupWithManager sets up the controller with the given controller manager
func (*DataBackupReconciler) UpdateOperationApiStatus ¶ added in v0.9.0
func (r *DataBackupReconciler) UpdateOperationApiStatus(object client.Object, opStatus *v1alpha1.OperationStatus) error
UpdateOperationStatus update the DataBackup Status
func (*DataBackupReconciler) UpdateStatusByHelmStatus ¶ added in v0.9.0
func (r *DataBackupReconciler) UpdateStatusByHelmStatus(ctx runtime.ReconcileRequestContext, object client.Object, opStatus *v1alpha1.OperationStatus) (err error)
UpdateStatusByHelmStatus update the operation status according to helm job status
func (*DataBackupReconciler) UpdateStatusInfoForCompleted ¶ added in v0.9.0
func (*DataBackupReconciler) Validate ¶ added in v0.9.0
func (r *DataBackupReconciler) Validate(ctx runtime.ReconcileRequestContext, object client.Object) ([]v1alpha1.Condition, error)
Click to show internal directories.
Click to hide internal directories.