mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Fix for Docker upstream
This commit is contained in:
@ -53,8 +53,11 @@ func scaleService(req requests.PrometheusAlert, c *client.Client) error {
|
||||
serviceName := req.Alerts[0].Labels.FunctionName
|
||||
|
||||
if len(serviceName) > 0 {
|
||||
opts := types.ServiceInspectOptions{
|
||||
InsertDefaults: true,
|
||||
}
|
||||
|
||||
service, _, inspectErr := c.ServiceInspectWithRaw(context.Background(), serviceName)
|
||||
service, _, inspectErr := c.ServiceInspectWithRaw(context.Background(), serviceName, opts)
|
||||
if inspectErr == nil {
|
||||
|
||||
currentReplicas := *service.Spec.Mode.Replicated.Replicas
|
||||
|
Reference in New Issue
Block a user