Files
odo/pkg/watch/interface.go
Philippe Martin e9c5f86563 Simplify devfile Kubernetes adapter (#6762)
* Get values from context

* Move Devfile param to WatchParams and biuld adapter only once

* Move pkg/devfile/adapters/kubernetes/* into pkg/dev/kubedev

* Rename Push to reconcile and split in 2 parts: components and innreloop

* Pass out ans errout as startOptions

* Embed StartOptions into PushParameters

* Embed StartOptions into WatchParameters

* Fix passing startoptions

* Deduplicate options (out, ...)

* Revert adding unwanted files

* Fix wait app ready
2023-04-25 05:13:19 -04:00

15 lines
641 B
Go

package watch
import (
"context"
)
type Client interface {
// WatchAndPush watches the component under the context directory and triggers Push if there are any changes
// It also listens on ctx's Done channel to trigger cleanup when indicated to do so
// componentStatus is a variable to store the status of the component, and that will be exchanged between
// parts of code (unfortunately, tthere is no place to store the status of the component in some Kubernetes resource
// as it is generally done for a Kubernetes resource)
WatchAndPush(ctx context.Context, parameters WatchParameters, componentStatus ComponentStatus) error
}