Skip to content

Commit

Permalink
Merge pull request #981 from skmatti/e2e-fix
Browse files Browse the repository at this point in the history
Fix issue with Network name
  • Loading branch information
k8s-ci-robot authored Jan 7, 2020
2 parents afd1ade + 4282d49 commit 7a2aeb9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/fuzz/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,12 @@ func RegionalGCLBForVIP(ctx context.Context, c cloud.Cloud, gclb *GCLB, params *

var rfrs []*compute.ForwardingRule
for _, rfr := range allRFRs {
if rfr.IPAddress == params.VIP && rfr.Network == params.Network {
netResID, err := cloud.ParseResourceURL(rfr.Network)
if err != nil {
klog.Warningf("Error parsing Network (%q): %v", rfr.Network, err)
return err
}
if rfr.IPAddress == params.VIP && netResID.Key.Name == params.Network {
rfrs = append(rfrs, rfr)
}
}
Expand Down

0 comments on commit 7a2aeb9

Please sign in to comment.