Skip to content

Commit

Permalink
feat: configure resources for the dashboard and dp-manager deployment…
Browse files Browse the repository at this point in the history
…s respectively (#129)
  • Loading branch information
dspo authored Aug 5, 2024
1 parent fe855a7 commit ee1a835
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/api7/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.16.2
version: 0.16.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions charts/api7/templates/dashboard-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ spec:
{{- include "api7ee3.tplvalues.render" (dict "value" .Values.dashboard.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
resources:
{{- if .Values.dashboard.resources }}
{{- toYaml .Values.dashboard.resources | nindent 12 }}
{{- else }}
{{- toYaml .Values.resources | nindent 12 }}
{{- end }}
env:
{{- if .Values.dashboard.extraEnvVars }}
{{- include "api7ee3.tplvalues.render" (dict "value" .Values.dashboard.extraEnvVars "context" $) | nindent 12 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/api7/templates/dp-manager-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ spec:
{{- include "api7ee3.tplvalues.render" (dict "value" .Values.dashboard.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
resources:
{{- if .Values.dp_manager.resources }}
{{- toYaml .Values.dp_manager.resources | nindent 12 }}
{{- else }}
{{- toYaml .Values.resources | nindent 12 }}
{{- end }}
env:
{{- if .Values.dp_manager.extraEnvVars }}
{{- include "api7ee3.tplvalues.render" (dict "value" .Values.dp_manager.extraEnvVars "context" $) | nindent 12 }}
Expand Down
24 changes: 24 additions & 0 deletions charts/api7/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ dashboard:
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "v3.2.14.2"
# Resources of the deployment.
# It has a higher priority than the common resources configuration:
# when this field is configured, it is used first in the deployment,
# otherwise the common resources configuration is used.
# resources:
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

extraEnvVars: []
extraVolumes: []
extraVolumeMounts: []
Expand All @@ -22,6 +34,18 @@ dp_manager:
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "v3.2.14.2"
# Resources of the deployment.
# It has a higher priority than the common resources configuration:
# when this field is configured, it is used first in the deployment,
# otherwise the common resources configuration is used.
# resources:
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

extraEnvVars: []
extraVolumes: []
extraVolumeMounts: []
Expand Down

0 comments on commit ee1a835

Please sign in to comment.