Merge pull request #9405 from rook/mergify/bp/release-1.8/pr-9393

core: add context parameter to k8sutil endpoint (backport #9393)
This commit is contained in:
mergify[bot] authored and GitHub committed 2021-12-13 09:31:19 +00:00
commit c8d4ff15e0
3 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -714,7 +714,7 @@ func ConfigureExternalMetricsEndpoint(ctx *clusterd.Context, monitoringSpec ceph
}
logger.Debugf("diff between current endpoint and newly generated one: %v \n", cmp.Diff(currentEndpoints, endpoint, cmp.Comparer(func(x, y resource.Quantity) bool { return x.Cmp(y) == 0 })))
_, err = k8sutil.CreateOrUpdateEndpoint(ctx.Clientset, clusterInfo.Namespace, endpoint)
_, err = k8sutil.CreateOrUpdateEndpoint(clusterInfo.Context, ctx.Clientset, clusterInfo.Namespace, endpoint)
if err != nil {
return errors.Wrap(err, "failed to create or update mgr endpoint")
}