From 8ada0028afa879284ba6f896b98c58c5db603cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20G=C3=B3mez?= Date: Fri, 29 Nov 2024 09:37:16 -0500 Subject: [PATCH 1/4] HPA are v2 since Kubernetes v1.23 --- charts/wiremock/templates/hpa.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/charts/wiremock/templates/hpa.yaml b/charts/wiremock/templates/hpa.yaml index 48ebec6..3b38c10 100644 --- a/charts/wiremock/templates/hpa.yaml +++ b/charts/wiremock/templates/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ include "wiremock.fullname" . }} @@ -14,15 +14,19 @@ spec: maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: + - resource: name: cpu - targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + type: Resource {{- end }} {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: + - resource: name: memory - targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + type: Resource {{- end }} {{- end }} From 332c3cd1eba6796b83a445a00944dd4c1a679486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20G=C3=B3mez?= Date: Fri, 29 Nov 2024 09:53:24 -0500 Subject: [PATCH 2/4] Improved order --- charts/wiremock/templates/hpa.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/wiremock/templates/hpa.yaml b/charts/wiremock/templates/hpa.yaml index 3b38c10..b90548f 100644 --- a/charts/wiremock/templates/hpa.yaml +++ b/charts/wiremock/templates/hpa.yaml @@ -14,19 +14,19 @@ spec: maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - resource: + - type: Resource + resource: name: cpu target: type: Utilization averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - type: Resource {{- end }} {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - resource: + - type: Resource + resource: name: memory target: type: Utilization averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource {{- end }} {{- end }} From eb96c0e80618e9f0f27dd891648646c5ddbabeaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20G=C3=B3mez?= Date: Mon, 2 Dec 2024 08:42:29 -0500 Subject: [PATCH 3/4] Increment chart version --- charts/wiremock/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/wiremock/Chart.yaml b/charts/wiremock/Chart.yaml index ce61fa3..17e397f 100644 --- a/charts/wiremock/Chart.yaml +++ b/charts/wiremock/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: 1.3.0 +version: 1.4.0 # 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 From 7ca79760b41434f795787e683b19dcac3a61e9bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20G=C3=B3mez?= Date: Mon, 2 Dec 2024 12:05:37 -0500 Subject: [PATCH 4/4] Update to the latest wiremock version --- charts/wiremock/Chart.yaml | 2 +- charts/wiremock/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/wiremock/Chart.yaml b/charts/wiremock/Chart.yaml index 17e397f..b960a11 100644 --- a/charts/wiremock/Chart.yaml +++ b/charts/wiremock/Chart.yaml @@ -21,7 +21,7 @@ version: 1.4.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "3.8.0" +appVersion: "3.10.0" maintainers: - name: "gitkent" diff --git a/charts/wiremock/values.yaml b/charts/wiremock/values.yaml index fedd2f2..1a2b42b 100644 --- a/charts/wiremock/values.yaml +++ b/charts/wiremock/values.yaml @@ -29,7 +29,7 @@ replicaCount: 1 image: repository: wiremock/wiremock # Overrides the image tag whose default is the chart appVersion. - tag: 3.8.0 + tag: 3.10.0 pullPolicy: IfNotPresent initContainer: