parent
3724b46033
commit
36e95dad47
|
|
@ -198,6 +198,12 @@ func (c *MultiGitHubClient) initClientForSecret(secret *corev1.Secret, dependent
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// Check if EnterpriseURL is set.
|
||||
if conf.EnterpriseURL == "" {
|
||||
// fallback to the controller-wide setting
|
||||
conf.EnterpriseURL = c.githubClient.GithubBaseURL
|
||||
}
|
||||
|
||||
cli, err := conf.NewClient()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Reference in New Issue