Change searchs with searches

This commit is contained in:
Manuel de Brito Fontes 2017-02-05 19:41:05 -03:00
parent bf8e2e91b2
commit 80a0481550
2 changed files with 2 additions and 2 deletions

View file

@ -330,7 +330,7 @@ func (ic GenericController) GetDefaultBackend() defaults.Backend {
return ic.cfg.Backend.BackendDefaults() return ic.cfg.Backend.BackendDefaults()
} }
// GetSecret searchs for a secret in the local secrets Store // GetSecret searches for a secret in the local secrets Store
func (ic GenericController) GetSecret(name string) (*api.Secret, error) { func (ic GenericController) GetSecret(name string) (*api.Secret, error) {
s, exists, err := ic.secrLister.Store.GetByKey(name) s, exists, err := ic.secrLister.Store.GetByKey(name)
if err != nil { if err != nil {

View file

@ -28,7 +28,7 @@ type DefaultBackend interface {
GetDefaultBackend() defaults.Backend GetDefaultBackend() defaults.Backend
} }
// Secret has a method that searchs for secrets contenating // Secret has a method that searches for secrets contenating
// the namespace and name using a the character / // the namespace and name using a the character /
type Secret interface { type Secret interface {
GetSecret(string) (*api.Secret, error) GetSecret(string) (*api.Secret, error)