fix(argo-workflows): Add missing argo-workflows.apiVersion.autoscaling helper function for HPA configuration (#2001)
fix: Add missing argo-workflows.apiVersion.autoscaling helper function for HPA configuration Signed-off-by: jmeridth <jmeridth@gmail.com>
This commit is contained in:
parent
bb4d3154e6
commit
513df3df8f
2 changed files with 16 additions and 3 deletions
|
@ -3,7 +3,7 @@ appVersion: v3.4.7
|
||||||
name: argo-workflows
|
name: argo-workflows
|
||||||
description: A Helm chart for Argo Workflows
|
description: A Helm chart for Argo Workflows
|
||||||
type: application
|
type: application
|
||||||
version: 0.25.1
|
version: 0.25.2
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
sources:
|
sources:
|
||||||
|
@ -13,5 +13,5 @@ maintainers:
|
||||||
url: https://argoproj.github.io/
|
url: https://argoproj.github.io/
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: added
|
- kind: fix
|
||||||
description: Add Prometheus ServiceMonitor relabelings, metricRelabelings & targetLabels
|
description: Add missing argo-workflows.apiVersion.autoscaling helper function used for HPA configuration
|
||||||
|
|
|
@ -153,3 +153,16 @@ Return full image name including or excluding registry based on existence
|
||||||
{{ .image.repository }}
|
{{ .image.repository }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Return the appropriate apiVersion for autoscaling
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.apiVersion.autoscaling" -}}
|
||||||
|
{{- if .Values.apiVersionOverrides.autoscaling -}}
|
||||||
|
{{- print .Values.apiVersionOverrides.autoscaling -}}
|
||||||
|
{{- else if semverCompare "<1.23-0" (include "argo-cd.kubeVersion" .) -}}
|
||||||
|
{{- print "autoscaling/v2beta1" -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- print "autoscaling/v2" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue