Fix typo error
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user