Skip to content

Commit b00625b

Browse files
author
Paulo Gomes
committed
Remove redundant repoAccess
Signed-off-by: Paulo Gomes <[email protected]>
1 parent 32b8e78 commit b00625b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

controllers/imageupdateautomation_controller.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ func (r *ImageUpdateAutomationReconciler) Reconcile(ctx context.Context, req ctr
247247
}
248248
}()
249249

250-
// FIXME use context with deadline for at least the following ops
251-
252250
debuglog.Info("attempting to clone git repository", "gitrepository", originName, "ref", ref, "working", tmp)
253251

254252
authOpts, err := r.getAuthOpts(ctx, &origin)
@@ -339,7 +337,6 @@ func (r *ImageUpdateAutomationReconciler) Reconcile(ctx context.Context, req ctr
339337
debuglog.Info("ran updates to working dir", "working", tmp)
340338

341339
var statusMessage string
342-
343340
var signingEntity *openpgp.Entity
344341
if gitSpec.Commit.SigningKey != nil {
345342
if signingEntity, err = r.getSigningEntity(ctx, auto); err != nil {
@@ -501,11 +498,6 @@ func (r *ImageUpdateAutomationReconciler) automationsForImagePolicy(obj client.O
501498
return reqs
502499
}
503500

504-
type repoAccess struct {
505-
auth *git.AuthOptions
506-
url string
507-
}
508-
509501
func (r *ImageUpdateAutomationReconciler) getAuthOpts(ctx context.Context, repository *sourcev1.GitRepository) (*git.AuthOptions, error) {
510502
var data map[string][]byte
511503
if repository.Spec.SecretRef != nil {

0 commit comments

Comments
 (0)