[bitnami/kafka] chore: ♻️ ⬆️ Update common and remove k8s < 1.23 references (#33379)

This commit is contained in:
Javier J. Salmerón García
2025-05-06 17:27:48 +02:00
committed by GitHub
parent 4f25ca4507
commit 12ee35a725
5 changed files with 10 additions and 22 deletions

View File

@@ -28,24 +28,16 @@ spec:
- type: Resource
resource:
name: cpu
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }}
targetAverageUtilization: {{ .Values.broker.autoscaling.hpa.targetCPU }}
{{- else }}
target:
type: Utilization
averageUtilization: {{ .Values.broker.autoscaling.hpa.targetCPU }}
{{- end }}
{{- end }}
{{- if .Values.broker.autoscaling.hpa.targetMemory }}
- type: Resource
resource:
name: memory
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }}
targetAverageUtilization: {{ .Values.broker.autoscaling.hpa.targetMemory }}
{{- else }}
target:
type: Utilization
averageUtilization: {{ .Values.broker.autoscaling.hpa.targetMemory }}
{{- end }}
{{- end }}
{{- end }}