Commit 22719fcd authored by Omer Azmon's avatar Omer Azmon Committed by Oren Shomron
Browse files

Allow ksonet type registry in an enterprise git



Out github is at github.intuit.com; Making this change allows ks to consider it a valid ksonet registry. We need this fix soon. In the long run I suggest a better detection method, such as uri connect to git or a helm service.
Signed-off-by: default avatarOmer Azmon <omer_azmon@intuit.com>
parent 830ff397
......@@ -127,6 +127,6 @@ func (ra *RegistryAdd) protocol() (registryDetails, error) {
}
func (ra *RegistryAdd) isGitHub() bool {
return strings.HasPrefix(ra.uri, "github.com") ||
strings.HasPrefix(ra.uri, "https://github.com")
return strings.HasPrefix(ra.uri, "github") ||
strings.HasPrefix(ra.uri, "https://github")
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment