Skip to content

Commit

Permalink
Merge pull request #479 from kingdonb/fix-commit-verification
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddeco committed Oct 29, 2021
2 parents d3ea648 + d400c8e commit 14cb2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/gitrepository_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (r *GitRepositoryReconciler) reconcile(ctx context.Context, repository sour
Namespace: repository.Namespace,
Name: repository.Spec.Verification.SecretRef.Name,
}
var secret *corev1.Secret
secret := &corev1.Secret{}
if err := r.Client.Get(ctx, publicKeySecret, secret); err != nil {
err = fmt.Errorf("PGP public keys secret error: %w", err)
return sourcev1.GitRepositoryNotReady(repository, sourcev1.VerificationFailedReason, err.Error()), err
Expand Down

0 comments on commit 14cb2a7

Please sign in to comment.