-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
[e2e-ingress] Get node tag from instance under GKE #48309
Conversation
c01dea7
to
419d1d2
Compare
test/e2e/framework/firewall_util.go
Outdated
func GetNodeTags(c clientset.Interface, cloudConfig CloudConfig) []string { | ||
nodes := GetReadySchedulableNodesOrDie(c) | ||
Expect(len(nodes.Items) > 0).Should(BeTrue()) | ||
return GetInstanceTags(cloudConfig, nodes.Items[0].Name).Items |
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.
@nicksardo Changed to return all tags instead.
/lgtm |
/retest |
Thanks! /assign @bowei |
test/e2e/framework/firewall_util.go
Outdated
// GetNodeTags gets k8s node tag from one of the nodes | ||
func GetNodeTags(c clientset.Interface, cloudConfig CloudConfig) []string { | ||
nodes := GetReadySchedulableNodesOrDie(c) | ||
Expect(len(nodes.Items) > 0).Should(BeTrue()) |
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.
If len(nodes.Items) == 0, can't we just return []string{}?
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.
Sounds good, added logging for 0 node and return []string{}.
419d1d2
to
532a9d7
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: MrHohn, bowei, nicksardo Associated issue: 48167 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue |
What this PR does / why we need it: Making ingress CI green again.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #48167Special notes for your reviewer:
/assign @nicksardo
Release note: