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

Delete the cache entry when a ScaledObject is deleted #2408

Merged
merged 4 commits into from
Jan 3, 2022

Conversation

JorTurFer
Copy link
Member

@JorTurFer JorTurFer commented Dec 17, 2021

Signed-off-by: jorturfer jorge_turrado@hotmail.es

Provide a description of what has been changed

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • Tests have been added
  • A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
  • A PR is opened to update the documentation on (repo) (if applicable)
  • Changelog has been updated

Fixes #2407

Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
@JorTurFer JorTurFer requested a review from a team as a code owner December 17, 2021 20:25
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
@JorTurFer JorTurFer added the bug Something isn't working label Dec 17, 2021
@JorTurFer JorTurFer added this to the v2.6.0 milestone Dec 17, 2021
@JorTurFer
Copy link
Member Author

I'm not sure about the best way to test this change. Maybe as a test inside scaledobject_controller_test 🤔
WDYT?

Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
@JorTurFer
Copy link
Member Author

I'm not sure if waiting with sleep is worth (I guess that it isn't... Is there a better way to do that test?

@JorTurFer JorTurFer removed this from the v2.6.0 milestone Dec 23, 2021
@VerstraeteBert
Copy link
Contributor

VerstraeteBert commented Dec 25, 2021

I'm not sure if waiting with sleep is worth (I guess that it isn't... Is there a better way to do that test?

I'm guessing you want to wait until the SO is deleted right? You could use the foreground deletion policy as noted in a comment on this post.

Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! And +1 for the test :)

@zroubalik zroubalik changed the title Delete the cache entry when the SO is deleted Delete the cache entry when a ScaledObject is deleted Jan 3, 2022
@zroubalik zroubalik added this to the v2.6.0 milestone Jan 3, 2022
@zroubalik zroubalik merged commit bb18d71 into kedacore:main Jan 3, 2022
@JorTurFer JorTurFer deleted the fix_cache branch January 3, 2022 10:52
zroubalik added a commit to zroubalik/keda that referenced this pull request Jan 4, 2022
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>

Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com>
zroubalik added a commit that referenced this pull request Jan 4, 2022
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>

Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com>
alex60217101990 pushed a commit to dysnix/keda that referenced this pull request Jan 10, 2022
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>

Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com>
Signed-off-by: alex60217101990 <alex6021710@gmail.com>
alex60217101990 pushed a commit to dysnix/keda that referenced this pull request Jan 10, 2022
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>

Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com>
Signed-off-by: alex60217101990 <alex6021710@gmail.com>
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
None yet
Development

Successfully merging this pull request may close these issues.

Metric name (and other values) is not updated with the changes in the SO
4 participants