Unverified Commit 484043a6 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #75627 from ialidzhikov/fix-lint-error

Fix lint issues
parents dabeb20a 8272fc54
......@@ -118,31 +118,31 @@ func NewServiceAccount() *serviceAccount {
}
}
func (a *serviceAccount) SetExternalKubeClientSet(cl kubernetes.Interface) {
a.client = cl
func (s *serviceAccount) SetExternalKubeClientSet(cl kubernetes.Interface) {
s.client = cl
}
func (a *serviceAccount) SetExternalKubeInformerFactory(f informers.SharedInformerFactory) {
func (s *serviceAccount) SetExternalKubeInformerFactory(f informers.SharedInformerFactory) {
serviceAccountInformer := f.Core().V1().ServiceAccounts()
a.serviceAccountLister = serviceAccountInformer.Lister()
s.serviceAccountLister = serviceAccountInformer.Lister()
secretInformer := f.Core().V1().Secrets()
a.secretLister = secretInformer.Lister()
s.secretLister = secretInformer.Lister()
a.SetReadyFunc(func() bool {
s.SetReadyFunc(func() bool {
return serviceAccountInformer.Informer().HasSynced() && secretInformer.Informer().HasSynced()
})
}
// ValidateInitialization ensures an authorizer is set.
func (a *serviceAccount) ValidateInitialization() error {
if a.client == nil {
func (s *serviceAccount) ValidateInitialization() error {
if s.client == nil {
return fmt.Errorf("missing client")
}
if a.secretLister == nil {
if s.secretLister == nil {
return fmt.Errorf("missing secretLister")
}
if a.serviceAccountLister == nil {
if s.serviceAccountLister == nil {
return fmt.Errorf("missing serviceAccountLister")
}
return nil
......
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