Skip to content

Commit

Permalink
fix: define memory target before cpu in hpa for kratos and hydra to a…
Browse files Browse the repository at this point in the history
…void diff in argocd (#576)
  • Loading branch information
noony authored Mar 8, 2023
1 parent 4484713 commit f8f4f6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions helm/charts/hydra/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ spec:
minReplicas: {{ .Values.deployment.autoscaling.minReplicas }}
maxReplicas: {{ .Values.deployment.autoscaling.maxReplicas }}
metrics:
{{- with .Values.deployment.autoscaling.targetCPU}}
{{- with .Values.deployment.autoscaling.targetMemory }}
- type: Resource
resource:
name: cpu
name: memory
target:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.deployment.autoscaling.targetMemory }}
{{- with .Values.deployment.autoscaling.targetCPU}}
- type: Resource
resource:
name: memory
name: cpu
target:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
8 changes: 4 additions & 4 deletions helm/charts/kratos/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ spec:
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- with .Values.autoscaling.targetCPU}}
{{- with .Values.autoscaling.targetMemory }}
- type: Resource
resource:
name: cpu
name: memory
target:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.autoscaling.targetMemory }}
{{- with .Values.autoscaling.targetCPU}}
- type: Resource
resource:
name: memory
name: cpu
target:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down

0 comments on commit f8f4f6b

Please sign in to comment.