Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[xray] add GOMAXPROCS env in statefulset from limits.cpu values #1783

Closed
wants to merge 2 commits into from
Closed
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
3 changes: 3 additions & 0 deletions stable/xray/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# JFrog Xray Chart Changelog
All changes to this chart will be documented in this file.

## [103.76.0] - Jun 22, 2023
* Add GOMAXPROCS env configuration from `limits.cpu` for router, analysis, indexer, server, persist in sts.

## [103.75.12] - May 19, 2023
* Fix lint issue when rabbitmq is disabled

Expand Down
2 changes: 1 addition & 1 deletion stable/xray/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ name: xray
sources:
- https://github.com/jfrog/charts
type: application
version: 103.75.12
version: 103.76.0
25 changes: 25 additions & 0 deletions stable/xray/templates/xray-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ spec:
env:
- name: JF_ROUTER_TOPOLOGY_LOCAL_REQUIREDSERVICETYPES
value: {{ include "xray.router.requiredServiceTypes" . }}
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: {{ .Values.router.name }}
resource: limits.cpu
ports:
- name: http-router
containerPort: {{ .Values.router.internalPort }}
Expand Down Expand Up @@ -450,6 +455,11 @@ spec:
name: "{{ template "xray.name" . }}-unified-secret"
{{- end }}
key: execution-service-aes-key
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: {{ .Values.server.name }}
resource: limits.cpu
{{- if .Values.common.extraEnvVars }}
{{- tpl .Values.common.extraEnvVars . | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -615,6 +625,11 @@ spec:
name: "{{ template "xray.name" . }}-unified-secret"
{{- end }}
key: execution-service-aes-key
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: {{ .Values.analysis.name }}
resource: limits.cpu
{{- if .Values.common.extraEnvVars }}
{{- tpl .Values.common.extraEnvVars . | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -769,6 +784,11 @@ spec:
fieldPath: metadata.name
- name: XRAY_K8S_ENV
value: "true"
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: {{ .Values.indexer.name }}
resource: limits.cpu
{{- if .Values.common.extraEnvVars }}
{{- tpl .Values.common.extraEnvVars . | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -919,6 +939,11 @@ spec:
{{- end }}
- name: XRAY_K8S_ENV
value: "true"
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
containerName: {{ .Values.persist.name }}
resource: limits.cpu
{{- if .Values.common.extraEnvVars }}
{{- tpl .Values.common.extraEnvVars . | nindent 8 }}
{{- end }}
Expand Down