diff --git a/index.yaml b/index.yaml index 56530a0..e7ce1ce 100644 --- a/index.yaml +++ b/index.yaml @@ -3,12 +3,12 @@ entries: tatort: - apiVersion: v2 appVersion: 0.0.1 - created: "2025-03-04T15:53:00.345932+01:00" + created: "2025-03-04T16:00:54.062448+01:00" description: A Helm chart for Kubernetes - digest: ad366d7aa35684c1cfd7021cc221f1daf21012919f6a77fe281bea9516a71e4a + digest: 826b2e548ec36923fb69d7332a361d8655b905be491ef2f07a6e867253a8828b name: tatort type: application urls: - https://gitea.innohub.local:3000/innohub/charts/raw/branch/main/tatort-0.1.0.tgz version: 0.1.0 -generated: "2025-03-04T15:53:00.345358+01:00" +generated: "2025-03-04T16:00:54.062041+01:00" diff --git a/tatort-0.1.0.tgz b/tatort-0.1.0.tgz index d286723..d9102d2 100644 Binary files a/tatort-0.1.0.tgz and b/tatort-0.1.0.tgz differ diff --git a/tatort/templates/hpa.yaml b/tatort/templates/hpa.yaml index 06c6551..90e2cb0 100644 --- a/tatort/templates/hpa.yaml +++ b/tatort/templates/hpa.yaml @@ -1,32 +1,19 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2 +{{- if .Values.autoscaling.enabled -}} +apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: - name: {{ include "tatort.fullname" . }} + name: {{ template "tatort.fullname" . }} labels: - {{- include "tatort.labels" . | nindent 4 }} + app: {{ template "tatort.name" . }} + chart: {{ template "tatort.chart" . }} + component: tatort + heritage: {{ .Release.Service }} + release: {{ .Release.Name }} spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment - name: {{ include "tatort.fullname" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} + name: {{ template "tatort.fullname" . }} +{{ toYaml .Values.autoscaling.config | indent 2 }} +{{- end -}} +