mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Simplify pkg/devfile/adapters/... packages (#5914)
* Remove dependency on common.AdapterContext for sync.Adapter
* Simplify adapters.NewComponentAdapter
* NewComponentAdapter accepts kubernetes.KubernetesContext instead of interface{}
* Replace KubernetesContext with its only field Namespace
* Move the Push Interface and builders to the kubernetes.component package
* Move AdapterContext to kubernetes.component package
* Embeds component.New into NewKubernetesAdapter
* Move GetCommandsMap where it is used
* Move GetSyncFilesFromAttributes where it is used
* Move constants where they are used
* Move types to adapters package
* Update pkg/devfile/adapters/kubernetes/component/adapter.go
Co-authored-by: Armel Soro <armel@rm3l.org>
Co-authored-by: Armel Soro <armel@rm3l.org>
This commit is contained in:
@@ -82,3 +82,8 @@ mockgen -source=pkg/binding/interface.go \
|
||||
mockgen -source=pkg/binding/backend/interface.go \
|
||||
-package backend \
|
||||
-destination pkg/binding/backend/mock.go
|
||||
|
||||
|
||||
mockgen -source=pkg/sync/sync.go \
|
||||
-package mock \
|
||||
-destination pkg/sync/mock/sync.go
|
||||
|
||||
Reference in New Issue
Block a user