[ca-issuer]: Support different versions of cert-manager
Support cert manager version v1.2.0 by default and logic to support earlier versions. Change-Id: I70a45eb3cccc7cfbe2784048a4524bd9e4d832df
This commit is contained in:
parent
128c3f748a
commit
97bd2c4937
@ -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
|
||||
...
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user