Skip to content

Commit

Permalink
fix more lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Mar 11, 2023
1 parent e6abd66 commit 1f4119f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions controllers/srlinux_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ var _ = Describe("Srlinux controller", func() {
By("Checking if the custom resource was successfully created")
Eventually(func() error {
found := &srlinuxv1.Srlinux{}

return k8sClient.Get(ctx, typeNamespaceName, found)
}, time.Minute, time.Second).Should(Succeed())

Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ var (
setupLog = ctrl.Log.WithName("setup") //nolint:gochecknoglobals
)

//nolint:wsl
func init() {
utilruntime.Must(clientgoscheme.AddToScheme(scheme))

utilruntime.Must(srlinuxv1.AddToScheme(scheme))
//+kubebuilder:scaffold:scheme //nolint:wsl
//+kubebuilder:scaffold:scheme
}

func main() { //nolint:funlen
Expand Down

0 comments on commit 1f4119f

Please sign in to comment.