forked from redhat-developer/odo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically use in-cluster Devfile registries if any (redhat-develo…
…per#6622) * Add kubeclient as dependency of the registry client Co-authored-by: Philippe Martin <[email protected]> * Add GetRegistryList method to the kube client interface This is yet to be implemented. Co-authored-by: Philippe Martin <[email protected]> * Implement GetRegistryList * adding test if devfileRegistryListCR is present in cluster Signed-off-by: anandrkskd <[email protected]> * Unit tests (to be continued) * Add unit test cases against kclient#GetRegistryList() Co-authored-by: Philippe Martin <[email protected]> * 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 <[email protected]> * Use proxy when available Signed-off-by: Parthvi Vala <[email protected]> Co-authored-by: Armel Soro <[email protected]> * 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 <[email protected]> Signed-off-by: Parthvi Vala <[email protected]> Co-authored-by: Philippe Martin <[email protected]> Co-authored-by: anandrkskd <[email protected]> Co-authored-by: Parthvi Vala <[email protected]>
- Loading branch information
1 parent
1e834d8
commit 0817608
Showing
29 changed files
with
2,275 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
package api | ||
|
||
import "github.com/redhat-developer/odo/pkg/preference" | ||
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 []preference.PreferenceItem `json:"preferences,omitempty"` | ||
Registries []preference.Registry `json:"registries,omitempty"` | ||
Preferences []PreferenceItem `json:"preferences,omitempty"` | ||
Registries []Registry `json:"registries,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.