-
Notifications
You must be signed in to change notification settings - Fork 110
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
Some fixes to kubetest2 GKE deployer #44
Some fixes to kubetest2 GKE deployer #44
Conversation
08e4144
to
617f43c
Compare
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.
The pre-existing functionality seems to rely too much on top level struct fields 😕
I'll most likely refactor them into separate options in the future.
/lgtm
/approve
/hold
for one question
return len(fwList), nil | ||
// Sleep 10 seconds to wait for the firewall rules being deleted completely. | ||
// TODO(chizhg): change to a more reliable way to check if they are deleted or not. | ||
time.Sleep(10 * time.Second) |
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.
does this mean the gcloud firewall-rules delete
command exits before the firewalls are actually deleted?
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.
Based on my experiment, yes, sometimes I got "network is still used by firewall rule xxx", even if the log shows the firewall rule has been deleted.
I have changed the comment to include this information.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amwat, chizhg 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 |
617f43c
to
8214b29
Compare
Do you mean too many functions are using |
/lgtm yeah because everything is in the top level struct. They should be split into modular options e.g. networkOptions etc. |
any thoughts on adding unit tests? |
There is little to no unit test in this repo now :-( And unfortunately the current way we implement |
sgtm! |
Fix a few subtle bugs for kubetest2 GKE deployer, mainly for firewall rules and networking for multicluster profile.
I have done the manual regression tests for both single cluster and multi-cluster, and nothing breaks.
/cc @amwat