mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Merge pull request #16496 from wojtek-t/switch_cacher_for_other_resources
Auto commit by PR queue bot
This commit is contained in:
@@ -73,9 +73,9 @@ func (r *registryGetter) GetSecret(namespace, name string) (*api.Secret, error)
|
||||
|
||||
// NewGetterFromStorageInterface returns a ServiceAccountTokenGetter that
|
||||
// uses the specified storage to retrieve service accounts and secrets.
|
||||
func NewGetterFromStorageInterface(storage storage.Interface) ServiceAccountTokenGetter {
|
||||
func NewGetterFromStorageInterface(s storage.Interface) ServiceAccountTokenGetter {
|
||||
return NewGetterFromRegistries(
|
||||
serviceaccount.NewRegistry(serviceaccountetcd.NewREST(storage)),
|
||||
secret.NewRegistry(secretetcd.NewREST(storage)),
|
||||
serviceaccount.NewRegistry(serviceaccountetcd.NewREST(s, storage.NoDecoration)),
|
||||
secret.NewRegistry(secretetcd.NewREST(s, storage.NoDecoration)),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user