influxdata / influxdata/kapacitor

The "currentField" property of the "k8sAutoscale" node does not populate the given field

Open
#2,292 1 comment 0 reactions 1 assignee Assigned to @samhld View on GitHub
bug
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

Similar to #2251, but for the `k8sAutoscale` node. When given a TICKscript like so:

```
|k8sAutoscale()
.currentField('currentScale')
.namespace('prod')
.resourceName('my-deployment')
.kind('deployments')
.increaseCooldown(5m)
.decreaseCooldown(2m)
.replicas(lambda: "currentScale" + 1)
```

it yields the following error:
```
failed to evaluate the replicas expression: left value is invalid value type
```

Which suggests that the `currentScale` field is not being filled in.

This occurs on the `kapacitor:1.5.3-alpine` Docker image, but has not been tested in other environments.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.