Merge branch 'main' of https://github.com/argoproj/argo-helm into fix-1925
This commit is contained in:
commit
bfc85608f4
6 changed files with 22 additions and 4 deletions
12
.github/workflows/lint-and-test.yml
vendored
12
.github/workflows/lint-and-test.yml
vendored
|
@ -6,6 +6,18 @@ permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
linter-artifacthub:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: public.ecr.aws/artifacthub/ah:v1.14.0
|
||||||
|
options: --user 1001
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
||||||
|
- name: Run ah lint
|
||||||
|
working-directory: ./charts
|
||||||
|
run: ah lint
|
||||||
|
|
||||||
chart-test:
|
chart-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -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.26.2
|
version: 0.26.3
|
||||||
icon: https://argoproj.github.io/argo-workflows/assets/logo.png
|
icon: https://argoproj.github.io/argo-workflows/assets/logo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
sources:
|
sources:
|
||||||
|
@ -14,4 +14,4 @@ maintainers:
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: fixed
|
- kind: fixed
|
||||||
description: Use correct artifacthub kind and get latest chart version to artifacthub
|
description: Fix Helm chart to correctly reference Kubernetes version in conditional check for HPA apiVersion
|
||||||
|
|
|
@ -101,6 +101,7 @@ Fields to note:
|
||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
|
| apiVersionOverrides.autoscaling | string | `""` | String to override apiVersion of autoscaling rendered by this helm chart |
|
||||||
| crds.annotations | object | `{}` | Annotations to be added to all CRDs |
|
| crds.annotations | object | `{}` | Annotations to be added to all CRDs |
|
||||||
| crds.install | bool | `true` | Install and upgrade CRDs |
|
| crds.install | bool | `true` | Install and upgrade CRDs |
|
||||||
| crds.keep | bool | `true` | Keep CRDs on chart uninstall |
|
| crds.keep | bool | `true` | Keep CRDs on chart uninstall |
|
||||||
|
|
|
@ -160,7 +160,7 @@ Return the appropriate apiVersion for autoscaling
|
||||||
{{- define "argo-workflows.apiVersion.autoscaling" -}}
|
{{- define "argo-workflows.apiVersion.autoscaling" -}}
|
||||||
{{- if .Values.apiVersionOverrides.autoscaling -}}
|
{{- if .Values.apiVersionOverrides.autoscaling -}}
|
||||||
{{- print .Values.apiVersionOverrides.autoscaling -}}
|
{{- print .Values.apiVersionOverrides.autoscaling -}}
|
||||||
{{- else if semverCompare "<1.23-0" (include "argo-cd.kubeVersion" .) -}}
|
{{- else if semverCompare "<1.23-0" (include "argo-workflows.kubeVersion" .) -}}
|
||||||
{{- print "autoscaling/v2beta1" -}}
|
{{- print "autoscaling/v2beta1" -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- print "autoscaling/v2" -}}
|
{{- print "autoscaling/v2" -}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if and .Values.server.enabled .Values.server.autoscaling.enabled }}
|
{{- if and .Values.server.enabled .Values.server.autoscaling.enabled }}
|
||||||
apiVersion: autoscaling/v2beta1
|
apiVersion: {{ include "argo-workflows.apiVersion.autoscaling" . }}
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.server.fullname" . }}
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
|
|
@ -29,6 +29,11 @@ fullnameOverride:
|
||||||
# -- Override the Kubernetes version, which is used to evaluate certain manifests
|
# -- Override the Kubernetes version, which is used to evaluate certain manifests
|
||||||
kubeVersionOverride: ""
|
kubeVersionOverride: ""
|
||||||
|
|
||||||
|
# Override APIVersions
|
||||||
|
apiVersionOverrides:
|
||||||
|
# -- String to override apiVersion of autoscaling rendered by this helm chart
|
||||||
|
autoscaling: "" # autoscaling/v2
|
||||||
|
|
||||||
# -- Restrict Argo to operate only in a single namespace (the namespace of the
|
# -- Restrict Argo to operate only in a single namespace (the namespace of the
|
||||||
# Helm release) by apply Roles and RoleBindings instead of the Cluster
|
# Helm release) by apply Roles and RoleBindings instead of the Cluster
|
||||||
# equivalents, and start workflow-controller with the --namespaced flag. Use it
|
# equivalents, and start workflow-controller with the --namespaced flag. Use it
|
||||||
|
|
Loading…
Reference in a new issue