Skip to content

Conversation

@TrafalgarZZZ
Copy link
Member

Ⅰ. Describe what this PR does

  • Add root context to imageTransform helm function
  • Allow configurable resources for each runtime controller
  • Extract "fluid.controlplane.affinity" helm function for all controlplane components.

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
@sonarqubecloud
Copy link

#hostNetwork: true
containers:
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.alluxio.controller.imagePrefix .Values.runtime.alluxio.controller.imageName .Values.runtime.alluxio.controller.imageTag) }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.alluxio.controller.imagePrefix .Values.runtime.alluxio.controller.imageName .Values.runtime.alluxio.controller.imageTag . ) }}

Check warning

Code scanning / SonarCloud

Storage limits should be enforced

<!--SONAR_ISSUE_KEY:AZHv_MWkREFgCmEnHMZ0-->Specify a storage limit for this container. <p>See more on <a href="https://sonarcloud.io/project/issues?id=fluid-cloudnative_fluid&issues=AZHv_MWkREFgCmEnHMZ0&open=AZHv_MWkREFgCmEnHMZ0&pullRequest=4319">SonarCloud</a></p>
#hostNetwork: true
containers:
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.alluxio.controller.imagePrefix .Values.runtime.alluxio.controller.imageName .Values.runtime.alluxio.controller.imageTag) }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.alluxio.controller.imagePrefix .Values.runtime.alluxio.controller.imageName .Values.runtime.alluxio.controller.imageTag . ) }}

Check warning

Code scanning / SonarCloud

Memory limits should be enforced

<!--SONAR_ISSUE_KEY:AZHv_MWkREFgCmEnHMZz-->Specify a memory limit for this container. <p>See more on <a href="https://sonarcloud.io/project/issues?id=fluid-cloudnative_fluid&issues=AZHv_MWkREFgCmEnHMZz&open=AZHv_MWkREFgCmEnHMZz&pullRequest=4319">SonarCloud</a></p>
#hostNetwork: true
containers:
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.dataset.controller.imagePrefix .Values.dataset.controller.imageName .Values.dataset.controller.imageTag) }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.dataset.controller.imagePrefix .Values.dataset.controller.imageName .Values.dataset.controller.imageTag . ) }}

Check warning

Code scanning / SonarCloud

Memory limits should be enforced

<!--SONAR_ISSUE_KEY:AZHv_MWZREFgCmEnHMZt-->Specify a memory limit for this container. <p>See more on <a href="https://sonarcloud.io/project/issues?id=fluid-cloudnative_fluid&issues=AZHv_MWZREFgCmEnHMZt&open=AZHv_MWZREFgCmEnHMZt&pullRequest=4319">SonarCloud</a></p>
#hostNetwork: true
containers:
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.dataset.controller.imagePrefix .Values.dataset.controller.imageName .Values.dataset.controller.imageTag) }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.dataset.controller.imagePrefix .Values.dataset.controller.imageName .Values.dataset.controller.imageTag . ) }}

Check warning

Code scanning / SonarCloud

Storage limits should be enforced

<!--SONAR_ISSUE_KEY:AZHv_MWZREFgCmEnHMZu-->Specify a storage limit for this container. <p>See more on <a href="https://sonarcloud.io/project/issues?id=fluid-cloudnative_fluid&issues=AZHv_MWZREFgCmEnHMZu&open=AZHv_MWZREFgCmEnHMZu&pullRequest=4319">SonarCloud</a></p>
#hostNetwork: true
containers:
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.efc.controller.imagePrefix .Values.runtime.efc.controller.imageName .Values.runtime.efc.controller.imageTag) }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.efc.controller.imagePrefix .Values.runtime.efc.controller.imageName .Values.runtime.efc.controller.imageTag . ) }}

Check warning

Code scanning / SonarCloud

Memory limits should be enforced

<!--SONAR_ISSUE_KEY:AZHv_MW0REFgCmEnHMZ5-->Specify a memory limit for this container. <p>See more on <a href="https://sonarcloud.io/project/issues?id=fluid-cloudnative_fluid&issues=AZHv_MW0REFgCmEnHMZ5&open=AZHv_MW0REFgCmEnHMZ5&pullRequest=4319">SonarCloud</a></p>
requests:
cpu: 100m
memory: 200Mi
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.thin.controller.imagePrefix .Values.runtime.thin.controller.imageName .Values.runtime.thin.controller.imageTag . ) }}

Check warning

Code scanning / SonarCloud

Storage limits should be enforced

<!--SONAR_ISSUE_KEY:AZHv_MUcREFgCmEnHMZK-->Specify a storage limit for this container. <p>See more on <a href="https://sonarcloud.io/project/issues?id=fluid-cloudnative_fluid&issues=AZHv_MUcREFgCmEnHMZK&open=AZHv_MUcREFgCmEnHMZK&pullRequest=4319">SonarCloud</a></p>
{{- end }}
containers:
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.vineyard.controller.imagePrefix .Values.runtime.vineyard.controller.imageName .Values.runtime.vineyard.controller.imageTag) }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.vineyard.controller.imagePrefix .Values.runtime.vineyard.controller.imageName .Values.runtime.vineyard.controller.imageTag . ) }}

Check warning

Code scanning / SonarCloud

Memory limits should be enforced

<!--SONAR_ISSUE_KEY:AZHv_MVmREFgCmEnHMZV-->Specify a memory limit for this container. <p>See more on <a href="https://sonarcloud.io/project/issues?id=fluid-cloudnative_fluid&issues=AZHv_MVmREFgCmEnHMZV&open=AZHv_MVmREFgCmEnHMZV&pullRequest=4319">SonarCloud</a></p>
{{- end }}
containers:
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.vineyard.controller.imagePrefix .Values.runtime.vineyard.controller.imageName .Values.runtime.vineyard.controller.imageTag) }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.vineyard.controller.imagePrefix .Values.runtime.vineyard.controller.imageName .Values.runtime.vineyard.controller.imageTag . ) }}

Check warning

Code scanning / SonarCloud

Storage limits should be enforced

<!--SONAR_ISSUE_KEY:AZHv_MVmREFgCmEnHMZW-->Specify a storage limit for this container. <p>See more on <a href="https://sonarcloud.io/project/issues?id=fluid-cloudnative_fluid&issues=AZHv_MVmREFgCmEnHMZW&open=AZHv_MVmREFgCmEnHMZW&pullRequest=4319">SonarCloud</a></p>
{{ include "fluid.controlplane.affinity" . | nindent 6}}
containers:
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.webhook.imagePrefix .Values.webhook.imageName .Values.webhook.imageTag) }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.webhook.imagePrefix .Values.webhook.imageName .Values.webhook.imageTag . ) }}

Check warning

Code scanning / SonarCloud

Storage limits should be enforced

<!--SONAR_ISSUE_KEY:AZHv_MXFREFgCmEnHMaA-->Specify a storage limit for this container. <p>See more on <a href="https://sonarcloud.io/project/issues?id=fluid-cloudnative_fluid&issues=AZHv_MXFREFgCmEnHMaA&open=AZHv_MXFREFgCmEnHMaA&pullRequest=4319">SonarCloud</a></p>
{{ include "fluid.controlplane.affinity" . | nindent 6}}
containers:
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.webhook.imagePrefix .Values.webhook.imageName .Values.webhook.imageTag) }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.webhook.imagePrefix .Values.webhook.imageName .Values.webhook.imageTag . ) }}

Check warning

Code scanning / SonarCloud

Memory limits should be enforced

<!--SONAR_ISSUE_KEY:AZHv_MXFREFgCmEnHMZ_-->Specify a memory limit for this container. <p>See more on <a href="https://sonarcloud.io/project/issues?id=fluid-cloudnative_fluid&issues=AZHv_MXFREFgCmEnHMZ_&open=AZHv_MXFREFgCmEnHMZ_&pullRequest=4319">SonarCloud</a></p>
Copy link
Collaborator

@cheyang cheyang left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@fluid-e2e-bot
Copy link

fluid-e2e-bot bot commented Sep 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheyang

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

@fluid-e2e-bot fluid-e2e-bot bot merged commit 6f92548 into fluid-cloudnative:master Sep 15, 2024
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