Merge pull request #20703 from mwielgus/hpa-cm-validation
Auto commit by PR queue bot
This commit is contained in:
@@ -110,7 +110,7 @@ func (tc *testCase) prepareTestClient(t *testing.T) *fake.Clientset {
|
||||
t.Fatalf("Failed to marshal cm: %v", err)
|
||||
}
|
||||
obj.Items[0].Annotations = make(map[string]string)
|
||||
obj.Items[0].Annotations[HpaCustomMetricsDefinitionAnnotationName] = string(b)
|
||||
obj.Items[0].Annotations[HpaCustomMetricsTargetAnnotationName] = string(b)
|
||||
}
|
||||
return true, obj, nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user