Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1af393d5
Unverified
Commit
1af393d5
authored
Oct 22, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69866 from xichengliudui/fix181016
Remove duplicate words
parents
8e7e2264
e3944823
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
factory.go
pkg/kubectl/apply/parse/factory.go
+1
-1
annotate.go
pkg/kubectl/cmd/annotate/annotate.go
+1
-1
openapi.go
...o/apimachinery/pkg/util/strategicpatch/testing/openapi.go
+1
-1
audit_test.go
.../src/k8s.io/apiserver/pkg/endpoints/filters/audit_test.go
+1
-1
No files found.
pkg/kubectl/apply/parse/factory.go
View file @
1af393d5
...
...
@@ -116,5 +116,5 @@ func (v *ElementBuildingVisitor) getItem(s proto.Schema, name string, data apply
},
},
nil
}
return
nil
,
fmt
.
Errorf
(
"unsupported type
type
%v"
,
kind
)
return
nil
,
fmt
.
Errorf
(
"unsupported type %v"
,
kind
)
}
pkg/kubectl/cmd/annotate/annotate.go
View file @
1af393d5
...
...
@@ -245,7 +245,7 @@ func (o AnnotateOptions) RunAnnotate() error {
// only apply resource version locking on a single resource.
// we must perform this check after o.builder.Do() as
// []o.resources can not
not
accurately return the proper number
// []o.resources can not accurately return the proper number
// of resources when they are not passed in "resource/name" format.
if
!
singleItemImpliedResource
&&
len
(
o
.
resourceVersion
)
>
0
{
return
fmt
.
Errorf
(
"--resource-version may only be used with a single resource"
)
...
...
staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/testing/openapi.go
View file @
1af393d5
...
...
@@ -74,7 +74,7 @@ func getSchema(f Fake, model string) (openapi.Schema, error) {
return
m
.
LookupModel
(
model
),
nil
}
// GetSchemaOrDie returns
returns
the openapi schema.
// GetSchemaOrDie returns the openapi schema.
func
GetSchemaOrDie
(
f
Fake
,
model
string
)
openapi
.
Schema
{
s
,
err
:=
getSchema
(
f
,
model
)
if
err
!=
nil
{
...
...
staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit_test.go
View file @
1af393d5
...
...
@@ -817,7 +817,7 @@ func TestAuditIDHttpHeader(t *testing.T) {
t
.
Errorf
(
"[%s] expected Audit-ID http header returned, but not returned"
,
test
.
desc
)
continue
}
// if get Audit-ID returned, it should be the same
same
with the requested one
// if get Audit-ID returned, it should be the same with the requested one
if
test
.
requestHeader
!=
""
&&
resp
.
Header
.
Get
(
"Audit-ID"
)
!=
test
.
requestHeader
{
t
.
Errorf
(
"[%s] returned audit http header is not the same with the requested http header, expected: %s, get %s"
,
test
.
desc
,
test
.
requestHeader
,
resp
.
Header
.
Get
(
"Audit-ID"
))
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment