Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samirtahir91 committed Apr 1, 2024
1 parent 01d30aa commit 34c9430
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/controller/githubapp_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func (r *GithubAppReconciler) generateOrUpdateAccessToken(ctx context.Context, g
return fmt.Errorf("failed after creating secret: %v", err)
}
// Restart the pods is required
if err := r.restartPods(ctx, githubApp, req); err != nil {
if err := r.restartPods(ctx, githubApp); err != nil {
return fmt.Errorf("failed to restart pods after after creating secret: %v", err)
}
return nil
Expand Down Expand Up @@ -432,7 +432,7 @@ func (r *GithubAppReconciler) generateOrUpdateAccessToken(ctx context.Context, g
return fmt.Errorf("failed after updating secret: %v", err)
}
// Restart the pods is required
if err := r.restartPods(ctx, githubApp, req); err != nil {
if err := r.restartPods(ctx, githubApp); err != nil {
return fmt.Errorf("failed to restart pods after updating secret: %v", err)
}

Expand Down Expand Up @@ -526,7 +526,7 @@ func generateAccessToken(appID int, installationID int, privateKey []byte) (stri
}

// Function to bounce pods as per `spec.restartPods.labels` in GithubApp (in the same namespace)
func (r *GithubAppReconciler) restartPods(ctx context.Context, githubApp *githubappv1.GithubApp, req ctrl.Request) error {
func (r *GithubAppReconciler) restartPods(ctx context.Context, githubApp *githubappv1.GithubApp) error {
l := log.FromContext(ctx)

// Check if restartPods field is defined
Expand Down

0 comments on commit 34c9430

Please sign in to comment.