From 8899dbde68cb9f4c21d1b6d04d22a6aca35aeee4 Mon Sep 17 00:00:00 2001 From: Aymen EL Amri <5774128+eon01@users.noreply.github.com> Date: Sun, 18 Aug 2024 12:44:14 +0200 Subject: [PATCH] [stable/listmonk]: Update HPA API Version (autoscaling/v2beta1 -> autoscaling/v2) (#597) * Update HPA API Version * increment version * readapt spec to HPA version * Regenerate the chart README.md --- stable/listmonk/Chart.yaml | 2 +- stable/listmonk/README.md | 2 +- stable/listmonk/templates/hpa.yaml | 10 +++++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/stable/listmonk/Chart.yaml b/stable/listmonk/Chart.yaml index 907d56c6..f39d4e65 100644 --- a/stable/listmonk/Chart.yaml +++ b/stable/listmonk/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.9 +version: 0.1.10 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/stable/listmonk/README.md b/stable/listmonk/README.md index 715146d5..dfbf3ec8 100644 --- a/stable/listmonk/README.md +++ b/stable/listmonk/README.md @@ -1,6 +1,6 @@ # listmonk -![Version: 0.1.9](https://img.shields.io/badge/Version-0.1.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.1.0](https://img.shields.io/badge/AppVersion-v2.1.0-informational?style=flat-square) +![Version: 0.1.10](https://img.shields.io/badge/Version-0.1.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.1.0](https://img.shields.io/badge/AppVersion-v2.1.0-informational?style=flat-square) A Helm chart for listmonk application diff --git a/stable/listmonk/templates/hpa.yaml b/stable/listmonk/templates/hpa.yaml index 0e046f3e..de2fbb0a 100644 --- a/stable/listmonk/templates/hpa.yaml +++ b/stable/listmonk/templates/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ include "listmonk.fullname" . }} @@ -17,12 +17,16 @@ spec: - type: Resource resource: name: cpu - targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} {{- end }} {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource resource: name: memory - targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} {{- end }}