Closed rahman-lb closed 1 month ago
deploy/helm/lb-csi/values.yaml
[error] 23-23: trailing spaces (trailing-spaces) --- [error] 24-24: trailing spaces (trailing-spaces) --- [error] 29-29: trailing spaces (trailing-spaces) --- [error] 31-31: trailing spaces (trailing-spaces) --- [error] 32-32: trailing spaces (trailing-spaces) --- [error] 37-37: no new line character at the end of file (new-line-at-end-of-file) --- [error] 37-37: trailing spaces (trailing-spaces)deploy/helm/lb-csi/templates/lb-csi-node.yaml
[error] 211-211: no new line character at the end of file (new-line-at-end-of-file)
deploy/helm/lb-csi/templates/lb-csi-controller.yaml (1)
`139-145`: **LGTM! But verify the Helm values.** The conditional block for tolerations is correctly implemented. Ensure that the Helm values for `lbControllerTolerations` are correctly defined and used. The code changes are approved. Run the following script to verify the Helm values:Verification successful
--- **Helm values for `lbControllerTolerations` are correctly defined.** The `lbControllerTolerations` section in `values.yaml` includes all necessary sub-keys (`key`, `operator`, `value`, `effect`) with appropriate values, confirming that the conditional block in the template file is correctly implemented. No further action is required.Scripts executed
The following scripts were executed for the analysis: Script: ```shell #!/bin/bash # Description: Verify the Helm values for `lbControllerTolerations`. # Test: Search for the Helm values. Expect: Only occurrences of correctly defined values. rg --type yaml $'lbControllerTolerations' ``` Length of output: 638 --- Script: ```shell #!/bin/bash # Description: Check the structure and values of `lbControllerTolerations` in `values.yaml`. # Test: Display the `lbControllerTolerations` section in `values.yaml`. rg --type yaml -A 5 'lbControllerTolerations:' deploy/helm/lb-csi/values.yaml ``` Length of output: 207deploy/helm/lb-csi/templates/lb-csi-node.yaml (1)
`205-211`: **LGTM! But verify the Helm values and add a new line at the end of the file.** The conditional block for tolerations is correctly implemented. Ensure that the Helm values for `lbNodeTolerations` are correctly defined and used. Also, add a new line at the end of the file. The code changes are approved. Run the following script to verify the Helm values: Apply this diff to add a new line at the end of the file: ```diff + ```Verification successful
--- **Helm values for `lbNodeTolerations` are correctly defined.** Ensure to add a new line at the end of the file `deploy/helm/lb-csi/templates/lb-csi-node.yaml` to maintain file formatting standards.Scripts executed
The following scripts were executed for the analysis: Script: ```shell #!/bin/bash # Description: Verify the Helm values for `lbNodeTolerations`. # Test: Search for the Helm values. Expect: Only occurrences of correctly defined values. rg --type yaml $'lbNodeTolerations' ``` Length of output: 566 --- Script: ```shell #!/bin/bash # Description: Verify the sub-keys for `lbNodeTolerations` in values.yaml. # Test: Search for the sub-keys under `lbNodeTolerations`. Expect: Definitions for `key`, `operator`, `value`, `effect`. rg --type yaml -A 4 'lbNodeTolerations:' deploy/helm/lb-csi/values.yaml ``` Length of output: 194Tools
yamllint
[error] 211-211: no new line character at the end of file (new-line-at-end-of-file)
Issues
8 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
@majst01 any comments ?
Nice addition, we where lucky and none of our customer ran into this kind of issue so far. But i will take care of adding these tolerations to our operator which deploys the lb-csi-node daemonset as well.
In real production environment, it is very likely that K8 nodes are grouped for certain workload, such as high compute or high IO intensive workload, these nodes are tainted to repel pods that are not ideal for those K8 nodes. Tainted Nodes accept pods that has the toleration for those nodes.
This change will add toleration to CSI pods for deployment to the desired set of nodes.
Summary by CodeRabbit
New Features
Documentation
values.yaml
to include new sections forlbControllerTolerations
andlbNodeTolerations
, providing users with the ability to customize pod scheduling behavior based on node taints.