Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore(backport release-1.2): fix(chart): set divisor for resourceFieldRefs #3446

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions charts/kargo/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ spec:
valueFrom:
resourceFieldRef:
containerName: api
divisor: "1"
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: api
divisor: "1"
resource: limits.cpu
{{- with (concat .Values.global.env .Values.api.env) }}
{{- toYaml . | nindent 10 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kargo/templates/controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ spec:
valueFrom:
resourceFieldRef:
containerName: controller
divisor: "1"
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: controller
divisor: "1"
resource: limits.cpu
{{- with (concat .Values.global.env .Values.controller.env) }}
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kargo/templates/dex-server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ spec:
valueFrom:
resourceFieldRef:
containerName: dex-server
divisor: "1"
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: dex-server
divisor: "1"
resource: limits.cpu
{{- with (concat .Values.global.env .Values.api.oidc.dex.env) }}
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kargo/templates/garbage-collector/cron-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ spec:
valueFrom:
resourceFieldRef:
containerName: garbage-collector
divisor: "1"
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: garbage-collector
divisor: "1"
resource: limits.cpu
{{- with (concat .Values.global.env .Values.garbageCollector.env) }}
{{- toYaml . | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ spec:
valueFrom:
resourceFieldRef:
containerName: management-controller
divisor: "1"
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: management-controller
divisor: "1"
resource: limits.cpu
{{- with (concat .Values.global.env .Values.managementController.env) }}
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kargo/templates/webhooks-server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ spec:
valueFrom:
resourceFieldRef:
containerName: webhooks-server
divisor: "1"
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: webhooks-server
divisor: "1"
resource: limits.cpu
{{- with (concat .Values.global.env .Values.webhooksServer.env) }}
{{- toYaml . | nindent 8 }}
Expand Down