Merge "[ca-issuer]: Support different versions of cert-manager"

This commit is contained in:
Zuul 2021-02-25 22:07:39 +00:00 committed by Gerrit Code Review
commit 937c984766
4 changed files with 8 additions and 2 deletions

View File

@ -16,5 +16,5 @@ appVersion: "1.0"
description: Certificate Issuer chart for OSH
home: https://cert-manager.io/
name: ca-issuer
version: 0.2.0
version: 0.2.1
...

View File

@ -15,7 +15,7 @@ limitations under the License.
{{- if .Values.manifests.issuer }}
{{- $envAll := . }}
---
{{- if semverCompare "< 0.2.0" .Chart.Version }}
{{- if semverCompare "< v1.0.0" .Values.cert_manager_version }}
apiVersion: cert-manager.io/v1alpha3
{{- else }}
apiVersion: cert-manager.io/v1

View File

@ -19,6 +19,11 @@ conf:
crt: null
key: null
# Default Version of jetstack/cert-manager being deployed.
# Starting at v1.0.0, api-version: cert-manager.io/v1 is used
# For previous apiVersion: cert-manager.io/v1alpha3, change to older version (such as v0.15.0)
cert_manager_version: v1.0.0
manifests:
issuer: true
secret_ca: true

View File

@ -5,4 +5,5 @@ ca-issuer:
- 0.1.2 Update apiVersion of Issuer to v1
- 0.1.3 Revert - Update apiVersion of Issuer to v1
- 0.2.0 Only Cert-manager version v1.0.0 or greater will be supported
- 0.2.1 Cert-manager "< v1.0.0" supports cert-manager.io/v1alpha3 else use api cert-manager.io/v1
...