зеркало из https://github.com/Azure/ARO-RP.git
Updates return types in checker constructors
This commit is contained in:
Родитель
6c066e5902
Коммит
4a2e81ffa2
|
@ -20,7 +20,7 @@ type checker struct {
|
|||
operatorcli operatorclient.Interface
|
||||
}
|
||||
|
||||
func newClusterDNSChecker(operatorcli operatorclient.Interface) clusterDNSChecker {
|
||||
func newClusterDNSChecker(operatorcli operatorclient.Interface) *checker {
|
||||
return &checker{
|
||||
operatorcli: operatorcli,
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ type checker struct {
|
|||
httpClient simpleHTTPClient
|
||||
}
|
||||
|
||||
func newInternetChecker() internetChecker {
|
||||
func newInternetChecker() *checker {
|
||||
return &checker{
|
||||
checkTimeout: time.Minute,
|
||||
httpClient: &http.Client{
|
||||
|
|
|
@ -26,7 +26,7 @@ type checker struct {
|
|||
newSPValidator func(azEnv *azureclient.AROEnvironment) (dynamic.ServicePrincipalValidator, error)
|
||||
}
|
||||
|
||||
func newServicePrincipalChecker(log *logrus.Entry, kubernetescli kubernetes.Interface) servicePrincipalChecker {
|
||||
func newServicePrincipalChecker(log *logrus.Entry, kubernetescli kubernetes.Interface) *checker {
|
||||
tokenClient := aad.NewTokenClient()
|
||||
|
||||
return &checker{
|
||||
|
|
Загрузка…
Ссылка в новой задаче