chore(argo-cd): Remove legacy API versions for PDBs (#1740)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
parent
fbc8cb263c
commit
f6c884a096
12 changed files with 10 additions and 26 deletions
|
@ -3,7 +3,7 @@ appVersion: v2.5.5
|
||||||
kubeVersion: ">=1.22.0-0"
|
kubeVersion: ">=1.22.0-0"
|
||||||
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 5.16.11
|
version: 5.16.12
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -23,4 +23,4 @@ dependencies:
|
||||||
condition: redis-ha.enabled
|
condition: redis-ha.enabled
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- "[Added]: Added HostAliases to ApplicationSet Deployment"
|
- "[Removed]: API override for PDB"
|
||||||
|
|
|
@ -360,7 +360,6 @@ NAME: my-release
|
||||||
| apiVersionOverrides.certmanager | string | `""` | String to override apiVersion of cert-manager resources rendered by this helm chart |
|
| apiVersionOverrides.certmanager | string | `""` | String to override apiVersion of cert-manager resources rendered by this helm chart |
|
||||||
| apiVersionOverrides.cloudgoogle | string | `""` | String to override apiVersion of GKE resources rendered by this helm chart |
|
| apiVersionOverrides.cloudgoogle | string | `""` | String to override apiVersion of GKE resources rendered by this helm chart |
|
||||||
| apiVersionOverrides.ingress | string | `""` | String to override apiVersion of ingresses rendered by this helm chart |
|
| apiVersionOverrides.ingress | string | `""` | String to override apiVersion of ingresses rendered by this helm chart |
|
||||||
| apiVersionOverrides.pdb | string | `""` | String to override apiVersion of pod disruption budgets 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 |
|
||||||
|
|
|
@ -34,19 +34,6 @@ Return the appropriate apiVersion for ingress
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the appropriate apiVersion for pod disruption budget
|
|
||||||
*/}}
|
|
||||||
{{- define "argo-cd.apiVersion.pdb" -}}
|
|
||||||
{{- if .Values.apiVersionOverrides.pdb -}}
|
|
||||||
{{- print .Values.apiVersionOverrides.pdb -}}
|
|
||||||
{{- else if semverCompare "<1.21-0" (include "argo-cd.kubeVersion" .) -}}
|
|
||||||
{{- print "policy/v1beta1" -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- print "policy/v1" -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Return the appropriate apiVersion for cert-manager
|
Return the appropriate apiVersion for cert-manager
|
||||||
*/}}
|
*/}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if .Values.controller.pdb.enabled }}
|
{{- if .Values.controller.pdb.enabled }}
|
||||||
apiVersion: {{ include "argo-cd.apiVersion.pdb" . }}
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argo-cd.controller.fullname" . }}
|
name: {{ include "argo-cd.controller.fullname" . }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if and .Values.applicationSet.enabled .Values.applicationSet.pdb.enabled }}
|
{{- if and .Values.applicationSet.enabled .Values.applicationSet.pdb.enabled }}
|
||||||
apiVersion: {{ include "argo-cd.apiVersion.pdb" . }}
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argo-cd.applicationSet.fullname" . }}
|
name: {{ include "argo-cd.applicationSet.fullname" . }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if and .Values.notifications.enabled .Values.notifications.bots.slack.enabled .Values.notifications.bots.slack.pdb.enabled }}
|
{{- if and .Values.notifications.enabled .Values.notifications.bots.slack.enabled .Values.notifications.bots.slack.pdb.enabled }}
|
||||||
apiVersion: {{ include "argo-cd.apiVersion.pdb" . }}
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argo-cd.notifications.fullname" . }}-bot
|
name: {{ include "argo-cd.notifications.fullname" . }}-bot
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if and .Values.notifications.enabled .Values.notifications.pdb.enabled }}
|
{{- if and .Values.notifications.enabled .Values.notifications.pdb.enabled }}
|
||||||
apiVersion: {{ include "argo-cd.apiVersion.pdb" . }}
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argo-cd.notifications.fullname" . }}
|
name: {{ include "argo-cd.notifications.fullname" . }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if .Values.repoServer.pdb.enabled }}
|
{{- if .Values.repoServer.pdb.enabled }}
|
||||||
apiVersion: {{ include "argo-cd.apiVersion.pdb" . }}
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argo-cd.repoServer.fullname" . }}
|
name: {{ include "argo-cd.repoServer.fullname" . }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if .Values.server.pdb.enabled }}
|
{{- if .Values.server.pdb.enabled }}
|
||||||
apiVersion: {{ include "argo-cd.apiVersion.pdb" . }}
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argo-cd.server.fullname" . }}
|
name: {{ include "argo-cd.server.fullname" . }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if and .Values.dex.enabled .Values.dex.pdb.enabled }}
|
{{- if and .Values.dex.enabled .Values.dex.pdb.enabled }}
|
||||||
apiVersion: {{ include "argo-cd.apiVersion.pdb" . }}
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argo-cd.dex.fullname" . }}
|
name: {{ include "argo-cd.dex.fullname" . }}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{- $redisHa := index .Values "redis-ha" -}}
|
{{- $redisHa := index .Values "redis-ha" -}}
|
||||||
{{- if and .Values.redis.enabled (not $redisHa.enabled) .Values.redis.pdb.enabled }}
|
{{- if and .Values.redis.enabled (not $redisHa.enabled) .Values.redis.pdb.enabled }}
|
||||||
apiVersion: {{ include "argo-cd.apiVersion.pdb" . }}
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argo-cd.redis.fullname" . }}
|
name: {{ include "argo-cd.redis.fullname" . }}
|
||||||
|
|
|
@ -20,8 +20,6 @@ apiVersionOverrides:
|
||||||
autoscaling: "" # autoscaling/v2
|
autoscaling: "" # autoscaling/v2
|
||||||
# -- String to override apiVersion of ingresses rendered by this helm chart
|
# -- String to override apiVersion of ingresses rendered by this helm chart
|
||||||
ingress: "" # networking.k8s.io/v1beta1
|
ingress: "" # networking.k8s.io/v1beta1
|
||||||
# -- String to override apiVersion of pod disruption budgets rendered by this helm chart
|
|
||||||
pdb: "" # policy/v1
|
|
||||||
|
|
||||||
# -- Create clusterroles that extend existing clusterroles to interact with argo-cd crds
|
# -- Create clusterroles that extend existing clusterroles to interact with argo-cd crds
|
||||||
## Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles
|
## Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles
|
||||||
|
|
Loading…
Reference in a new issue