chore(argo-workflows): Remove legacy API versions for PDBs (#1741)
Signed-off-by: yu-croco <yu.croco@gmail.com> Co-authored-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
parent
def1e657da
commit
10e3af1bcf
4 changed files with 4 additions and 15 deletions
|
@ -3,7 +3,7 @@ appVersion: v3.4.4
|
||||||
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.22.4
|
version: 0.22.5
|
||||||
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,4 +13,4 @@ maintainers:
|
||||||
url: https://argoproj.github.io/
|
url: https://argoproj.github.io/
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- "[Added]: Changelog link on README"
|
- "[Removed]: legacy API versions for PDBs"
|
||||||
|
|
|
@ -129,17 +129,6 @@ Return the appropriate apiVersion for ingress
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the appropriate apiVersion for pod disruption budget
|
|
||||||
*/}}
|
|
||||||
{{- define "argo-workflows.podDisruptionBudget.apiVersion" -}}
|
|
||||||
{{- if semverCompare "<1.21-0" (include "argo-workflows.kubeVersion" $) -}}
|
|
||||||
{{- print "policy/v1beta1" -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- print "policy/v1" -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Return the target Kubernetes version
|
Return the target Kubernetes version
|
||||||
*/}}
|
*/}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if .Values.controller.pdb.enabled }}
|
{{- if .Values.controller.pdb.enabled }}
|
||||||
apiVersion: {{ include "argo-workflows.podDisruptionBudget.apiVersion" . }}
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.controller.fullname" . }}
|
name: {{ template "argo-workflows.controller.fullname" . }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if and .Values.server.enabled .Values.server.pdb.enabled -}}
|
{{- if and .Values.server.enabled .Values.server.pdb.enabled -}}
|
||||||
apiVersion: {{ include "argo-workflows.podDisruptionBudget.apiVersion" . }}
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.server.fullname" . }}
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
|
Loading…
Reference in a new issue