Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScaledJob: panic ifminReplicaCount is specified & maxReplicaCount is not set #4568

Closed
zroubalik opened this issue May 23, 2023 · 0 comments · Fixed by #4567
Closed

ScaledJob: panic ifminReplicaCount is specified & maxReplicaCount is not set #4568

zroubalik opened this issue May 23, 2023 · 0 comments · Fixed by #4567
Labels
bug Something isn't working

Comments

@zroubalik
Copy link
Member

zroubalik commented May 23, 2023

Report

ScaledJob: panic ifminReplicaCount is specified & maxReplicaCount is not set

Expected Behavior

not panic

Actual Behavior

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x22e3ab1]

goroutine 48 [running]:
github.com/kedacore/keda/v2/apis/keda/v1alpha1.ScaledJob.MinReplicaCount(...)
/Users/zroubali/go/src/github.com/kedacore/keda/apis/keda/v1alpha1/scaledjob_types.go:126
github.com/kedacore/keda/v2/apis/keda/v1alpha1.TestScaledJob.func1(0xc000503d40)
/Users/zroubali/go/src/github.com/kedacore/keda/apis/keda/v1alpha1/scaledjob_types_test.go:59 +0x231

Steps to Reproduce the Problem

  1. deploy ScaledJob with min replicas set and not max replicas set

Anything else?

#4541 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Ready To Ship
Development

Successfully merging a pull request may close this issue.

1 participant