Commit 9099e8e9 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #48870 from aleksandra-malinowska/autoscaling-tests-extra-logs

Automatic merge from submit-queue add more logs for debugging to autoscaling tests Add logging raw Cluster Autoscaler configmap if it can't be parsed.
parents 578063b7 e12e6303
...@@ -1279,7 +1279,7 @@ func getClusterwideStatus(c clientset.Interface) (string, error) { ...@@ -1279,7 +1279,7 @@ func getClusterwideStatus(c clientset.Interface) (string, error) {
} }
result := matcher.FindStringSubmatch(status) result := matcher.FindStringSubmatch(status)
if len(result) < 2 { if len(result) < 2 {
return "", fmt.Errorf("Failed to parse CA status configmap") return "", fmt.Errorf("Failed to parse CA status configmap, raw status: %v", status)
} }
return result[1], nil return result[1], nil
} }
...@@ -1307,7 +1307,7 @@ func getScaleUpStatus(c clientset.Interface) (*scaleUpStatus, error) { ...@@ -1307,7 +1307,7 @@ func getScaleUpStatus(c clientset.Interface) (*scaleUpStatus, error) {
} }
matches := matcher.FindAllStringSubmatch(status, -1) matches := matcher.FindAllStringSubmatch(status, -1)
if len(matches) < 1 { if len(matches) < 1 {
return nil, fmt.Errorf("Failed to parse CA status configmap") return nil, fmt.Errorf("Failed to parse CA status configmap, raw status: %v", status)
} }
result := scaleUpStatus{ result := scaleUpStatus{
status: caNoScaleUpStatus, status: caNoScaleUpStatus,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment