-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add support to customize HPA name #3057
Comments
Fair ask, I like it. I would, however, suggest to do the following as we try to avoid using abbreviations and it's already in apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
annotations:
...
labels:
...
name: ...
spec:
advanced:
horizontalPodAutoscalerConfig:
- hpaName: my-prsonal-hpa-name
+ name: my-prsonal-hpa-name |
I like the idea, I'm afraid about the implementation. I mean, right now it's easy to manage the resources (in k8s) created by KEDA because are deterministic in the names and they don't change, |
Yep, saw that while I start browsing the code. Do you have any suggestion how to know that we changed the hpa name and we need to clean the "old" one? |
Maybe we could add the "currently created" hpa's name in the SO status 🤔 |
Yeah, SO.Status is the only field where we can imho save it. I think that if we are going to implement this change, a solid test coverage needs to be done. |
Agree |
Sounds good. |
@aviadlevy definitely! :) |
Proposal
Add new field to allow custom hpa name (and not just
keda-hpa-<name>
)Use-Case
For example:
Then keda will generate hpa named
my-prsonal-hpa-name
Anything else?
If you're thinking it's a good proposal, I would like to try implement it myself and open PR 🙏
The text was updated successfully, but these errors were encountered: