fix: reorder hpa metrics to avoid displaying diffs in argocd

This commit is contained in:
Rodrigo Argüello Flores 2020-02-20 15:34:14 +09:00
parent d9d7862864
commit ce42b51dd1
No known key found for this signature in database
GPG key ID: 1AF0BFFAB2EA5F95
3 changed files with 13 additions and 13 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.4.2" appVersion: "1.4.2"
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes. description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd name: argo-cd
version: 1.8.0 version: 1.8.1
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
keywords: keywords:

View file

@ -18,16 +18,16 @@ spec:
minReplicas: {{ .Values.repoServer.autoscaling.minReplicas }} minReplicas: {{ .Values.repoServer.autoscaling.minReplicas }}
maxReplicas: {{ .Values.repoServer.autoscaling.maxReplicas }} maxReplicas: {{ .Values.repoServer.autoscaling.maxReplicas }}
metrics: metrics:
{{- with .Values.repoServer.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ . }}
{{- end }}
{{- with .Values.repoServer.autoscaling.targetMemoryUtilizationPercentage }} {{- with .Values.repoServer.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource - type: Resource
resource: resource:
name: memory name: memory
targetAverageUtilization: {{ . }} targetAverageUtilization: {{ . }}
{{- end }} {{- end }}
{{- with .Values.repoServer.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ . }}
{{- end }}
{{- end }} {{- end }}

View file

@ -18,16 +18,16 @@ spec:
minReplicas: {{ .Values.server.autoscaling.minReplicas }} minReplicas: {{ .Values.server.autoscaling.minReplicas }}
maxReplicas: {{ .Values.server.autoscaling.maxReplicas }} maxReplicas: {{ .Values.server.autoscaling.maxReplicas }}
metrics: metrics:
{{- with .Values.server.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ . }}
{{- end }}
{{- with .Values.server.autoscaling.targetMemoryUtilizationPercentage }} {{- with .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource - type: Resource
resource: resource:
name: memory name: memory
targetAverageUtilization: {{ . }} targetAverageUtilization: {{ . }}
{{- end }} {{- end }}
{{- with .Values.server.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ . }}
{{- end }}
{{- end }} {{- end }}