Skip to content

Commit

Permalink
add configv1 to test scheme
Browse files Browse the repository at this point in the history
Signed-off-by: chiragkyal <[email protected]>
  • Loading branch information
chiragkyal committed Sep 25, 2024
1 parent 03dfa5c commit 3d5641f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

configv1 "github.com/openshift/api/config/v1"
albo "github.com/openshift/aws-load-balancer-operator/api/v1"
albc "github.com/openshift/aws-load-balancer-operator/pkg/controllers/awsloadbalancercontroller"
//+kubebuilder:scaffold:imports
Expand Down Expand Up @@ -82,6 +83,9 @@ var _ = BeforeSuite(func() {
err = cco.Install(scheme.Scheme)
Expect(err).NotTo(HaveOccurred())

err = configv1.Install(scheme.Scheme)
Expect(err).NotTo(HaveOccurred())

//+kubebuilder:scaffold:scheme

k8sClient, err = client.New(cfg, client.Options{Scheme: scheme.Scheme})
Expand Down

0 comments on commit 3d5641f

Please sign in to comment.