-
Notifications
You must be signed in to change notification settings - Fork 301
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
Minor cleanup to instance group management #6
Conversation
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.
thx for the fixes!
lgtm with 2 minor comments
instances/instances.go
Outdated
@@ -61,69 +64,82 @@ func (i *Instances) Init(zl zoneLister) { | |||
// AddInstanceGroup creates or gets an instance group if it doesn't exist |
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.
Update the 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.
Thanks
instances/utils.go
Outdated
func EnsureInstanceGroupsAndPorts(nodePool NodePool, namer *utils.Namer, ports []int64) ([]*compute.InstanceGroup, []*compute.NamedPort, error) { | ||
return nodePool.AddInstanceGroup(namer.IGName(), ports) | ||
func EnsureInstanceGroupsAndPorts(nodePool NodePool, namer *utils.Namer, ports []int64) ([]*compute.InstanceGroup, error) { | ||
return nodePool.EnsureInstanceGroups(namer.IGName(), ports) |
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.
How about calling this EnsureInstanceGroupsAndPorts as well?
/lgtm |
Changes
ingress-gce/instances/instances.go
Line 119 in ef0e824