Skip to content

Commit

Permalink
[VDEVOPS-000]: Fix promotion
Browse files Browse the repository at this point in the history
Signed-off-by: adobrodey <[email protected]>
  • Loading branch information
ADobrodey committed Feb 6, 2024
1 parent 4178bf0 commit 8d73471
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/deployment/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
7 changes: 6 additions & 1 deletion stable/deployment/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 8d73471

Please sign in to comment.