feat(argo-cd): Add API version overrides for PDB and GKE (#1524)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
parent
bbecd7445d
commit
6b523e3b0b
18 changed files with 130 additions and 91 deletions
|
|
@ -1,15 +1,5 @@
|
|||
{{- if .Values.server.certificate.enabled -}}
|
||||
{{- if .Values.apiVersionOverrides.certmanager -}}
|
||||
apiVersion: {{ .Values.apiVersionOverrides.certmanager }}
|
||||
{{- else if .Capabilities.APIVersions.Has "cert-manager.io/v1" }}
|
||||
apiVersion: cert-manager.io/v1
|
||||
{{- else if .Capabilities.APIVersions.Has "cert-manager.io/v1alpha3" }}
|
||||
apiVersion: cert-manager.io/v1alpha3
|
||||
{{- else if .Capabilities.APIVersions.Has "cert-manager.io/v1alpha2" }}
|
||||
apiVersion: cert-manager.io/v1alpha2
|
||||
{{- else }}
|
||||
apiVersion: certmanager.k8s.io/v1alpha1
|
||||
{{- end }}
|
||||
apiVersion: {{ include "argo-cd.apiVersion.cert-manager" . }}
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: {{ template "argo-cd.server.fullname" . }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue