Skip to content

Add xxxxl memory template#622

Draft
sBouzols wants to merge 1 commit into
mainfrom
chore_add_xxxxl_memory_template_conversion-server
Draft

Add xxxxl memory template#622
sBouzols wants to merge 1 commit into
mainfrom
chore_add_xxxxl_memory_template_conversion-server

Conversation

@sBouzols

@sBouzols sBouzols commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

PR Summary

Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR introduces a new Kubernetes Deployment patch for the gridsuite XXXXL memory profile. The manifest configures a single container with a Java heap size of 3072m via JAVA_TOOL_OPTIONS and sets both memory request and limit to 4540Mi.

Changes

XXXXL Memory Configuration

Layer / File(s) Summary
XXXXL memory deployment patch
k8s/components/gridsuite/patches/memory/deployments-springboot-memory-xxxxl.yaml
Deployment patch defines the XXXXL profile container with JAVA_TOOL_OPTIONS=-Xmx3072m and resource requests/limits both set to 4540Mi.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The PR description section is empty, providing no meaningful information about the changes or their purpose. Add a description explaining why the xxxxl memory template was added, what it configures (e.g., 3072m heap, 4540Mi memory limits), and any related context or testing performed.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: adding a new xxxxl memory configuration template for Kubernetes deployments.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@k8s/components/gridsuite/patches/memory/deployments-springboot-memory-xxxxl.yaml`:
- Around line 1-17: The new memory patch file
deployments-springboot-memory-xxxxl.yaml is not registered in the gridsuite
kustomization so it will never be applied; update
k8s/components/gridsuite/kustomization.yaml to add this patch under patches (or
patchesStrategicMerge) and add an annotationSelector entry for
gridsuite.org/memory=memory-xxxxl so Deployments annotated for memory-xxxxl pick
it up, and while editing the patch file consider adding a container-level
securityContext (e.g., to the container named "main") if your base manifests do
not already supply the required defaults.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f834edee-8cf1-4744-adfa-9e83f127a52a

📥 Commits

Reviewing files that changed from the base of the PR and between e9476d6 and f9796df.

📒 Files selected for processing (1)
  • k8s/components/gridsuite/patches/memory/deployments-springboot-memory-xxxxl.yaml

Comment on lines +1 to +17
apiVersion: apps/v1
kind: Deployment
metadata:
name: not-important
spec:
template:
spec:
containers:
- name: main
env:
- name: JAVA_TOOL_OPTIONS
value: "-Xmx3072m"
resources:
requests:
memory: "4540Mi"
limits:
memory: "4540Mi"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Locate gridsuite kustomization files =="
fd -p 'kustomization.yaml' k8s/components/gridsuite

echo
echo "== Show memory patch registrations around gridsuite section =="
sed -n '90,190p' k8s/components/gridsuite/kustomization.yaml

echo
echo "== Verify XXXXL patch + selector are present =="
rg -n -C2 'deployments-springboot-memory-xxxxl\.yaml|annotationSelector:\s*gridsuite\.org/memory=memory-xxxxl' k8s/components/gridsuite/kustomization.yaml

Repository: gridsuite/deployment

Length of output: 2993


🏁 Script executed:

#!/bin/bash
set -euo pipefail
rg -n --hidden --no-ignore -S 'deployments-springboot-memory-xxxxl\.yaml|memory-xxxxl' k8s/components/gridsuite

Repository: gridsuite/deployment

Length of output: 46


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== kustomization.yaml line count =="
wc -l k8s/components/gridsuite/kustomization.yaml

echo
echo "== Any 'xxxxl' references in gridsuite kustomization =="
rg -n --hidden --no-ignore -S 'xxxxl' k8s/components/gridsuite/kustomization.yaml || true

echo
echo "== List all deployments-springboot-memory patch registrations =="
rg -n --hidden --no-ignore -S 'patches/memory/deployments-springboot-memory-' k8s/components/gridsuite/kustomization.yaml

echo
echo "== Does the XXXXL patch file exist? =="
fd -t f 'deployments-springboot-memory-xxxxl\.yaml' k8s/components/gridsuite/patches/memory || true

echo
echo "== Any memory selector for memory-xxxxl anywhere in gridsuite component =="
rg -n --hidden --no-ignore -S 'memory-xxxxl' k8s/components/gridsuite || true

Repository: gridsuite/deployment

Length of output: 1204


Wiring check: XXXXL memory patch is not registered in k8s/components/gridsuite/kustomization.yaml

  • k8s/components/gridsuite/kustomization.yaml registers memory patches up to deployments-springboot-memory-xxxl.yaml and deployments-springboot-memory-{l,xl,xxl}-forking.yaml, but it has no patches/memory/deployments-springboot-memory-xxxxl.yaml entry and no annotationSelector: gridsuite.org/memory=memory-xxxxl.
  • This means k8s/components/gridsuite/patches/memory/deployments-springboot-memory-xxxxl.yaml will not be applied to any Deployments via this kustomization.
  • The snippet also lacks container securityContext; if the base doesn’t already set defaults, consider adding it.
🧰 Tools
🪛 Checkov (3.2.530)

[medium] 1-17: Containers should not run with allowPrivilegeEscalation

(CKV_K8S_20)


[medium] 1-17: Minimize the admission of root containers

(CKV_K8S_23)

🪛 Trivy (0.69.3)

[error] 9-17: Root file system is not read-only

Container 'main' of Deployment 'not-important' should set 'securityContext.readOnlyRootFilesystem' to true

Rule: KSV-0014

Learn more

(IaC/Kubernetes)


[error] 9-17: Default security context configured

container not-important in default namespace is using the default security context

Rule: KSV-0118

Learn more

(IaC/Kubernetes)


[error] 7-17: Default security context configured

deployment not-important in default namespace is using the default security context, which allows root privileges

Rule: KSV-0118

Learn more

(IaC/Kubernetes)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@k8s/components/gridsuite/patches/memory/deployments-springboot-memory-xxxxl.yaml`
around lines 1 - 17, The new memory patch file
deployments-springboot-memory-xxxxl.yaml is not registered in the gridsuite
kustomization so it will never be applied; update
k8s/components/gridsuite/kustomization.yaml to add this patch under patches (or
patchesStrategicMerge) and add an annotationSelector entry for
gridsuite.org/memory=memory-xxxxl so Deployments annotated for memory-xxxxl pick
it up, and while editing the patch file consider adding a container-level
securityContext (e.g., to the container named "main") if your base manifests do
not already supply the required defaults.

@sBouzols sBouzols marked this pull request as draft June 9, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant