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
857aac9a
Unverified
Commit
857aac9a
authored
Apr 02, 2018
by
Christoph Blecker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update gofmt for go1.10
parent
1f69c344
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
tokens_controller_test.go
pkg/controller/serviceaccount/tokens_controller_test.go
+2
-2
create_authinfo_test.go
pkg/kubectl/cmd/config/create_authinfo_test.go
+1
-1
provider_test.go
pkg/security/podsecuritypolicy/provider_test.go
+2
-2
client_generator.go
...e-generator/cmd/client-gen/generators/client_generator.go
+12
-12
No files found.
pkg/controller/serviceaccount/tokens_controller_test.go
View file @
857aac9a
...
@@ -474,7 +474,7 @@ func TestTokenCreation(t *testing.T) {
...
@@ -474,7 +474,7 @@ func TestTokenCreation(t *testing.T) {
AddedSecret
:
serviceAccountTokenSecretWithNamespaceData
([]
byte
(
"custom"
)),
AddedSecret
:
serviceAccountTokenSecretWithNamespaceData
([]
byte
(
"custom"
)),
ExpectedActions
:
[]
core
.
Action
{
ExpectedActions
:
[]
core
.
Action
{
// no update is performed... the custom namespace is preserved
// no update is performed... the custom namespace is preserved
},
},
},
},
...
@@ -539,7 +539,7 @@ func TestTokenCreation(t *testing.T) {
...
@@ -539,7 +539,7 @@ func TestTokenCreation(t *testing.T) {
UpdatedSecret
:
serviceAccountTokenSecretWithNamespaceData
([]
byte
(
"custom"
)),
UpdatedSecret
:
serviceAccountTokenSecretWithNamespaceData
([]
byte
(
"custom"
)),
ExpectedActions
:
[]
core
.
Action
{
ExpectedActions
:
[]
core
.
Action
{
// no update is performed... the custom namespace is preserved
// no update is performed... the custom namespace is preserved
},
},
},
},
...
...
pkg/kubectl/cmd/config/create_authinfo_test.go
View file @
857aac9a
...
@@ -142,7 +142,7 @@ func TestCreateAuthInfoOptions(t *testing.T) {
...
@@ -142,7 +142,7 @@ func TestCreateAuthInfoOptions(t *testing.T) {
},
},
{
{
flags
:
[]
string
{
flags
:
[]
string
{
// No name for authinfo provided.
// No name for authinfo provided.
},
},
wantCompleteErr
:
true
,
wantCompleteErr
:
true
,
},
},
...
...
pkg/security/podsecuritypolicy/provider_test.go
View file @
857aac9a
...
@@ -1017,7 +1017,7 @@ func defaultPod() *api.Pod {
...
@@ -1017,7 +1017,7 @@ func defaultPod() *api.Pod {
},
},
Spec
:
api
.
PodSpec
{
Spec
:
api
.
PodSpec
{
SecurityContext
:
&
api
.
PodSecurityContext
{
SecurityContext
:
&
api
.
PodSecurityContext
{
// fill in for test cases
// fill in for test cases
},
},
Containers
:
[]
api
.
Container
{
Containers
:
[]
api
.
Container
{
{
{
...
@@ -1041,7 +1041,7 @@ func defaultV1Pod() *v1.Pod {
...
@@ -1041,7 +1041,7 @@ func defaultV1Pod() *v1.Pod {
},
},
Spec
:
v1
.
PodSpec
{
Spec
:
v1
.
PodSpec
{
SecurityContext
:
&
v1
.
PodSecurityContext
{
SecurityContext
:
&
v1
.
PodSecurityContext
{
// fill in for test cases
// fill in for test cases
},
},
Containers
:
[]
v1
.
Container
{
Containers
:
[]
v1
.
Container
{
{
{
...
...
staging/src/k8s.io/code-generator/cmd/client-gen/generators/client_generator.go
View file @
857aac9a
...
@@ -44,10 +44,10 @@ func NameSystems() namer.NameSystems {
...
@@ -44,10 +44,10 @@ func NameSystems() namer.NameSystems {
publicNamer
:=
&
ExceptionNamer
{
publicNamer
:=
&
ExceptionNamer
{
Exceptions
:
map
[
string
]
string
{
Exceptions
:
map
[
string
]
string
{
// these exceptions are used to deconflict the generated code
// these exceptions are used to deconflict the generated code
// you can put your fully qualified package like
// you can put your fully qualified package like
// to generate a name that doesn't conflict with your group.
// to generate a name that doesn't conflict with your group.
// "k8s.io/apis/events/v1beta1.Event": "EventResource"
// "k8s.io/apis/events/v1beta1.Event": "EventResource"
},
},
KeyFunc
:
func
(
t
*
types
.
Type
)
string
{
KeyFunc
:
func
(
t
*
types
.
Type
)
string
{
return
t
.
Name
.
Package
+
"."
+
t
.
Name
.
Name
return
t
.
Name
.
Package
+
"."
+
t
.
Name
.
Name
...
@@ -56,10 +56,10 @@ func NameSystems() namer.NameSystems {
...
@@ -56,10 +56,10 @@ func NameSystems() namer.NameSystems {
}
}
privateNamer
:=
&
ExceptionNamer
{
privateNamer
:=
&
ExceptionNamer
{
Exceptions
:
map
[
string
]
string
{
Exceptions
:
map
[
string
]
string
{
// these exceptions are used to deconflict the generated code
// these exceptions are used to deconflict the generated code
// you can put your fully qualified package like
// you can put your fully qualified package like
// to generate a name that doesn't conflict with your group.
// to generate a name that doesn't conflict with your group.
// "k8s.io/apis/events/v1beta1.Event": "eventResource"
// "k8s.io/apis/events/v1beta1.Event": "eventResource"
},
},
KeyFunc
:
func
(
t
*
types
.
Type
)
string
{
KeyFunc
:
func
(
t
*
types
.
Type
)
string
{
return
t
.
Name
.
Package
+
"."
+
t
.
Name
.
Name
return
t
.
Name
.
Package
+
"."
+
t
.
Name
.
Name
...
@@ -68,10 +68,10 @@ func NameSystems() namer.NameSystems {
...
@@ -68,10 +68,10 @@ func NameSystems() namer.NameSystems {
}
}
publicPluralNamer
:=
&
ExceptionNamer
{
publicPluralNamer
:=
&
ExceptionNamer
{
Exceptions
:
map
[
string
]
string
{
Exceptions
:
map
[
string
]
string
{
// these exceptions are used to deconflict the generated code
// these exceptions are used to deconflict the generated code
// you can put your fully qualified package like
// you can put your fully qualified package like
// to generate a name that doesn't conflict with your group.
// to generate a name that doesn't conflict with your group.
// "k8s.io/apis/events/v1beta1.Event": "EventResource"
// "k8s.io/apis/events/v1beta1.Event": "EventResource"
},
},
KeyFunc
:
func
(
t
*
types
.
Type
)
string
{
KeyFunc
:
func
(
t
*
types
.
Type
)
string
{
return
t
.
Name
.
Package
+
"."
+
t
.
Name
.
Name
return
t
.
Name
.
Package
+
"."
+
t
.
Name
.
Name
...
...
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