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

HPA is only added with autoscaler setting, the reverse is ignored #2568

Closed
JustinMason opened this issue Jan 26, 2024 · 1 comment · Fixed by #2575
Closed

HPA is only added with autoscaler setting, the reverse is ignored #2568

JustinMason opened this issue Jan 26, 2024 · 1 comment · Fixed by #2575
Assignees
Labels
area:collector Issues for deploying collector bug Something isn't working

Comments

@JustinMason
Copy link

Component(s)

No response

What happened?

Description

Adding the autoscaler to a collector deploys a HPA crd, but it does not remove the CRD if the autoscaler section is removed.
operator logs show this instead.
hpa field is unset in Spec, skipping autoscaler creation

Steps to Reproduce

Deploy a Collector with the autoscaler in the spec.
Validate HPA is deployed for collector.
Remove autoscaler from spec.
HPA CRD remains.

Expected Result

HPA CRD for collector to get deleted.

Actual Result

HPA CRD remains.

Kubernetes Version

v1.25.15-gke.1115000

Operator version

v0.92.1

Collector version

v0.92.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

Log output

hpa field is unset in Spec, skipping autoscaler creation

Additional context

No response

@JustinMason JustinMason added bug Something isn't working needs triage labels Jan 26, 2024
@yuriolisa
Copy link
Contributor

Hi @JustinMason,

I have just tested it, and the HPA is not being deleted when we remove it from the OpenTelemetryCollector instance. So, I'll send a fix for that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:collector Issues for deploying collector bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants