mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Add kubeclient as dependency of the registry client Co-authored-by: Philippe Martin <phmartin@redhat.com> * Add GetRegistryList method to the kube client interface This is yet to be implemented. Co-authored-by: Philippe Martin <phmartin@redhat.com> * Implement GetRegistryList * adding test if devfileRegistryListCR is present in cluster Signed-off-by: anandrkskd <anandrkskd@gmail.com> * Unit tests (to be continued) * Add unit test cases against kclient#GetRegistryList() Co-authored-by: Philippe Martin <phmartin@redhat.com> * Ignore in-cluster registries with an empty URL This should ideally not happen if the registry operator is installed in the cluster (because it validates the URL to make sure it is reachable), but you never know ;-) * Update error message when trying to remove registry Registries might be found in the cluster. * Pass isSecure value to the registry handler * Make it possible to use in-cluster registries when calling 'odo registry --details' * Remove unused 'preferenceClient' from registry.getRegistryStacks * Handle in-cluster registries in 'odo init' non-interactive mode * Handle in-cluster registries in 'odo init' interactive mode * Add integration test for odo init --devfile-registry Signed-off-by: Parthvi Vala <pvala@redhat.com> * Use proxy when available Signed-off-by: Parthvi Vala <pvala@redhat.com> Co-authored-by: Armel Soro <armel@rm3l.org> * Make sure tests work even if the registry operator is installed in the cluster or if there are cluster-wide registry lists * Add tests for 'odo init' interactive mode * Remove useless CR file CRs are now dynamically created and applied from the tests * fixup! Add tests for 'odo init' interactive mode --------- Signed-off-by: anandrkskd <anandrkskd@gmail.com> Signed-off-by: Parthvi Vala <pvala@redhat.com> Co-authored-by: Philippe Martin <phmartin@redhat.com> Co-authored-by: anandrkskd <anandrkskd@gmail.com> Co-authored-by: Parthvi Vala <pvala@redhat.com>
19 lines
744 B
Go
19 lines
744 B
Go
package api
|
|
|
|
type PreferenceList struct {
|
|
Items []PreferenceItem `json:"items,omitempty"`
|
|
}
|
|
|
|
type PreferenceItem struct {
|
|
Name string `json:"name"`
|
|
Value interface{} `json:"value"` // The value set by the user, this will be nil if the user hasn't set it
|
|
Default interface{} `json:"default"` // default value of the preference if the user hasn't set the value
|
|
Type string `json:"type"` // the type of the preference, possible values int, string, bool
|
|
Description string `json:"description"` // The description of the preference
|
|
}
|
|
|
|
type PreferenceView struct {
|
|
Preferences []PreferenceItem `json:"preferences,omitempty"`
|
|
Registries []Registry `json:"registries,omitempty"`
|
|
}
|