Skip to content

Commit ee1a835

Browse files
authored
feat: configure resources for the dashboard and dp-manager deployments respectively (#129)
1 parent fe855a7 commit ee1a835

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

charts/api7/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.16.2
18+
version: 0.16.3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/api7/templates/dashboard-deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ spec:
109109
{{- include "api7ee3.tplvalues.render" (dict "value" .Values.dashboard.extraVolumeMounts "context" $) | nindent 12 }}
110110
{{- end }}
111111
resources:
112+
{{- if .Values.dashboard.resources }}
113+
{{- toYaml .Values.dashboard.resources | nindent 12 }}
114+
{{- else }}
112115
{{- toYaml .Values.resources | nindent 12 }}
116+
{{- end }}
113117
env:
114118
{{- if .Values.dashboard.extraEnvVars }}
115119
{{- include "api7ee3.tplvalues.render" (dict "value" .Values.dashboard.extraEnvVars "context" $) | nindent 12 }}

charts/api7/templates/dp-manager-deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ spec:
9494
{{- include "api7ee3.tplvalues.render" (dict "value" .Values.dashboard.extraVolumeMounts "context" $) | nindent 12 }}
9595
{{- end }}
9696
resources:
97+
{{- if .Values.dp_manager.resources }}
98+
{{- toYaml .Values.dp_manager.resources | nindent 12 }}
99+
{{- else }}
97100
{{- toYaml .Values.resources | nindent 12 }}
101+
{{- end }}
98102
env:
99103
{{- if .Values.dp_manager.extraEnvVars }}
100104
{{- include "api7ee3.tplvalues.render" (dict "value" .Values.dp_manager.extraEnvVars "context" $) | nindent 12 }}

charts/api7/values.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ dashboard:
1111
pullPolicy: Always
1212
# Overrides the image tag whose default is the chart appVersion.
1313
tag: "v3.2.14.2"
14+
# Resources of the deployment.
15+
# It has a higher priority than the common resources configuration:
16+
# when this field is configured, it is used first in the deployment,
17+
# otherwise the common resources configuration is used.
18+
# resources:
19+
# limits:
20+
# cpu: 100m
21+
# memory: 128Mi
22+
# requests:
23+
# cpu: 100m
24+
# memory: 128Mi
25+
1426
extraEnvVars: []
1527
extraVolumes: []
1628
extraVolumeMounts: []
@@ -22,6 +34,18 @@ dp_manager:
2234
pullPolicy: Always
2335
# Overrides the image tag whose default is the chart appVersion.
2436
tag: "v3.2.14.2"
37+
# Resources of the deployment.
38+
# It has a higher priority than the common resources configuration:
39+
# when this field is configured, it is used first in the deployment,
40+
# otherwise the common resources configuration is used.
41+
# resources:
42+
# limits:
43+
# cpu: 100m
44+
# memory: 128Mi
45+
# requests:
46+
# cpu: 100m
47+
# memory: 128Mi
48+
2549
extraEnvVars: []
2650
extraVolumes: []
2751
extraVolumeMounts: []

0 commit comments

Comments
 (0)