mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
More PR comments
This commit is contained in:
parent
32c5d938eb
commit
bc94cd5807
@ -60,12 +60,12 @@ type ClientCache struct {
|
|||||||
discoveryClientFactory DiscoveryClientFactory
|
discoveryClientFactory DiscoveryClientFactory
|
||||||
discoveryClient discovery.DiscoveryInterface
|
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
|
// 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 makes sure the client is only initialized once
|
||||||
once sync.Once
|
once sync.Once
|
||||||
// client is the cached client value
|
// client is the cached client value
|
||||||
|
Loading…
Reference in New Issue
Block a user