Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 89269b5

Browse files
Skarlsophoban01
andauthored
Apply suggestions from code review
Co-authored-by: Piaras Hoban <[email protected]>
1 parent bc70bca commit 89269b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/v1alpha1/condition_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const (
1313
SnapshotGetFailedReason = "SnapshotGetFailed"
1414

1515
// AuthenticateGetFailedReason is used when the needed authentication does not exist.
16-
AuthenticateGetFailedReason = "AuthenticateGetFailed"
16+
CredentialsNotFoundReason = "CredentialsNotFound"
1717

1818
// GitRepositoryPushFailedReason is used when the needed pushing to a git repository failed.
1919
GitRepositoryPushFailedReason = "GitRepositoryPushFailed"

controllers/gitsync_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (r *GitSyncReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct
145145
Name: obj.Spec.AuthRef.Name,
146146
}, authSecret); err != nil {
147147
retErr = fmt.Errorf("failed to find authentication secret: %w", err)
148-
conditions.MarkFalse(obj, meta.ReadyCondition, v1alpha1.AuthenticateGetFailedReason, retErr.Error())
148+
conditions.MarkFalse(obj, meta.ReadyCondition, v1alpha1.CredentialsNotFoundReason, retErr.Error())
149149

150150
return ctrl.Result{}, retErr
151151
}

0 commit comments

Comments
 (0)