Skip to content

Commit

Permalink
feat(clamapi): update HorizontalPodAutoscaler (#155)
Browse files Browse the repository at this point in the history
* feat(clamapi): update HorizontalPodAutoscaler

Use apiVersion: autoscaling/v2

* feat(clamapi): update chart in 2.0.4

* feat(clamav): update in 2.6.0

* feat(clamav): update requirements.lock

* feat(clamav): update requirement in 2.7.0

* feat(clamav): update requirements.lock in 2.7.0
  • Loading branch information
RomainSieb authored Feb 27, 2023
1 parent a655e50 commit a4f5f65
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion charts/clamapi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ name: clamapi
home: https://github.com/cnieg/helm-charts/
sources:
- https://github.com/audig/clamapi
version: 2.0.3
version: 2.0.4
maintainers:
- name: audig
6 changes: 3 additions & 3 deletions charts/clamapi/requirements.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: clamav
repository: https://wiremind.github.io/wiremind-helm-charts
version: 2.5.0
digest: sha256:3e38690cf1c38cec1ae3582db46ab4db9a4e76323cfedc50a90c6388e7cd7c38
generated: "2022-09-04T12:42:16.7904465+02:00"
version: 2.7.0
digest: sha256:9914070ab23e358183e5513b8f3e73d301a1255a59b3de2c7a8ed2cce438ec5c
generated: "2023-02-27T15:53:09.2280606+01:00"
2 changes: 1 addition & 1 deletion charts/clamapi/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create new requirements.lock with "helm dependency build ."
dependencies:
- name: clamav
version: 2.5.0
version: 2.7.0
repository: https://wiremind.github.io/wiremind-helm-charts
condition: clamav.enabled
21 changes: 11 additions & 10 deletions charts/clamapi/templates/horizontal-pod-autoscaler.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.hpa -}}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "clamapi.fullname" . }}
Expand All @@ -12,13 +12,14 @@ spec:
name: {{ include "clamapi.fullname" . }}
minReplicas: {{ .Values.replicaCount }}
maxReplicas: {{ .Values.hpa.maxReplicas }}
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.hpa.cpuMax }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.hpa.memoryMax }}
behavior:
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.hpa.cpuMax }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.hpa.memoryMax }}
{{- end }}

0 comments on commit a4f5f65

Please sign in to comment.