From 34c94308fc88d5597303ea89f9de5530b0774aa1 Mon Sep 17 00:00:00 2001 From: samir-tahir Date: Mon, 1 Apr 2024 15:43:43 +0100 Subject: [PATCH] lint --- internal/controller/githubapp_controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/controller/githubapp_controller.go b/internal/controller/githubapp_controller.go index 4aeb591..682de61 100644 --- a/internal/controller/githubapp_controller.go +++ b/internal/controller/githubapp_controller.go @@ -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 @@ -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) } @@ -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