Skip to content

Commit

Permalink
fixing lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Unnati Aggarwal committed Jul 25, 2024
1 parent f7fddb8 commit ea19992
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,6 @@ func main() {
if os.Getenv("ENABLE_WEBHOOKS") != "false" {
setupWebhooks(mgr)
}
if os.Getenv("ENABLE_WEBHOOKS") != "false" {
if err = (&infrastructurev1alpha2.LinodeObjectStorageBucket{}).SetupWebhookWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create webhook", "webhook", "LinodeObjectStorageBucket")
os.Exit(1)
}
}
// +kubebuilder:scaffold:builder

if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
Expand Down Expand Up @@ -281,7 +275,7 @@ func setupWebhooks(mgr manager.Manager) {
setupLog.Error(err, "unable to create webhook", "webhook", "LinodeVPC")
os.Exit(1)
}
if err = (&infrastructurev1alpha1.LinodeObjectStorageBucket{}).SetupWebhookWithManager(mgr); err != nil {
if err = (&infrastructurev1alpha2.LinodeObjectStorageBucket{}).SetupWebhookWithManager(mgr); err != nil {

Check warning on line 278 in cmd/main.go

View check run for this annotation

Codecov / codecov/patch

cmd/main.go#L278

Added line #L278 was not covered by tests
setupLog.Error(err, "unable to create webhook", "webhook", "LinodeObjectStorageBucket")
os.Exit(1)
}
Expand Down
1 change: 0 additions & 1 deletion controller/linodeobjectstoragebucket_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"

infrav1alpha2 "github.com/linode/cluster-api-provider-linode/api/v1alpha2"

"github.com/linode/cluster-api-provider-linode/cloud/scope"
"github.com/linode/cluster-api-provider-linode/cloud/services"
"github.com/linode/cluster-api-provider-linode/util"
Expand Down

0 comments on commit ea19992

Please sign in to comment.