[ca-issuer]: Support different versions of cert-manager
v1.0.0 onwards of jetstack/cert-manager the apiVersion of CRD Issuer was changed to v1. This patchset add support for earlier version of cert-manager. Change-Id: I884c4e8e8c07e30240cd9fb3c125bd2aee6c4ddf
This commit is contained in:
parent
edcf774dea
commit
f2307f7db1
@ -16,5 +16,5 @@ appVersion: "1.0"
|
||||
description: Certificate Issuer chart for OSH
|
||||
home: https://cert-manager.io/
|
||||
name: ca-issuer
|
||||
version: 0.1.3
|
||||
version: 0.2.0
|
||||
...
|
||||
|
@ -15,7 +15,11 @@ limitations under the License.
|
||||
{{- if .Values.manifests.issuer }}
|
||||
{{- $envAll := . }}
|
||||
---
|
||||
{{- if semverCompare "< 0.2.0" .Chart.Version }}
|
||||
apiVersion: cert-manager.io/v1alpha3
|
||||
{{- else }}
|
||||
apiVersion: cert-manager.io/v1
|
||||
{{- end }}
|
||||
kind: Issuer
|
||||
metadata:
|
||||
name: {{ .Values.conf.ca.issuer.name }}
|
||||
|
@ -1,4 +1,8 @@
|
||||
---
|
||||
ca-issuer:
|
||||
- 0.1.0 Initial Chart
|
||||
- 0.1.1 Change helm-toolkit dependency version to ">= 0.1.0"
|
||||
- 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
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user