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 85cc359 commit 88f1abd
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 @@ -126,7 +126,7 @@ func parsePubSubMetadata(config *ScalerConfig, logger logr.Logger) (*pubsubMetad
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 88f1abd

Please sign in to comment.