mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Fix typo error
This commit is contained in:
parent
e3c6750942
commit
8ad6b8f035
@ -649,7 +649,7 @@ func (r *Request) Upgrade(config *Config, newRoundTripperFunc func(*tls.Config)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// request connects to the server and invokes the provided function when a server response is
|
// request connects to the server and invokes the provided function when a server response is
|
||||||
// received. It handles retry behavior and up front validation of requests. It wil invoke
|
// received. It handles retry behavior and up front validation of requests. It will invoke
|
||||||
// fn at most once. It will return an error if a problem occurred prior to connecting to the
|
// fn at most once. It will return an error if a problem occurred prior to connecting to the
|
||||||
// server - the provided function is responsible for handling server errors.
|
// server - the provided function is responsible for handling server errors.
|
||||||
func (r *Request) request(fn func(*http.Request, *http.Response)) error {
|
func (r *Request) request(fn func(*http.Request, *http.Response)) error {
|
||||||
|
@ -190,8 +190,8 @@ func TestJSONInput(t *testing.T) {
|
|||||||
testJSONPath(pointsTests, t)
|
testJSONPath(pointsTests, t)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestKubenates tests some use cases from kubenates
|
// TestKubernetes tests some use cases from kubernetes
|
||||||
func TestKubenates(t *testing.T) {
|
func TestKubernetes(t *testing.T) {
|
||||||
var input = []byte(`{
|
var input = []byte(`{
|
||||||
"kind": "List",
|
"kind": "List",
|
||||||
"items":[
|
"items":[
|
||||||
|
@ -148,7 +148,7 @@ func (b *downwardAPIVolumeBuilder) SetUpAt(dir string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsReadOnly func to fullfill volume.Builder interface
|
// IsReadOnly func to fulfill volume.Builder interface
|
||||||
func (d *downwardAPIVolume) IsReadOnly() bool {
|
func (d *downwardAPIVolume) IsReadOnly() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
@ -170,7 +170,7 @@ func (d *downwardAPIVolume) collectData() (map[string]string, error) {
|
|||||||
return data, utilErrors.NewAggregate(errlist)
|
return data, utilErrors.NewAggregate(errlist)
|
||||||
}
|
}
|
||||||
|
|
||||||
// isDataChanged iterate over all the entries to check wether at least one
|
// isDataChanged iterate over all the entries to check whether at least one
|
||||||
// file needs to be updated.
|
// file needs to be updated.
|
||||||
func (d *downwardAPIVolume) isDataChanged(data map[string]string) bool {
|
func (d *downwardAPIVolume) isDataChanged(data map[string]string) bool {
|
||||||
for fileName, values := range data {
|
for fileName, values := range data {
|
||||||
|
Loading…
Reference in New Issue
Block a user