Skip to content

Commit

Permalink
Merge pull request #50 from sebagomez/master
Browse files Browse the repository at this point in the history
Update HorizontalPodAutoscaler to the v2 CRD
  • Loading branch information
gitkent authored Dec 4, 2024
2 parents eb2b411 + 7ca7976 commit 6cbe032
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/wiremock/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ 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
# 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"
Expand Down
10 changes: 7 additions & 3 deletions charts/wiremock/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "wiremock.fullname" . }}
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion charts/wiremock/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6cbe032

Please sign in to comment.