diff --git a/stable/deployment/Chart.yaml b/stable/deployment/Chart.yaml index 3ec7cbb..78ae33d 100644 --- a/stable/deployment/Chart.yaml +++ b/stable/deployment/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: deployment -version: 1.3.10 +version: 1.3.11 description: Typical microservice chart. Supports Ingress controller, horizontal-scalable containers type: application dependencies: diff --git a/stable/deployment/templates/hpa.yaml b/stable/deployment/templates/hpa.yaml index bdf1865..9344988 100644 --- a/stable/deployment/templates/hpa.yaml +++ b/stable/deployment/templates/hpa.yaml @@ -7,8 +7,13 @@ metadata: labels: {{ include "k8s-common.labels.standard" . | nindent 4 }} spec: scaleTargetRef: + {{ if .Values.rollouts.enabled -}} + apiVersion: argoproj.io/v1alpha1 + kind: Rollout + {{ else -}} apiVersion: {{ include "k8s-common.capabilities.deployment.apiVersion" . }} - kind: {{ if .Values.rollouts.enabled }}Rollout{{ else }}Deployment{{ end }} + kind: Deployment + {{ end -}} name: {{ include "k8s-common.names.fullname" . }} minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }}