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

updated turbo profile controller to handle data.resource #2287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bitscuit
Copy link
Member

@bitscuit bitscuit commented Nov 4, 2024

Currently limited to setting .spec.services[].resources.data.resources.limits.cpu to {} value instead of entire limits field because some internal functionality is removing the {} value for entire limits field.

The code as-is will work regardless because when one of the k8s resources fields gets set to {}, then ODLM will ignore sizing.

How to test

  1. build image from this PR
  2. install cs-operator on your cluster
  3. update image on cluster with image from step 1
  4. add the following to CommonService CR profileController: turbo
  5. verify that OperandConfig has cpu: {} for the EDB and Keycloak CRs

…services[].resources.data.resources.cpu

Signed-off-by: Henry Li <[email protected]>
@ibm-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bitscuit

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

The pull request process is described here

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants