Changes related with running gofmt on entire project

This commit is contained in:
Michał Żyłowski 2017-01-17 18:25:19 +01:00
parent aa68192110
commit ba86290c04
2 changed files with 6 additions and 6 deletions

View File

@ -19,9 +19,9 @@ func (e eClient) Get(name string) (*v1.Endpoints, error) {
endpoint := &v1.Endpoints{
ObjectMeta: v1.ObjectMeta{Name: name},
Subsets: []v1.EndpointSubset{
v1.EndpointSubset{
{
Addresses: []v1.EndpointAddress{
v1.EndpointAddress{IP: "127.0.0.1"},
{IP: "127.0.0.1"},
},
},
},

View File

@ -18,7 +18,7 @@ func (p pClient) Get(name string) (*v1.Pod, error) {
ObjectMeta: v1.ObjectMeta{Name: name},
Status: v1.PodStatus{
ContainerStatuses: []v1.ContainerStatus{
v1.ContainerStatus{
{
Name: "container_test",
Ready: true,
},
@ -43,18 +43,18 @@ func (p pClient) DeleteCollection(options *v1.DeleteOptions, listOptions v1.List
func (p pClient) List(options v1.ListOptions) (*v1.PodList, error) {
return &v1.PodList{
Items: []v1.Pod{
v1.Pod{
{
ObjectMeta: v1.ObjectMeta{Name: "podList"},
Status: v1.PodStatus{
HostIP: "127.0.01",
Conditions: []v1.PodCondition{
v1.PodCondition{
{
Type: v1.PodReady,
Status: "True",
},
},
ContainerStatuses: []v1.ContainerStatus{
v1.ContainerStatus{
{
Name: "container_test",
Ready: true,
},