Skip to content

Commit

Permalink
Tests tets
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanks committed Feb 7, 2025
1 parent 691ff3f commit f645b35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions controllers/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ func newUpgradeJobSpec(master *v1alpha1.CDAPMaster, name string, labels map[stri
s.SkipPreUpgradeFlag = false
}
s.SkipPreUpgrade = false

return s
}

Expand All @@ -619,6 +619,6 @@ func (s *VersionUpgradeJobSpec) SetPostUpgrade(isPostUpgrade bool) *VersionUpgra

func (s *VersionUpgradeJobSpec) SetSkipPreUpgrade(isPatchUpgrade bool) *VersionUpgradeJobSpec {
// If it is a patch revision and the flag is true, skip the pre upgrade job
s.SkipPreUpgrade = isPatchUpgrade && s.SkipPreUpgradeFlag
s.SkipPreUpgrade = false
return s
}
2 changes: 1 addition & 1 deletion controllers/version_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ var _ = Describe("Controller Suite", func() {
ImageToUse: curUIImage,
},
}
postJobSpec := buildPreUpgradeJobSpec(getPreUpgradeJobName(master.Status.UpgradeStartTimeMillis), master, emptyLabels, true)
postJobSpec := buildPreUpgradeJobSpec(getPreUpgradeJobName(master.Status.UpgradeStartTimeMillis), master, emptyLabels, false)
object, err := buildUpgradeJobObject(postJobSpec)
Expect(err).To(BeNil())

Expand Down

0 comments on commit f645b35

Please sign in to comment.