Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit e3b4dc1

Browse files
authored
Merge pull request #177 from adrianludwin/cm-v1.0
Fix cert-manager build error (cherry-pick)
2 parents 8203482 + c9229ce commit e3b4dc1

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

config/certmanager/certificate.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# The following manifests contain a self-signed issuer CR and a certificate CR.
22
# More document can be found at https://docs.cert-manager.io
3-
apiVersion: cert-manager.io/v1alpha2
3+
apiVersion: cert-manager.io/v1
44
kind: Issuer
55
metadata:
66
name: selfsigned-issuer
77
namespace: system
88
spec:
99
selfSigned: {}
1010
---
11-
apiVersion: cert-manager.io/v1alpha2
11+
apiVersion: cert-manager.io/v1
1212
kind: Certificate
1313
metadata:
1414
name: serving-cert # this name should match the one appeared in kustomizeconfig.yaml

config/crd/patches/cainjection_in_hierarchies.yaml

-8
This file was deleted.

config/variants/default-cm/README

+12
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,15 @@ building the manifests ("made manifests" in the root directory).
55

66
As of March 2022, I ([email protected]) have not actually tested this to see if
77
it works.
8+
9+
If/when we next need to use CRD conversion webhooks, add the following patches
10+
to this directory:
11+
12+
# The following patch adds a directive for certmanager to inject CA into the CRD
13+
# CRD conversion requires k8s 1.13 or later.
14+
apiVersion: apiextensions.k8s.io/v1
15+
kind: CustomResourceDefinition
16+
metadata:
17+
annotations:
18+
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
19+
name: hierarchies.hnc.x-k8s.io

0 commit comments

Comments
 (0)