Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanks committed Feb 12, 2025
1 parent 26ff5a4 commit 908efae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/version_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func handleVersionUpdate(master *v1alpha1.CDAPMaster, labels map[string]string,
// Let the current update complete if there is any
if isConditionTrue(master, updateStatus.Inprogress) {
log.Printf("Version update ingress. Continue... ")
return upgradeForBackend(master, labels, observed)
return upgradeForBackend(master, labels, observed, isPatchRevision)
}

if objs, versionUpdated, err := updateForUserInterface(master); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion controllers/version_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var _ = Describe("Controller Suite", func() {
Expect(compareVersion(high, low)).To(Equal(1))
}
})
It("Compare image versions in patch revision", func() {
It("Compare image versions in patch revision", func() {
imagePairs := []Pair{
Pair{"gcr.io/cdapio/cdap:6.0.0.0", "gcr.io/cdapio/cdap:6.0.0.1"},
Pair{"gcr.io/cdapio/cdap:6.0.0.0", "gcr.io/cdapio/cdap:6.0.0.3"},
Expand Down

0 comments on commit 908efae

Please sign in to comment.