Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
  • Loading branch information
brooke-hamilton committed Oct 7, 2024
1 parent baa66de commit c9c3f41
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/reconciler/deployment_reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func SetupDeploymentTest(t *testing.T) (*mockRadiusClient, client.Client) {
Scheme: scheme,
Controller: crconfig.Controller{
SkipNameValidation: boolPtr(true),
},
},

// Suppress metrics in tests to avoid conflicts.
Metrics: server.Options{
Expand Down
5 changes: 2 additions & 3 deletions pkg/controller/reconciler/recipe_reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ import (
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"
crconfig "sigs.k8s.io/controller-runtime/pkg/config"
"sigs.k8s.io/controller-runtime/pkg/client"
crconfig "sigs.k8s.io/controller-runtime/pkg/config"
"sigs.k8s.io/controller-runtime/pkg/metrics/server"
)


func SetupRecipeTest(t *testing.T) (*mockRadiusClient, client.Client) {
SkipWithoutEnvironment(t)

Expand All @@ -48,7 +47,7 @@ func SetupRecipeTest(t *testing.T) (*mockRadiusClient, client.Client) {
t.Cleanup(cancel)

mgr, err := ctrl.NewManager(config, ctrl.Options{
Scheme: scheme,
Scheme: scheme,
Controller: crconfig.Controller{
SkipNameValidation: boolPtr(true),
},
Expand Down
6 changes: 3 additions & 3 deletions pkg/controller/reconciler/shared_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ import (
"testing"
"time"

appsv1 "k8s.io/api/apps/v1"
v1 "github.com/radius-project/radius/pkg/armrpc/api/v1"
radappiov1alpha3 "github.com/radius-project/radius/pkg/controller/api/radapp.io/v1alpha3"
"github.com/radius-project/radius/pkg/corerp/api/v20231001preview"
"github.com/radius-project/radius/pkg/to"
"github.com/radius-project/radius/test/testcontext"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down Expand Up @@ -189,5 +189,5 @@ func makeDeployment(name types.NamespacedName) *appsv1.Deployment {
}

func boolPtr(b bool) *bool {
return &b
return &b
}
1 change: 0 additions & 1 deletion pkg/ucp/queue/provider/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ func initAPIServer(ctx context.Context, opt QueueProviderOptions) (queue.Client,
Scheme: scheme,
}


rc, err := runtimeclient.New(cfg, options)
if err != nil {
return nil, fmt.Errorf("failed to initialize APIServer client: %w", err)
Expand Down

0 comments on commit c9c3f41

Please sign in to comment.