Skip to content

Update hpaName in ScaledObject status when HPA already exists#6860

Merged
JorTurFer merged 1 commit intokedacore:mainfrom
justinmir:fix-hpaName-missing
Jun 28, 2025
Merged

Update hpaName in ScaledObject status when HPA already exists#6860
JorTurFer merged 1 commit intokedacore:mainfrom
justinmir:fix-hpaName-missing

Conversation

@justinmir
Copy link
Contributor

When the ScaledObject adopts an HPA or if the hpaName in the ScaledObject status is removed for any reason, the hpaName status will no longer get set. It is only set when the HPA is created by the ScaledObject.

We add setting the HPA name in the ScaledObject status to the regular reconciliation loop for the ScaledObject.

See #6336

Checklist

Fixes #6336

@justinmir justinmir force-pushed the fix-hpaName-missing branch from 739263b to 87fdcb2 Compare June 23, 2025 18:07
When the ScaledObject adopts an HPA or if the hpaName in the
ScaledObject status is removed for any reason, the hpaName status will
no longer get set. It is only set when the HPA is created by the
ScaledObject.

We add setting the HPA name in the ScaledObject status to the
regular reconciliation loop for the ScaledObject.

See kedacore#6336

Signed-off-by: Justin Miron <justin.miron@reddit.com>
@JorTurFer
Copy link
Member

JorTurFer commented Jun 28, 2025

/run-e2e internal
Update: You can check the progress here

@JorTurFer
Copy link
Member

nice catch! ❤️

@JorTurFer JorTurFer merged commit 967c5d6 into kedacore:main Jun 28, 2025
25 checks passed
kmoonwright pushed a commit to kmoonwright/keda that referenced this pull request Jul 9, 2025
…re#6860)

When the ScaledObject adopts an HPA or if the hpaName in the
ScaledObject status is removed for any reason, the hpaName status will
no longer get set. It is only set when the HPA is created by the
ScaledObject.

We add setting the HPA name in the ScaledObject status to the
regular reconciliation loop for the ScaledObject.

See kedacore#6336

Signed-off-by: Justin Miron <justin.miron@reddit.com>
Signed-off-by: kmoonwright <kmoonwright@outlook.com>
kmoonwright pushed a commit to kmoonwright/keda that referenced this pull request Jul 9, 2025
…re#6860)

When the ScaledObject adopts an HPA or if the hpaName in the
ScaledObject status is removed for any reason, the hpaName status will
no longer get set. It is only set when the HPA is created by the
ScaledObject.

We add setting the HPA name in the ScaledObject status to the
regular reconciliation loop for the ScaledObject.

See kedacore#6336

Signed-off-by: Justin Miron <justin.miron@reddit.com>
Signed-off-by: kmoonwright <kmoonwright@outlook.com>
kmoonwright pushed a commit to kmoonwright/keda that referenced this pull request Jul 9, 2025
…re#6860)

When the ScaledObject adopts an HPA or if the hpaName in the
ScaledObject status is removed for any reason, the hpaName status will
no longer get set. It is only set when the HPA is created by the
ScaledObject.

We add setting the HPA name in the ScaledObject status to the
regular reconciliation loop for the ScaledObject.

See kedacore#6336

Signed-off-by: Justin Miron <justin.miron@reddit.com>
Signed-off-by: kmoonwright <kmoonwright@outlook.com>
dpochopsky pushed a commit to dpochopsky/keda that referenced this pull request Sep 12, 2025
…re#6860)

When the ScaledObject adopts an HPA or if the hpaName in the
ScaledObject status is removed for any reason, the hpaName status will
no longer get set. It is only set when the HPA is created by the
ScaledObject.

We add setting the HPA name in the ScaledObject status to the
regular reconciliation loop for the ScaledObject.

See kedacore#6336

Signed-off-by: Justin Miron <justin.miron@reddit.com>
Signed-off-by: David Pochopsky <david.pochopsky@united.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ScaledObject created with transfer-hpa-ownership annotation does not set .status.hpaName

2 participants