Skip to content

[rhoai] configuring KnativeServing to allow zero initial scale when installed#1877

Merged
openshift-merge-bot[bot] merged 1 commit into
opendatahub-io:rhoaifrom
openshift-cherrypick-robot:cherry-pick-1774-to-rhoai
Apr 23, 2025
Merged

[rhoai] configuring KnativeServing to allow zero initial scale when installed#1877
openshift-merge-bot[bot] merged 1 commit into
opendatahub-io:rhoaifrom
openshift-cherrypick-robot:cherry-pick-1774-to-rhoai

Conversation

@openshift-cherrypick-robot
Copy link
Copy Markdown

@openshift-cherrypick-robot openshift-cherrypick-robot commented Apr 23, 2025

This is an automated cherry-pick of #1774

/assign grdryn

Summary by Sourcery

Enhancements:

  • Enable zero initial scale configuration in Knative Serving, allowing services to start with zero pods initially

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Apr 23, 2025

Reviewer's Guide by Sourcery

This pull request configures Knative Serving to allow zero initial scale when installed by setting allow-zero-initial-scale to true in the autoscaler config.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Enabled zero initial scale for Knative Serving.
  • Set allow-zero-initial-scale to true in the autoscaler config.
internal/controller/components/kserve/resources/serving-install/knative-serving.tmpl.yaml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 23, 2025

Hi @openshift-cherrypick-robot. Thanks for your PR.

I'm waiting for a opendatahub-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey @openshift-cherrypick-robot - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider adding a comment explaining why allow-zero-initial-scale is being enabled.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@grdryn
Copy link
Copy Markdown
Member

grdryn commented Apr 23, 2025

/ok-to-test

@openshift-ci openshift-ci Bot added ok-to-test Ok to Test and removed needs-ok-to-test labels Apr 23, 2025
@openshift-ci openshift-ci Bot added the lgtm label Apr 23, 2025
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 23, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: grdryn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 27.12%. Comparing base (a65c3fb) to head (113988a).
Report is 1 commits behind head on rhoai.

Additional details and impacted files
@@           Coverage Diff           @@
##            rhoai    #1877   +/-   ##
=======================================
  Coverage   27.12%   27.12%           
=======================================
  Files         172      172           
  Lines       11888    11888           
=======================================
  Hits         3225     3225           
  Misses       8358     8358           
  Partials      305      305           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@openshift-merge-bot openshift-merge-bot Bot merged commit c24a3c2 into opendatahub-io:rhoai Apr 23, 2025
10 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in ODH Platform Planning Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants