Skip to content

Commit

Permalink
chore(xp-treatment): Update HPA configs for xp-treatment chart (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krithika Sundararajan authored Nov 3, 2023
1 parent 962a104 commit 32de5d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/xp-treatment/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ maintainers:
- email: [email protected]
name: caraml-dev
name: xp-treatment
version: 0.1.24
version: 0.1.25
2 changes: 1 addition & 1 deletion charts/xp-treatment/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# xp-treatment

---
![Version: 0.1.24](https://img.shields.io/badge/Version-0.1.24-informational?style=flat-square)
![Version: 0.1.25](https://img.shields.io/badge/Version-0.1.25-informational?style=flat-square)
![AppVersion: 0.12.1](https://img.shields.io/badge/AppVersion-0.12.1-informational?style=flat-square)

Treatment service - A part of XP system that is used to obtain the treatment configuration from active experiments
Expand Down
12 changes: 6 additions & 6 deletions charts/xp-treatment/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ spec:
minReplicas: {{ .Values.deployment.autoscaling.minReplicas }}
maxReplicas: {{ .Values.deployment.autoscaling.maxReplicas }}
metrics:
{{- if .Values.deployment.autoscaling.targetCPUUtilizationPercentage }}
{{- if .Values.deployment.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: cpu
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.deployment.autoscaling.targetCPUUtilizationPercentage }}
averageUtilization: {{ .Values.deployment.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- if .Values.deployment.autoscaling.targetMemoryUtilizationPercentage }}
{{- if .Values.deployment.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: memory
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.deployment.autoscaling.targetMemoryUtilizationPercentage }}
averageUtilization: {{ .Values.deployment.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- end }}

0 comments on commit 32de5d2

Please sign in to comment.