From e7a0c4724ec85d7c72186c6947ffc085c3129e6e Mon Sep 17 00:00:00 2001
From: irbekrm <irbekrm@gmail.com>
Date: Thu, 27 May 2021 07:03:04 +0100
Subject: [PATCH] Bump cert-manager API version v1alpha2 -> v1 in example
 configs

Signed-off-by: irbekrm <irbekrm@gmail.com>
---
 README.md                           | 4 ++--
 config/certmanager/certificate.yaml | 4 ++--
 config/default/kustomization.yaml   | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 30351dc..a22d0e4 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ sign the certificate requests.
 
 In this guide, we assume that you have a [Kubernetes](https://kubernetes.io/)
 environment with a [cert-manager](https://github.com/jetstack/cert-manager)
-version supporting CertificateRequest issuers, cert-manager v0.11.0 or higher.
+version supporting CertificateRequest issuers, cert-manager `v1.0.0` or higher.
 
 ### Installing step certificates
 
@@ -299,7 +299,7 @@ as the root certificate will be available in the resource:
 
 ```sh
 $ kubectl get certificaterequests.cert-manager.io internal-smallstep-com -o yaml
-apiVersion: cert-manager.io/v1alpha2
+apiVersion: cert-manager.io/v1
 kind: CertificateRequest
 ...
 status:
diff --git a/config/certmanager/certificate.yaml b/config/certmanager/certificate.yaml
index 82dfb53..46eb831 100644
--- a/config/certmanager/certificate.yaml
+++ b/config/certmanager/certificate.yaml
@@ -1,6 +1,6 @@
 # The following manifests contain a self-signed issuer CR and a certificate CR.
 # More document can be found at https://docs.cert-manager.io
-apiVersion: cert-manager.io/v1alpha2
+apiVersion: cert-manager.io/v1
 kind: Issuer
 metadata:
   name: selfsigned-issuer
@@ -8,7 +8,7 @@ metadata:
 spec:
   selfSigned: {}
 ---
-apiVersion: cert-manager.io/v1alpha2
+apiVersion: cert-manager.io/v1
 kind: Certificate
 metadata:
   name: serving-cert  # this name should match the one appeared in kustomizeconfig.yaml
diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml
index cb1819d..f750596 100644
--- a/config/default/kustomization.yaml
+++ b/config/default/kustomization.yaml
@@ -52,7 +52,7 @@ vars:
 #  objref:
 #    kind: Certificate
 #    group: cert-manager.io
-#    version: v1alpha2
+#    version: v1
 #    name: serving-cert # this name should match the one in certificate.yaml
 #  fieldref:
 #    fieldpath: metadata.namespace
@@ -60,7 +60,7 @@ vars:
 #  objref:
 #    kind: Certificate
 #    group: cert-manager.io
-#    version: v1alpha2
+#    version: v1
 #    name: serving-cert # this name should match the one in certificate.yaml
 #- name: SERVICE_NAMESPACE # namespace of the service
 #  objref:
-- 
GitLab