Skip to content

Commit

Permalink
Ensure a Release exists for the custom build.version we deploy
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Squizzato <[email protected]>
  • Loading branch information
squizzi committed Sep 23, 2024
1 parent 062db0f commit d4f0344
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ func TestE2E(t *testing.T) {

var _ = BeforeSuite(func() {
By("building and deploying the controller-manager")
cmd := exec.Command("make", "dev-apply")
cmd := exec.Command("make", "set-hmc-version")
_, err := utils.Run(cmd)
Expect(err).NotTo(HaveOccurred())

cmd = exec.Command("make", "dev-apply")
_, err = utils.Run(cmd)
Expect(err).NotTo(HaveOccurred())

By("validating that the hmc-controller and CAPI provider controller is running and ready")
kc := kubeclient.NewFromLocal(internalutils.DefaultSystemNamespace)
Eventually(func() error {
Expand Down
9 changes: 8 additions & 1 deletion test/e2e/provider_aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ var _ = Describe("AWS Templates", Label("provider:cloud", "provider:aws"), Order

By("verifying CAPA controller is running and ready")
Eventually(func() error {
return verifyControllersUp(kc, managedcluster.ProviderAWS)
err := verifyControllersUp(standaloneClient, managedcluster.ProviderCAPI, managedcluster.ProviderAWS)
if err != nil {
_, _ = fmt.Fprintf(
GinkgoWriter, "[%s] controller validation failed: %v\n",
string(managedcluster.TemplateAWSHostedCP), err)
return err
}
return nil
}).WithTimeout(5 * time.Minute).WithPolling(10 * time.Second).Should(Succeed())
})

Expand Down

0 comments on commit d4f0344

Please sign in to comment.