Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
Fix gofmt and go vet errors
Browse files Browse the repository at this point in the history
  • Loading branch information
font committed Jan 6, 2018
1 parent 1125931 commit 967d110
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pkg/crinit/aggregated/aggregated.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func createClusterRoleBindingObject(clientset client.Interface, name, subjectKin
Labels: labels,
},
Subjects: []rbacv1.Subject{
rbacv1.Subject{
{
Kind: subjectKind,
Name: subjectName,
Namespace: subjectNamespace,
Expand Down Expand Up @@ -407,7 +407,7 @@ func createExtensionAPIServerAuthenticationRoleBinding(clientset client.Interfac
Labels: util.ComponentLabel,
},
Subjects: []rbacv1.Subject{
rbacv1.Subject{
{
Kind: rbacv1.ServiceAccountKind,
Name: serviceAccountName,
Namespace: namespace,
Expand Down
12 changes: 6 additions & 6 deletions pkg/crinit/standalone/standalone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func TestCreateService(t *testing.T) {
},
Status: v1.NodeStatus{
Addresses: []v1.NodeAddress{
v1.NodeAddress{
{
Type: v1.NodeExternalIP,
Address: "200.0.0.1",
},
Expand Down Expand Up @@ -353,7 +353,7 @@ func TestCreateService(t *testing.T) {
createAction := action.(clientgotesting.CreateAction)
svc := createAction.GetObject().(*v1.Service)
if svc.Spec.Type == v1.ServiceTypeLoadBalancer {
svc.Status.LoadBalancer.Ingress = []v1.LoadBalancerIngress{v1.LoadBalancerIngress{IP: loadBalancerAddress, Hostname: loadBalancerHostname}}
svc.Status.LoadBalancer.Ingress = []v1.LoadBalancerIngress{{IP: loadBalancerAddress, Hostname: loadBalancerHostname}}
return false, svc, nil
}
return false, nil, nil
Expand Down Expand Up @@ -434,7 +434,7 @@ func TestGetClusterNodeIPs(t *testing.T) {
},
Status: v1.NodeStatus{
Addresses: []v1.NodeAddress{
v1.NodeAddress{
{
Type: v1.NodeExternalIP,
Address: "200.0.0.1",
},
Expand All @@ -448,7 +448,7 @@ func TestGetClusterNodeIPs(t *testing.T) {
},
Status: v1.NodeStatus{
Addresses: []v1.NodeAddress{
v1.NodeAddress{
{
Type: v1.NodeInternalIP,
Address: "10.0.0.1",
},
Expand All @@ -462,11 +462,11 @@ func TestGetClusterNodeIPs(t *testing.T) {
},
Status: v1.NodeStatus{
Addresses: []v1.NodeAddress{
v1.NodeAddress{
{
Type: v1.NodeExternalIP,
Address: "200.0.0.2",
},
v1.NodeAddress{
{
Type: v1.NodeInternalIP,
Address: "10.0.0.2",
},
Expand Down

0 comments on commit 967d110

Please sign in to comment.