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

scale handler: minor chores #1903

Merged
merged 1 commit into from
Jun 28, 2021
Merged

Conversation

zroubalik
Copy link
Member

Signed-off-by: Zbynek Roubalik [email protected]

No changes to the functionality.

Minor chores and code refactoring/cleanup in scaler handler:

  • moved scalehandler.getPods() -> resolver.ResolveScaleTargetPodSpec()
  • extracted the relevant code from scalehandler.buildScalers() -> resolver.ResolveAuthRefAndPodIdentity()
  • moved functions relevant to WithTriggers close to the WithTriggers source code
  • some renaming

The code relevant to ScaledJob in scale_handler.go needs some love as well, but should be done in a separate PR.

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)

Signed-off-by: Zbynek Roubalik <[email protected]>
@zroubalik zroubalik requested a review from tomkerkhove June 24, 2021 10:53
@zroubalik zroubalik requested a review from ahmelsayed as a code owner June 24, 2021 10:53
@zroubalik zroubalik merged commit a84c5cc into kedacore:main Jun 28, 2021
nilayasiktoprak pushed a commit to nilayasiktoprak/keda that referenced this pull request Oct 23, 2021
Signed-off-by: Zbynek Roubalik <[email protected]>
Signed-off-by: nilayasiktoprak <[email protected]>
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.

2 participants