mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
More PR comments
This commit is contained in:
parent
32c5d938eb
commit
bc94cd5807
@ -60,12 +60,12 @@ type ClientCache struct {
|
||||
discoveryClientFactory DiscoveryClientFactory
|
||||
discoveryClient discovery.DiscoveryInterface
|
||||
|
||||
kubernetesClientCache KubernetesClientCache
|
||||
kubernetesClientCache kubernetesClientCache
|
||||
}
|
||||
|
||||
// KubernetesClientCache creates a new kubernetes.Clientset one time
|
||||
// kubernetesClientCache creates a new kubernetes.Clientset one time
|
||||
// and then returns the result for all future requests
|
||||
type KubernetesClientCache struct {
|
||||
type kubernetesClientCache struct {
|
||||
// once makes sure the client is only initialized once
|
||||
once sync.Once
|
||||
// client is the cached client value
|
||||
|
Loading…
Reference in New Issue
Block a user