-
Notifications
You must be signed in to change notification settings - Fork 483
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
Fix panic if maxreplicas is set but autoscale is not defined in the CR #1201
Fix panic if maxreplicas is set but autoscale is not defined in the CR #1201
Conversation
Signed-off-by: Kevin Earls <[email protected]>
Signed-off-by: Kevin Earls <[email protected]>
Thanks for handling this so fast. I built the image and tested it against a development instance. It does seem to resolve the panic, but I do not see an HPA anymore. In the past, a horizontal pod autoscaler would be deployed. It is unclear to me if the HPA issue is related, or a separate issue. |
@jsirianni what does your CR look like? I used the one below and that worked for me. You may need to first make sure you've deleted any previous collector instances. Use
|
@kevinearls you were right, looks good on my end now 👍 Thanks again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it covered by an e2e test?
@frzifus This should be covered by the unit test. We just need to be sure that the AutoScalerSpec is not null when the CR has maxreplicas set but does not include autoscale. |
open-telemetry#1201) * Fix panic if maxreplicas is set but autosclae is not defined in the PR Signed-off-by: Kevin Earls <[email protected]> * Add a unit test Signed-off-by: Kevin Earls <[email protected]> Signed-off-by: Kevin Earls <[email protected]>
Signed-off-by: Kevin Earls [email protected]
Fixes #1197