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

Merged
merged 1 commit into from
Nov 5, 2024

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]>
Copy link
Contributor

@Daniel-Fan Daniel-Fan left a comment

Choose a reason for hiding this comment

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

/lgtm

@ibm-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bitscuit, Daniel-Fan

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:
  • OWNERS [Daniel-Fan,bitscuit]

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

@ibm-ci-bot ibm-ci-bot added the lgtm label Nov 5, 2024
@ibm-ci-bot ibm-ci-bot merged commit fbc3abb into IBM:master Nov 5, 2024
6 of 9 checks passed
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.

3 participants