Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
upgrade certificate-dns-bridge for cert-manager v0.12.0 and upgrade d…
Browse files Browse the repository at this point in the history
…ns-controller-manager impors
  • Loading branch information
Diaphteiros committed Jul 24, 2020
1 parent fedabfa commit 4bb233f
Show file tree
Hide file tree
Showing 5 changed files with 346 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The solver is actually a small API service. It gets a `POST` request from the ce
To connect the cert-manager to the solver, a specifically configured `Issuer` (or `ClusterIssuer`) is needed. It should look something like this:

```yaml
apiVersion: certmanager.k8s.io/v1alpha1
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: my-issuer
Expand Down
2 changes: 1 addition & 1 deletion charts/certificate-dns-bridge/templates/apiservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
certmanager.k8s.io/inject-ca-from: "{{ .Release.Namespace }}/{{ include "certificate-dns-bridge.servingCertificate" . }}"
cert-manager.io/inject-ca-from: "{{ .Release.Namespace }}/{{ include "certificate-dns-bridge.servingCertificate" . }}"
spec:
group: {{ .Values.groupName }}
groupPriorityMinimum: 1000
Expand Down
8 changes: 4 additions & 4 deletions charts/certificate-dns-bridge/templates/pki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
---
# Create a selfsigned Issuer, in order to create a root CA certificate for
# signing webhook serving certificates
apiVersion: certmanager.k8s.io/v1alpha1
apiVersion: cert-manager.io/v1alpha2
kind: Issuer
metadata:
name: {{ include "certificate-dns-bridge.selfSignedIssuer" . }}
Expand All @@ -31,7 +31,7 @@ spec:
---

# Generate a CA Certificate used to sign certificates for the webhook
apiVersion: certmanager.k8s.io/v1alpha1
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: {{ include "certificate-dns-bridge.rootCACertificate" . }}
Expand All @@ -52,7 +52,7 @@ spec:
---

# Create an Issuer that uses the above generated CA certificate to issue certs
apiVersion: certmanager.k8s.io/v1alpha1
apiVersion: cert-manager.io/v1alpha2
kind: Issuer
metadata:
name: {{ include "certificate-dns-bridge.rootCAIssuer" . }}
Expand All @@ -69,7 +69,7 @@ spec:
---

# Finally, generate a serving certificate for the webhook to use
apiVersion: certmanager.k8s.io/v1alpha1
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: {{ include "certificate-dns-bridge.servingCertificate" . }}
Expand Down
9 changes: 4 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ go 1.12

require (
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/gardener/controller-manager-library v0.0.0-20190508145811-670efa3cd76c // indirect
github.com/gardener/external-dns-management v0.0.0-20190508150408-ef73be2d81c0
github.com/gardener/external-dns-management v0.7.13
github.com/imdario/mergo v0.3.7 // indirect
github.com/jetstack/cert-manager v0.8.0
k8s.io/apiextensions-apiserver v0.0.0-20190413053546-d0acb7a76918
k8s.io/apimachinery v0.0.0-20190509063443-7d8f8feb49c5
k8s.io/apiextensions-apiserver v0.17.6
k8s.io/apimachinery v0.17.6
k8s.io/client-go v11.0.0+incompatible
k8s.io/klog v0.3.0
k8s.io/klog v1.0.0
)

replace k8s.io/client-go => k8s.io/client-go v0.0.0-20190413052642-108c485f896e
Expand Down
Loading

0 comments on commit 4bb233f

Please sign in to comment.