Update gofmt for go1.10

This commit is contained in:
Christoph Blecker 2018-04-02 17:44:04 -07:00
parent 1f69c34478
commit 857aac9ae4
No known key found for this signature in database
GPG Key ID: B34A59A9D39F838B
4 changed files with 17 additions and 17 deletions

View File

@ -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) {
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
}, },
}, },

View File

@ -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,
}, },

View File

@ -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 {
}, },
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{
{ {

View File

@ -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 {
} }
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 {
} }
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