mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-20 01:50:06 +00:00
Format Codes
Chore: Correct words and format codes Revert three changes Revert 1 change Revert again Revert 2 changes Kubernetes-commit: af7cf4abc6bfeb0d2cfaca76097cf7a0603c4495
This commit is contained in:
parent
5d33118d47
commit
abfce0f8c3
@ -501,7 +501,7 @@ func NewDiscoveryClientForConfigOrDie(c *restclient.Config) *DiscoveryClient {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDiscoveryClient returns a new DiscoveryClient for the given RESTClient.
|
// NewDiscoveryClient returns a new DiscoveryClient for the given RESTClient.
|
||||||
func NewDiscoveryClient(c restclient.Interface) *DiscoveryClient {
|
func NewDiscoveryClient(c restclient.Interface) *DiscoveryClient {
|
||||||
return &DiscoveryClient{restClient: c, LegacyPrefix: "/api"}
|
return &DiscoveryClient{restClient: c, LegacyPrefix: "/api"}
|
||||||
}
|
}
|
||||||
|
@ -203,7 +203,7 @@ type TLSClientConfig struct {
|
|||||||
// Server should be accessed without verifying the TLS certificate. For testing only.
|
// Server should be accessed without verifying the TLS certificate. For testing only.
|
||||||
Insecure bool
|
Insecure bool
|
||||||
// ServerName is passed to the server for SNI and is used in the client to check server
|
// ServerName is passed to the server for SNI and is used in the client to check server
|
||||||
// ceritificates against. If ServerName is empty, the hostname used to contact the
|
// certificates against. If ServerName is empty, the hostname used to contact the
|
||||||
// server is used.
|
// server is used.
|
||||||
ServerName string
|
ServerName string
|
||||||
|
|
||||||
|
@ -638,7 +638,7 @@ func (b *throttledLogger) attemptToLog() (klog.Level, bool) {
|
|||||||
return -1, false
|
return -1, false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Infof will write a log message at each logLevel specified by the reciever's throttleSettings
|
// Infof will write a log message at each logLevel specified by the receiver's throttleSettings
|
||||||
// as long as it hasn't written a log message more recently than minLogInterval.
|
// as long as it hasn't written a log message more recently than minLogInterval.
|
||||||
func (b *throttledLogger) Infof(message string, args ...interface{}) {
|
func (b *throttledLogger) Infof(message string, args ...interface{}) {
|
||||||
if logLevel, ok := b.attemptToLog(); ok {
|
if logLevel, ok := b.attemptToLog(); ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user