Update gofmt for go1.10

parent 1f69c344
...@@ -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
}, },
}, },
......
...@@ -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,
}, },
......
...@@ -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{
{ {
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment