Merge pull request #88599 from julianvmodesto/scale-ctx-opts

Add context and options to scale client
This commit is contained in:
Kubernetes Prow Robot
2020-03-06 13:17:08 -08:00
committed by GitHub
11 changed files with 51 additions and 26 deletions

View File

@@ -292,7 +292,7 @@ func (dc *DisruptionController) getScaleController(controllerRef *metav1.OwnerRe
}
gr := mapping.Resource.GroupResource()
scale, err := dc.scaleNamespacer.Scales(namespace).Get(gr, controllerRef.Name)
scale, err := dc.scaleNamespacer.Scales(namespace).Get(context.TODO(), gr, controllerRef.Name, metav1.GetOptions{})
if err != nil {
if errors.IsNotFound(err) {
return nil, nil