Skip to content

Commit

Permalink
Fix lint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
draghuram authored and JerusJ committed Jan 28, 2020
1 parent af6413c commit c51f4a4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion kubedr/api/v1alpha1/backuplocation_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
// log is for logging in this package.
var backuplocationlog = logf.Log.WithName("backuplocation-resource")

// Configures the web hook with the manager.
// SetupWebhookWithManager configures the web hook with the manager.
func (r *BackupLocation) SetupWebhookWithManager(mgr ctrl.Manager) error {
return ctrl.NewWebhookManagedBy(mgr).
For(r).
Expand Down
4 changes: 2 additions & 2 deletions kubedr/controllers/backuplocation_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (r *BackupLocationReconciler) setStatus(backupLoc *kubedrv1alpha1.BackupLoc
}
}

// The main reconcile entry point called by the framework.
// Reconcile is the the main entry point called by the framework.
func (r *BackupLocationReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
ctx := context.Background()
log := r.Log.WithValues("backuplocation", req.NamespacedName)
Expand Down Expand Up @@ -265,7 +265,7 @@ func buildResticRepoInitPod(cr *kubedrv1alpha1.BackupLocation, log logr.Logger)
}, nil
}

// Hooks up this controller with the manager.
// SetupWithManager hooks up this controller with the manager.
func (r *BackupLocationReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
For(&kubedrv1alpha1.BackupLocation{}).
Expand Down
4 changes: 2 additions & 2 deletions kubedr/controllers/metadatabackuppolicy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (r *MetadataBackupPolicyReconciler) processSpec(policy *kubedrv1alpha1.Meta
// +kubebuilder:rbac:groups=kubedr.catalogicsoftware.com,resources=metadatabackuppolicies/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=batch,resources=cronjobs,verbs=create;get;list;update;patch;delete;watch
// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=create;get;list;update;patch;delete;watch
// The main reconcile entry point called by the framework.
// Reconcile is the the main entry point called by the framework.
func (r *MetadataBackupPolicyReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
ctx := context.Background()
log := r.Log.WithValues("metadatabackuppolicy", req.NamespacedName)
Expand Down Expand Up @@ -187,7 +187,7 @@ func (r *MetadataBackupPolicyReconciler) Reconcile(req ctrl.Request) (ctrl.Resul
return r.processSpec(&policy, req.Namespace)
}

// Hooks up this controller with the manager.
// SetupWithManager hooks up this controller with the manager.
func (r *MetadataBackupPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
For(&kubedrv1alpha1.MetadataBackupPolicy{}).
Expand Down
4 changes: 2 additions & 2 deletions kubedr/controllers/metadatabackuprecord_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type MetadataBackupRecordReconciler struct {
// +kubebuilder:rbac:groups=kubedr.catalogicsoftware.com,resources=metadatabackuprecords,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=kubedr.catalogicsoftware.com,resources=metadatabackuprecords/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=core,resources=pods,verbs=create;get;list;update;patch;delete;watch
// The main reconcile entry point called by the framework.
// Reconcile is the the main entry point called by the framework.
func (r *MetadataBackupRecordReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
ctx := context.Background()
log := r.Log.WithValues("metadatabackuprecord", req.NamespacedName)
Expand Down Expand Up @@ -211,7 +211,7 @@ func (r *MetadataBackupRecordReconciler) cleanupOldSnapDeletionPods(namespace st
}
}

// Hooks up this controller with the manager.
// SetupWithManager hooks up this controller with the manager.
func (r *MetadataBackupRecordReconciler) SetupWithManager(mgr ctrl.Manager) error {
if err := mgr.GetFieldIndexer().IndexField(&kubedrv1alpha1.MetadataBackupRecord{},
"policy", func(rawObj runtime.Object) []string {
Expand Down

0 comments on commit c51f4a4

Please # to comment.