Skip to content

Commit

Permalink
feat: override cpu/memory request and limit from jenkinsfile
Browse files Browse the repository at this point in the history
Signed-off-by: sebastien.heurtematte <[email protected]>
  • Loading branch information
heurtematte committed Jun 4, 2024
1 parent 97bcb81 commit d2a1b6e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions templates/jenkins/configuration.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ jenkins:
periodSeconds: 0
successThreshold: 0
timeoutSeconds: 0
resourceLimitCpu: "{{this.kubernetes.resources.cpu.limit}}"
resourceRequestCpu: "{{this.kubernetes.resources.cpu.request}}"
resourceLimitMemory: "{{this.kubernetes.resources.memory.limit}}"
resourceRequestMemory: "{{this.kubernetes.resources.memory.request}}"
ttyEnabled: true
command: ""
args: ""
Expand Down Expand Up @@ -128,6 +124,13 @@ jenkins:
spec:
containers:
- name: jnlp
resources:
limits:
cpu: "{{this.kubernetes.resources.cpu.limit}}"
memory: "{{this.kubernetes.resources.memory.limit}}"
requests:
cpu: "{{this.kubernetes.resources.cpu.request}}"
memory: "{{this.kubernetes.resources.memory.request}}"
volumeMounts:
{{#each kubernetes.volumes}}
{{#each mounts}}
Expand Down

0 comments on commit d2a1b6e

Please sign in to comment.