Skip to content

Commit

Permalink
Merge pull request #522 from MrHohn/append-resource-value
Browse files Browse the repository at this point in the history
[e2e test] append key value to resources instead of pointer
  • Loading branch information
k8s-ci-robot committed Oct 23, 2018
2 parents de3ae3b + 26a7ee8 commit 9c8116e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/fuzz/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ type GCLBDeleteOptions struct {
// CheckResourceDeletion checks the existance of the resources. Returns nil if
// all of the associated resources no longer exist.
func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options *GCLBDeleteOptions) error {
var resources []*meta.Key
var resources []meta.Key

for k := range g.ForwardingRule {
_, err := c.ForwardingRules().Get(ctx, &k)
Expand All @@ -113,7 +113,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options
return err
}
} else {
resources = append(resources, &k)
resources = append(resources, k)
}
}
for k := range g.TargetHTTPProxy {
Expand All @@ -123,7 +123,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options
return err
}
} else {
resources = append(resources, &k)
resources = append(resources, k)
}
}
for k := range g.TargetHTTPSProxy {
Expand All @@ -133,7 +133,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options
return err
}
} else {
resources = append(resources, &k)
resources = append(resources, k)
}
}
for k := range g.URLMap {
Expand All @@ -143,7 +143,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options
return err
}
} else {
resources = append(resources, &k)
resources = append(resources, k)
}
}
for k := range g.BackendService {
Expand All @@ -159,7 +159,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options
continue
}
}
resources = append(resources, &k)
resources = append(resources, k)
}
}

Expand Down

0 comments on commit 9c8116e

Please sign in to comment.