Skip to content

Commit

Permalink
add hpa Utilization
Browse files Browse the repository at this point in the history
  • Loading branch information
juri committed Jan 29, 2025
1 parent c7c02ef commit 7be3e17
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: app
description: A Helm chart for Kubernetes Deployment
type: application

version: 0.15.2
version: 0.15.3

keywords:
- deployment
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-applications/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: argo-applications
description: A Helm chart for Kubernetes argo applications
type: application

version: 0.15.2
version: 0.15.3

keywords:
- argocd
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-workflows/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: argo-workflows
description: A Helm chart for Kubernetes argocd workflows
type: application

version: 0.15.2
version: 0.15.3

keywords:
- argocd
Expand Down
2 changes: 1 addition & 1 deletion charts/base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: base
description: A Helm chart for Kubernetes with helm named templates
type: library

version: 0.15.2
version: 0.15.3

keywords:
- deployment
Expand Down
12 changes: 11 additions & 1 deletion charts/base/templates/_horizontalPodAutoscaler.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,26 @@ spec:
resource:
name: memory
target:
{{- if hasKey . "AverageValue" }}
type: {{ .type | default "AverageValue" | quote }}
averageValue: {{ .averageValue }}
{{- else }}
type: {{ .type | default "Utilization" | quote }}
averageUtilization: {{ .averageUtilization | default 50 }}
{{- end }}
{{- end }}
{{- range .Values.autoscaling.cpu }}
- type: Resource
resource:
name: cpu
target:
type: {{ .type | default "Utilization" | quote }}
{{- if hasKey . "AverageValue" }}
type: {{ .type | default "AverageValue" | quote }}
averageValue: {{ .averageValue }}
{{- else }}
type: {{ .type | default "Utilization" | quote }}
averageUtilization: {{ .averageUtilization | default 50 }}
{{- end }}
{{- end }}
{{- range .Values.autoscaling.pubsub_subscription }}
- type: External
Expand Down
2 changes: 1 addition & 1 deletion charts/cronjob/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: cronjob
description: A Helm chart for Kubernetes cronjob
type: application

version: 0.15.2
version: 0.15.3

keywords:
- cronjob
Expand Down
2 changes: 1 addition & 1 deletion charts/default-base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: default-base
description: A Helm chart for Kubernetes - default-base for namespaces

version: 0.15.2
version: 0.15.3

keywords:
- BackendConfig
Expand Down
2 changes: 1 addition & 1 deletion charts/ingress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ingress
description: A Helm chart for Kubernetes ingress
type: application

version: 0.15.2
version: 0.15.3

keywords:
- ingress
Expand Down
2 changes: 1 addition & 1 deletion charts/job/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: job
description: A Helm chart for Kubernetes job
type: application

version: 0.15.2
version: 0.15.3

keywords:
- job
Expand Down
2 changes: 1 addition & 1 deletion charts/prometheus-rules/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: prometheus-rules
description: A Helm chart for Prometheus Rules
type: application

version: 0.15.2
version: 0.15.3

keywords:
- job
Expand Down
2 changes: 1 addition & 1 deletion charts/rbac/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: rbac
description: A Helm chart for Kubernetes rbac
type: application

version: 0.15.2
version: 0.15.3

keywords:
- rbac
Expand Down
2 changes: 1 addition & 1 deletion charts/service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: service
description: A Helm chart for Kubernetes service
type: application

version: 0.15.2
version: 0.15.3

keywords:
- service
Expand Down

0 comments on commit 7be3e17

Please sign in to comment.