-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Certificate health checks and new tests
- Loading branch information
1 parent
0e27a0e
commit d8f8d55
Showing
5 changed files
with
195 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"cert-manager.io/v1","kind":"Certificate","metadata":{"annotations":{},"name":"shortlived","namespace":"nginx-ingress"},"spec":{"commonName":"example.com","dnsNames":["testing-cert-manager.example.com"],"duration":"1h","issuerRef":{"kind":"ClusterIssuer","name":"letsencrypt-production"},"renewBefore":"50m","secretName":"shortlived"}} | ||
creationTimestamp: "2025-01-16T14:27:19Z" | ||
generation: 1 | ||
name: shortlived | ||
namespace: nginx-ingress | ||
resourceVersion: "128050007" | ||
uid: bb3563f9-5fae-4f3d-aaa1-8de659aee674 | ||
spec: | ||
commonName: example.com | ||
dnsNames: | ||
- testing-cert-manager.example.com | ||
duration: 1h | ||
issuerRef: | ||
kind: ClusterIssuer | ||
name: letsencrypt-staging | ||
renewBefore: 50m | ||
secretName: shortlived | ||
status: | ||
conditions: | ||
- lastTransitionTime: "2025-01-16T14:27:19Z" | ||
message: 'The certificate request has failed to complete and will be retried: | ||
The CSR PEM requests a commonName that is not present in the list of dnsNames | ||
or ipAddresses. If a commonName is set, ACME requires that the value is also | ||
present in the list of dnsNames or ipAddresses: "example.com" does not exist | ||
in [testing-cert-manager.example.com] or []' | ||
observedGeneration: 1 | ||
reason: Failed | ||
status: "False" | ||
type: Issuing | ||
- lastTransitionTime: "2025-01-16T14:27:19Z" | ||
message: Issuing certificate as Secret does not exist | ||
observedGeneration: 1 | ||
reason: DoesNotExist | ||
status: "False" | ||
type: Ready | ||
failedIssuanceAttempts: 1 | ||
lastFailureTime: "2025-01-16T14:27:19Z" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"cert-manager.io/v1","kind":"Certificate","metadata":{"annotations":{},"name":"super-fast-renewal","namespace":"nginx-ingress"},"spec":{"commonName":"testing-cert-manager.example.com","dnsNames":["testing-cert-manager.example.com"],"issuerRef":{"kind":"ClusterIssuer","name":"letsencrypt-staging"},"renewBefore":"2159h55m","secretName":"super-fast-renewal"}} | ||
creationTimestamp: "2025-01-16T15:03:17Z" | ||
generation: 1 | ||
name: super-fast-renewal | ||
namespace: nginx-ingress | ||
resourceVersion: "128058895" | ||
uid: d05b4281-57e7-41bb-85ab-3b333dc6f5e6 | ||
spec: | ||
commonName: testing-cert-manager.example.com | ||
dnsNames: | ||
- testing-cert-manager.example.com | ||
issuerRef: | ||
kind: ClusterIssuer | ||
name: letsencrypt-staging | ||
renewBefore: 2159h55m | ||
secretName: super-fast-renewal | ||
status: | ||
conditions: | ||
- lastTransitionTime: "2025-01-16T15:03:23Z" | ||
message: Certificate is up to date and has not expired | ||
observedGeneration: 1 | ||
reason: Ready | ||
status: "True" | ||
type: Ready | ||
- lastTransitionTime: "2025-01-16T15:03:24Z" | ||
message: Renewing certificate as renewal was scheduled at 2025-01-16 14:09:47 +0000 UTC | ||
observedGeneration: 1 | ||
reason: Renewing | ||
status: "True" | ||
type: Issuing | ||
nextPrivateKeySecretName: super-fast-renewal-b7nfs | ||
notAfter: "2025-04-16T14:04:52Z" | ||
notBefore: "2025-01-16T14:04:53Z" | ||
renewalTime: "2025-01-16T14:09:52Z" | ||
revision: 2 |