-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add createIlbSubnet flag to ilb e2e tests #970
Add createIlbSubnet flag to ilb e2e tests #970
Conversation
Hi @spencerhance. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
pkg/e2e/fixtures.go
Outdated
@@ -264,10 +264,10 @@ func DeleteGCPAddress(s *Sandbox, name string) error { | |||
|
|||
// CreateILBSubnet creates the ILB subnet | |||
func CreateILBSubnet(s *Sandbox) error { | |||
klog.V(3).Info("CreateILBSubnet()") | |||
klog.V(4).Info("CreateILBSubnet()") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this V(2) actually? Do we actually expect this to be printed a lot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
e0a988c
to
4f77631
Compare
4f77631
to
8d748a2
Compare
blocking #971 |
@bowei can you take another look? |
if flags.network == "" { | ||
klog.Info("No network provided, will not create ILB Subnet") | ||
// TODO(shance): Make this a required flag, error out here | ||
fmt.Println("-network must be set to the network of the cluster") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not follow spencer's comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I can't make it a required flag yet since the code to add the network is in another PR
cmd/e2e-test/ilb_test.go
Outdated
t.Fatalf("error ensuring regional subnet for ILB: %v", err) | ||
if Framework.CreateILBSubnet { | ||
if err := e2e.CreateILBSubnet(s); err != nil && err != e2e.ErrSubnetExists { | ||
t.Fatalf("error ensuring regional subnet for ILB: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably better just to do
t.Fatalf("e2e.CreateILBSubnet(%+v) = %v", ...) so it's easier to debug
fix all instances below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
reviewed --- small stuff |
Now used in addition to -network since all ilb tests will need -network for GCLBForVIP()
8d748a2
to
5e3589f
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bowei, spencerhance The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Now used in addition to -network since all ilb tests will need -network
for GCLBForVIP()