Skip to content

Commit

Permalink
set default activationValue to 1
Browse files Browse the repository at this point in the history
Signed-off-by: David Pait <[email protected]>
  • Loading branch information
DP19 committed Jan 16, 2024
1 parent b13dc65 commit 3ff0227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scalers/gcp_pubsub_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func parsePubSubMetadata(config *scalersconfig.ScalerConfig, logger logr.Logger)
meta.resourceType = resourceTypePubSubTopic
}

meta.activationValue = 0
meta.activationValue = 1
if val, ok := config.TriggerMetadata["activationValue"]; ok {
activationValue, err := strconv.ParseFloat(val, 64)
if err != nil {
Expand Down

0 comments on commit 3ff0227

Please sign in to comment.