-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Use Metrics API in HPA #25768
Use Metrics API in HPA #25768
Conversation
@@ -118,7 +118,7 @@ func (h *HeapsterMetricsClient) GetCpuConsumptionAndRequestInMillis(namespace st | |||
if err != nil { | |||
return 0, 0, time.Time{}, fmt.Errorf("failed to get pod list: %v", err) | |||
} | |||
podNames := []string{} | |||
podNames := map[string]bool{} |
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.
struct{} has only one value.
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, though personally I don't like this structure.
16c8a4c
to
626388e
Compare
@k8s-bot unit test this issue: #IGNORE |
@mwielgus comments applied, tests fixed. PTAL |
LGTM |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 26ad827. |
Automatic merge from submit-queue |
No description provided.