Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zreigz committed Sep 16, 2024
1 parent ff25f14 commit d8a949f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions cmd/agent/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ func registerKubeReconcilersOrDie(
setupLog.Error(err, "unable to create controller", "controller", "StackRun")
}

if err := (&controller.IngressReplicaReconciler{
Client: manager.GetClient(),
Scheme: manager.GetScheme(),
}).SetupWithManager(manager); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "IngressReplica")
}

rawConsoleUrl, _ := strings.CutSuffix(args.ConsoleUrl(), "/ext/gql")
if err := (&controller.VirtualClusterController{
Client: manager.GetClient(),
Expand Down
2 changes: 1 addition & 1 deletion pkg/manifests/template/helm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ var _ = Describe("Helm template", func() {
It("should successfully render the helm template", func() {
resp, err := NewHelm(dir).Render(svc, utilFactory)
Expect(err).NotTo(HaveOccurred())
Expect(len(resp)).To(Equal(12))
Expect(len(resp)).To(Equal(13))
})
})

Expand Down

0 comments on commit d8a949f

Please sign in to comment.