Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
Signed-off-by: Somtochi Onyekwere <[email protected]>
  • Loading branch information
somtochiama committed Nov 22, 2023
1 parent ac855d6 commit 79f3ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ func objectReconciled(kube client.Client, objKey client.ObjectKey, clientObject
}
}

// hasRevision returns checks that the reconciled revision (for Kustomization this is `.status.lastAttemptedRevision`
// and for GitRepository, it is stored in `.status.artifact.revision`) is the same as the expectedRev
// hasRevision checks that the reconciled revision (for Kustomization this is `.status.lastAttemptedRevision`
// and for Source APIs, it is stored in `.status.artifact.revision`) is the same as the expectedRev
func hasRevision(kind string, obj map[string]interface{}, expectedRev string) (bool, error) {
var rev string
switch kind {
Expand Down

0 comments on commit 79f3ad3

Please sign in to comment.