Skip to content

Commit

Permalink
Update autoscaling API versions for HPA
Browse files Browse the repository at this point in the history
  • Loading branch information
Stacy Horton authored and omad committed Mar 15, 2024
1 parent 8345d76 commit 0eb60e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions stable/datacube-dask/templates/worker-hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if not .Values.adaptive.enabled }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "datacube-dask.fullname" . }}-worker
Expand All @@ -20,4 +20,4 @@ spec:
resource:
name: cpu
targetAverageUtilization: {{ .Values.worker.targetCpu }}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions stable/datacube-ows/templates/autoscaling.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Values.ows.enabled }}
{{- if .Values.ows.hpa.autoscaling }}
apiVersion: autoscaling/v2beta2
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "datacube-ows.fullname" . }}
Expand All @@ -22,4 +22,4 @@ spec:
{{- end }}

{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion stable/datacube-wps/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.hpa.enabled }}
apiVersion: autoscaling/v2beta2
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "datacube-wps.fullname" . }}
Expand Down

0 comments on commit 0eb60e8

Please sign in to comment.