Separate layers : Preference (#5296)

* Refactor preference package

* Unit tests

* Apply suggestions from code review

Co-authored-by: Parthvi Vala <pvala@redhat.com>

* Review

* Review from Dharmit

* Replace panic with LogErrorAndExit

* Remove preference from kclient/oc_server

* Remove preference.New from devfile

* Remove preference.New from kclient/WaitAndGetPodWithEvents

* Get prefClient from CreateOptions

* Parthvi review

Co-authored-by: Parthvi Vala <pvala@redhat.com>
This commit is contained in:
Philippe Martin
2022-01-10 16:00:53 +01:00
committed by GitHub
parent 5ccdc1c9e7
commit e63773cc15
56 changed files with 1455 additions and 1108 deletions

View File

@@ -55,7 +55,7 @@ func main() {
return
}
cfg, err := preference.New()
cfg, err := preference.NewClient()
if err != nil {
util.LogErrorAndExit(err, "")
}