Skip to content

Commit

Permalink
fix: use integer values for hpa, refactor for argocd (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
rufusnufus authored Apr 27, 2023
1 parent 3fe99b0 commit c9e6b05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/athens-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: athens-proxy
version: 0.6.0
version: 0.6.1
appVersion: v0.12.0
description: The proxy server for Go modules
icon: https://raw.githubusercontent.com/gomods/athens/main/docs/static/banner.png
Expand Down
8 changes: 4 additions & 4 deletions charts/athens-proxy/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ spec:
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- with .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- with .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: cpu
name: memory
{{- if eq $apiVersion "autoscaling/v2beta1" }}
targetAverageUtilization: {{ . }}
{{- else }}
Expand All @@ -34,10 +34,10 @@ spec:
type: Utilization
{{- end }}
{{- end }}
{{- with .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- with .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: memory
name: cpu
{{- if eq $apiVersion "autoscaling/v2beta1" }}
targetAverageUtilization: {{ . }}
{{- else }}
Expand Down
4 changes: 2 additions & 2 deletions charts/athens-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80%
targetMemoryUtilizationPercentage: 80%
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
apiVersionOverride: ""
# This is only available on HPA apiVersion `autoscaling/v2beta2` and newer
behavior: {}
Expand Down

0 comments on commit c9e6b05

Please sign in to comment.