Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nesmabadr committed Sep 26, 2024
1 parent 9589540 commit 43d2619
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion internal/declarative/v2/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import (
"os"
"time"

"github.com/kyma-project/lifecycle-manager/api/shared"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
k8slabels "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/record"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/manager"

"github.com/kyma-project/lifecycle-manager/api/shared"
)

const (
Expand Down
6 changes: 4 additions & 2 deletions internal/remote/crd_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ type SyncCrdsUseCase struct {
}

func NewSyncCrdsUseCase(kcpClient client.Client, skrContextFactory SkrContextProvider,
cache *crd.Cache) SyncCrdsUseCase {
cache *crd.Cache,
) SyncCrdsUseCase {
if cache == nil {
return SyncCrdsUseCase{
kcpClient: kcpClient,
Expand Down Expand Up @@ -164,7 +165,8 @@ func (s *SyncCrdsUseCase) fetchCrdsAndUpdateKymaAnnotations(ctx context.Context,
}

func (s *SyncCrdsUseCase) fetchCrds(ctx context.Context, skrClient Client,
plural string) (*apiextensionsv1.CustomResourceDefinition, *apiextensionsv1.CustomResourceDefinition, error) {
plural string,
) (*apiextensionsv1.CustomResourceDefinition, *apiextensionsv1.CustomResourceDefinition, error) {
kcpCrdName := fmt.Sprintf("%s.%s", plural, v1beta2.GroupVersion.Group)
kcpCrd, ok := s.crdCache.Get(kcpCrdName)
if !ok {
Expand Down
3 changes: 2 additions & 1 deletion internal/remote/remote_catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ type Catalog interface {
}

func NewRemoteCatalogFromKyma(kcpClient client.Client, skrContextFactory SkrContextProvider,
remoteSyncNamespace string) *RemoteCatalog {
remoteSyncNamespace string,
) *RemoteCatalog {
force := true
return NewRemoteCatalog(kcpClient, skrContextFactory,
Settings{
Expand Down

0 comments on commit 43d2619

Please sign in to comment.